AppD Archive

JavaAgent - Could Not Start Java Agent

CommunityUser
Splunk Employee
Splunk Employee

Hello,

I tried to start the agent but got the following error

[main] 10 Nov 2013 09:59:33,996  INFO XMLConfigManager - Default Agent Account Info Resolver finished running
[main] 10 Nov 2013 09:59:34,012 ERROR JavaAgent - Could Not Start Java Agent
java.lang.ExceptionInInitializerError
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
 at com.singularity.ee.util.httpclient.d.b(d.java:107)
 at com.singularity.ee.util.httpclient.d.<clinit>(d.java:40)
 at java.lang.J9VMInternals.initializeImpl(Native Method)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
 at com.singularity.ee.rest.controller.request.ib.a(ib.java:172)
 at com.singularity.ee.agent.appagent.kernel.config.xml.e.b(e.java:160)
 at com.singularity.ee.agent.appagent.kernel.config.xml.e.<init>(e.java:103)
 at com.singularity.ee.agent.appagent.kernel.config.b.a(b.java:20)
 at com.singularity.ee.agent.appagent.kernel.b.h(b.java:91)
 at com.singularity.ee.agent.appagent.kernel.JavaAgent.initialize(JavaAgent.java:116)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:600)
 at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:153)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:600)
 at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
 at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'com.singularity.ee.agent.pb' cannot be found or is not useable.
 at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
 at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
 at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
 at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
 at org.apache.commons.httpclient.params.DefaultHttpParams.<clinit>(DefaultHttpParams.java:54)
 at java.lang.J9VMInternals.initializeImpl(Native Method)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
 ... 23 more

It's newly downloaded (latest version), I'm wondering, what logger used in this agent? can I replace with apache common logger?

Thanks.

John

0 Karma

Arun_Dasetty
Super Champion

Hi John,

Can you please provide the following details:

- JVM vendor and version ?

- Can you attach the java agent archive you are using? as we are not such error? if possible can you download again and see how it goes? also attach agent and server console logs

- Can you start the lite agent with simple standalone java application , we suggested to see if any jar conflicts in server is causing this can be narrow by this scenario?

Thanks,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

Thanks for the quick reply.

I re-downloaded and re-installed, now the viewer started without any problem.

John

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...