error occured initialization of boot layer - eclipse

getting error as : Package jdk.internal.jrtfs in both module java.base and module jrt.fs

Related

loader constraint violation error while trying to run TestNG Tests

I try to run some TestNG tests in Eclipse and i get this error:
An internal error occurred during: "Launching AuthorizationServiceTest.testFixAuthorizationStatusPartialApproval".
loader constraint violation: loader org.eclipse.osgi.internal.loader.EquinoxClassLoader #3310bdff wants to load class org.apache.maven.project.MavenProject. A different class with the same name was previously loaded by org.eclipse.osgi.internal.loader.EquinoxClassLoader #21a1790d. (org.apache.maven.project.MavenProject is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader #21a1790d, parent loader 'platform')
I tried changing TestNG properites same as my teams and updated,cleaned restarted project- eclipse

SVN - The value of 'limit' is too large

Eclipse 2021-12, Java 8
Install plugin svn
Success connects to svn repo.
Here installed plugin
And use Jdk 8
But when I use Tab "Team Synchronizing" and select some files to see the delta. I get this error:
SVN: '0x00400104: Check HEAD Revision' operation finished with error: Receiver class org.apache.subversion.javahl.types.Depth does not implement the interface java.util.Collection defining the method to be called (org.apache.subversion.javahl.types.Depth is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader #6b0388bb; java.util.Collection is in module java.base of loader 'bootstrap')
Get log messages for 'http://my_repo/cfg/impl/SoftwareRepositoryServiceImpl.java' failed.
Receiver class org.apache.subversion.javahl.types.Depth does not implement the interface java.util.Collection defining the method to be called (org.apache.subversion.javahl.types.Depth is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader #6b0388bb; java.util.Collection is in module java.base of loader 'bootstrap')
The value of 'limit' is too large

Class not Found Error when updated kafka_2.12 dependency

I updated the dependency in my build.gradle file from kafka_2.11 to kafka_2.12.
I am getting the following error when I try to run a testcase after this :
java.lang.NoClassDefFoundError: scala/collection/TraversableOnce$class

java.lang.IllegalStateException: Unable to load cache item

The above exception is thrown from a unit test when I add Java modularity to my project. I cannot find a solution to this exception.
I have added to MAVEN_OPTS
--add-opens java.base/java.lang=ALL-UNNAMED
And the same in the configuration of the surefire plugin (to no avail) because the following is part of the stacktrace:
throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to module com.google.guice
My project is a maven multiproject with two modules:
module org.veary.debs.api {
exports org.veary.debs.api;
exports org.veary.debs.api.model;
exports org.veary.debs.api.dao;
}
module org.veary.debs.db {
exports org.veary.debs.db;
requires com.google.guice;
requires com.google.guice.extensions.persist;
requires java.persistence;
requires javax.inject;
requires org.veary.debs.api;
}
Here is a snippet of the first section of the stacktrace. Any help would be appreciated.
INFO: An exception was caught and reported. Message: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,by
te[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to module com.google.guice
java.lang.IllegalStateException: Unable to load cache item
at com.google.guice#4.2.2/com.google.inject.internal.cglib.core.internal.$LoadingCache.createEntry(LoadingCache.java:79)
at com.google.guice#4.2.2/com.google.inject.internal.cglib.core.internal.$LoadingCache.get(LoadingCache.java:34)
at com.google.guice#4.2.2/com.google.inject.internal.cglib.core.$AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)
at com.google.guice#4.2.2/com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:291)
at com.google.guice#4.2.2/com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:65)
at com.google.guice#4.2.2/com.google.inject.internal.BytecodeGen.newFastClassForMember(BytecodeGen.java:258)
at com.google.guice#4.2.2/com.google.inject.internal.BytecodeGen.newFastClassForMember(BytecodeGen.java:207)
at com.google.guice#4.2.2/com.google.inject.internal.ProviderMethod.create(ProviderMethod.java:69)
at com.google.guice#4.2.2/com.google.inject.internal.ProviderMethodsModule.createProviderMethod(ProviderMethodsModule.java:272)
at com.google.guice#4.2.2/com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:116)
at com.google.guice#4.2.2/com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:100)
at com.google.guice#4.2.2/com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
at com.google.guice#4.2.2/com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:353)
at com.google.guice#4.2.2/com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.guice#4.2.2/com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
at com.google.guice#4.2.2/com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
at com.google.guice#4.2.2/com.google.inject.Guice.createInjector(Guice.java:87)
at com.google.guice#4.2.2/com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.guice#4.2.2/com.google.inject.Guice.createInjector(Guice.java:59)
at org.veary.debs.db/org.veary.debs.tests.PersistenceTest.testAccountDao(PersistenceTest.java:43)
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:566)
You need to check that you have correct java version, use this command:
java --version
If it's not version 11 configure java to version 11. If you already have multiple java installed use this command:
alternatives --config java
and select java 11

Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: 1 at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.substitute

i have been trying to use OpenImaj Lib and when i run eclipse
this error appears :
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.substitute(ParameterizedTypeBinding.java:1190)
what can i do with that ?