java.lang.TypeNotPresentException: Type ActorMessage not present

Apache's JIRA Issue Tracker | Hans Dockter | 8 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 | 8 years ago | Hans Dockter
    java.lang.TypeNotPresentException: Type ActorMessage not present
  3. 0

    jaxrs 0.11 grails 2.4.4 dependencies

    GitHub | 2 years ago | slackfarmer
    java.lang.ClassNotFoundException: org.codehaus.jackson.JsonFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Grails 2.2 to 2.3 - Error running forked test-app: Could not load grails build listener class

    Stack Overflow | 3 years ago | Thermech
    java.lang.RuntimeException: Could not load grails build listener class

  1. musketyr 1 times, last 4 months ago
  2. rsprangemeijer 6 times, last 21 hours ago
  3. marcbouvierdav 26 times, last 2 days ago
  4. batwalrus76 12 times, last 3 days ago
  5. SteVio1989 4 times, last 4 days ago
69 more registered users
26 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    ActorMessage

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:323)
    4 frames
  3. Groovy
    GroovyClassLoader.loadClass
    1. groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:664)
    2. groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:763)
    2 frames
  4. Java RT
    Field.getGenericType
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:268)
    2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
    3. java.lang.Class.forName0(Native Method)
    4. java.lang.Class.forName(Class.java:264)
    5. sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:113)
    6. sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
    7. sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
    8. sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)
    9. sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)
    10. sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
    11. sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:85)
    12. java.lang.reflect.Field.getGenericType(Field.java:241)
    12 frames
  5. Groovy
    GroovyShell$2.run
    1. org.codehaus.groovy.vmplugin.v5.Java5.configureClassNode(Java5.java:273)
    2. org.codehaus.groovy.ast.ClassNode.lazyClassInit(ClassNode.java:259)
    3. org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:925)
    4. org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:920)
    5. org.codehaus.groovy.ast.ClassNode.getSuperClass(ClassNode.java:914)
    6. org.codehaus.groovy.ast.ClassNode.isDerivedFrom(ClassNode.java:857)
    7. org.codehaus.groovy.classgen.AsmClassGenerator.assignmentCastAndVisit(AsmClassGenerator.java:3976)
    8. org.codehaus.groovy.classgen.AsmClassGenerator.evaluateEqual(AsmClassGenerator.java:3929)
    9. org.codehaus.groovy.classgen.AsmClassGenerator.visitDeclarationExpression(AsmClassGenerator.java:1343)
    10. org.codehaus.groovy.ast.expr.DeclarationExpression.visit(DeclarationExpression.java:53)
    11. org.codehaus.groovy.classgen.AsmClassGenerator.visitAndAutoboxBoolean(AsmClassGenerator.java:4038)
    12. org.codehaus.groovy.classgen.AsmClassGenerator.visitExpressionStatement(AsmClassGenerator.java:1331)
    13. org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40)
    14. org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35)
    15. org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:161)
    16. org.codehaus.groovy.classgen.AsmClassGenerator.visitBlockStatement(AsmClassGenerator.java:694)
    17. org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:51)
    18. org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:97)
    19. org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:108)
    20. org.codehaus.groovy.classgen.AsmClassGenerator.visitStdMethod(AsmClassGenerator.java:573)
    21. org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructorOrMethod(AsmClassGenerator.java:549)
    22. org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:119)
    23. org.codehaus.groovy.classgen.AsmClassGenerator.visitMethod(AsmClassGenerator.java:651)
    24. org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:997)
    25. org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:50)
    26. org.codehaus.groovy.classgen.AsmClassGenerator.visitClass(AsmClassGenerator.java:261)
    27. org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:728)
    28. org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:935)
    29. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:468)
    30. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:282)
    31. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:253)
    32. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:190)
    33. groovy.lang.GroovyShell$2.run(GroovyShell.java:204)
    33 frames
  6. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  7. Groovy
    GroovyMain.main
    1. groovy.lang.GroovyShell.run(GroovyShell.java:202)
    2. groovy.lang.GroovyShell.run(GroovyShell.java:148)
    3. groovy.ui.GroovyMain.processOnce(GroovyMain.java:494)
    4. groovy.ui.GroovyMain.run(GroovyMain.java:309)
    5. groovy.ui.GroovyMain.process(GroovyMain.java:295)
    6. groovy.ui.GroovyMain.processArgs(GroovyMain.java:112)
    7. groovy.ui.GroovyMain.main(GroovyMain.java:93)
    7 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:616)
    4 frames
  9. Groovy
    GroovyStarter.main
    1. org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:108)
    2. org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
    2 frames