cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Java (Java Agent, Installation, JVM, and Controller Installation)

IllegalAccessError when starting Spring Boot application

Jörgen.Brutar
New Poster

IllegalAccessError when starting Spring Boot application

Getting a strange error when starting my Spring boot application. We have a large number of applications already running AppDynamics without problems but for one of them it does not work. The special thing with this app is that it uses Springs LdapTemplate.

The error:

j.l.IllegalAccessError: Class javax/naming/directory/InitialDirContext(module java.naming) can not access class com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegatorBoot(unnamed module 0x00000000EE842658) because module module java.naming does not read module unnamed module 0x00000000EE842658 
	at j.n.d.InitialDirContext.search(InitialDirContext.java)
	at o.s.l.c.LdapTemplate$4.executeSearch(LdapTemplate.java:322)
	at o.s.l.c.LdapTemplate.search(LdapTemplate.java:363)
	at o.s.l.c.LdapTemplate.search(LdapTemplate.java:328)
	at o.s.l.c.LdapTemplate.search(LdapTemplate.java:604)
	at o.s.l.c.LdapTemplate.search(LdapTemplate.java:594)
	at o.s.l.c.LdapTemplate.search(LdapTemplate.java:482)
	at o.s.l.c.LdapTemplate.search(LdapTemplate.java:498)
	at o.s.l.c.LdapTemplate.search(LdapTemplate.java:514)

I have trie various combinations of add-opens, add-reads and add-exports to the jvm but nothing helps so far.

Tags (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
IllegalAccessError when starting Spring Boot application
1 REPLY 1
Ryan.Paredez
Community Manager

Hi @Jörgen.Brutar,

 

There is an existing thread that mentions the same error.

 

Please take a look at this thread and see if it offers any helpful insightError in configuring javaagent in Spring Boot application 

 

 


Thanks,
Ryan, AppDynamics Community Manager



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.