Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Java Web Start app exiting with access denie (java.lang.RuntimePermission

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java Web Start app exiting with access denie (java.lang.RuntimePermission

    hii

    I have created jnlp for my java swing application. but It is throwing an error

    java.security.AccessControlException:
    access denied (java.lang.RuntimePermission accessDeclaredMembers) at
    java.security.AccessControlContext.checkPermission (AccessControlContext.java,230)


    Line number 230 is

    jaxbContext = JAXBContext.newInstance(Shopify.api.wrappers.Produ ctListAPIWrapper.class);
    Unmarshaller unmarshaller =jaxbContext.createUnmarshaller();
    String responseString = getContentStringFromResponse(productListResponse);
    JAXBElement<ProductListAPIWrapper> root = unmarshaller.unmarshal(new StreamSource(new StringReader(responseString)), ProductListAPIWrapper.class);
    output.addAll(root.getValue().getProducts());


    Can anyone solve my problem?

    Thanks in advance


  2. #2
    Forum old-timer
    Join Date
    Nov 2008
    Location
    Faversham, Kent, UK
    Posts
    471
    My Mood
    Mellow
    Thanks
    4
    Thanked 58 Times in 54 Posts

    Default Re: Java Web Start app exiting with access denie (java.lang.RuntimePermission

    If all that code is line 230, I suggest you split it up and put each statement on a separate line. That will narrow it down a bit.

  3. #3
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,099
    Thanks
    169
    Thanked 779 Times in 725 Posts
    Blog Entries
    5

    Default Re: Java Web Start app exiting with access denie (java.lang.RuntimePermission

    AccessControlException is typically an issue with java security, where your application attempts to do something it is not allowed to do. Workaround is typically the requirement to sign the jar
    Java Web Start and Security (The Java™ Tutorials > Deployment > Java Web Start)

Similar Threads

  1. java.lang.OutOfMemoryError: Java heap space
    By Nikhat in forum Exceptions
    Replies: 7
    Last Post: April 21st, 2011, 07:31 AM
  2. Replies: 0
    Last Post: August 30th, 2010, 07:34 AM
  3. Start With JAVA
    By infoprovider in forum The Cafe
    Replies: 2
    Last Post: July 28th, 2010, 04:34 AM
  4. AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    By nasi in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 25th, 2010, 10:37 PM
  5. Replies: 2
    Last Post: November 3rd, 2009, 05:28 AM