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

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Wed Jun 26 00:21:03 PDT 2013


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

--- Comment #1 from Aleksi Kallio <aleksi.kallio at csc.fi> ---
I have inspected this further and the conclusion about property access being
broken was incorrect. Properties can be read and set correctly.

It seems that this is log4j specific. 

java.security.AccessControlException: access denied ("java.io.FilePermission"
"/chipster.log" "write")
    at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
    at
java.security.AccessController.checkPermission(AccessController.java:560)
    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

If I try to disable Log4j using its PropertyConfigurator, it works on Oracle
JRE, but fails on OpenJDK. I get NoSuchMethodError for
PropertyConfigurator.configure(InputStream), which is weird, because the method
is there.

One possible explanation could be that IcedTea-web picks up some other Log4j
implementation in some cases. Our application is one large JAR file (built with
FatJar) that contains correct version of Log4j.

If this is the reason, the weird part is that having JNLP file local or remote
changes what Log4j classes are being loaded.

-- 
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/20130626/5f267cea/attachment.html 


More information about the distro-pkg-dev mailing list