Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What happens when access a closed database server?

 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use RMI in my assignment, and I get RemoteDataImpl instance from ConnectionFactory. After connected, I closed my database server first. then continue to use remoteDataImpl instance. Guess, what happened?
I got NullPointerException, why? I think it should be a RemoteException. Just because my instance is got from a remote factory??
Later, I had a test, use factory only. after I close my server, the client side got a RemoteException.
Why??? I'm confused. can anybody give me a help? thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic