cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NPE in Test Automation Ant plugin (AppMon 6.5) in Eclipse 4.2 with jdk1.7.0_75 on Windows 10

srinivas_vangar
Newcomer

Hello,

The Test Automation Ant plugin (ver AppMon 6.5) is throwing the following error, when run in Eclipse 4.2 (Juno) with jdk1.7.0_75 on Windows 10.

2017-06-22 17:12:17 [0000025c] severe [java ] Exception caught in com.dynatrace.diagnostics.agent.introspection.ServletRequestWrapperUtils.getUrlForAppDetection: java.lang.NullPointerException: null
at com.dynatrace.diagnostics.agent.introspection.av.b(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.av.a(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.au.a(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.au.c(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.au.b(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.ServletIntrospection.a(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.ServletIntrospection.MethodEnterHttpServlet(Unknown Source)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java)
at servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:394)
at com.fanniemae.******.test01_LandingPage(Unknown Source)
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:606)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at junit.textui.TestRunner.doRun(TestRunner.java:109)
at junit.textui.TestRunner.run(TestRunner.java:72)
at junit.textui.TestRunner.run(TestRunner.java:57)
at com.fanniemae.*********.main(Unknown Source)

Appreciate any help!

Thanks

Srinivas

4 REPLIES 4

andreas_grabner
Dynatrace Leader
Dynatrace Leader

Hi

This exception doesnt seem like a problem related to the Ant plugin. The exception seems to come from our Java Agent that instruments your Java Code. I would open up a support ticket to find out WHY this code is running into a NPE

Andi

srinivas_vangar
Newcomer

Thanks Andi, yes the NPE is coming from the Agent. Please see attached the full console out in Eclipse on the tests. It seems that the ex is thrown only on the first unit test, though I would imagine the same under-the-hood code gets executed on the second test too.

Thanks

Srinivas

srinivas_vangar
Newcomer

testautomation-dashlet-results-ok.jpg

Also, I wanted to add that the tests themselves are marked as successful, both on the console and in Test Automation dashlet results. Attached the DT client screenshot showing Test Automation results.

Thanks

Srinivas

andrew22
Inactive

Hey Srinivas,

Andi is right in that this appears to be a problem with the agent. After some searching through support tickets I found that this specific issue was fixed in 6.5.13. Details on the issue can be found in the v6.5.13 release notes

https://community.dynatrace.com/community/display/PROD/Dynatrace+AppMon+6.5.13+Release+Notes)

under JLT-184537.