Communication failure [message #527138] |
Wed, 14 April 2010 04:38  |
Eclipse User |
|
|
|
Hi,
I'm facing strange Eclipselink behavior with my web application that is running on Tomcat 6.0.26
There is a method which gets data from MS SQL Server 2000. This method throws an exception after several succesfull calling (5-7).
Can anybody help?
Thanks
public List<Expedice> getExpediceList() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("metroPU");
EntityManager em = emf.createEntityManager();
Query q = em.createQuery("select e from Expedice e order by e.datum desc");
q.setHint(QueryHints.REFRESH, "true");
expediceList = q.getResultList();
em.close();
emf.close();
return expediceList;
}
[EL Info]: 2010-04-14 09:24:43.764--ServerSession(8532343)--EclipseLink, version: Eclipse Persistence Services - 1.1.1.v20090430-r4097
[EL Config]: 2010-04-14 09:24:43.764--ServerSession(8532343)--Connection(28617320)-- connecting(DatabaseLogin(
platform=>SQLServerPlatform
user name=> ""
connector=>JNDIConnector datasource name=>java:comp/env/jdbc/DBMetro
))
[EL Config]: 2010-04-14 09:24:43.78--ServerSession(8532343)--Connection(32912386)--C onnected: jdbc:microsoft:sqlserver://pha-ei:1433 ;NETADDRESS=000000000000;HOSTPROCESS=0;SENDSTRINGPARAMETERSA SUNICODE=true;LOGINTIMEOUT=0;DATABASENAME=METRO;PROGRAMNAME= ;SELECTMETHOD=direct;WSID=
User: metro
Database: Microsoft SQL Server Version: Microsoft SQL Server 2000 - 8.00.2055 (Intel X86)
Dec 16 2008 19:46:53
Copyright (c) 1988-2003 Microsoft Corporation
Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
Driver: SQLServer Version: 2.2.0040
[EL Config]: 2010-04-14 09:24:43.78--ServerSession(8532343)--Connection(13664178)--c onnecting(DatabaseLogin(
platform=>SQLServerPlatform
user name=> ""
connector=>JNDIConnector datasource name=>java:comp/env/jdbc/DBMetro
))
[EL Config]: 2010-04-14 09:24:43.78--ServerSession(8532343)--Connection(15164692)--C onnected: jdbc:microsoft:sqlserver://pha-ei:1433 ;NETADDRESS=000000000000;HOSTPROCESS=0;SENDSTRINGPARAMETERSA SUNICODE=true;LOGINTIMEOUT=0;DATABASENAME=METRO;PROGRAMNAME= ;SELECTMETHOD=direct;WSID=
User: metro
Database: Microsoft SQL Server Version: Microsoft SQL Server 2000 - 8.00.2055 (Intel X86)
Dec 16 2008 19:46:53
Copyright (c) 1988-2003 Microsoft Corporation
Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
Driver: SQLServer Version: 2.2.0040
[EL Info]: 2010-04-14 09:24:43.78--ServerSession(8532343)--file:/C:/Program%20File s/Apache%20Software%20Foundation/Tomcat%206.0/webapps/metro/ WEB-INF/classes/-metroPU login successful
[EL Info]: 2010-04-14 09:24:44.639--ServerSession(8532343)--Communication failure detected when attempting to perform read query outside of a transaction. Attempting to retry query.
[EL Warning]: 2010-04-14 09:24:44.639--UnitOfWork(10197552)--java.lang.NullPointerExc eption
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03726 seconds