• Post Reply Bookmark Topic Watch Topic
  • New Topic

What happens when access a closed database server?  RSS feed

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!
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!