[jboss-jira] [JBoss JIRA] (JBRULES-3527) NullPointerException when marshalling InsertObjectCmd with XStream without setting entry point
Chang Li (JIRA)
jira-events at lists.jboss.org
Mon Jun 4 16:36:17 EDT 2012
Chang Li created JBRULES-3527:
---------------------------------
Summary: NullPointerException when marshalling InsertObjectCmd with XStream without setting entry point
Key: JBRULES-3527
URL: https://issues.jboss.org/browse/JBRULES-3527
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.4.0.Final
Environment: Windows
Reporter: Chang Li
Assignee: Mark Proctor
The following code result in NullPointerException in the last step
ArrayList<Command> commands = new ArrayList<Command>();
BatchExecutionCommand batchCmd = CommandFactory.newBatchExecution(commands, "ksession1");
MyObject myobj = new MyObject("name of object"); // just an example, not important to the bug.
Command command = CommandFactory.newInsert(myobj, "myobject");
commands.add(command);
XStream marshaller = BatchExecutionHelper.newXStreamMarshaller();
String xml = marshaller.toXML(batchCmd);
The null pointer exception is caused by the "entry point" parameter not being set on teh InesrtObjectCommand.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list