https://bz.apache.org/bugzilla/show_bug.cgi?id=66653

            Bug ID: 66653
           Summary: XDDFValueAxis   setMajorUnit gets an exception on
                    execution
           Product: POI
           Version: unspecified
          Hardware: Macintosh
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XDDF
          Assignee: dev@poi.apache.org
          Reporter: jrme...@comcast.net
  Target Milestone: ---

The following code works in 4.1.2.  It does not work in 5.0.0 or higher:    

        XDDFValueAxis xAxis = chart.createValueAxis(AxisPosition.BOTTOM);
        XDDFValueAxis yAxis = chart.createValueAxis(AxisPosition.LEFT);

        xAxis.setTitle("Seconds Into Run");
        double xAxisMajorUnits = 300.0;
        xAxis.setMajorUnit(xAxisMajorUnits);

It gets this exception when executing

Exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException:
XML-BEANS compiled schema: Could not locate compiled schema resource
org/apache/poi/schemas/ooxml/system/ooxml/staxisunit6cc7type.xsb
(org.apache.poi.schemas.ooxml.system.ooxml.staxisunit6cc7type) - code 0
        at org.apache.xmlbeans.impl.schema.XsbReader.<init>(XsbReader.java:63)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.resolveHandle(SchemaTypeSystemImpl.java:931)
        at
org.apache.xmlbeans.SchemaComponent$Ref.getComponent(SchemaComponent.java:111)
        at org.apache.xmlbeans.SchemaType$Ref.get(SchemaType.java:1072)
        at
org.apache.xmlbeans.impl.schema.SchemaPropertyImpl.getType(SchemaPropertyImpl.java:85)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeImpl.createAttributeType(SchemaTypeImpl.java:1055)
        at
org.apache.xmlbeans.impl.values.XmlObjectBase.create_attribute_user(XmlObjectBase.java:898)
        at org.apache.xmlbeans.impl.store.Xobj.getUser(Xobj.java:1598)
        at
org.apache.xmlbeans.impl.store.Xobj.add_attribute_user(Xobj.java:2167)
        at
org.openxmlformats.schemas.drawingml.x2006.chart.impl.CTAxisUnitImpl.setVal(CTAxisUnitImpl.java:67)
        at
org.apache.poi.xddf.usermodel.chart.XDDFValueAxis.setMajorUnit(XDDFValueAxis.java:154)
        at
FilesToExcel.AWSCloudwatchTSVToExcel.writeToExcel(AWSCloudwatchTSVToExcel.java:143)
        at
FilesToExcel.AWSCloudwatchTSVToExcel.main(AWSCloudwatchTSVToExcel.java:56)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to