PRODUCTS AND SERVICES INDUSTRIES SUPPORT PARTNERS COMMUNITIES ABOUT
  Coherence 3.4 User Guide
  Remote Management NPE
Added by Everett Williams, last edited by Everett Williams on Sep 23, 2008  (view change)

Labels

 
(None)

Symptoms

When starting a coherence node with the system property

-Dtangosol.coherence.management.remote=true 

The following exception occurs:

java.lang.NullPointerException
       at java.io.File.<init>(Unknown Source)
       at com.tangosol.coherence.reporter.ReportBatch.getOutputPath(ReportBatch.java:330)
       at com.tangosol.coherence.component.net.management.model.localModel.ReporterModel.getOutputPath(ReporterModel.CDB:1)
       at com.tangosol.coherence.component.net.management.model.localModel.ReporterModel.writeExternal(ReporterModel.CDB:11)
       ...

Solutions

On Java 1.5 add the system property:

-Dtangosol.coherence.management=local-only

On java 1.4 add the system property:

-Dtangosol.coherence.management=local-only

and add Java(TM) Management Extension (JMX) 1.2.1 to the classpath.

The following libraries need to be included in the classpath:
jmxri.jar
jmxremote.jar
jmx.jar