Mantis - Resin
Viewing Issue Advanced Details
4564 minor always 05-17-11 14:14 07-06-11 11:18
dicr  
ferg  
normal  
closed 4.0.18  
fixed  
none    
none 4.0.20  
0004564: NPE in EntityManagerJtaProxy.getCurrent
javax.ejb.EJBException: java.lang.NullPointerException
    at com.caucho.ejb.util.XAManager.rethrowEjbException(XAManager.java:353)
    at org.dicr.isp.ejb.Money__StatelessProxy.createValute(Money__StatelessProxy.java:92)
    at _jsp._index__jsp._jspService(index.jsp:19)
    at _jsp._index__jsp._jspService(index.jsp:13)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:64)
    at com.caucho.jsp.Page.pageservice(Page.java:542)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:194)
    at com.caucho.server.cache.ProxyCacheFilterChain.doRequestCacheable(ProxyCacheFilterChain.java:245)
    at com.caucho.server.cache.ProxyCacheFilterChain.doFilter(ProxyCacheFilterChain.java:188)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)
    at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:287)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:792)
    at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:730)
    at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:689)
    at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:669)
    at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:617)
    at com.caucho.network.listen.KeepaliveRequestTask.doTask(KeepaliveRequestTask.java:73)
    at com.caucho.network.listen.ConnectionReadTask.runThread(ConnectionReadTask.java:98)
    at com.caucho.network.listen.ConnectionReadTask.run(ConnectionReadTask.java:81)
    at com.caucho.network.listen.KeepaliveRequestTask.run(KeepaliveRequestTask.java:60)
    at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:164)
    at com.caucho.env.thread.ResinThread.run(ResinThread.java:130)
Caused by: java.lang.NullPointerException
    at com.caucho.env.jpa.EntityManagerJtaProxy.getCurrent(EntityManagerJtaProxy.java:912)
    at com.caucho.env.jpa.EntityManagerJtaProxy.persist(EntityManagerJtaProxy.java:335)
    at org.dicr.isp.ejb.Money.createValute(Money.java:17)
    at org.dicr.isp.ejb.Money__StatelessProxy.createValute(Money__StatelessProxy.java:77)
    at _jsp._index__jsp._jspService(index.jsp:19)
    at _jsp._index__jsp._jspService(index.jsp:13)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:64)
    at com.caucho.jsp.Page.pageservice(Page.java:542)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:194)
    at com.caucho.server.cache.ProxyCacheFilterChain.doRequestCacheable(ProxyCacheFilterChain.java:245)
    at com.caucho.server.cache.ProxyCacheFilterChain.doFilter(ProxyCacheFilterChain.java:188)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)
    at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:287)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:792)
    at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:730)
    at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:689)
    at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:669)
    at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:617)
    at com.caucho.network.listen.KeepaliveRequestTask.doTask(KeepaliveRequestTask.java:73)
    at com.caucho.network.listen.ConnectionReadTask.runThread(ConnectionReadTask.java:98)
    at com.caucho.network.listen.ConnectionReadTask.run(ConnectionReadTask.java:81)
    at com.caucho.network.listen.KeepaliveRequestTask.run(KeepaliveRequestTask.java:60)
    at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:164)
    at com.caucho.env.thread.ResinThread.run(ResinThread.java:130)

Notes
(0005256)
dicr   
05-17-11 14:25   
This error caused by abscent <jta-data-source> in persistence.xml where transaction-type="JTA". Adding this fix error, but NPE must be fixed anyway.

Resin is not observing changes in persistence.xml - only touching host.xml or web.xml cause resin to reread persistence.xml file.
(0005360)
ferg   
07-06-11 11:18   
env/0e74