You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/05/06 16:52:06 UTC

DO NOT REPLY [Bug 8822] New: - createPath does not work for an empty DOM

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8822>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8822

createPath does not work for an empty DOM

           Summary: createPath does not work for an empty DOM
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: JXPath
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: tcurdt@apache.org


doc = new DocumentImpl();  
context = JXPathContext.newContext(doc);  
context.setFactory(new W3CFactory());  
context.createPath("/root/bla","created");  
  
throws an Exception: 
JXPathException: Exception trying to create xpath /root/bla; 
java.lang.NullPointerException 
 
The W3CFactory is attached

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>