aspose file tools*
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
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: 3102
    
  40

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
What would SCJP exam questions look like? -- Home -- Twitter -- 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: 3102
    
  40

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: 3102
    
  40

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