The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications

4.1k views Asked by At

FIRST STEP THIS CODE IS NO ERROR

SAXBuilder   builder = new SAXBuilder  (true);
  Document doc = builder.build ( surveyFile );

SECONT STEP I Call Fragment com.google.android.gms.maps.SupportMapFragment IS NO ERROR

BUT RETRY FIRST STEP call is Error

  SAXBuilder   builder = new SAXBuilder  (true);
  Document doc = builder.build ( surveyFile );

12-17 09:12:06.397: W/ActivityThread(12130): ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader()); 12-17 09:12:06.402: W/System.err(12130): org.jdom.JDOMException: Could not load org.apache.xerces.parsers.SAXParser: SAX2 driver class org.apache.xerces.parsers.SAXParser not found: Didn't find class "org.apache.xerces.parsers.SAXParser" on path: .

Why this Error?

0

There are 0 answers