Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.NullPointerException: EJB 2.0  RSS feed

 
Hari Krishna Chaitanya Polukonda
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All:

I am just trying out examples of entity beans. I am using JBOSS 4.0.0, EJB 2.0, MyEclipse 8.6. Reason for using JBOSS 4.0.0 and EJB 2.0 is just for learning sake. I am reading head first book. In the process help me if I made any mistakes. I wrote a build file using ant to deploy this in deploy directory of JBOSS. I also have login-config.xml, standardjaws.xml and jbosscmp-jdbc.xml file in my Meta-Inf directory. I am getting this error:

java.lang.NullPointerException
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
at $Proxy0.findByPrimaryKey(Unknown Source)
at AccesesPackage.DirectorMovie.go(DirectorMovie.java:24)
at AccesesPackage.DirectorMovie.main(DirectorMovie.java:13)

My ejb.jar file:


My Jboss.xml is:



In my director package I have these files:

director home:


director component interface:



director bean:



My movie package has following files:

movie home:



movie component interface:



movie bean:


Finally I have a client class like this:



Any help is greatly appreciated. I get some confidence going by solving this example.

Thank you in advance.



 
Devaka Cooray
Marshal
Posts: 5323
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hari, it's hard to read this entire program. You will get more replies if you UseCodeTags and IsolateTheProblem. You can edit your topic by clicking the button.
 
Hari Krishna Chaitanya Polukonda
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Devak

I am new to javaranch. But any how I made the code more readable.

Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!