Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3793

java.lang.NumberFormatException: empty String in BPMNShapeHandler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jBPM 6.0.0.CR5
    • jBPM 5.3
    • Designer
    • None

      If you place a node on the leftmost side of the Designer canvas, its dc:Bounds element will have no "x" attribute instead of x="0.0". (Same for "y" as well)

            <bpmndi:BPMNShape id="_n9qVIgL9EeKZsfKPjMeuRg" bpmnElement="_AC5C6BFC-8C95-4353-A9A6-BFF3812ACF99">
              <dc:Bounds height="30.0" width="30.0" y="60.0"/>
            </bpmndi:BPMNShape>
      

      NumberFormatException will be thrown when you build the package. (In case of BRMS 5.3.0, NumberFormatException is thrown when you save the process)

      17:30:27,487 INFO  [stdout] (http-localhost-127.0.0.1-8080-12) (null: 37, 57): cvc-complex-type.4: Attribute 'x' must appear on element 'dc:Bounds'.
      17:30:43,174 ERROR [stderr] (http-localhost-127.0.0.1-8080-12) java.lang.IllegalArgumentException: Invalid bounds for node _AC5C6BFC-8C95-4353-A9A6-BFF3812ACF99
      17:30:43,176 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.jbpm.bpmn2.xml.di.BPMNShapeHandler.end(BPMNShapeHandler.java:84)
      17:30:43,176 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:417)
      17:30:43,177 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      17:30:43,177 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
      17:30:43,178 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      17:30:43,178 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      17:30:43,179 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      17:30:43,179 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      17:30:43,180 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      17:30:43,180 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      17:30:43,181 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      17:30:43,181 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      17:30:43,182 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
      17:30:43,182 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:296)
      17:30:43,183 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:175)
      17:30:43,183 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
      17:30:43,183 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:247)
      17:30:43,184 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:652)
      17:30:43,184 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:664)
      17:30:43,184 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.compile(BPMN2ProcessHandler.java:253)
      17:30:43,184 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.builder.PackageAssemblerBase.compile(PackageAssemblerBase.java:91)
      17:30:43,185 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.builder.PackageAssemblerBase.buildAsset(PackageAssemblerBase.java:75)
      17:30:43,185 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.builder.PackageAssembler.addAsset(PackageAssembler.java:128)
      17:30:43,185 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.builder.PackageAssembler.loadAllButDRLAssets(PackageAssembler.java:112)
      17:30:43,185 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.builder.PackageAssembler.loadAssets(PackageAssembler.java:102)
      17:30:43,186 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.builder.PackageAssembler.buildPackage(PackageAssembler.java:94)
      17:30:43,186 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.drools.guvnor.server.builder.PackageAssembler.compile(PackageAssembler.java:65)
      ...
      17:30:43,197 ERROR [stderr] (http-localhost-127.0.0.1-8080-12) Caused by: java.lang.NumberFormatException: empty String
      17:30:43,197 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1012)
      17:30:43,198 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at java.lang.Float.valueOf(Float.java:405)
      17:30:43,198 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at java.lang.Float.<init>(Float.java:506)
      17:30:43,198 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  at org.jbpm.bpmn2.xml.di.BPMNShapeHandler.end(BPMNShapeHandler.java:75)
      17:30:43,199 ERROR [stderr] (http-localhost-127.0.0.1-8080-12)  ... 65 more
      

              kverlaen@redhat.com Kris Verlaenen
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: