[Bug 222] New: javaws says: Changing the SecurityManager is not allowed

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Sat Oct 18 08:55:18 PDT 2008


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

           Summary: javaws says: Changing the SecurityManager is not allowed
           Product: IcedTea
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: a.efremov at javasmith.org


Hello!

I tried to play with .java.policy file but useless.
javaws doesn't work.It seems to ignore java.security.manager property. 
Take a look at "call privileged method: getCodeBase     result: null"

my .java.policy file

grant codeBase "http://www.topcoder.com/contest/arena" {
  permission java.security.AllPermission;
};

Package: java-1.6.0-openjdk-1.6.0.0-0.18.b09.fc9.x86_64

/usr/bin/javaws -verbose -Djava.security.manager=doesnt.work
http://www.topcoder.com/contest/arena/ContestAppletProd.jnlp 
JNLP file location:
http://www.topcoder.com/contest/arena/ContestAppletProd.jnlp
call privileged method: getCodeBase
        result: null
Status: CONNECT STARTED +(CONNECT STARTED) @
/contest/arena/ContestAppletProd.jnlp
Status: CONNECT DOWNLOAD STARTED +(DOWNLOAD) @
/contest/arena/ContestAppletProd.jnlp
Status: CONNECTING DOWNLOAD STARTED +(CONNECTING) -(CONNECT) @
/contest/arena/ContestAppletProd.jnlp
isCurrent: http://www.topcoder.com/contest/arena/ContestAppletProd.jnlp = false
Status: CONNECTED DOWNLOAD STARTED +(CONNECTED) -(CONNECTING) @
/contest/arena/ContestAppletProd.jnlp
Status: CONNECTED DOWNLOADING STARTED +(DOWNLOADING) -(DOWNLOAD) @
/contest/arena/ContestAppletProd.jnlp
Status: CONNECTED DOWNLOADED STARTED +(DOWNLOADED) -(DOWNLOADING) @
/contest/arena/ContestAppletProd.jnlp
New classloader: http://www.topcoder.com/contest/arena/ContestAppletProd.jnlp
Permission added: (java.io.FilePermission
/tmp/cache/http/www.topcoder.com/contest/classes/ContestApplet.jar read)
Status: STARTED +(STARTED) @ /contest/classes/ContestApplet.jar
Status: CONNECT STARTED +(CONNECT) @ /contest/classes/ContestApplet.jar
Status: CONNECT DOWNLOAD STARTED +(DOWNLOAD) @
/contest/classes/ContestApplet.jar
Status: CONNECTING DOWNLOAD STARTED +(CONNECTING) -(CONNECT) @
/contest/classes/ContestApplet.jar
isCurrent: http://www.topcoder.com/contest/classes/ContestApplet.jar = false
Status: CONNECTED DOWNLOAD STARTED +(CONNECTED) -(CONNECTING) @
/contest/classes/ContestApplet.jar
Status: CONNECTED DOWNLOADING STARTED +(DOWNLOADING) -(DOWNLOAD) @
/contest/classes/ContestApplet.jar
Status: CONNECTED DOWNLOADED STARTED +(DOWNLOADED) -(DOWNLOADING) @
/contest/classes/ContestApplet.jar
Activate jar:
file:/tmp/cache/http/www.topcoder.com/contest/classes/ContestApplet.jar
java.lang.reflect.InvocationTargetException
        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:616)
        at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:347)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:581)
Caused by: java.lang.SecurityException: Changing the SecurityManager is not
allowed.
        at
net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:252)
        at java.lang.System.setSecurityManager0(System.java:290)
        at java.lang.System.setSecurityManager(System.java:281)
        at com.topcoder.client.contestApplet.ContestApplet.<init>(Unknown
Source)
        at com.topcoder.client.contestApplet.runner.generic.main(Unknown
Source)


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list