Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Function Sequence Error When Accessing Entity EJB

6 views
Skip to first unread message

Clive Gallagher

unread,
Sep 10, 2002, 7:35:50 AM9/10/02
to
Hi

I'm getting the following error when I try to create an instance of an
entity EJB called CorrelationBean running inside WAS 4.02 with DB2 7.2
:

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0125E Function
sequence error. SQLSTATE=HY010
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:260)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:197)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(SQLExceptionGenerator.java:448)
at COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java:1247)
at COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeUpdate(DB2PreparedStatement.java:807)
at com.ibm.ejs.cm.cache.CachedStatement.executeUpdate(CachedStatement.java:297)
at com.ibm.ejs.cm.proxy.StatementProxy.executeUpdateCommon(StatementProxy.java:294)
at com.ibm.ejs.cm.proxy.PreparedStatementProxy.executeUpdate(PreparedStatementProxy.java:49)
at EJSJDBCPersisterCMPCorrelationBean._create(EJSJDBCPersisterCMPCorrelationBean.java:73)
at com.ibm.ejs.persistence.EJSJDBCPersister.create(EJSJDBCPersister.java:260)
at com.ibm.ejs.container.ContainerManagedBeanO.postCreate(ContainerManagedBeanO.java:172)
at com.ibm.ejs.container.EJSHome.postCreate(EJSHome.java:868)
at EJSCMPCorrelationHomeBean.create(EJSCMPCorrelationHomeBean.java:37)
at EJSRemoteCMPCorrelationHome.create(EJSRemoteCMPCorrelationHome.java:25)
at ._EJSRemoteCMPCorrelationHome_Tie._invoke(_EJSRemoteCMPCorrelationHome_Tie.java:82)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2362)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

The client code that is running is called CorrelationBeanClient and is
:


Hashtable env = new Hashtable();
env.put (Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
System.out.println ("CorrelationBeanClient 1");
Context jndiContext = new InitialContext(env);
System.out.println ("CorrelationBeanClient 2");
Object ref = jndiContext.lookup("CorrelationBean");
System.out.println ("CorrelationBeanClient 3");
CorrelationHome home = (CorrelationHome)
PortableRemoteObject.narrow(ref,CorrelationHome.class);
System.out.println ("CorrelationBeanClient 4");
String key = "myKey";
String state = "state";
Correlation myCorrelation = home.create(key);
System.out.println ("CorrelationBeanClient 5");
myCorrelation.setState(state);
System.out.println ("CorrelationBeanClient 6");


The output from the client program is :

CorrelationBeanClient 1
CorrelationBeanClient 2
CorrelationBeanClient 3
CorrelationBeanClient 4
java.rmi.RemoteException: CORBA UNKNOWN 0 Maybe; nested exception is:
org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:554)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:250)
at _CorrelationHome_Stub.create(_CorrelationHome_Stub.java:211)
at CorrelationBeanClient.main(CorrelationBeanClient.java:42)


Any ideas as to what is causing this error to happen?

Thanks in advance

Clive Gallagher

Tonny Steen

unread,
Sep 10, 2002, 5:54:58 PM9/10/02
to
Try to increase the command timeout. Got the same error using VB ADO. The
stored prosedure did not return within the default timout period (30 sec.).

Tonny

0 new messages