Jboss @persistencecontext entitymanager null




















NullPointerException at org. NullPointerException at Service. Dave Tolls. First off, do not put Java code in a JSP page. That processing code finding books should be part of a servlet , which would call the Service code itself then forward the result to a JSP for display.

What's the problem of putting java in a JSP? Do you mind writing me an example? I will change my code and come back to you. My persistence. Thanks in advance. Jayanta P. I have the same question 0. This content has been marked as final. Show 3 replies. Could you describe a bit more how the application is packed. Replacing existing managed bean class type ClientsBean with ClientsBean. ICEfaces 2.

DynamicInterceptor f7c0]. ICEpush 2. ManagedBeanCreationException: Cant instantiate class: my. NullPointerException at boundary. Kumaravadivel Subramani.

Just a thought.. Thanks for the reply. I trimmed down the output from above to focus on the caught exception. I figured out the problem while I was preparing to post a response.

I was going to post the entire lifecycle so it can be reviewed. In doing so I moved the initialisation of the companyFacade from the JSF bean constructor to the getTitle method, and that was the problem. Unable to figure out whats wrong. Thank you in advance. The error is in the instantiation of PersonSessionBean :. But you also must be aware that the client class Index2Controller is container-managed too, and from the code posted it looks like it's not the case.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. EntityManager is null Ask Question. Asked 8 years, 5 months ago. Active 8 years, 5 months ago.



0コメント

  • 1000 / 1000