wood burning stoves 2.0*
The moose likes Servlets and the fly likes Server object. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Server object." Watch "Server object." New topic
Author

Server object.

Val Dra
Ranch Hand

Joined: Jan 26, 2001
Posts: 439
I have a servlet now this servlet requests information from a standalone program which just waits for the requests by this servlet. Both servlet and the standalone app are located on same machine. My servlet requests a method from this app and the method has to return a Vector to it. I get a NullPointerException when i make this request. I don't know why. I tried to run some tests and i can't understand it. Now if i make the method return me a String it works fine but any other Object i get nullpointerexception. What can be causing this ?


Val SCJP <BR>going for SCJD
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Val,
Hoe are you communicating with stand alone application? How did you get the String object? Runtime.getRuntime(....) ?
regds
maha anna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server object.