[jbpm-issues] [JBoss JIRA] Commented: (JBPM-895) null pointer when create new sub process definition

Victor Ruiz (JIRA) jira-events at lists.jboss.org
Mon Jan 18 07:49:47 EST 2010


    [ https://jira.jboss.org/jira/browse/JBPM-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12506583#action_12506583 ] 

Victor Ruiz commented on JBPM-895:
----------------------------------

It affects version jBPM 3.2.6 too since I've seen it.
I've used binding='late' attribute in my live environment (since sub-process loading is done by means of jPDL).
I've used Michael Thiele solution in my test environment (since sub-process loading is done programatically).

> null pointer when create new sub process definition
> ---------------------------------------------------
>
>                 Key: JBPM-895
>                 URL: https://jira.jboss.org/jira/browse/JBPM-895
>             Project: jBPM
>          Issue Type: Bug
>    Affects Versions: jBPM 3.1.3
>            Reporter: Tom Nguyen
>            Assignee: Tom Baeyens
>         Attachments: DbSubProcessResolver.java
>
>
> I have a problem with my process composition
> Exception happen when deploying process with sub process:
> public void deployProcessDefinition() {
> ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("main/processdefinition.xml");
> ProcessInstance instance = new ProcessInstance(processDefinition);
> JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
> try {
> jbpmContext.deployProcessDefinition(processDefinition);
> } finally {
> jbpmContext.close();
> }
> }
> java.lang.NullPointerException: can't create a process instance when processDefinition is null
> 	at org.jbpm.graph.exe.ProcessInstance.<init>(ProcessInstance.java:87)
> 	at org.jbpm.graph.exe.Token.createSubProcessInstance(Token.java:571)
> 	at org.jbpm.graph.node.ProcessState.execute(ProcessState.java:109)
> 	at org.jbpm.graph.def.Node.enter(Node.java:316)
> <?xml version="1.0" encoding="UTF-8"?>
> <process-definition
> xmlns="urn:jbpm.org:jpdl-3.1" name="main">
> <start-state name="start">
> </start-state>
> <end-state name="end"></end-state>
> <process-state name="sub">
> <sub-process name="sub"/>
> </process-state>
> </process-definition>
> This is my sub process:
> <?xml version="1.0" encoding="UTF-8"?>
> <process-definition
> xmlns="urn:jbpm.org:jpdl-3.1" name="sub">
> <start-state name="start">
> </start-state>
> <end-state name="end"></end-state>
> </process-definition> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbpm-issues mailing list