Bug 768375 - Guvnor jBPM Designer does not import bpmn2 files
Summary: Guvnor jBPM Designer does not import bpmn2 files
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: jBPM 5
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: Kris Verlaenen
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-16 13:32 UTC by Zuzana Krejčová
Modified: 2021-04-09 12:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)
relevant part of server log (7.59 KB, text/plain)
2011-12-16 13:32 UTC, Zuzana Krejčová
no flags Details
bpmn process (2.03 KB, application/xml)
2012-01-03 09:55 UTC, Zuzana Krejčová
no flags Details

Description Zuzana Krejčová 2011-12-16 13:32:05 UTC
Created attachment 547808 [details]
relevant part of server log

Description of problem:
The new functionality of the Designer for Guvnor should be able to import bpmn2 files. Trying that, however, results in error and null pointer exceptions thrown.


Version-Release number of selected component (if applicable):
BRMS 5.3.0 dev6


Steps to Reproduce:
1. In the Designer, create a simple process, validate (just to be sure) and save.
2. Download the process as a bpmn2 file via the REST API.
3. Back in the Designer, click the Import from BPMN2 option and choose the downloaded file, confirm.

  
Actual results:
A blue box with error ideogram, OK button and no message appears in Guvnor, Error message and NullPointerException in server log. Process is not imported.


Expected results:
Process is successfully imported.


Additional info:
Find attached the relevant part of the server log. In short, it says:
14:27:19,049 ERROR [STDERR] org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Premature end of file.
14:27:19,052 ERROR [STDERR] Caused by: org.xml.sax.SAXParseException; Premature end of file.
14:27:19,053 SEVERE [JbpmProfileImpl] 
java.lang.NullPointerException
     at com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201)

Comment 1 Tihomir Surdilovic 2012-01-02 20:57:09 UTC
Can you please provide the bpmn2 that was used for testing?

Thanks.

Comment 2 Tihomir Surdilovic 2012-01-02 21:05:01 UTC
assigning to zkrejcov to provide more info.

Comment 3 Zuzana Krejčová 2012-01-03 09:55:54 UTC
Created attachment 550387 [details]
bpmn process

This is the exact file I get from http://localhost:8080/jboss-brms/rest/packages/defaultPackage/assets/test/binary.
It was created using the Designer, saved, validated, package built. It's only a simple start event --> end event process.

Comment 4 Zuzana Krejčová 2012-01-03 10:00:04 UTC
Trying to import the Evaluation.bpmn found in jbpm-examples results in the same behaviour and exceptions.

Comment 5 Tihomir Surdilovic 2012-01-03 13:51:48 UTC
I am not able to reproduce the issue locally. The only thing I can think of is that you are using Java 1.5. Designer requires Java 6 in order to run.


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