[rules-users] ASMAccessorImpl classloader issue?

ollem olle.martensson at digitalroute.com
Tue Dec 6 05:22:51 EST 2011


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.defaultConsequence:14
    at
com.digitalroute.betssonpoc.Rule_incoming_registration_eventDefaultConsequenceInvoker.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-tp3563940p3563940.html
Sent from the Drools: User forum mailing list archive at Nabble.com.




More information about the rules-users mailing list