[jboss-jira] [JBoss JIRA] Commented: (JBRULES-896) Error asserting objects using JamVM
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Sun Jun 10 21:36:12 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-896?page=comments#action_12364822 ]
Mark Proctor commented on JBRULES-896:
--------------------------------------
This is due to Objensis not supporting the JamVM, you'll have to chase the Objensis people - http://code.google.com/p/objenesis/.
> Error asserting objects using JamVM
> -----------------------------------
>
> Key: JBRULES-896
> URL: http://jira.jboss.com/jira/browse/JBRULES-896
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.0.MR2
> Environment: Linux with JamVM and GNU Classpath
> Reporter: Roberto Carballedo
> Assigned To: Mark Proctor
>
> When I try to assert an objecto to the working memory a exception is thrown. It seams that there is a problem when the shadow fact proxy. The detailed Exception trace is:
> org.drools.RuntimeDroolsException: Error creating shadow fact for object: TemperatureSensor_1 [0.0]
> at org.drools.base.ClassObjectType.getShadow(ClassObjectType.java:164)
> at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:153)
> at org.drools.reteoo.Rete.assertObject(Rete.java:121)
> at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:201)
> at org.drools.reteoo.ReteooWorkingMemory.doAssertObject(ReteooWorkingMemory.java:70)
> at org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:724)
> at org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:548)
> at flexeo.ruleEngine.FlexeoRuleLoader.main(FlexeoRuleLoader.java:47)
> Caused by: org.objenesis.ObjenesisException: java.lang.reflect.InvocationTargetException
> at org.objenesis.instantiator.basic.ObjectStreamClassInstantiator.newInstance(ObjectStreamClassInstantiator.java:51)
> at org.drools.base.ClassObjectType.getShadow(ClassObjectType.java:160)
> ...7 more
> Caused by: java.lang.reflect.InvocationTargetException
> at java.lang.reflect.Method.invokeNative(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:372)
> at org.objenesis.instantiator.basic.ObjectStreamClassInstantiator.newInstance(ObjectStreamClassInstantiator.java:48)
> ...8 more
> Caused by: java.io.InvalidClassException: flexeo.Device.TemperatureSensorShadowProxy; No public zero-argument constructor
> at java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:931)
> at java.lang.reflect.Method.invokeNative(Native Method)
> ...10 more
> ?
> I changed the default objenesis instantiator, because JamVM doesn't support Sun's ReflectionFactory class, but I can't find a solution
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list