[ 
https://issues.apache.org/jira/browse/XMLBEANS-562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Annapurna Theerthala updated XMLBEANS-562:
------------------------------------------
    Description: 
I am getting the below error when exporting excel using POI 5 with xmlbeans 4.

 

`at java.lang.Class.forName0(Native Method)
 ````at java.lang.Class.forName(Class.java:348)
 ````at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)
 ````at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
 ````at 
org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
 Truncated. see log file for complete stacktrace

Caused By: org.apache.xmlbeans.XmlRuntimeException: 
java.lang.ClassCastException: 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to 
org.apache.xmlbeans.SchemaTypeLoader
 ````at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:164)
 ````at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
 ````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
 ````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)
 ````at java.lang.Class.forName0(Native Method)
 Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassCastException: 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to 
org.apache.xmlbeans.SchemaTypeLoader
 ````at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:162)
 ````at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
 ````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
 ````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)
 ````at java.lang.Class.forName0(Native Method)
 Truncated. see log file for complete stacktrace

I have checked that my `xmlbeans` come from `xmlbeans-4.0.0.jar` and the 
`ooxml-schema` has been removed and replaced with `poi-ooxml-full-5.0.0.jar`

{{Tried with poi-ooxml-schemas-5.0.0.jar as well. still the same issue.}}

 

  was:
I am getting the below error when exporting excel using POI 5 with xmlbeans 4.

 

{{````at java.lang.Class.forName0(Native Method)
````at java.lang.Class.forName(Class.java:348)
````at  
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)
````at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
````at 
org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
Truncated. see log file for complete stacktrace

Caused By: org.apache.xmlbeans.XmlRuntimeException: 
java.lang.ClassCastException: 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to 
org.apache.xmlbeans.SchemaTypeLoader
````at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:164)
````at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)
````at java.lang.Class.forName0(Native Method)
Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassCastException: 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to 
org.apache.xmlbeans.SchemaTypeLoader
````at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:162)
````at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
````at 
org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)
````at java.lang.Class.forName0(Native Method)
Truncated. see log file for complete stacktrace

I have checked that my `xmlbeans` come from `xmlbeans-4.0.0.jar` and the 
`ooxml-schema` has been removed and replaced with `poi-ooxml-full-5.0.0.jar`}}

{{}}

{{Tried with }}{{poi-ooxml-schemas-5.0.0.jar as well. still the same issue.}}

{{}}

{{}}{{}}


> java.lang.ClassCastException: 
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to 
> org.apache.xmlbeans.SchemaTypeLoader
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-562
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-562
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>    Affects Versions: Version 4.0.0
>            Reporter: Annapurna Theerthala
>            Priority: Major
>
> I am getting the below error when exporting excel using POI 5 with xmlbeans 4.
>  
> `at java.lang.Class.forName0(Native Method)
>  ````at java.lang.Class.forName(Class.java:348)
>  ````at 
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:161)
>  ````at 
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
>  ````at 
> org.apache.xmlbeans.metadata.system.sXMLSCHEMA.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
>  Truncated. see log file for complete stacktrace
> Caused By: org.apache.xmlbeans.XmlRuntimeException: 
> java.lang.ClassCastException: 
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to 
> org.apache.xmlbeans.SchemaTypeLoader
>  ````at 
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:164)
>  ````at 
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
>  ````at 
> org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
>  ````at 
> org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)
>  ````at java.lang.Class.forName0(Native Method)
>  Truncated. see log file for complete stacktrace
> Caused By: java.lang.ClassCastException: 
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be cast to 
> org.apache.xmlbeans.SchemaTypeLoader
>  ````at 
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.build(SchemaTypeLoaderImpl.java:162)
>  ````at 
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:168)
>  ````at 
> org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<init>(TypeSystemHolder.java:41)
>  ````at 
> org.apache.xmlbeans.metadata.system.sXMLTOOLS.TypeSystemHolder.<clinit>(TypeSystemHolder.java:44)
>  ````at java.lang.Class.forName0(Native Method)
>  Truncated. see log file for complete stacktrace
> I have checked that my `xmlbeans` come from `xmlbeans-4.0.0.jar` and the 
> `ooxml-schema` has been removed and replaced with `poi-ooxml-full-5.0.0.jar`
> {{Tried with poi-ooxml-schemas-5.0.0.jar as well. still the same issue.}}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to