JBoss Community

Re: java.lang.String cannot be cast to org.jbpm.task.utils.MarshalledContentWrapper

created by TC ONG in jBPM - View the full discussion

Well, I did download the latest code from github master.

Import into eclipse, compile and export them.

Now I am using jbpm 5.4 snapshot and drools 5.5 snap shot.

I try to run my web application.

Oh! I need to replace all my drools/jbpm jar. ok. replace and run.

Oh! need to replace mvel2 jar too. ok. replace and run.

Oh! need to recompile my drools package. ok, recompile and...

Exception in thread "main" java.lang.ExceptionInInitializerError

          at org.jbpm.process.builder.dialect.java.JavaProcessDialect.<clinit>(JavaProcessDialect.java:21)

          at org.jbpm.process.builder.dialect.ProcessDialectRegistry.<clinit>(ProcessDialectRegistry.java:15)

          at org.jbpm.bpmn2.BPMN2ProcessProviderImpl.<clinit>(BPMN2ProcessProviderImpl.java:31)

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Class.java:169)

          at org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:214)

          at org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.call(ServiceRegistryImpl.java:209)

          at org.drools.util.ServiceRegistryImpl.get(ServiceRegistryImpl.java:164)

          at org.drools.compiler.BPMN2ProcessFactory.loadProvider(BPMN2ProcessFactory.java:28)

          at org.drools.compiler.BPMN2ProcessFactory.getBPMN2ProcessProvider(BPMN2ProcessFactory.java:20)

          at org.drools.compiler.BPMN2ProcessFactory.configurePackageBuilder(BPMN2ProcessFactory.java:11)

          at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:688)

          at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:50)

          at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:39)

          at com.geneoz.drools.RulesEngineBuilder.buildKB(RulesEngineBuilder.java:127)

          at com.geneoz.drools.RulesEngineBuilder.build(RulesEngineBuilder.java:94)

          at com.geneoz.drools.RulesEngineBuilder.main(RulesEngineBuilder.java:63)

Caused by: org.mvel2.templates.TemplateError: null input stream

          at org.mvel2.templates.util.TemplateTools.readStream(TemplateTools.java:113)

          at org.mvel2.templates.TemplateCompiler.compileTemplate(TemplateCompiler.java:414)

          at org.mvel2.templates.TemplateCompiler.compileTemplate(TemplateCompiler.java:405)

          at org.mvel2.templates.TemplateCompiler.compileTemplate(TemplateCompiler.java:401)

          at org.jbpm.process.builder.dialect.java.AbstractJavaProcessBuilder.<clinit>(AbstractJavaProcessBuilder.java:27)

          ... 17 more

Caused by: java.lang.NullPointerException

          at org.mvel2.templates.util.TemplateTools.readStream(TemplateTools.java:103)

          ... 21 more

 

I am going deeper and deeper into this shit.

God I had enough of surprices. :((

I'll get the source for jbpm 5.3 and try to fix it manually. Hope will have some luck.

Jboss!!! WHY you release something like this!! WHYYYYY~~~~~~~!!!!! :(( :(( :((

Reply to this message by going to Community

Start a new discussion in jBPM at Community