Java Error

Historical record of a forum that was for discussion of the setup, configuration, and use of OnePacs for research and educational purposes (non-clinical use).

Please direct any support inquiries through the standard OnePacs ticketing and support system.

The "Announcements" forum will continue to be active and contain announcements related to the OnePacs system.
Locked
f1rad
Posts: 9
Joined: Mon May 20, 2013 11:48 am

Java Error

Post by f1rad » Wed Dec 11, 2013 5:37 pm

I can not run the java-based upload on OnePacs. I get the following error "java.lang.SecurityException - The applet must be signed (can't write in /Users/*****).

MAC OS 10.9
Safari 7.0
Java Version 7 Update 45


Thanks.....below is a dump of the java console.

Java Plug-in 10.45.2.18
Using JRE version 1.7.0_45-b18 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/wfp
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/op-upload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/op-upload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/op-upload.jar
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
java.lang.SecurityException - The applet must be signed (can't write in '/Users/wfp')
java.lang.SecurityException: The applet must be signed (can't write in '/Users/wfp')
at wjhk.jupload2.context.JUploadContextApplet.checkAppletIsSigned(JUploadContextApplet.java:93)
at wjhk.jupload2.context.JUploadContextApplet.<init>(JUploadContextApplet.java:71)
at wjhk.jupload2.JUploadApplet$1JUploadAppletInitializer.run(JUploadApplet.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1247)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1349)
at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:79)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.SecurityException: The applet must be signed (can't write in '/Users/***')
at wjhk.jupload2.context.JUploadContextApplet.checkAppletIsSigned(JUploadContextApplet.java:93)
at wjhk.jupload2.context.JUploadContextApplet.<init>(JUploadContextApplet.java:71)
at wjhk.jupload2.JUploadApplet$1JUploadAppletInitializer.run(JUploadApplet.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/op-upload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/op-upload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/op-upload.jar
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Application-Name: manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Permissions manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
Missing Codebase manifest attribute for: https://web.onepacs.com/uploadapplet/wjhk.jupload.jar
java.lang.SecurityException - The applet must be signed (can't write in '/Users/***')
java.lang.SecurityException: The applet must be signed (can't write in '/Users/***')
at wjhk.jupload2.context.JUploadContextApplet.checkAppletIsSigned(JUploadContextApplet.java:93)
at wjhk.jupload2.context.JUploadContextApplet.<init>(JUploadContextApplet.java:71)
at wjhk.jupload2.JUploadApplet$1JUploadAppletInitializer.run(JUploadApplet.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1247)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1349)
at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:79)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.SecurityException: The applet must be signed (can't write in '/Users/***')
at wjhk.jupload2.context.JUploadContextApplet.checkAppletIsSigned(JUploadContextApplet.java:93)
at wjhk.jupload2.context.JUploadContextApplet.<init>(JUploadContextApplet.java:71)
at wjhk.jupload2.JUploadApplet$1JUploadAppletInitializer.run(JUploadApplet.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

damien
Posts: 37
Joined: Fri Jun 07, 2013 7:03 am

Re: Java Error

Post by damien » Wed Dec 11, 2013 5:52 pm

I just tried it and it worked for me on my Mac with both Safari and Chrome. Maybe you have an old version of the upload applet in your cache? Can you try clearing the cache for the onepacs website and try it again?

-- Damien

justin
Posts: 371
Joined: Wed Nov 26, 2008 2:34 pm

Re: Java Error

Post by justin » Wed Dec 11, 2013 5:59 pm

I believe this problem is specific to Safari on Mavericks. Firefox and Chrome both allow the applet to run. We're working on a new version of the applet that will avoid this issue in the future.

Thanks,

Justin

damien
Posts: 37
Joined: Fri Jun 07, 2013 7:03 am

Re: Java Error

Post by damien » Wed Dec 11, 2013 6:07 pm

Ah, that explains why I don't see it. I have not upgraded to Mavericks yet.

-- Damien

f1rad
Posts: 9
Joined: Mon May 20, 2013 11:48 am

Re: Java Error

Post by f1rad » Wed Dec 11, 2013 6:14 pm

OK. Thanks.

BTW, it looks like new Java - 64 bit is no longer compatible with Chrome.

justin
Posts: 371
Joined: Wed Nov 26, 2008 2:34 pm

Re: Java Error

Post by justin » Thu Dec 12, 2013 3:04 pm

Hi,

I just wanted to follow up on the ability to use the Study Uploader in Safari on OSX Maverick - or more specifically Safari 6.1 or greater. By default, Java is pretty locked down on Safari in OSX and requires a site-specific exemption to allow advanced features that the OnePacs Study Uploader requires. You can configure Safari to allow Java to run without limitations on web.onepacs.com by doing the following.

1) Launch Safari
2) Open Preferences
3) Click on the Security Tab
4) Click on the "Manage website settings..." button
5) Select "Java"
6) For web.onepacs.com, use the dropdown list to select "Always allow" (this will prevent getting prompted every time)
7) Use the same dropdown list to select "Run in unsafe mode"
8) Click "Trust" on the following prompt.
9) Click Done

This will allow you to run the OnePacs Study Uploader in Safari 6.1 and greater on OSX. I have attached a screenshot for reference. Hope this helps.

Justin
Attachments
Screen Shot 2013-12-12 at 1.56.16 PM.png
Screen Shot 2013-12-12 at 1.56.16 PM.png (169.39 KiB) Viewed 14408 times

f1rad
Posts: 9
Joined: Mon May 20, 2013 11:48 am

Re: Java Error

Post by f1rad » Fri Dec 13, 2013 4:30 pm

Justin, thanks. That fixed it.

Locked