org.apache.lens.driver.cube.TestRewriting: Failed to transform class with name org.apache.lens.driver.cube.TestRewriting. Reason: java.io.IOException: invalid constant type: 18 at 1

Apache's JIRA Issue Tracker | Raju Bairishetti | 2 years ago
  1. 0

    [LENS-399] TestRewriting test is failing with powermock incompatibility with jdk8 - ASF JIRA

    apache.org | 1 year ago
    org.apache.lens.driver.cube.TestRewriting: Failed to transform class with name org.apache.lens.driver.cube.TestRewriting. Reason: java.io.IOException: invalid constant type: 18 at 1
  2. 0

    Right now, lens is successfully compiled with *java6*. But it is failing with *java8*. *Error stack trace* {noformat} [ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs (default) on project lens-server: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs failed: A required class was missing while executing org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs: com/sun/mirror/apt/AnnotationProcessorFactory [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.codehaus.enunciate:maven-enunciate-plugin:1.28 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/maven-enunciate-plugin/1.28/maven-enunciate-plugin-1.28.jar [ERROR] urls[1] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/maven-enunciate-slim-plugin/1.28/maven-enunciate-slim-plugin-1.28.jar [ERROR] urls[2] = file:/Users/raju.bairishetti/.m2/repository/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.jar [ERROR] urls[3] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar [ERROR] urls[4] = file:/Users/raju.bairishetti/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.jar [ERROR] urls[5] = file:/Users/raju.bairishetti/.m2/repository/org/apache/maven/enforcer/enforcer-api/1.0/enforcer-api-1.0.jar [ERROR] urls[6] = file:/Users/raju.bairishetti/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [ERROR] urls[7] = file:/Users/raju.bairishetti/.m2/repository/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.jar [ERROR] urls[8] = file:/Users/raju.bairishetti/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar [ERROR] urls[9] = file:/Users/raju.bairishetti/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar [ERROR] urls[10] = file:/Users/raju.bairishetti/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar [ERROR] urls[11] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar [ERROR] urls[12] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.12/plexus-interpolation-1.12.jar [ERROR] urls[13] = file:/Users/raju.bairishetti/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar [ERROR] urls[14] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar [ERROR] urls[15] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-core/1.28/enunciate-core-1.28.jar [ERROR] urls[16] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-core-rt/1.28/enunciate-core-rt-1.28.jar [ERROR] urls[17] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-core-annotations/1.28/enunciate-core-annotations-1.28.jar [ERROR] urls[18] = file:/Users/raju.bairishetti/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar [ERROR] urls[19] = file:/Users/raju.bairishetti/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar [ERROR] urls[20] = file:/Users/raju.bairishetti/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar [ERROR] urls[21] = file:/Users/raju.bairishetti/.m2/repository/org/freemarker/freemarker/2.3.19/freemarker-2.3.19.jar [ERROR] urls[22] = file:/Users/raju.bairishetti/.m2/repository/net/sf/apt-jelly/apt-jelly-freemarker/2.15/apt-jelly-freemarker-2.15.jar [ERROR] urls[23] = file:/Users/raju.bairishetti/.m2/repository/net/sf/apt-jelly/apt-jelly-core/2.15/apt-jelly-core-2.15.jar [ERROR] urls[24] = file:/Users/raju.bairishetti/.m2/repository/commons-digester/commons-digester/2.1/commons-digester-2.1.jar [ERROR] urls[25] = file:/Users/raju.bairishetti/.m2/repository/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar [ERROR] urls[26] = file:/Users/raju.bairishetti/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar [ERROR] urls[27] = file:/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre/../lib/tools.jar [ERROR] urls[28] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-top/1.28/enunciate-top-1.28.jar [ERROR] urls[29] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-jaxws-support/1.28/enunciate-jaxws-support-1.28.jar [ERROR] urls[30] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-jaxws-ri/1.28/enunciate-jaxws-ri-1.28.jar [ERROR] urls[31] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-docs/1.28/enunciate-docs-1.28.jar [ERROR] urls[32] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.3/jackson-mapper-asl-1.9.3.jar [ERROR] urls[33] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.3/jackson-core-asl-1.9.3.jar [ERROR] urls[34] = file:/Users/raju.bairishetti/.m2/repository/org/jdom/jdom/1.1.2/jdom-1.1.2.jar [ERROR] urls[35] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-jersey/1.28/enunciate-jersey-1.28.jar [ERROR] urls[36] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-jersey-rt/1.28/enunciate-jersey-rt-1.28.jar [ERROR] urls[37] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.3/jackson-jaxrs-1.9.3.jar [ERROR] urls[38] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.3/jackson-xc-1.9.3.jar [ERROR] urls[39] = file:/Users/raju.bairishetti/.m2/repository/com/sun/jersey/jersey-server/1.11/jersey-server-1.11.jar [ERROR] urls[40] = file:/Users/raju.bairishetti/.m2/repository/asm/asm/3.1/asm-3.1.jar [ERROR] urls[41] = file:/Users/raju.bairishetti/.m2/repository/com/sun/jersey/jersey-core/1.11/jersey-core-1.11.jar [ERROR] urls[42] = file:/Users/raju.bairishetti/.m2/repository/com/sun/jersey/jersey-servlet/1.11/jersey-servlet-1.11.jar [ERROR] urls[43] = file:/Users/raju.bairishetti/.m2/repository/javax/mail/mail/1.4.4/mail-1.4.4.jar [ERROR] urls[44] = file:/Users/raju.bairishetti/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar [ERROR] urls[45] = file:/Users/raju.bairishetti/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3/jaxb-impl-2.2.3.jar [ERROR] urls[46] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-xml/1.28/enunciate-xml-1.28.jar [ERROR] urls[47] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-java-client/1.28/enunciate-java-client-1.28.jar [ERROR] urls[48] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-c/1.28/enunciate-c-1.28.jar [ERROR] urls[49] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-obj-c/1.28/enunciate-obj-c-1.28.jar [ERROR] urls[50] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-csharp/1.28/enunciate-csharp-1.28.jar [ERROR] urls[51] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-ruby/1.28/enunciate-ruby-1.28.jar [ERROR] urls[52] = file:/Users/raju.bairishetti/.m2/repository/org/codehaus/enunciate/enunciate-php/1.28/enunciate-php-1.28.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] -----------------------------------------------------: com.sun.mirror.apt.AnnotationProcessorFactory [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs (default) on project lens-server: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs failed: A required class was missing while executing org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs: com/sun/mirror/apt/AnnotationProcessorFactory {noformat}

    Apache's JIRA Issue Tracker | 2 years ago | Raju Bairishetti
    org.apache.lens.driver.cube.TestRewriting: Failed to transform class with name org.apache.lens.driver.cube.TestRewriting. Reason: java.io.IOException: invalid constant type: 18 at 1
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.lens.driver.cube.TestRewriting

      Failed to transform class with name org.apache.lens.driver.cube.TestRewriting. Reason: java.io.IOException: invalid constant type: 18 at 1

      at org.testng.internal.ClassHelper.createInstance1()
    2. TestNG
      ClassHelper.createInstance
      1. org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:398)
      2. org.testng.internal.ClassHelper.createInstance(ClassHelper.java:299)
      2 frames