aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
Similar Threads
SocketException when accessing servlet
init(ServletConfig config) query
Exception with session attribute.
Chapter 2 (HFSJ) notes , may be useful for anyone
How can a RequestDispatcher call a servlet in another web application?