AppD Archive

Is JBOSS 7.x supported by AppDynamics Pro?I am getting exception in agent.

CommunityUser
Splunk Employee
Splunk Employee

I have associated App agent with JBOSS EAP 6.1 (App Server 7.x) having ejbs deployed as part of ear. 

Getting below error when agent tries to retrieve business transaction: 

[EJB default - 1] 12 Sep 2013 05:50:27,588 WARN AgentErrorProcessor - Agent error occurred, [name,transformId]=[com.singularity.tm.rmi.JBossRemoting3ServerCorrelationInterceptor - java.lang.ClassCastException,60]
[EJB default - 1] 12 Sep 2013 05:50:27,589 WARN AgentErrorProcessor - 4 instance(s) remaining before error log is silenced
[EJB default - 1] 12 Sep 2013 05:50:27,589 WARN AgentErrorProcessor - 499 instance(s) remaining before instrumentation point is targeted for neutralization
[EJB default - 1] 12 Sep 2013 05:50:27,590 ERROR JBossRemoting3ServerCorrelationInterceptor - Error in adding header to jboss remoting3 request, env : MethodExecutionEnvironment{ invokedObject='org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler' className='org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler', methodName='invokeMethod', invokedObject hashcode='1141019552', paramValues =[class java.lang.Short, class org.jboss.as.ee.component.ViewService$View, class java.lang.reflect.Method, class [Ljava.lang.Object;, class org.jboss.ejb.client.StatelessEJBLocator, class java.util.HashMap]}
java.lang.ClassCastException: org.jboss.ejb.client.StatelessEJBLocator cannot be cast to java.util.Map
at com.singularity.ee.agent.appagent.services.transactionmonitor.rmi.d.a(d.java:61)
at com.singularity.ee.agent.appagent.services.bciengine.a.onMethodBegin(a.java:27)
at com.singularity.ee.agent.appagent.entrypoint.bciengine.FastMethodInterceptorDelegator.safeOnMethodBeginNoReentrantCheck(FastMethodInterceptorDelegator.java:325)
at com.singularity.ee.agent.appagent.entrypoint.bciengine.FastMethodInterceptorDelegator.safeOnMethodBegin(FastMethodInterceptorDelegator.java:260)
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java)
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$100(MethodInvocationMessageHandler.java:69)
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:202)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
at org.jboss.threads.JBossThread.run(JBossThread.java:122)

0 Karma

Arun_Dasetty
Super Champion

Hi,

Thanks for writing in. We confirm Jboss 7.x is supported by AppDynamics agent, We understood that you have configured agent as per docs: http://docs.appdynamics.com/display/PRO13S/JBoss+Startup+Settings

and the agent strarts fine, as we see the error should not affect BT detection, let us know if you see any issue in BT detection, let us know if you see any issues in BT detection.

From the error stack tracke:

================
EJB default - 1] 12 Sep 2013 05:50:27,590 ERROR JBossRemoting3ServerCorrelationInterceptor - Error in adding header to jboss remoting3 request, env : MethodExecutionEnvironment{ invokedObject='org.jboss.as.ejb3.remote.protocol.v

 ..java.lang.ClassCastException: org.jboss.ejb.client.StatelessEJBLocator cannot be cast to java.util.Map

================

We suspect this is an issue with JBoss remoting correlation insturmantion by agent , which we have known issue in agent version prior to 3.7, let us know if any disconnect in our understanding:

If the above said is right, Can you please confirm the following details to better assist you:
- zipped version logs directory under <agent_install_dir>/logs
  we would like to see tha agent version and interceptors applied and BTs discovered  from the logs.
- zipped version of logs under <agent_install_dir>/conf directroy
  we would like to see the custom rules configured from transactions.xml

Let us know if that answers your query. Please keep us posted the requested logs to debug further the issue.

Thanks,

Arun

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...