java.lang.IllegalStateException: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • NOTE: Revert commit 23737a45 There are a number of failures when building with JDK 1.8 b89 {code} [ant:iajc] /home/rwinch/git/spring-framework-4.x/spring-aspects/src/main/java/org/springframework/orm/jpa/aspectj/JpaExceptionTranslatorAspect.aj:1 [error] The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files [ant:iajc] (no source information available) [ant:iajc] /home/rwinch/git/spring-framework-4.x/spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj:19 [error] The import java.util.Arrays cannot be resolved [ant:iajc] import java.util.Arrays; [ant:iajc] ^^^^^^^^^^^^^^^ [ant:iajc] /home/rwinch/git/spring-framework-4.x/spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj:87 [error] Arrays cannot be resolved [ant:iajc] if (!Arrays.equals(this.args, args)) { {code} {code} :spring-oxm:compileTestJava Note: /home/rwinch/git/spring-framework-4.x/spring-oxm/src/test/java/org/springframework/oxm/xstream/XStreamMarshallerTests.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. [ant:jibx] Error running binding compiler [ant:jibx] java.lang.IllegalStateException: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence [ant:jibx] at org.jibx.binding.classes.ClassCache$ClassCacheLocator.getClassInfo(ClassCache.java:291) [ant:jibx] at org.jibx.binding.model.ClassHierarchyContext.accumulateInterfaces(ClassHierarchyContext.java:95) [ant:jibx] at org.jibx.binding.model.ClassHierarchyContext.addTypedComponent(ClassHierarchyContext.java:121) [ant:jibx] at org.jibx.binding.model.DefinitionContext.addFormat(DefinitionContext.java:527) [ant:jibx] at org.jibx.binding.model.BindingElement.defineBaseFormat(BindingElement.java:843) [ant:jibx] at org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:865) [ant:jibx] at org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:899) [ant:jibx] at org.jibx.binding.model.BindingElement.validateBinding(BindingElement.java:969) [ant:jibx] at org.jibx.binding.Utility.validateBinding(Utility.java:226) [ant:jibx] at org.jibx.binding.Utility.loadBinding(Utility.java:269) [ant:jibx] at org.jibx.binding.Utility.loadFileBinding(Utility.java:420) [ant:jibx] at org.jibx.binding.Compile.compile(Compile.java:217) [ant:jibx] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248) {code} The workaround is to install build 88 and to set your JAVA_HOME prior to building. You must build from source http://hg.openjdk.java.net/jdk8/jdk8/rev/e1a929afcfc4 If you are not updating these modules, you can also run builds on individual modules. For example, "./gradlew spring-core:build"
    via by Rob Winch,
  • NOTE: Revert commit 23737a45 There are a number of failures when building with JDK 1.8 b89 {code} [ant:iajc] /home/rwinch/git/spring-framework-4.x/spring-aspects/src/main/java/org/springframework/orm/jpa/aspectj/JpaExceptionTranslatorAspect.aj:1 [error] The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files [ant:iajc] (no source information available) [ant:iajc] /home/rwinch/git/spring-framework-4.x/spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj:19 [error] The import java.util.Arrays cannot be resolved [ant:iajc] import java.util.Arrays; [ant:iajc] ^^^^^^^^^^^^^^^ [ant:iajc] /home/rwinch/git/spring-framework-4.x/spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj:87 [error] Arrays cannot be resolved [ant:iajc] if (!Arrays.equals(this.args, args)) { {code} {code} :spring-oxm:compileTestJava Note: /home/rwinch/git/spring-framework-4.x/spring-oxm/src/test/java/org/springframework/oxm/xstream/XStreamMarshallerTests.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. [ant:jibx] Error running binding compiler [ant:jibx] java.lang.IllegalStateException: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence [ant:jibx] at org.jibx.binding.classes.ClassCache$ClassCacheLocator.getClassInfo(ClassCache.java:291) [ant:jibx] at org.jibx.binding.model.ClassHierarchyContext.accumulateInterfaces(ClassHierarchyContext.java:95) [ant:jibx] at org.jibx.binding.model.ClassHierarchyContext.addTypedComponent(ClassHierarchyContext.java:121) [ant:jibx] at org.jibx.binding.model.DefinitionContext.addFormat(DefinitionContext.java:527) [ant:jibx] at org.jibx.binding.model.BindingElement.defineBaseFormat(BindingElement.java:843) [ant:jibx] at org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:865) [ant:jibx] at org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:899) [ant:jibx] at org.jibx.binding.model.BindingElement.validateBinding(BindingElement.java:969) [ant:jibx] at org.jibx.binding.Utility.validateBinding(Utility.java:226) [ant:jibx] at org.jibx.binding.Utility.loadBinding(Utility.java:269) [ant:jibx] at org.jibx.binding.Utility.loadFileBinding(Utility.java:420) [ant:jibx] at org.jibx.binding.Compile.compile(Compile.java:217) [ant:jibx] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248) {code} The workaround is to install build 88 and to set your JAVA_HOME prior to building. You must build from source http://hg.openjdk.java.net/jdk8/jdk8/rev/e1a929afcfc4 If you are not updating these modules, you can also run builds on individual modules. For example, "./gradlew spring-core:build"
    via by Rob Winch,
    • java.lang.IllegalStateException: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence at org.jibx.binding.classes.ClassCache$ClassCacheLocator.getClassInfo(ClassCache.java:291) at org.jibx.binding.model.ClassHierarchyContext.accumulateInterfaces(ClassHierarchyContext.java:95) at org.jibx.binding.model.ClassHierarchyContext.addTypedComponent(ClassHierarchyContext.java:121) at org.jibx.binding.model.DefinitionContext.addFormat(DefinitionContext.java:527) at org.jibx.binding.model.BindingElement.defineBaseFormat(BindingElement.java:843) at org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:865) at org.jibx.binding.model.BindingElement.runValidation(BindingElement.java:899) at org.jibx.binding.model.BindingElement.validateBinding(BindingElement.java:969) at org.jibx.binding.Utility.validateBinding(Utility.java:226) at org.jibx.binding.Utility.loadBinding(Utility.java:269) at org.jibx.binding.Utility.loadFileBinding(Utility.java:420) at org.jibx.binding.Compile.compile(Compile.java:217) at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
    No Bugmate found.