This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Unable to understand exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Unable to understand exception" Watch "Unable to understand exception" New topic
Author

Unable to understand exception

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Hi guys

I am not able to understand the cause of following exception



JBOSS console prints following



Please help


"Know where to find the solution and how to use it - that's the secret of success."
Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Here is the entity that I am trying to save
Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2885
    
  13

Amirr, please post the code of the ClientCustomer.java What does it actually supposed to do? If it is just a client program, then please also post the code of the EJB which uses the Customer entity.

Cheers,

Devaka.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
What about this bit from the stack trace?

I mean the last line, ClassNotFoundException?
Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Devaka Cooray wrote:Amirr, please post the code of the ClientCustomer.java What does it actually supposed to do? If it is just a client program, then please also post the code of the EJB which uses the Customer entity.

Cheers,

Devaka.



Deveka ClientCustomer.java is a simple client program. Please see below the Bean code

Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2885
    
  13

According to the stack trace, there is a problem with ClientCustomer.java too. Therefore please provide the code for that class to.

And, what do you really supposed to do with this method?


Regards,

Devaka.
Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Here you go

Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2885
    
  13

It seems that the problem is with the client program. For some reason travelAgent is not initialized. Instead of using JNDI lookup, can you check it with the dependency injection using the @EJB annotation?

Cheers,

Devaka.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to understand exception
 
Similar Threads
Problem in persisting Entity with Composite Key
Error message - chapter 11 of enterprise javaBeans 3 by O'rielly using jboss 4
Problem with context.lookup
Error message - chapter client 6.2 of enterprise javabeans 3 of o'rielly on jboss 404
ObjectInputStream creating OutOfMemoryError