Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] NullPointerException in org.eclipse.equinox.launcher.Main$EclipsePolicy during PermissionCheck

I opened bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=282704 to track this.

This appears to be RMI related. Can you update the bug report with more details on the scenario where this occurs?

Tom



Inactive hide details for "Pepping, Florian" ---07/07/2009 10:07:37 AM---Hello,"Pepping, Florian" ---07/07/2009 10:07:37 AM---Hello,


From:

"Pepping, Florian" <florian.pepping@xxxxxxxxxxxxxxxxxx>

To:

"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>

Date:

07/07/2009 10:07 AM

Subject:

[equinox-dev] NullPointerException in org.eclipse.equinox.launcher.Main$EclipsePolicy during PermissionCheck




Hello,

using the FrameworkSecurityManager of Equinox, I get a
NullPointerException during a permission check using Java 1.5.
Using exactly the same code, starting the application with Java 1.6,
everything works fine.
Stepping through the code in EclipsePolicy, it seems, that the
CodeSource of the ProtectionDomain to be checked against is null.
Referring to the Javadoc, this is normal behaviour and allowed but the
EclipsePolicy does not check this.

Is this a bug or am I doing something wrong? Currently I've have no idea
what to do, to avoid this Exception.

Below you find the StackTrace of the exception occuring.

java.lang.NullPointerException
at
org.eclipse.equinox.launcher.Main$EclipsePolicy.implies(Main.java:2432)
[org.eclipse.equinox.launcher-1.0.100.jar:na]
at
java.security.ProtectionDomain.implies(ProtectionDomain.java:195)
[na:1.5.0_06]
at
java.security.AccessControlContext.checkPermission(AccessControlContext.
java:249) [na:1.5.0_06]
at
org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.intern
alCheckPermission(FrameworkSecurityManager.java:119)
[org.eclipse.osgi-3.4.0.jar:na]
at
org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager$CheckP
ermissionAction.run(FrameworkSecurityManager.java:84)
[org.eclipse.osgi-3.4.0.jar:na]
at java.security.AccessController.doPrivileged(Native Method)
[na:1.5.0_06]
at
org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.checkP
ermission(FrameworkSecurityManager.java:90)
[org.eclipse.osgi-3.4.0.jar:na]
at
org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager.checkP
ermission(FrameworkSecurityManager.java:219)
[org.eclipse.osgi-3.4.0.jar:na]
at
java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
[na:1.5.0_06]
at java.net.Socket.connect(Socket.java:501) [na:1.5.0_06]
at java.net.Socket.connect(Socket.java:457) [na:1.5.0_06]
at java.net.Socket.<init>(Socket.java:365) [na:1.5.0_06]
at java.net.Socket.<init>(Socket.java:178) [na:1.5.0_06]
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc
ketFactory.java:22) [na:1.5.0_06]
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSoc
ketFactory.java:128) [na:1.5.0_06]
at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
[na:1.5.0_06]
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
[na:1.5.0_06]
at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
[na:1.5.0_06]
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
[na:1.5.0_06]
at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
[na:na]
at
javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown
Source) [na:1.5.0_06]
at
javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.inv
oke(RMIConnector.java:969) [na:1.5.0_06]
at
application.connector.impl.Connector.invoke(Connector.java:558) [na:na]
     ...

Thanks a lot

Florian





--
WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193

Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


GIF image

GIF image


Back to the top