Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-282

Not Compatible w/ Java 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Invalid
    • 6.0
    • None
    • Main
    • Important
    • blocker
    • P1

    Description

      When executing the mvn install after upgrading to Java 1.8, the project failed to compile. I've included the Pom entries and stack trace.

      Plugin: org.jibx:maven-jibx-plugin:1.2.6:bind
      Error: java.lang.IllegalStateException: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence

      pom.xml:

          <dependency>
            <groupId>org.apache.bcel</groupId>
            <artifactId>bcel</artifactId>
            <version>${bcel.ver}</version>
          </dependency>
      ...
      	  <plugin>
      		<groupId>org.jibx</groupId>
      		<artifactId>maven-jibx-plugin</artifactId>
      		<version>${maven-jibx-plugin.ver}</version>
      		<configuration>
      		  <includes>
      			<includes>*-binding.xml</includes>
      		  </includes>
      		</configuration>
      		<executions>
      		  <execution>
      			<goals>
      			  <goal>bind</goal>
      			</goals>
      		  </execution>
      		</executions>
      	  </plugin>
      

      Stack Trace
      [ERROR] Failed to execute goal org.jibx:maven-jibx-plugin:1.2.6:bind (default) on project pts2-core: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence -> [Help
      1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jibx:maven-jibx-plugin:1.2.6:bind (default) on project pts2-core: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.
      class for class java.lang.CharSequence
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Error loading class java.lang.CharSequence: Error reading path java/lang/CharSequence.class for class java.lang.CharSequence
              at org.jibx.maven.AbstractBaseBindingMojo.compile(AbstractBaseBindingMojo.java:166)
              at org.jibx.maven.AbstractBaseBindingMojo.execute(AbstractBaseBindingMojo.java:133)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
              ... 20 more
      Caused by: 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.maven.AbstractBaseBindingMojo.compile(AbstractBaseBindingMojo.java:163)
              ... 23 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            scrappythenell Joshua Nell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: