Bug 965454 - java.lang.NullPointerException in org.jbpm.bpmn2.xml.di.BPMNPlaneHandler.end() when missing process id.
Summary: java.lang.NullPointerException in org.jbpm.bpmn2.xml.di.BPMNPlaneHandler.end(...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 6.0.0
Assignee: Kris Verlaenen
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-21 09:28 UTC by Marek Baluch
Modified: 2014-08-06 20:09 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:09:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Process definition which can be used to reproduce the problem. (3.61 KB, application/xml)
2013-05-21 09:28 UTC, Marek Baluch
no flags Details

Description Marek Baluch 2013-05-21 09:28:11 UTC
Created attachment 750937 [details]
Process definition which can be used to reproduce the problem.

** Description of problem:

A java.lang.NullPointerException will be thrown during parsing of the process if the definition (see attached file) contains 'xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"' elements and the process element is missing the 'id' attribute. 

** How reproducible:

File file = new File("/path/to/the/attached/process/definition");
Resource process = ResourceFactory.newFileResource(file);

KieServices ks = KieServices.Factory.get();
KieFileSystem kfs = ks.newKieFileSystem();
kfs.write(process);

KieBuilder kb = ks.newKieBuilder(kfs);
kb.buildAll();

** Actual results:

java.lang.NullPointerException on the kb.buildAll(); line.

Comment 1 Marek Baluch 2013-06-26 07:55:08 UTC
Verified on DR5 (Beta3 community)

Comment 5 Lukáš Petrovický 2014-02-07 16:15:36 UTC
This BZ has been part of the 6.0.0 stream.


Note You need to log in before you can comment on or make changes to this bug.