java.lang.TypeNotPresentException

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.

  • 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}
    via by Hans Dockter,
    • java.lang.TypeNotPresentException: Type ActorMessage not present at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98) at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107) at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50) at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120) at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:67) at java.lang.reflect.Field.getGenericType(Field.java:223)

    Users with the same issue

    Unknown visitor2 times, last one,
    MoYapro
    1 times, last one,
    tfr
    2 times, last one,
    Unknown visitor1 times, last one,