#10 NPE on opening document as collection by dbXMLClient

closed-fixed
5
2004-08-04
2004-08-03
No

on trying to open existing document as collection by
calling dbXMLClient.getCollection( document_name ) it
throws NullPointerException instead of some dbXMLException.

The test java file is attached.

I have tested it on dbXML-cvs-040803, Linux, JDK 1.4.2_04.

Here is the NPE:

Exception in thread "main" java.lang.NullPointerException
at
com.dbxml.db.client.xmlrpc.CollectionClientImpl.init(CollectionClientImpl.java:76)
at
com.dbxml.db.client.xmlrpc.CollectionClientImpl.<init>(CollectionClientImpl.java:64)
at
com.dbxml.db.client.xmlrpc.CollectionClientImpl.<init>(CollectionClientImpl.java:68)
at
com.dbxml.db.client.xmlrpc.dbXMLClientImpl.getCollection(dbXMLClientImpl.java:94)
at
openDocumentAsCollectionNPE.test_openDocumentAsCollection(openDocumentAsCollectionNPE.java:48)
at
openDocumentAsCollectionNPE.main(openDocumentAsCollectionNPE.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

Discussion

  • Tom Bradford

    Tom Bradford - 2004-08-04
    • status: open --> closed
     
  • Tom Bradford

    Tom Bradford - 2004-08-04
    • status: closed --> closed-fixed
     
  • Tom Bradford

    Tom Bradford - 2004-08-04

    Logged In: YES
    user_id=35410

    Corrected in CVS. Both Documents and Collections have a
    getInformation method, but each returns a Map containing
    different data, hence the NPE.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks