This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Server object." Watch "Server object." New topic

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
Hoe are you communicating with stand alone application? How did you get the String object? Runtime.getRuntime(....) ?
maha anna
I agree. Here's the link:
subject: Server object.
jQuery in Action, 3rd edition