Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2008, 03:41 PM
Member
 
Join Date: May 2008
Posts: 4
damounh is on a distinguished road
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
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)
my step by step approach was:

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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the DSN tim Database 1 02-14-2008 10:55 PM
Setting cookie from doPost Java Tip Java Tips 0 01-25-2008 08:08 PM
Help with setting up please BlitzA New To Java 6 12-29-2007 01:54 PM
Repaint fails when using threads rjevans2000 Threads and Synchronization 1 09-22-2007 12:22 AM
Repaint fails when using threads rjevans2000 AWT / Swing 3 08-15-2007 06:42 PM


All times are GMT +3. The time now is 08:20 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org