Change By: Joerg Schaible (04/Oct/12 4:52 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:
{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();
    }

{code}
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