Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server object.

 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Val,
Hoe are you communicating with stand alone application? How did you get the String object? Runtime.getRuntime(....) ?
regds
maha anna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic