java.lang.TypeNotPresentException: Type ActorMessage not present

Apache's JIRA Issue Tracker | Hans Dockter | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [GROOVY-3732] Groovyc throws exception in code using ASTTransformations - ASF JIRA

    apache.org | 1 year ago
    java.lang.TypeNotPresentException: Type ActorMessage not present
  2. 0

    For the GParallelizer build the tests are not compilable. Neither with Gradle nor with an Ant build. The following ant build: {code:xml} <?xml version="1.0"?> <project name="sample" default="resolve">    <target name="clean">        <delete dir="antbuild/classes"/>    </target>    <taskdef name="groovyc"             classname="org.codehaus.groovy.ant.Groovyc">        <classpath>            <pathelement path="/Users/hans/checkouts/gparallelizer-read-only/libs/groovy-all-1.6.4.jar"/>        </classpath>    </taskdef>    <target name="compile">        <mkdir dir="antbuild/classes"/>        <groovyc srcdir="${basedir}/src/main/groovy" destdir="${basedir}/antbuild/classes">            <classpath>                <pathelement path="/Users/hans/checkouts/gparallelizer-read-only/libs/groovy-all-1.6.4.jar"/>                <pathelement path="/Users/hans/checkouts/gparallelizer-read-only/libs/jsr166y-070108.jar"/>            </classpath>            <javac source="1.5" target="1.5" debug="on"/>        </groovyc>    </target>    <target name="compileTests" depends="compile">        <mkdir dir="antbuild/test-classes"/>        <groovyc srcdir="${basedir}/src/test/groovy" destdir="${basedir}/antbuild/test-classes">            <classpath>                <pathelement path="${basedir}/build/classes"/>                <pathelement path="/Users/hans/checkouts/gparallelizer-read-only/libs/junit-4.7.jar"/>                <pathelement path="/Users/hans/checkouts/gparallelizer-read-only/libs/groovy-all-1.6.4.jar"/>                <pathelement path="/Users/hans/checkouts/gparallelizer-read-only/libs/jsr166y-070108.jar"/>            </classpath>            <javac source="1.5" target="1.5" debug="on"/>        </groovyc>    </target> </project> {code} throws an exception when executing {{ant compileTests}}. Below is a snippet from the stacktrace. I have attached the full stacktrace of the ant execution. The revision of GParallelizer where we hit this problem is 559. {code} compileTests:  [groovyc] Compiling 158 source files to /Users/hans/checkouts/gparallelizer-read-only/antbuild/test-classes  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, General error during semantic analysis: Type ActorMessage not present  [groovyc]  [groovyc] java.lang.TypeNotPresentException: Type ActorMessage not present  [groovyc]     at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98)  [groovyc]     at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)  [groovyc]     at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)  [groovyc]     at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50)  [groovyc]     at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120)  [groovyc]     at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)  [groovyc]     at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:67)  [groovyc]     at java.lang.reflect.Field.getGenericType(Field.java:223) {code}

    Apache's JIRA Issue Tracker | 7 years ago | Hans Dockter
    java.lang.TypeNotPresentException: Type ActorMessage not present

    Root Cause Analysis

    1. java.lang.TypeNotPresentException

      Type ActorMessage not present

      at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType()
    2. Java RT
      Field.getGenericType
      1. sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98)
      2. sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
      3. sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
      4. sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50)
      5. sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120)
      6. sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
      7. sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:67)
      8. java.lang.reflect.Field.getGenericType(Field.java:223)
      8 frames