Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004564 [Resin] minor always 05-17-11 14:14 07-06-11 11:18
Reporter dicr View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.18
Summary 0004564: NPE in EntityManagerJtaProxy.getCurrent
Description 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)
Additional Information
Attached Files

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
05-17-11 14:14 dicr New Issue
05-17-11 14:25 dicr Note Added: 0005256
07-06-11 11:18 ferg Note Added: 0005360
07-06-11 11:18 ferg Assigned To  => ferg
07-06-11 11:18 ferg Status new => closed
07-06-11 11:18 ferg Resolution open => fixed
07-06-11 11:18 ferg Fixed in Version  => 4.0.20


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker