[rules-users] ASMAccessorImpl classloader issue?

Olle Martensson olle.martensson at digitalroute.com
Tue Dec 6 07:19:31 EST 2011


I found a workaround by setting this property when starting the JVM:

-Dmvel2.disable.jit=true


I guess that this makes things less performant though.

Best regards // Olle Mårtensson







On 12/6/11 11:22 AM, "Olle Martensson" <olle.martensson at digitalroute.com>
wrote:

>Hi!
>
>I'm trying to use jackson to deserialize JSON to declared types.
>When I do that I get classloading problems when inserting the fact into
>knowledgespace.
>I have explicitly set the context classloader to
>org.drools.rule.JavaDialectRuntimeData$PackageClassLoader during
>deserialization.
>The problem only occurs when I insert facts at a high rate. I use a http
>to
>send data that will be inserted as facts and when I send only 100 facts I
>have no problems, when I step this up to around 500 I get the following
>stacktrace. Has anybody seen anything like this? Please help me!
>
>Best Regards // Olle Mårtensson
>
>java.lang.ClassNotFoundException: com.digitalroute.betssonpoc.Registration
>    at java.lang.ClassLoader.findClass:358
>    at java.lang.ClassLoader.loadClass:306
>    at java.lang.ClassLoader.loadClass:247
>    at ASMAccessorImpl_8562899311323165422700.getValue
>    at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue:73
>    at org.mvel2.ast.ASTNode.getReducedValueAccelerated:106
>    at org.mvel2.MVELRuntime.execute:87
>    at org.mvel2.compiler.CompiledExpression.getValue:122
>    at org.mvel2.MVEL.executeExpression:954
>    at org.drools.base.extractors.MVELClassFieldReader.getValue:100
>    at
>org.drools.base.extractors.BaseObjectClassFieldReader.getLongValue:146
>    at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle:61
>    at org.drools.common.AbstractFactHandleFactory.newFactHandle:80
>    at org.drools.common.AbstractFactHandleFactory.newFactHandle:65
>    at org.drools.common.NamedEntryPoint.createHandle:720
>    at org.drools.common.NamedEntryPoint.insert:280
>    at org.drools.common.AbstractWorkingMemory.insert:886
>    at org.drools.base.DefaultKnowledgeHelper.insert:180
>    at org.drools.base.DefaultKnowledgeHelper.insert:174
>    at
>com.digitalroute.betssonpoc.Rule_incoming_registration_event.defaultConseq
>uence:14
>    at
>com.digitalroute.betssonpoc.Rule_incoming_registration_eventDefaultConsequ
>enceInvoker.evaluate
>    at org.drools.common.DefaultAgenda.fireActivation:1091
>    at org.drools.common.DefaultAgenda.fireNextItem:1029
>    at org.drools.common.DefaultAgenda.fireAllRules:1251
>    at org.drools.common.AbstractWorkingMemory.fireAllRules:708
>    at org.drools.common.AbstractWorkingMemory.fireAllRules:672
>    at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules:218
>..........
>..........
>
>
>
>
>--
>View this message in context:
>http://drools.46999.n3.nabble.com/ASMAccessorImpl-classloader-issue-tp3563
>940p3563940.html
>Sent from the Drools: User forum mailing list archive at Nabble.com.
>
>_______________________________________________
>rules-users mailing list
>rules-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users





More information about the rules-users mailing list