• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoSuchEntityException with change of jdbc driver  RSS feed

 
Rohit Gupta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I was using CMP in my web application to access MS SQLServer
7.0 database.Everything works fine, Now our company is moving to
SQLServer 2000 and when i try to update fields in my application
through CMP, I get No Such Entity Exception in EJBStore, though all
the reads through CMP are working well.
There is absolutely no change in my application except the drivers
used in connection pool.
The Database in SQLServer 7.0 is running on default port:80 and its
named as (sqldev01). With SQLServer 7.0 I was using the driver
'weblogic.jdbc.mssqlserver4.Driver' and url is
'jdbc:weblogic:mssqlserver4'
The database in SQLServer 2000 is running as an instance server
(sqldev01\\srvapps) on a given port say 1903. With SQLServer 2000 we
are using 'weblogic.jdbc.sqlserver.SQLServerDriver' and url is
'jdbc:bea:sqlserver://sqldev01\ srvapps:1433'
Any help would be appreciated.
Thanks
Rohit
here is the stack trace ...
Exception while commiting Tx : Name=[EJB
com.ads.lserv.recon.loan.ejb.LoanInfoSessionFacadeBean.updateLoanInfo(com.ads.lserv.recon.loan.dto.LoanInfoDto,boolean)],Xid=BEA1-00102E604BAEDE336FE0(30649038),Status=Rolled
back. [Reason=javax.ejb.NoSuchEntityException: [EJB:010142]Instance of
EJB 'LoanInfo' with primary key '61058' does not exist.]
,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since
begin=1,seconds left=30,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=myserver),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@172be65),SCInfo[certification+myserver]=(state=rolledback),properties=({weblogic.transaction.name=[EJB
com.ads.lserv.recon.loan.ejb.LoanInfoSessionFacadeBean.updateLoanInfo(com.ads.lserv.recon.loan.dto.LoanInfoDto,boolean)],
weblogic.jdbc=t3://172.2.25.102:7001}),local
properties=({modifiedListeners=[weblogic.ejb20.internal.TxManager$TxListener@11782f1]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+172.2.25.102:7001+certification+t3+,
XAResources={},NonXAResources={})],CoordinatorURL=myserver+172.2.25.102:7001+certification+t3+):
javax.ejb.NoSuchEntityException: [EJB:010142]Instance of EJB
'LoanInfo' with primary key '61058' does not exist.
[ February 07, 2004: Message edited by: Rohit Gupta ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!