pthulasiram / jmxetric

Automatically exported from code.google.com/p/jmxetric
MIT License
0 stars 0 forks source link

NullPointerException running JMXetricAgentTest #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configure
CONFIG: Command line argument found: host=localhost
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configure
CONFIG: Command line args: port=8649
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configure
CONFIG: Command line args: config=src/test/resources/jmxetric_test.xml
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configure
CONFIG: Command line args: mode=multicast
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configure
CONFIG: Command line args: wireformat31x=true
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureGangliaFromXML
FINE: GMetric host=localhost port=8649 mode=multicast v31x=true
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Sample is [sample: null]
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Mbean is java.lang:type=Memory
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is init
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is committed
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is used
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is max
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is init
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is committed
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is used
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is max
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Mbean is jmxetric:type=TestExample
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is Int
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is Long
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is Double
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is Float
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is String
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is Counter
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is date
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is integer
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is name
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Mbean is java.lang:type=Threading
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is ThreadCount
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is DaemonThreadCount
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Mbean is java.lang:type=Threading
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is ThreadCount
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is DaemonThreadCount
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Mbean is java.lang:type=OperatingSystem
10-Sep-2010 21:34:11 jmxetric.XMLConfigurationService configureJMXetricFromXML
FINER: Attr is ProcessCpuTime

[...]

10-Sep-2010 21:34:11 jmxetric.MBeanSampler$MBeanAttribute publish
FINE: Sampling jmxetric:type=TestExample attribute Float.null:543.21
10-Sep-2010 21:34:11 jmxetric.MBeanSampler$MBeanAttribute publish
FINER: Announcing metric attributeName=Float canonicalName=Float.null units= 
type=FLOAT slope=BOTH publishName=ProcessName_TestExample_Float value=543.21
10-Sep-2010 21:34:11 ganglia.gmetric.AbstractProtocol send
FINEST: Sending message of length 244
10-Sep-2010 21:34:11 ganglia.gmetric.AbstractProtocol send
FINEST: Sending message of length 76

[...]

in_buff = 14349
charBuff length: 1048576
End of file
java.lang.NullPointerException
    at jmxetric.JMXetricAgentTest.testRun(JMXetricAgentTest.java:36)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
    at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Original issue reported on code.google.com by castagna...@gmail.com on 10 Sep 2010 at 8:38