Wrox Programmer Forums
|
BOOK: Professional IBM WebSphere 5.0 Application Server
This is the forum to discuss the Wrox book Professional IBM WebSphere 5.0 Application Server by Tim Francis, Eric Herness, Rob High Jr., Jim Knutson, Kim Rochat, Chris Vignola; ISBN: 9780764543661
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional IBM WebSphere 5.0 Application Server section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 21st, 2003, 01:03 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default EJB Custom Finder Failing

I built an EJB following the steps for the Inventory CMP EJB in chapter 5 on page 203 using MySQL as the database product. When I test the EJB, I have NO problems creating records in the table I created using similar create statements to the ones in your example but when I try to use the custom finders again similar create statements to the ones in your example, I get the following error (The DataBase name is CFL the Table name is Event). It looks like the custom finder is trying to use a table called q1 instead on the Event table that was coded in the EJB QL select statment:


javax.ejb.EJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.PersistenceManage rException: PMGR6022E: Error using adapter to create or execute an Interaction. com.ibm.ws.rsadapter.cci.WSInteractionImpl@29f7abb a
com.ibm.ws.ejbpersistence.utilpm.PersistenceManage rException: PMGR6022E: Error using adapter to create or execute an Interaction. com.ibm.ws.rsadapter.cci.WSInteractionImpl@29f7abb a
    at com.ibm.ws.ejbpersistence.dataaccess.DataAccessReq uestImpl.execute(DataAccessRequestImpl.java:127)
    at com.ibm.ws.ejbpersistence.beanextensions.ConcreteB eanInstanceExtensionImpl.executeQuery(ConcreteBean InstanceExtensionImpl.java:264)
    at com.ibm.ws.ejbpersistence.beanextensions.ConcreteB eanInstanceExtensionImpl.executeFind(ConcreteBeanI nstanceExtensionImpl.java:155)
    at com.jboss.cfl.ejb.ConcreteEvent_cf657097.ejbFindBy Id_Local(ConcreteEvent_cf657097.java:197)
    at com.jboss.cfl.ejb.EJSCMPEventHomeBean_cf657097.fin dById_Local(EJSCMPEventHomeBean_cf657097.java:169)
    at com.jboss.cfl.ejb.EJSLocalCMPEventHome_cf657097.fi ndById(EJSLocalCMPEventHome_cf657097.java:213)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.etools.utc.model.ReflectionMethodModel.inv oke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(In vokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(In vokeServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:258)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:872)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:491)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:173)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:199)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:331)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:432)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:343)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:592)
---- Begin backtrace for nested exception
java.sql.SQLException: General error, message from server: "Table 'cfl.q1' doesn't exist"
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.ja va:1626)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:88 6)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :945)
    at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:917)
    at com.mysql.jdbc.Connection.execSQL(Connection.java: 1841)
    at com.mysql.jdbc.Connection.execSQL(Connection.java: 1775)
    at com.mysql.jdbc.Statement.executeQuery(Statement.ja va:1220)
    at com.mysql.jdbc.DatabaseMetaData.getPrimaryKeys(Dat abaseMetaData.java:2496)
    at com.mysql.jdbc.UpdatableResultSet.checkUpdatabilit y(UpdatableResultSet.java:1924)
    at com.mysql.jdbc.UpdatableResultSet.(UpdatableResult Set.java:98)
    at com.mysql.jdbc.MysqlIO.buildResultSetWithRows(Mysq lIO.java:1207)
    at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:2 96)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :985)
    at com.mysql.jdbc.Connection.execSQL(Connection.java: 1844)
    at com.mysql.jdbc.PreparedStatement.executeQuery(Prep aredStatement.java:1458)
    at com.jboss.cfl.ejb.websphere_deploy.MYSQL_V323_1.Ev entBeanFunctionSet_cf657097.FindById(EventBeanFunc tionSet_cf657097.java:484)
    at com.jboss.cfl.ejb.websphere_deploy.MYSQL_V323_1.Ev entBeanFunctionSet_cf657097.execute(EventBeanFunct ionSet_cf657097.java:598)
    at com.ibm.ws.rsadapter.cci.WSInteractionImpl.execute (WSInteractionImpl.java:156)
    at com.ibm.ws.rsadapter.cci.WSRelationalRAAdapter.exe cuteFinder(WSRelationalRAAdapter.java:262)
    at com.ibm.ws.ejbpersistence.dataaccess.DataAccessReq uestImpl.execute(DataAccessRequestImpl.java:81)
    at com.ibm.ws.ejbpersistence.beanextensions.ConcreteB eanInstanceExtensionImpl.executeQuery(ConcreteBean InstanceExtensionImpl.java:264)
    at com.ibm.ws.ejbpersistence.beanextensions.ConcreteB eanInstanceExtensionImpl.executeFind(ConcreteBeanI nstanceExtensionImpl.java:155)
    at com.jboss.cfl.ejb.ConcreteEvent_cf657097.ejbFindBy Id_Local(ConcreteEvent_cf657097.java:197)
    at com.jboss.cfl.ejb.EJSCMPEventHomeBean_cf657097.fin dById_Local(EJSCMPEventHomeBean_cf657097.java:169)
    at com.jboss.cfl.ejb.EJSLocalCMPEventHome_cf657097.fi ndById(EJSLocalCMPEventHome_cf657097.java:213)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.etools.utc.model.ReflectionMethodModel.inv oke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(In vokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(In vokeServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:258)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:872)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:491)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:173)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:199)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:331)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:432)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:343)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:592)
