Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    23
    Rep Power
    0

    Default File Permission Problem

    Hi I was trying to make an applet (should i post this in the applet forum? will people yell if I post in both places??)

    but I ran into this problem and I have no idea what it means or how to handle it:

    createGUI didn't complete successfully
    java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
    at HaploTypeBrowser.HaploDisplay.init(HaploDisplay.ja va:14)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.io.FilePermission http:\avery.agron.iastate.edu\JavaBrowser\data\B2. txt read)
    at java.security.AccessControlContext.checkPermission (Unknown Source)
    at java.security.AccessController.checkPermission(Unk nown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkRead(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.util.Scanner.<init>(Unknown Source)
    at HaploTypeBrowser.HaploTable.<init>(HaploTable.java :96)
    at HaploTypeBrowser.HaploDisplay.createGUI(HaploDispl ay.java:29)
    at HaploTypeBrowser.HaploDisplay.access$000(HaploDisp lay.java:7)
    at HaploTypeBrowser.HaploDisplay$1.run(HaploDisplay.j ava:16)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  2. #2
    Join Date
    Nov 2009
    Posts
    23
    Rep Power
    0

    Default

    I think i figured it out...

    I signed my jar file and i think it mightve fixed the problem (not sure because now i have another error)

Similar Threads

  1. Replies: 3
    Last Post: 05-22-2011, 03:16 PM
  2. 'Permission denied' java script error
    By java08 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 04-13-2009, 08:19 AM
  3. Replies: 5
    Last Post: 03-13-2009, 12:45 PM
  4. Replies: 1
    Last Post: 10-16-2008, 09:56 PM
  5. How to revoke permission to save or copy a PDF file in java
    By priyanka.dandekar in forum Advanced Java
    Replies: 11
    Last Post: 10-05-2008, 06:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •