Hi , we are using cahcedXapthAPI in our servicemix code. We are creating this
object at thread level every time and then using it to extract a value from
an XML content. 

But the problem is, I am getting the following  exception arbitarily.

java.lang.NullPointerException
            at
org.apache.xml.utils.PrefixResolverDefault.getNamespaceForPrefix(PrefixResolverDefault.java:95)
            at
org.apache.xml.utils.PrefixResolverDefault.getNamespaceForPrefix(PrefixResolverDefault.java:61)
            at org.apache.xpath.compiler.Lexer.mapNSTokens(Lexer.java:587)
            at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:265)
            at org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:96)
            at
org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:110)
            at org.apache.xpath.XPath.<init>(XPath.java:176)
            at org.apache.xpath.CachedXPathAPI.eval(CachedXPathAPI.java:284)
            at
org.apache.xpath.CachedXPathAPI.selectNodeIterator(CachedXPathAPI.java:179)
            at
org.apache.xpath.CachedXPathAPI.selectSingleNode(CachedXPathAPI.java:140)

What could be the reason for this issue?
Thanks in Advance..
-- 
View this message in context: 
http://www.nabble.com/NUllPointerexception-in-cachedxpath-api-tp22134841p22134841.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to