• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to understand exception

 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

I am not able to understand the cause of following exception



JBOSS console prints following



Please help
 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the entity that I am trying to save
 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Devaka Cooray
Marshal
Pie
Posts: 4897
409
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about this bit from the stack trace?

I mean the last line, ClassNotFoundException?
 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4897
409
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you go

 
Devaka Cooray
Marshal
Pie
Posts: 4897
409
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic