Oliver Brinzing pisze:
Hi,

can someone give me a hint why this fails in DEV300m49:

this.xFactory = javax.xml.xpath.XPathFactory.newInstance();

i get a NullpointerException at javax.xml.xpath.XPathFactoryFinder._newFactory()
uri is "http://java.sun.com/jaxp/xpath/dom";

same extension runs without any problems with oo 3.1

JRE is 1.6_14 in both cases (vista 32)

Heh, I got thousands of problems with newFactory() and newInstance() - as it depends on the classloader, and many JREs behave differently. I found out that under Mac OS X Java 1.5 sometimes has the context classloader == null, so you simply need to set the context classloader to your class classloader:

Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

Maybe this will help you a bit also with Java 1.6 in DEV300m49. It just sounds a bit familiar... But this might be a regression and you might want to file an issue.

Regards
 Marcin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to