• Post Reply Bookmark Topic Watch Topic
  • New Topic

jboss server

 
murali vempaty
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using the jboss first time and I went thro the tutorial and trying to implement the interest sample ejb. Its compiling ok but when I run the client java program, I am getting the following error:java.lang.NullPointerException.
Can some one tell me why I am getting this?
Thanks in advance.
Murali.
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you are referencing a null object (probably invoking method on something that has a null value). Look at the stack trace from the exception. Go to the line where the exception originated and then put some print statements nearby, printing the value of various objects used in the statement. When you discover which is null, go to where you think you are setting the value and add some more print statements. Eventually you'll track down where the problem is coming from.
--Mark
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you deploy the EJB successfully?
Simon
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!