Hello Everybody,

I am using embeded Xindice1.1. Java version 1.4.0_01. My Application is working fine in Win2000, NT,XP and even in Linux.

While running the Application in Win 98 I am facing a problem.

The code is as below:

After running the code:

String message1 = "<?xml version=\"1.0\"?><forums></forums>";
Collection col = DatabaseManager.getCollection("xmldb:xindice-embed:///db/"+collectionName1);
XMLResource document = (XMLResource) col.createResource("forummetadata","XMLResource");
document.setContent(message1);
col.storeResource(document);


I am fetching the datas with :

Document doc=null;
try
{
doc = MyCollectionManager.getXMLObject("forummetadata","gdCollection");
Element edoc = doc.getDocumentElement();


           NodeList nList = edoc.getElementsByTagName("forum");
           System.out.println(nList.getLength());
     }
catch(){}

It is giving a Null Pointer Exception.
Is there problem in fetching the Document or the Document is not added ? Can anybody throw some light in the problem.


Avik Chatterjee

_________________________________________________________________
Watch Hallmark. Enjoy cool movies. http://server1.msn.co.in/sp03/hallmark/index.asp Win hot prizes!




Reply via email to