Issue Type: Bug Bug
Affects Versions: 1.4.3
Assignee: Joerg Schaible
Components: IO
Created: 04/Oct/12 4:02 PM
Description:

We re-packaged xstream and xpp as osgi-bundles with proper meta-data, but the current XppDriver will fail to load XmlPullParserFactory.

We suggest the following code:
protected synchronized XmlPullParser createParser() throws XmlPullParserException {
if (factory == null) {
try { factory = XmlPullParserFactory.newInstance(null, XppDriver.class); } catch (final XmlPullParserException ex) { // fall-back for OSGi environment factory = XmlPullParserFactory.newInstance(); }
}
return factory.newPullParser();
}

Fix Versions: 1.4.3
Project: XStream
Priority: Major Major
Reporter: Marco Lehmann-Mörz
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to