• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help on EJB QL-Weblogic6.1 example????

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i am doing ejb2.0 examples in weblogic6.1. i deployed the cascade one-to-many example. its deployed well. when i am running the client i am getting the following errors. here i am listing both client,server console error.
client console error:
--------------------
�,+@�,+@wlserver6.1\config\mydomain\clientclasses>java examples.ejb20.cascadeDele
te.one2many.Client

Beginning examples.ejb20.one2many.Client...

Creating bank ...
Bank successfully created

Create Accounts and customers:
There was an exception while creating and using the Accounts.
This indicates that there was a problem communicating with the server: java.rmi.
RemoteException: EJB Exception: ; nested exception is:
javax.ejb.EJBException: EJB Exception:
- with nested exception:
[java.sql.SQLException: [Oracle][ODBC][Ora]ORA-01475: must reparse cursor to cha
nge bind variable datatype]

Start server side stack trace:
java.rmi.RemoteException: EJB Exception: ; nested exception is:
javax.ejb.EJBException: EJB Exception:
- with nested exception:
[java.sql.SQLException: [Oracle][ODBC][Ora]ORA-01475: must reparse cursor to cha
nge bind variable datatype]
java.sql.SQLException: [Oracle][ODBC][Ora]ORA-01475: must reparse cursor to chan
ge bind variable datatype
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:2533)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedState
ment.java:217)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPrepare
dStatement.java:139)
at weblogic.jdbc.pool.Statement.executeUpdate(Statement.java:293)
at weblogic.jdbc.rmi.internal.PreparedStatementImpl.executeUpdate(Prepar
edStatementImpl.java:64)
at weblogic.jdbc.rmi.SerialPreparedStatement.executeUpdate(SerialPrepare
dStatement.java:58)
at examples.ejb20.cascadeDelete.one2many.AccountEJB_OneToMany_fcmrkf__We
bLogic_CMP_RDBMS.__WL_create(AccountEJB_OneToMany_fcmrkf__WebLogic_CMP_RDBMS.jav
a:1312)
at examples.ejb20.cascadeDelete.one2many.AccountEJB_OneToMany_fcmrkf__We
bLogic_CMP_RDBMS.ejbPostCreate(AccountEJB_OneToMany_fcmrkf__WebLogic_CMP_RDBMS.j
ava:1238)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:583)
at weblogic.ejb20.manager.DBManager.localCreate(DBManager.java:471)
at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.
java:167)
at examples.ejb20.cascadeDelete.one2many.AccountBean_fcmrkf_LocalHomeImp
l.create(AccountBean_fcmrkf_LocalHomeImpl.java:76)
at examples.ejb20.cascadeDelete.one2many.BankBean.createAccount(BankBean
.java:219)
at examples.ejb20.cascadeDelete.one2many.BankBean.createAccountAndCustom
er(BankBean.java:47)
at examples.ejb20.cascadeDelete.one2many.BankBean_lyeh5t_EOImpl.createAc
countAndCustomer(BankBean_lyeh5t_EOImpl.java:36)
at examples.ejb20.cascadeDelete.one2many.BankBean_lyeh5t_EOImpl_WLSkel.i
nvoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:265)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
javax.ejb.EJBException: EJB Exception:
- with nested exception:
[java.sql.SQLException: [Oracle][ODBC][Ora]ORA-01475: must reparse cursor to cha
nge bind variable datatype]
at weblogic.ejb20.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeU
tils.java:142)
at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJ
BLocalHome.java:202)
at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.
java:178)
at examples.ejb20.cascadeDelete.one2m�
server side error:
-----------------
Create Accounts and customers:
Creating account account0 with a balance of 0.0 account type null...
Account account0 successfully created
Creating customer customer0...
Customer customer0 successfully created
Creating account account1 with a balance of 1000.0 account type Savings...
weblogic.common.ResourceException: No resources available
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:568)
at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
java:400)
at weblogic.common.internal.ResourceAllocator.reserveNoWait(ResourceAllo
cator.java:368)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
ava:166)
at weblogic.jdbc.common.internal.ConnectionPool.reserveNoWait(Connection
Pool.java:127)
at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiData
Source.java:194)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:219)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSP
ersistenceManager.java:313)
at examples.ejb20.cascadeDelete.one2many.AccountEJB_OneToMany_fcmrkf__We
bLogic_CMP_RDBMS.__WL_exists(AccountEJB_OneToMany_fcmrkf__WebLogic_CMP_RDBMS.jav
a:1362)
at examples.ejb20.cascadeDelete.one2many.AccountEJB_OneToMany_fcmrkf__We
bLogic_CMP_RDBMS.__WL_create(AccountEJB_OneToMany_fcmrkf__WebLogic_CMP_RDBMS.jav
a:1332)
at examples.ejb20.cascadeDelete.one2many.AccountEJB_OneToMany_fcmrkf__We
bLogic_CMP_RDBMS.ejbPostCreate(AccountEJB_OneToMany_fcmrkf__WebLogic_CMP_RDBMS.j
ava:1238)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:583)
at weblogic.ejb20.manager.DBManager.localCreate(DBManager.java:471)
at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.
java:167)
at examples.ejb20.cascadeDelete.one2many.AccountBean_fcmrkf_LocalHomeImp
l.create(AccountBean_fcmrkf_LocalHomeImpl.java:76)
at examples.ejb20.cascadeDelete.one2many.BankBean.createAccount(BankBean
.java:219)
at examples.ejb20.cascadeDelete.one2many.BankBean.createAccountAndCustom
er(BankBean.java:47)
at examples.ejb20.cascadeDelete.one2many.BankBean_lyeh5t_EOImpl.createAc
countAndCustomer(BankBean_lyeh5t_EOImpl.java:36)
at examples.ejb20.cascadeDelete.one2many.BankBean_lyeh5t_EOImpl_WLSkel.i
nvoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:265)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


waiting for early response.
seenu
 
reply
    Bookmark Topic Watch Topic
  • New Topic