Hide Forgot
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)
Can you please provide the bpmn2 that was used for testing? Thanks.
assigning to zkrejcov to provide more info.
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.
Trying to import the Evaluation.bpmn found in jbpm-examples results in the same behaviour and exceptions.
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.