You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: