ClassLoader (ClassNotFoundException while using Parboiled 1.1.6)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ClassLoader (ClassNotFoundException while using Parboiled 1.1.6)

Wojtek
Hello,
I have the following problem: while I am using Parboiled in Java Plug-in project made in Eclipse I'm getting the following exception (while executing Parboiled.createParser(ExpressionParser.class)):

java.lang.RuntimeException: Error creating extended parser class: Error at instruction 2: Error loading class 'project.ExpressionParser' for rule method analysis
        at org.parboiled.Parboiled.createParser(Parboiled.java:58)
        at (...)
Caused by: org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 2: Error loading class 'project.ExpressionParser' for rule method analysis
        at org.objectweb.asm.tree.analysis.Analyzer.analyze(Unknown Source)
        at org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:43)
        at org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
        at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
        at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:38)
        at org.parboiled.Parboiled.createParser(Parboiled.java:54)
        ... 32 more
Caused by: java.lang.RuntimeException: Error loading class 'project.ExpressionParser' for rule method analysis
        at org.parboiled.transform.AsmUtils.getClassForInternalName(AsmUtils.java:82)
        at org.parboiled.transform.AsmUtils.isAssignableTo(AsmUtils.java:294)
        at org.parboiled.transform.AsmUtils.isCallOnContextAware(AsmUtils.java:344)
        at org.parboiled.transform.InstructionGraphNode.<init>(InstructionGraphNode.java:57)
        at org.parboiled.transform.RuleMethod.setGraphNode(RuleMethod.java:198)
        at org.parboiled.transform.RuleMethodInterpreter.createNode(RuleMethodInterpreter.java:100)
        at org.parboiled.transform.RuleMethodInterpreter.naryOperation(RuleMethodInterpreter.java:87)
        at org.parboiled.transform.RuleMethodInterpreter.naryOperation(RuleMethodInterpreter.java:37)
        at org.objectweb.asm.tree.analysis.Frame.execute(Unknown Source)
        ... 38 more
Caused by: java.lang.ClassNotFoundException: project.ExpressionParser
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.parboiled.transform.AsmUtils.getClassForInternalName(AsmUtils.java:80)
        ... 46 more

Could you please help me?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ClassLoader (ClassNotFoundException while using Parboiled 1.1.6)

mathias
Administrator
Wojtek,

what JDK are you using?

Cheers,
Mathias

---
[hidden email]
http://www.parboiled.org

On 11.11.2013, at 15:33, Wojtek [via parboiled users] <[hidden email]> wrote:

>
>
> Hello,
> I have the following problem: while I am using Parboiled in Java Plug-in
> project made in Eclipse I'm getting the following exception (while executing
> Parboiled.createParser(ExpressionParser.class)):
>
> java.lang.RuntimeException: Error creating extended parser class: Error at
> instruction 2: Error loading class 'project.ExpressionParser' for rule
> method analysis
> at org.parboiled.Parboiled.createParser(Parboiled.java:58)
> at (...)
> Caused by: org.objectweb.asm.tree.analysis.AnalyzerException: Error at
> instruction 2: Error loading class 'project.ExpressionParser' for rule
> method analysis
> at org.objectweb.asm.tree.analysis.Analyzer.analyze(Unknown Source)
> at
> org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:43)
> at
> org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
> at
> org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
> at
> org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:38)
> at org.parboiled.Parboiled.createParser(Parboiled.java:54)
> ... 32 more
> Caused by: java.lang.RuntimeException: Error loading class
> 'project.ExpressionParser' for rule method analysis
> at
> org.parboiled.transform.AsmUtils.getClassForInternalName(AsmUtils.java:82)
> at org.parboiled.transform.AsmUtils.isAssignableTo(AsmUtils.java:294)
> at org.parboiled.transform.AsmUtils.isCallOnContextAware(AsmUtils.java:344)
> at
> org.parboiled.transform.InstructionGraphNode.<init>(InstructionGraphNode.java:57)
> at org.parboiled.transform.RuleMethod.setGraphNode(RuleMethod.java:198)
> at
> org.parboiled.transform.RuleMethodInterpreter.createNode(RuleMethodInterpreter.java:100)
> at
> org.parboiled.transform.RuleMethodInterpreter.naryOperation(RuleMethodInterpreter.java:87)
> at
> org.parboiled.transform.RuleMethodInterpreter.naryOperation(RuleMethodInterpreter.java:37)
> at org.objectweb.asm.tree.analysis.Frame.execute(Unknown Source)
> ... 38 more
> Caused by: java.lang.ClassNotFoundException: project.ExpressionParser
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.parboiled.transform.AsmUtils.getClassForInternalName(AsmUtils.java:80)
> ... 46 more
>
> Could you please help me?
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://users.parboiled.org/ClassLoader-ClassNotFoundException-while-using-Parboiled-1-1-6-tp4024255.html
> To start a new topic under parboiled users, email [hidden email]
> To unsubscribe from parboiled users, visit class="small">
signature.asc (858 bytes)
Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ClassLoader (ClassNotFoundException while using Parboiled 1.1.6)

Wojtek
Hello,

I'm using JDK 1.7.0.

Best regards
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ClassLoader (ClassNotFoundException while using Parboiled 1.1.6)

Wojtek
Moreover, I would like to add that I have created the proper plug-in with parboiled and asm jars as they are specified in parboiled's pom.xml.
Loading...