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

Unable to configure java agent in spring batch application -java.lang.ClassNotFoundException: com/singularity/ee/agent/appagent/java9/Java9Util

Ayeshabanu.K
New Poster

Hi,

I have started the appdynamics free trial and  trying to configure appdynamics in my spring batch application in my local machine.

I have downloaded java agent and set the arguments like below in my application run configuration.

 

-javaagent:C:\AppDynamics\appAgent\javaagent.jar
-Dappagent.install.dir= "C:\AppDynamics\appAgent"

 

I'm getting the below error when i have started the server.

 

java.nio.file.NoSuchFileException: \javaagent.jar
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:194)
at java.base/java.nio.file.Files.readAttributes(Files.java:1755)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1220)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:845)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:245)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:175)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:341)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:312)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:278)
at com.singularity.ee.agent.appagent.services.bciengine.JavaAgentManifest.<init>(JavaAgentManifest.java:54)
at com.singularity.ee.agent.appagent.services.bciengine.JavaAgentManifest.parseManifest(JavaAgentManifest.java:88)
at com.singularity.ee.agent.appagent.services.bciengine.JavaAgentManifest.parseManifest(JavaAgentManifest.java:101)
at com.singularity.ee.agent.appagent.AgentEntryPoint.determineJavaAgentVersion(AgentEntryPoint.java:1009)
at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:470)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:510)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:522)
File java9-impl.jar does not exist. Please check java agent package.
Java 9+ detected, booting with Java9Util enabled.
Java agent fails to initialize under Java 9 because: java.lang.ClassNotFoundException: com/singularity/ee/agent/appagent/java9/Java9Util
java.lang.ClassNotFoundException: com/singularity/ee/agent/appagent/java9/Java9Util
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:291)
at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:491)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:510)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:522)
java.lang.ClassNotFoundException: com/singularity/ee/agent/appagent/java9/Java9Util
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:291)
at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:491)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:510)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:522)
Error: Could not find or load main class C:\AppDynamics\appAgent
Caused by: java.lang.ClassNotFoundException: C:\AppDynamics\appAgent

 

 

 

0 REPLIES 0