JDK-6770624 : JMXServiceURL like service:jmx:rmi:///jndi/iiop:// drives to a NPE
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6u12
  • Priority: P4
  • Status: Resolved
  • Resolution: Other
  • OS: generic
  • CPU: generic
  • Submitted: 2008-11-12
  • Updated: 2013-10-04
  • Resolved: 2013-10-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u23Resolved 7u40Resolved 8Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
As stated in the 6696028, we should now get MalformedURLException as of JDK 6 u12 b01.
Problem is that for, some reason, we get a NullPointerException:
Exception in thread "main" java.lang.NullPointerException
        at com.sun.corba.se.impl.orb.ORBImpl.getInvocationInfo(ORBImpl.java:1737)
        at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.getClientRequestDispatcher(CorbaClientDelegateImpl.java:143)
        at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.releaseReply(CorbaClientDelegateImpl.java:136)
        at org.omg.CORBA.portable.ObjectImpl._releaseReply(ObjectImpl.java:474)
        at org.omg.stub.javax.management.remote.rmi._RMIServer_Stub.newClient(Unknown Source)
        at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327)
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279)
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:207)
        at Client.main(Client.java:31)

Comments
This is weird. I've tried to reproduce the issue on JDK6u23, JDK7u40 and JKD8-ea but strangely enough the service URL of the form "service:jmx:rmi:///jndi/iiop:*" seems to be considered correct by the IIOP stack. Such an URL is not refused and a correct connector is returned. Obviously, there is no NPE - thus closing this issue.
04-10-2013

Shanliang, this bug is not prioritized for 8. Will you continue to be assigned to this bug or shoudl we move it back to unassigned?
03-09-2013

EVALUATION This is because of the iiop implementation change, see the bug 6771107
19-11-2008