Quantcast

Classes pre-generation

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

Classes pre-generation

oleksiyp
Is it possible to somehow pre-generate Parser classes and place them to a jar to sign them for webstart? This is the problem for my current project. I have very good experience of using Parboiled. I have even an editor with auto-complete based on MatcherPath's returned. But when I start application through webstart(which is intended use) I have following exception for on the fly generate classes:
java.lang.SecurityException: class "engine.expressions.parser.parboiled.ParboiledParser$$parboiled"'s signer\
 information does not match signer information of other classes in the same package
	at java.lang.ClassLoader.checkCerts(ClassLoader.java:943)
	at java.lang.ClassLoader.preDefineClass(ClassLoader.java:657)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:785)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.parboiled.transform.AsmUtils.loadClass(AsmUtils.java:242)
	at org.parboiled.transform.ParserTransformer.defineExtendedParserClass(ParserTransformer.java:100)
	at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:47)
	at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:38)
	at org.parboiled.Parboiled.createParser(Parboiled.java:54)
...
Loading...