[Bug 1482] Log4j fails when JNLP is remote, works when local

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue Jul 30 05:56:02 PDT 2013


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1482

--- Comment #3 from Aleksi Kallio <aleksi.kallio at csc.fi> ---
Here is how you should be able to reproduce it (including info on OpenJDK
version). It should fail before application startup proceeds to splash screen.


[akallio at eskimohanhi ~]$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (rhel-2.3.10.3.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
[akallio at eskimohanhi ~]$ javaws http://chipster.csc.fi/chipster-broken.jnlp
java.lang.ExceptionInInitializerError
    at org.apache.log4j.Logger.getLogger(Logger.java:118)
    at
fi.csc.microarray.client.SwingClientApplication.<init>(SwingClientApplication.java:184)
    at
fi.csc.microarray.client.SwingClientApplication.start(SwingClientApplication.java:1353)
    at fi.csc.microarray.MicroarrayMain.main(MicroarrayMain.java:165)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:594)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)
Caused by: java.security.AccessControlException: access denied
("java.io.FilePermission" "/chipster.log" "write")
    at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
    at
java.security.AccessController.checkPermission(AccessController.java:559)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at
net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:284)
    at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:136)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
    at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
    at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
    at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
    at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
    at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
    at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
    at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
    at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
    at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
    at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
    ... 10 more
^C

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130730/0b288b2f/attachment.html 


More information about the distro-pkg-dev mailing list