SimpleJxtaApp

Bruce Rosenthal <[email protected]>
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
So just starting and got this NullPointerException throw in the 
SimpleJxtaApp.java (it compiles fine, though):

Exception in thread "main" java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:61)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
        at 
net.jxta.impl.document.LiteXMLDocument.<init>(LiteXMLDocument.java:253)
        at 
net.jxta.impl.document.LiteXMLDocument$Instantiator.newInstance(LiteXMLDocument.java:147)
        at 
net.jxta.document.StructuredDocumentFactory.newStructuredDocument(StructuredDocumentFactory.java:520)
        at 
net.jxta.document.AdvertisementFactory.newAdvertisement(AdvertisementFactory.java:284)
        at SimpleJxtaApp.createConfig(SimpleJxtaApp.java:74)
        at SimpleJxtaApp.startJxta(SimpleJxtaApp.java:92)
        at SimpleJxtaApp.main(SimpleJxtaApp.java:38)

Using NetBeans IDE and have added the all the JXTA distribution .jars to 
my Library. Also have PlatformConfig.master in .jxta directory.

I see in the startJxta() method that File home = new 
File(System.getProperties("JXTA_HOME",".jxta")); and that if the test 
for File home !configured passes, that createConfig() is called.

I tried also for the case of not having the PlatformConfig.master in 
.jxta and that also throws this same NullPointerException

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.