javax.ejb.EJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.PersistenceManage rException: PMGR6022E: Error using adapter to create or execute an Interaction. com.ibm.ws.rsadapter.cci.WSInteractionImpl@29f7abb a
    at com.ibm.ws.ejbpersistence.beanextensions.ConcreteB eanInstanceExtensionImpl.executeFind(ConcreteBeanI nstanceExtensionImpl.java:182)
    at com.jboss.cfl.ejb.ConcreteEvent_cf657097.ejbFindBy Id_Local(ConcreteEvent_cf657097.java:197)
    at com.jboss.cfl.ejb.EJSCMPEventHomeBean_cf657097.fin dById_Local(EJSCMPEventHomeBean_cf657097.java:169)
    at com.jboss.cfl.ejb.EJSLocalCMPEventHome_cf657097.fi ndById(EJSLocalCMPEventHome_cf657097.java:213)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.etools.utc.model.ReflectionMethodModel.inv oke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(In vokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(In vokeServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:258)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:872)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:491)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:173)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:199)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:331)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:432)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:343)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:592)



 
Old August 25th, 2003, 01:24 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also having this same problem, did you find a solution?

 
Old August 25th, 2003, 03:08 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not yet! I have looked at the generated SQL and do not see any problems, BUT I can create an error message that is similar to this from mySQL directly by using the following select statement:

select * from Event q1

mySQL tries to do a showtable command on q1 with the above select statement which results in a similar error message about the cfl.q1 table not existing after it actually returns the records from the query.

If I type in:

select q1.* from Event q1

mySQL does not try to do a showtable command on q1 and returns the results with no problems

NOTE: This does not produce an error if I use DB2 as the database instead of mySQL.

Does anyone have a solution for this problem?

 
Old May 20th, 2004, 06:21 PM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have exactly the same problem on Cloudscape and WebSphere Studio. Any solutions so far ?

It seems to be related to the schema -- db mapping ?
 
Old June 2nd, 2004, 02:11 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also having this same problem with DB2, did any one found the solution?


 
Old December 10th, 2004, 11:07 AM
foo foo is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I encountered the same problem using WSAD 5.1 connecting to an Oracle 9i database.

The problem was caused by an old EJB-Database map in WSAD, even though I told WSAD to use the proper backend in the EJB deployment descriptor. Deleting the old map solved the error, so I suggest all of you wanting to get to the bottom of this, to start digging in the backend mapping xmi's...

 
Old January 6th, 2005, 08:14 PM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am facing the same problem with Oracle 9i. Could you please tell me how to delete the old EJB-database map and create a new one?

Thanks in advance.
 
Old April 15th, 2006, 07:15 PM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to seberino
Default

Hi everybody, in my case, the problem is a trigger, when i drop the trigger for the target table, i execute my create method in EJB, without restart server, and every works fine.

regards..

Richard Marques





Similar Threads
Thread Thread Starter Forum Replies Last Post
Failing DAO Tests dgalehouse BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 13 September 28th, 2009 07:13 PM
Need a zip code radius finder and calculator. baburman ASP.NET 2.0 Professional 4 December 10th, 2007 10:14 AM
Exist Finder classes to find elements into List? jeusdi .NET Framework 1.x 4 February 19th, 2007 01:31 PM
Day of week finder mrjaygreene Classic ASP Basics 6 May 13th, 2006 04:43 PM
Tips/Tricks - Record Finder Code JeffChr BOOK: Access 2003 VBA Programmer's Reference 2 January 6th, 2005 08:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.