Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting java.lang.reflect.InaccessibleObjectException #96

Open
sathish869 opened this issue Aug 29, 2024 · 0 comments
Open

Getting java.lang.reflect.InaccessibleObjectException #96

sathish869 opened this issue Aug 29, 2024 · 0 comments

Comments

@sathish869
Copy link

While running my test program the code is working fine but also i am getting exception, The stack trace for your reference

java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5223e5ee
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
at javassist.ClassPool.toClass2(ClassPool.java:1110)
at javassist.ClassPool.toClass(ClassPool.java:1093)
at javassist.ClassPool.toClass(ClassPool.java:1042)
at javassist.ClassPool.toClass(ClassPool.java:1000)
at javassist.CtClass.toClass(CtClass.java:1224)
at org.apache.curator.test.ByteCodeRewrite.fixMethods(ByteCodeRewrite.java:95)
at org.apache.curator.test.ByteCodeRewrite.(ByteCodeRewrite.java:50)
at org.apache.curator.test.TestingServer.(TestingServer.java:33)
at com.salesforce.kafka.test.ZookeeperTestServer.start(ZookeeperTestServer.java:82)
at com.salesforce.kafka.test.KafkaTestCluster.start(KafkaTestCluster.java:143)
at com.salesforce.kafka.test.junit4.SharedKafkaTestResource.before(SharedKafkaTestResource.java:83)
at com.salesforce.kafka.test.junit4.SharedKafkaTestResource.access$000(SharedKafkaTestResource.java:50)
at com.salesforce.kafka.test.junit4.SharedKafkaTestResource$1.evaluate(SharedKafkaTestResource.java:109)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:93)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:529)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:756)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:452)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant