Yes, I added support to JEP 0.9.6 (just released) for accessing
Mozilla.org browsers' cookie store. For more information, see item #1
in JEP 0.9.6's change log.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great work! No sooner than we found we had a problem, you provide the solution!
The problem we're experiencing is that *both* JEP 0.9.5.g2 (an older version) is installed, as well as the 0.9.6 JEP, and as long as the 0.9.5etc plugin is there, the behaviour is cookies don't work. about:plugins shows both. 0.9.5etc is coming from Firefox's default installation,
This may be broken in Mac OS 10.4 with FF 3.5 and JRE 1.5.0_19
Here is a part of the stack trace/thread dump of applet:
"Image Fetcher 0" daemon prio=4 tid=0x07140e30 nid=0x25e1a00 runnable [0xf0f9d000..0xf0f9eb30]
at com.sun.deploy.net.cookie.JEPCookieHandler.getCookie(Native Method)
at com.sun.deploy.net.cookie.JEPCookieHandler.getCookieInfo(Unknown Source)
at com.sun.deploy.net.cookie.DeployCookieManager.getCookieInfo(DeployCookieManager.java:83)
- locked <0x17c1e5f8> (a java.lang.Class)
at com.sun.deploy.net.cookie.DeployCookieSelector.get(DeployCookieSelector.java:70)
- locked <0x11f721d8> (a com.sun.deploy.net.cookie.DeployCookieSelector)
at sun.net.www.protocol.http.HttpURLConnection.addRequestCookies(HttpURLConnection.java:475)
at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:428)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:972)
- locked <0x1149ca08> (a sun.net.www.protocol.http.HttpURLConnection)
at sun.plugin.net.protocol.http.HttpUtils.followRedirects(HttpUtils.java:43)
at sun.plugin.cache.CachedFileLoader.download(CachedFileLoader.java:296)
at sun.plugin.cache.CachedFileLoader.load(CachedFileLoader.java:119)
at sun.plugin.cache.FileCache.get(FileCache.java:136)
at sun.plugin.cache.PluginCacheHandler.get(PluginCacheHandler.java:87)
- locked <0x11f71d40> (a sun.plugin.cache.PluginCacheHandler)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:734)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:707)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:951)
- locked <0x1149b480> (a sun.net.www.protocol.http.HttpURLConnection)
at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
"StackTrace Shell 10000" prio=5 tid=0x0713bc40 nid=0x69f3e00 runnable [0xf0e9c000..0xf0e9cb30]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
- locked <0x126a7e48> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at com.adaptj.shell.ServerThread.run(Unknown Source)
"AWT-EventQueue-6" prio=4 tid=0x0712c6f0 nid=0x23ee400 in Object.wait() [0xf0d99000..0xf0d9ab30]
at java.lang.Object.wait(Native Method)
- waiting on <0x11f08c98> (a java.awt.MediaTracker)
at java.awt.MediaTracker.waitForID(MediaTracker.java:651)
- locked <0x11f08c98> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.loadImage(ImageIcon.java:234)
- locked <0x11f08c98> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.<init>(ImageIcon.java:165)
.......<company's classes>
at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
- locked <0x126785c0> (a java.awt.dnd.DropTarget)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
- locked <0x1141e500> (a apple.awt.CDropTargetContextPeer)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
at java.awt.Component.dispatchEventImpl(Component.java:3908)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4007)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3861)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at jep.MySimpleEventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The latest release of the plugin seems to get cookies working when shared between browser and plugin.
My internet bank works now (and didn't before ;-)
Great work!!!
Yes, I added support to JEP 0.9.6 (just released) for accessing
Mozilla.org browsers' cookie store. For more information, see item #1
in JEP 0.9.6's change log.
Great work! No sooner than we found we had a problem, you provide the solution!
The problem we're experiencing is that *both* JEP 0.9.5.g2 (an older version) is installed, as well as the 0.9.6 JEP, and as long as the 0.9.5etc plugin is there, the behaviour is cookies don't work. about:plugins shows both. 0.9.5etc is coming from Firefox's default installation,
/Applications/Firefox\ 2.0.app/Contents/MacOS/plugins/JavaEmbeddingPlugin.bundle
/Applications/Firefox\ 2.0.app/Contents/MacOS/plugins/MRJPlugin.plugin/
Once these are moved out of firefox's directory, the 0.9.6 version works.
Is there something I'm doing wrong? I'd like to get this reliably out to users of our software.
thanks for getting this to work!
Session cookies are still not sent with Firefox 3.0.1, JEP 0.9.6.4 (the same applet works on Safari or Firefox on Windows).
it was actually working with Firefox 2...
This may be broken in Mac OS 10.4 with FF 3.5 and JRE 1.5.0_19
Here is a part of the stack trace/thread dump of applet:
"Image Fetcher 0" daemon prio=4 tid=0x07140e30 nid=0x25e1a00 runnable [0xf0f9d000..0xf0f9eb30]
at com.sun.deploy.net.cookie.JEPCookieHandler.getCookie(Native Method)
at com.sun.deploy.net.cookie.JEPCookieHandler.getCookieInfo(Unknown Source)
at com.sun.deploy.net.cookie.DeployCookieManager.getCookieInfo(DeployCookieManager.java:83)
- locked <0x17c1e5f8> (a java.lang.Class)
at com.sun.deploy.net.cookie.DeployCookieSelector.get(DeployCookieSelector.java:70)
- locked <0x11f721d8> (a com.sun.deploy.net.cookie.DeployCookieSelector)
at sun.net.www.protocol.http.HttpURLConnection.addRequestCookies(HttpURLConnection.java:475)
at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:428)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:972)
- locked <0x1149ca08> (a sun.net.www.protocol.http.HttpURLConnection)
at sun.plugin.net.protocol.http.HttpUtils.followRedirects(HttpUtils.java:43)
at sun.plugin.cache.CachedFileLoader.download(CachedFileLoader.java:296)
at sun.plugin.cache.CachedFileLoader.load(CachedFileLoader.java:119)
at sun.plugin.cache.FileCache.get(FileCache.java:136)
at sun.plugin.cache.PluginCacheHandler.get(PluginCacheHandler.java:87)
- locked <0x11f71d40> (a sun.plugin.cache.PluginCacheHandler)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:734)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:707)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:951)
- locked <0x1149b480> (a sun.net.www.protocol.http.HttpURLConnection)
at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
"StackTrace Shell 10000" prio=5 tid=0x0713bc40 nid=0x69f3e00 runnable [0xf0e9c000..0xf0e9cb30]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
- locked <0x126a7e48> (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at com.adaptj.shell.ServerThread.run(Unknown Source)
"AWT-EventQueue-6" prio=4 tid=0x0712c6f0 nid=0x23ee400 in Object.wait() [0xf0d99000..0xf0d9ab30]
at java.lang.Object.wait(Native Method)
- waiting on <0x11f08c98> (a java.awt.MediaTracker)
at java.awt.MediaTracker.waitForID(MediaTracker.java:651)
- locked <0x11f08c98> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.loadImage(ImageIcon.java:234)
- locked <0x11f08c98> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.<init>(ImageIcon.java:165)
.......<company's classes>
at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
- locked <0x126785c0> (a java.awt.dnd.DropTarget)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
- locked <0x1141e500> (a apple.awt.CDropTargetContextPeer)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
at java.awt.Component.dispatchEventImpl(Component.java:3908)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4007)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3861)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Component.dispatchEvent(Component.java:3885)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at jep.MySimpleEventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)