Results 1 to 1 of 1
Thread: Setting cookie fails when jarred
- 05-08-2008, 02:41 PM #1
Member
- Join Date
- May 2008
- Posts
- 5
- Rep Power
- 0
Setting cookie fails when jarred
I am trying to set a cookie inside an applet, I am able to do this if I am using a single class that is called directly from the HTML code.
However, now I am trying to access the users hard drive, to let them pick a file for upload, however when I do this, I cannot use the cookies, I get the error saying
my step by step approach was:Java Code:Exception in thread "AWT-EventQueue-3" netscape.javascript.JSException at netscape.javascript.JSObject.getWindow(Unknown Source) at FileUploader.actionPerformed(FileUploader.java:46) at java.awt.Button.processActionEvent(Unknown Source) at java.awt.Button.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
create two classes, one is the applet called FileUploader, the other is a JPanel called FinalPanel, this panel is then added to the applet and later.
I have one button on the applet called write cookie which is to set the cookie. it worked perfectly fine before but ever since I jarred and signed the jar I started to get that error.
does anyone know any workarounds?
Thanks,
Damoun.H.
Similar Threads
-
Setting the DSN
By tim in forum JDBCReplies: 1Last Post: 02-14-2008, 09:55 PM -
Setting cookie from doPost
By Java Tip in forum Java TipReplies: 0Last Post: 01-25-2008, 07:08 PM -
Help with setting up please
By BlitzA in forum New To JavaReplies: 6Last Post: 12-29-2007, 12:54 PM -
Repaint fails when using threads
By rjevans2000 in forum Threads and SynchronizationReplies: 1Last Post: 09-21-2007, 11:22 PM -
Repaint fails when using threads
By rjevans2000 in forum AWT / SwingReplies: 3Last Post: 08-15-2007, 05:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks