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

            Bug ID: 60226
           Summary: ClassLoader workaround for OSGI when processing OOXML
                    files
           Product: POI
           Version: 3.16-dev
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: [email protected]
          Reporter: [email protected]

When using OSGI, the (current thread) context classloader might not see the
xmlbeans definition files (*.xsb), which results in either loading errors or
undefined behavior (e.g. the written file doesn't contain xml elements).

To workaround this, the new method POIXMLTypeLoader.setClassLoader needs to be
called before OOXML files are processed - and it's good style to null it, after
the calling code/thread is exiting.

Beside this patch, there will be a new servicemix patch in #57857 which still
needs to be adapted when POI 3.16 is out.

This has been tested and validated in Apache Felix/Sling.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to