Bug 1009073 - BPMN: Missing attribute x in lane
Summary: BPMN: Missing attribute x in lane
Keywords:
Status: CLOSED DUPLICATE of bug 958400
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ER5
: 6.0.0
Assignee: Kris Verlaenen
QA Contact: Tomas Livora
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-17 15:18 UTC by Pedro Zapata
Modified: 2014-01-28 23:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-28 23:12:19 UTC
Type: Bug


Attachments (Terms of Use)
Exported BPMN process (71.61 KB, application/xml)
2013-09-17 15:18 UTC, Pedro Zapata
no flags Details

Description Pedro Zapata 2013-09-17 15:18:23 UTC
Created attachment 798862 [details]
Exported BPMN process

The lane description has apparently be corrupted while designing process, the attribute x is missing from the XML.

     <bpmndi:BPMNShape id="_VHPGwB-nEeOpSfcbFdHwOg" bpmnElement="_DEF58EB7-C04A-4CDA-B855-B41ECF30B3DA">
        <dc:Bounds height="215.0" width="1740.0"
 y="30.0"/>
      </bpmndi:BPMNShape>

This causes a process validation error and exception which is not possible to recover from:

16:54:51,649 ERROR [org.drools.core.xml.ExtensibleXmlParser] (http-localhost/127.0.0.1:8080-2) (null: 602, 61): cvc-complex-type.4: Attribute 'x' must appear on element 'dc:Bounds'.
16:54:51,650 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) java.lang.IllegalArgumentException: Invalid bounds for node _77B2F150-58FC-464B-B3BE-B5B206DACEF2
16:54:51,650 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)   at org.jbpm.bpmn2.xml.di.BPMNShapeHandler.end(BPMNShapeHandler.java:84)
16:54:51,650 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)   at org.drools.core.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:422)
16:54:51,650 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
16:54:51,651 ERROR [stderr] (http-localhost/127.0.0.1:8080-2)   at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)

Exported BPMN process

Comment 2 Kris Verlaenen 2013-10-10 14:59:54 UTC
Making sure parser doesn't choke on missing UI information

master: http://github.com/droolsjbpm/jbpm/commit/d009e31a2
6.0.x: http://github.com/droolsjbpm/jbpm/commit/9a99cfbcc

Still need to verify I can now successfully open the attached process when this fix is included in a recent build of the tooling

Comment 3 Tomas Livora 2013-11-27 10:34:49 UTC
The bug is not fixed in ER5. When you place a new Lane to the left border of the designer, X-coordinate should be 0 but it is not defined. Validating output is:

ERROR [org.drools.core.xml.ExtensibleXmlParser] (http-localhost/127.0.0.1:8080-1) (null: 49, 60): cvc-complex-type.4: Attribute 'x' must appear on element 'dc:Bounds'.

The same problem is with Y-coordinate when you place the Lane to the top border.

Comment 4 Kris Verlaenen 2013-11-27 15:17:27 UTC
@Tomas, is this preventing the process from being imported, or from being validated, or from being built and deployed?  Or is this simply a warning in the server log?

Comment 5 Kris Verlaenen 2013-11-28 22:15:50 UTC
Lowering priority as this now seems to be just an error message in the server log, it doesn't seem to break any functionality.

Comment 6 Tomas Livora 2013-11-29 10:02:42 UTC
@Kris, the process containing a Lane with undefined X or Y coordinate is now validated without errors and can be built and deployed. However, there is still the error message in the server log. But you are right, this is not a big issue so I am lowering severity.

Comment 7 Kris Verlaenen 2014-01-28 23:12:19 UTC
No need to have two BZs keeping track of this

*** This bug has been marked as a duplicate of bug 958400 ***


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