Using XQSL w/Datasource : ClassCastException

I'm attempting to use XSQL in a Websphere 5.1 test server (WSAD) and I am getting this error:
Oracle XML Developers Kit 10.1.0.2.0 - Production
XML-25017: Unexpected Error Occurred
java.lang.ClassCastException: com.ibm.ejs.cm.proxy.OracleCallableStatementProxy
at oracle.xml.xsql.actions.XSQLRefCursorFunctionHandler.handleAction(XSQLRefCursorFunctionHandler.java:102)
The datasource in question is setup correctly since it works as implemented in the web app. XSQL appears setup correctly because it works with using XSQLConnectionManagerFactoryImpl and <connectiondefs>, and it also works using a AS400JDBCDriver Datasource with XSQLOracleDatasourceConnectionManager.
I'm using classes12.jar (and have tried it with the latest 3 versions). I'm using jdbc:oracle:thin with oracle.jdbc.pool.OracleConnectionPoolDataSource.
Finally, (not sure if this helps) when I decompile XSQLRefCursorFunctionHandler, line 102 appears to bomb here (see below), so I added a "date-format" attribute and value just for funzzies, without change in result:
if(s1 != null && !s1.equals(""))
oraclexmlquery.setDateFormat(s1);
boolean flag1 = s9 != null
&& (s9.equalsIgnoreCase("yes")
|| s9.equalsIgnoreCase("y"));
I'd would greatly appreciate some help.
Thanks in advance!
Monte

One possible reason is that i am using javax.sql.datasource in the source code but the DataSource has been defined with "com.evermind.sql.DriverManagerDataSource" throwing the classcast exception.
any idea in which jar the "com.evermind.sql.DriverManagerDataSource" class can be found ?

Similar Messages

  • Error executing query using oracle XA datasource

    Hi,
    The following is the error I am getting while trying to access a resource from a datasource. The same code works fine if I use a normal datasource(non-xa datasource)
    Configuration: WSAD 5.1 running over jre ver 1.4 and oracle 8.1.7. I have put classes12.zip in the classpath of the server.
    Code:
    DBSelect sel = new DBSelect();
    sel.setDataSourceName("jdbc/ds1");
    sel.setInitialContextFactory("com.ibm.websphere.naming.WsnInitialContextFactory");
    sel.setProviderUrl("iiop://localhost:2809/");
    sel.setCommand("select 1 from dual");
    sel.execute();
    System.out.println(sel.getConnectionSpec());
    if (sel.onRow()) {
    do {
    System.out.println(sel.getColumnAsString(1));
    } while (sel.next());
    sel.close();
    I have also tried using the beolow mentioned code, which aso fails with a similar exception
              DataSource ds = (DataSource)PortableRemoteObject.narrow(ctx.lookup("jdbc/ds1"), DataSource.class);
              ds.setLogWriter(new PrintWriter(System.out));
              Connection con = ds.getConnection();
              Statement s = con.createStatement();
              ResultSet rs = s.executeQuery("select 1 from dual")
    I will really appreciate if someone can help me here to solve this problem
    Stack trace:
    [5/31/04 14:58:59:625 IST] 22502250 WSRdbXaResour E DSRA0304E: XAException occurred. XAException contents and details are: The cause is : null.
    [5/31/04 14:58:59:625 IST] 22502250 WSRdbXaResour E DSRA0302E: XAException occurred. Error code is: XAER_PROTO. Exception is: <null>
    [5/31/04 14:58:59:625 IST] 22502250 XATransaction E J2CA0027E: An exception occurred while invoking start on an XA Resource Adapter from dataSource jdbc/ds1, within transaction ID {XID: formatId(57415344), gtrid_length(39), bqual_length(28), data(000000000000000300000003ad952b20e108c7e0e2d5482ee84c69877b2dcf5e73657276657231ad952b20e108c7e0e2d5482ee84c69877b2dcf5e0000000336233623)}: javax.transaction.xa.XAException
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.transaction.xa.XAException.<init>(XAException.java:63)
    at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:146)
    at com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl.start(WSRdbXaResourceImpl.java:927)
    at com.ibm.ejs.j2c.XATransactionWrapper.start(XATransactionWrapper.java:1267)
    at com.ibm.ws.Transaction.JTA.JTAResourceBase.start(JTAResourceBase.java:164)
    at com.ibm.ws.Transaction.JTA.RegisteredResources.startRes(RegisteredResources.java:389)
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1903)
    at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    [5/31/04 14:58:59:656 IST] 22502250 RegisteredRes E WTRN0078E: An attempt by the transaction manager to call start on a transactional resource has resulted in an error. The error code was XAER_PROTO. The exception stack trace follows: javax.transaction.xa.XAException
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.transaction.xa.XAException.<init>(XAException.java:63)
    at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:146)
    at com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl.start(WSRdbXaResourceImpl.java:927)
    at com.ibm.ejs.j2c.XATransactionWrapper.start(XATransactionWrapper.java:1267)
    at com.ibm.ws.Transaction.JTA.JTAResourceBase.start(JTAResourceBase.java:164)
    at com.ibm.ws.Transaction.JTA.RegisteredResources.startRes(RegisteredResources.java:389)
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1903)
    at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    [5/31/04 14:58:59:656 IST] 22502250 XATransaction E J2CA0030E: Method enlist caught javax.transaction.SystemException: Failed to start the transaction association.
    at java.lang.Throwable.<init>(Throwable.java)
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.transaction.SystemException.<init>(SystemException.java:39)
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1917)
    at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    while trying to enlist resources from datasource jdbc/ds1 with the Transaction Manager for the current transaction, and threw a ResourceException.
    DSRA9002E: ResourceException with error code null: javax.resource.ResourceException: enlist: caught Exception
    at java.lang.Throwable.<init>(Throwable.java)
    at java.lang.Throwable.<init>(Throwable.java)
    at javax.resource.ResourceException.<init>(ResourceException.java:73)
    at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:703)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1446)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:329)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMetaData(WSJdbcConnection.java:1037)
    at com.ibm.db.db.base.DatabaseConnection.getConnectionMetaData(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.propagateAutoCommit(DatabaseConnection.java)
    at com.ibm.db.db.DatabaseConnection.connect(DatabaseConnection.java)
    at com.ibm.db.db.Statement.connect(Statement.java)
    at com.ibm.db.db.SelectStatement.execute(SelectStatement.java)
    at com.ibm.db.beans.DBSelect.execute(DBSelect.java)
    at com.rajeev.SeqBeanBean.getNextVal(SeqBeanBean.java:18)
    at com.rajeev.EJSRemoteStatelessSeqBean_25304796.getNextVal(EJSRemoteStatelessSeqBean_25304796.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
    at java.security.AccessController.doPrivileged(AccessController.java:189)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
    at $Proxy1.getNextVal(Unknown Source)
    at com.rajeev._SeqBean_Stub.getNextVal(_SeqBean_Stub.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:68)
    at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
    at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
    Rgds,
    Dave

    I am facing the same problem..... I always get the answers to my problem by reading the forums.. This time I am really not lucky enough. I am using Oracle 8.1.7. Does it have anything to do with version. I have used both ojdb14.jar and classes12.jar to get the same error output.
    Anybody has answer to it?

  • HeuristicHazard within a transaction using only one DataSource

    We have an ejb 2.0 application running under WL 7.0 SP1. Its CMP beans are
              persisted in two Oracle 9i databases, some beans from different databases
              are related (have CMR). We are using XA Oracle JDriver for both pools.
              The javax.transaction.HeuristicMixedException exception occurred when the
              client application called getId() method on the local interface of one of
              the beans. The client is a webapp deployed together with the ejbs in the one
              EAR.
              The mentioned bean doesn't have any CMR with any bean from the other
              database, and its transaction attribute is 'Required'. Therefore method call
              which resulted in HeuristicMixedException was using only one DataSource. Why
              did exception happened?
              

    No.
    There is a very slight increase in performance if you have two chips of the same size, but it is something that will only really show up in benchmarks.
    Get 1GB now and leave the other 256MB chip in there. When you have an extra $80 around doing nothing, grab another stick.

  • Using Excel as  Datasource in Crystal Reports 8.5

    I have never used Excel as a source for Crystal data and I am having a bit of an issue I believe. I have an Excel file on my desktop that I am using as the datasource. Eventually it will be out on a network drive. I set up all my reports as blank reports so I do that. When it brings up the Data Explorer pop up I choose ODBC ---> then Excel Files and choose the file. I then add the sheet to the report, close the data explorer window and start designing my report. I drag the fields I want on there, but when I go and preview I don't see any data at all. I have also tried it with the Report Wizard, no go there either.  Is there something special I need to get the data to show up on there? Does it need to be formatted a certain way? Is it just easier to convert it over to an Access database? Any help anyone could suggest would be wonderful!
    Thanks
    Jami Benson

    I just checked something out and I figured out what I was doing wrong myself. It would seem that I was choosing the wrong sheet. One of the sheets, sheet 1, appears twice in the list. Once with the name of the whole spreadsheet, and once as just sheet 1. I was using the one with the name. It has the headings just no data. The other has the data and headings, just no name. Once I choose it, all seems to be well. '
    Jami

  • CrystalReports Subreports Demo Using XML As DataSource , Java As Tool

    Hello,
        Im New to CrystalReports.Can any one send me (or) explain me Regarding "CrystalReports Subreports Demo Using XML As DataSource , Java As Tool" .
    Thanks,
    RadhaKrishna K

    ok

  • VO using WS as datasource ?

    I'd like to use webservice as datasource for static VO deployed locally.
    Trying to implement datasourse methods like shown in the article
    http://radio.weblogs.com/0118231/stories/2003/03/03/gettingAViewObjectsResultRowsFromARefCursor.html
    , I've found that I need to create ResultSet object from retrieved xml -
    or setUserDataForCollection in some other way.
    Could someone suggest how to do this ? Thanks.
    Arkady

    I am pretty sure the XML generated is correct. It is a well-known service and I have tried some other as well. The XML looked fine when I looked at it.
    Know any public (simple) web services to test with?

  • Can SOA consume business events using non-apps datasource ?

    Hi Gurus & Experts,
    We have a scenario where EBS raises custom business event to be consumed by SOA.
    Everything works fine using APPS login, however we need to non-apps datasource in some environements (custom schema user)
    Can SOA consume business events using non-apps datasource ?
    Please let me know.
    Thanks,
    Rev

    Hi Srini,
    Even i have a similar requirement . Could you please send me the link for OracleEBSAdapterUserGuide(b_28351). ?
    Did you come to know how to check whether WF_Listener is running ?
    Thanks in advance
    Nutan

  • Diff Ways to Create OLAP Universe using BI/BW DataSource?

    Hi Experts,
    I konw there are two diff ways to create olap universe using BI/BW datasource.
    1. Uisng InfoCube
    2. Using BEx Query..
    so.. I need you help to know when we use InfoCube and When We use BEx Query.
    Can you please explain me  in details and give me some pros and cons using each connection ..if there is any documentations please provide me ...
    Thanks

    Hi sap mdm1980,
    The characteristic InfoProvider (0TCTIFPROV) refers to the technical name
    of an InfoProvider. In BI, queries can be created on an InfoProvider or an
    InfoProvider can be used for reporting.
    An InfoProvider is generic term for all the DataTargets and Virtual Providers
    (VirtualProvider or MultiProvider). An InfoProvider may or may not contain data.
    Infocube is type of an infoprovider
    An InfoCube describes (from an analysis point of view) a self-contained dataset,
    for example, for a business-orientated area. You analyze this dataset in a BEx query.
    An InfoCube is a set of relational tables arranged according to the star schema:
    A large fact table in the middle surrounded by several dimension tables.
    InfoCubes are filled with data from one or more InfoSources or other InfoProviders.
    They are available as InfoProviders for analysis and reporting purposes.
    The data is stored physically in an InfoCube
    Regards
    Praveen

  • Using an Application DataSource as userid

    I was wondering if it was possible to use a jdbc DataSource in place of entering the userid connection string?
    ie something like this:
    http://<host>:<port>/reports/rwservlet?report=myreport.jsp&userid=call to datasource
    Instead of this:
    http://<host>:<port>/reports/rwservlet?report=myreport.jsp&userid=user/pwd@orcl
    Perhaps if there someone knows of documentation that covers this, I would great appreciate it.
    Thanks

    I was wondering if it was possible to use a jdbc DataSource in place of entering the userid connection string?
    ie something like this:
    http://<host>:<port>/reports/rwservlet?report=myreport.jsp&userid=call to datasource
    Instead of this:
    http://<host>:<port>/reports/rwservlet?report=myreport.jsp&userid=user/pwd@orcl
    Perhaps if there someone knows of documentation that covers this, I would great appreciate it.
    Thanks

  • ArrayDescriptor + DataSource = ClassCastException

    Hi all,
    I have an issue with creating ArrayDescriptors in JRun 4 when using a DataSource. I've seen this issue in a few posts in different forums but no viable solutions. The problem is that JRun returns a JRunDataSource which then returns a JRunConnectionHandle-JRunConnection. The oracle.sql.ArrayDescriptor constructor requires a connection to be passed as a parameter. When I pass the connection I obtain from the JRunDataSource, I get a ClassCastException since it's trying to cast the JRunConnectionHandle-JRunConnection to an OracleConnection.
    I've seen a few solutions which suggest using getPhysicalConnection( ) to obtain the inner connection from the JRun Wrapped Connection and then pass that connection to the ArrayDescriptor. However, this would require that I make my application only compatible with JRun since getPhysicalConnection( ) is a method of JRunConnectionHandle-JRunConnection.
    I had the same issue when I placed this application in Tomcat 5.5 since the DataSource returned by Tomcat is a BasicDataSource which then returns a PoolableConnection. However, in Tomcat, I was able to configure the DataSource in the Server.xml by adding type= "oracle.jdbc.pool.OracleDataSource" and factory="oracle.jdbc.pool.OracleDataSourceFactory". After configuring the DataSource with these two Attributes, an OracleDataSource was returned instead of a BasicDataSource in Tomcat. I was hoping to have a similar solution for JRun since this solution does not require any server specific code in my application.
    Below is my configuration for both Tomcast 5.5 and JRun 4. Tomcat returns an OracleDataSource which is what I need. JRun returns a JRunDataSource which causes a ClassCastException when I use its connections for an ArrayDescriptor. Any help is greatly appreciated:
    Tomcat 5.5
    name="jdbc/my_jndi_name" auth="Container" type="oracle.jdbc.pool.OracleDataSource" factory="oracle.jdbc.pool.OracleDataSourceFactory"
    maxActive="20" maxIdle="10" maxWait="10000"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@my_db_url:1521:my_db" user="user" password="pw" connectionCachingEnabled="true"
    JRun 4
    <data-source>
    <dbname>my_jndi_name</dbname>     
    <driver>oracle.jdbc.driver.OracleDriver</driver> 
    <url>jdbc:oracle:thin:@my_db_url:1521:my_db</url>
    <username>user</username>
    <password>D46FCD1E3EC74BC58D68FB06AF961666</password>
    <encrypted>true</encrypted>
    <encryption-class>jrun.security.JRunCrypterForTwofish</encryption-class>
    <native-results>true</native-results>
    <remove-on-exceptions>true</remove-on-exceptions>
    <pool-statements>true</pool-statements>
    <initial-connections>1</initial-connections>
    <connection-timeout>1200</connection-timeout>
    <transaction-timeout>20</transaction-timeout>
    <cache-enabled>false</cache-enabled>
    <cache-size>5</cache-size>
    <cache-refresh-interval>30</cache-refresh-interval>
    <jndi-name>my_jndi_name</jndi-name>
    <poolname>Pool</poolname>
    <minimum-size>0</minimum-size>
    <maximum-size>2147483647</maximum-size>
    <user-timeout>20</user-timeout>
    <skimmer-frequency>420</skimmer-frequency>
    <shrink-by>5</shrink-by>
    <maximum-soft>true</maximum-soft>
    <debugging>false</debugging>
    <disable-pooling>false</disable-pooling>
    <description>Oracle connection</description>
    </data-source>Thank you,
    Dave

    Hi all,
    I have an issue with creating ArrayDescriptors in JRun 4 when using a DataSource. I've seen this issue in a few posts in different forums but no viable solutions. The problem is that JRun returns a JRunDataSource which then returns a JRunConnectionHandle-JRunConnection. The oracle.sql.ArrayDescriptor constructor requires a connection to be passed as a parameter. When I pass the connection I obtain from the JRunDataSource, I get a ClassCastException since it's trying to cast the JRunConnectionHandle-JRunConnection to an OracleConnection.
    I've seen a few solutions which suggest using getPhysicalConnection( ) to obtain the inner connection from the JRun Wrapped Connection and then pass that connection to the ArrayDescriptor. However, this would require that I make my application only compatible with JRun since getPhysicalConnection( ) is a method of JRunConnectionHandle-JRunConnection.
    I had the same issue when I placed this application in Tomcat 5.5 since the DataSource returned by Tomcat is a BasicDataSource which then returns a PoolableConnection. However, in Tomcat, I was able to configure the DataSource in the Server.xml by adding type= "oracle.jdbc.pool.OracleDataSource" and factory="oracle.jdbc.pool.OracleDataSourceFactory". After configuring the DataSource with these two Attributes, an OracleDataSource was returned instead of a BasicDataSource in Tomcat. I was hoping to have a similar solution for JRun since this solution does not require any server specific code in my application.
    Below is my configuration for both Tomcast 5.5 and JRun 4. Tomcat returns an OracleDataSource which is what I need. JRun returns a JRunDataSource which causes a ClassCastException when I use its connections for an ArrayDescriptor. Any help is greatly appreciated:
    Tomcat 5.5
    name="jdbc/my_jndi_name" auth="Container" type="oracle.jdbc.pool.OracleDataSource" factory="oracle.jdbc.pool.OracleDataSourceFactory"
    maxActive="20" maxIdle="10" maxWait="10000"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@my_db_url:1521:my_db" user="user" password="pw" connectionCachingEnabled="true"
    JRun 4
    <data-source>
    <dbname>my_jndi_name</dbname>     
    <driver>oracle.jdbc.driver.OracleDriver</driver> 
    <url>jdbc:oracle:thin:@my_db_url:1521:my_db</url>
    <username>user</username>
    <password>D46FCD1E3EC74BC58D68FB06AF961666</password>
    <encrypted>true</encrypted>
    <encryption-class>jrun.security.JRunCrypterForTwofish</encryption-class>
    <native-results>true</native-results>
    <remove-on-exceptions>true</remove-on-exceptions>
    <pool-statements>true</pool-statements>
    <initial-connections>1</initial-connections>
    <connection-timeout>1200</connection-timeout>
    <transaction-timeout>20</transaction-timeout>
    <cache-enabled>false</cache-enabled>
    <cache-size>5</cache-size>
    <cache-refresh-interval>30</cache-refresh-interval>
    <jndi-name>my_jndi_name</jndi-name>
    <poolname>Pool</poolname>
    <minimum-size>0</minimum-size>
    <maximum-size>2147483647</maximum-size>
    <user-timeout>20</user-timeout>
    <skimmer-frequency>420</skimmer-frequency>
    <shrink-by>5</shrink-by>
    <maximum-soft>true</maximum-soft>
    <debugging>false</debugging>
    <disable-pooling>false</disable-pooling>
    <description>Oracle connection</description>
    </data-source>Thank you,
    Dave

  • Report in Crystal CRXI using Workshop class datasource

    I am trying to create a report using Crystal Reports XI that uses a Workshop class as a datasource. The documentation for V10 and XI says that any compiled java class that has a public method returning a java.sql.ResultSet object can be used as a data source.
    I followed an example in the Crystal documentation that uses a bean compiled outside of Workshop and it works fine. When I try to point the config file to my Workshop classes, it does not list any of my class files. Has anybody successfully done this?

    Hi Sudhir,
    For Building up a connection for OLEDB  we need :
    In order for Crystal Reports to connect to a database through OLE DB, there are some requirements that must be met:
    u2022     The database client software must be installed on the client machine.
    u2022     The client machine must be able to connect to the server from its client software
    u2022     The client softwareu2019s working directory (example. c:\orant\bin) must be in the Windows search path
    u2022     The OLE DB provider must be installed on the local machine.
    We have the connection for crystal reports through OLEDB :
    The process by which Crystal Reports access data from an OLE DB data source consists of these five layers:
    Crystal Reports Layer
    OLE DB Translation Layer
    OLE DB Layer
    DBMS Translation (OLE DB provider) Layer
    Database Layer
    The data translation is similar to the ODBC connection model. Crystal Reports uses CRDB_ADO.DLL to communicate to the OLE DB provider, which communicates to the database. Crystal Reports can connect to any database as long as that database has an OLE DB provider.
    When creating a new report in Crystal Reports, OLE DB data sources are found in the Create New Connection folder with the OLE DB (ADO) connection.
    Regards,
    Naveen.

  • How to use EBW_DQ_SS for datasource 0UC_SALES_STATS_02

    Hello All,
    Could someone please guide me how to use the OLTP transaction code EBW_DQ_SS. It is mentioned in help.sap that we need to execute this t-code to update data to the delta queue of datasource 0UC_SALES_STAT_02.
    I tried running this t-code with following selections:
    Date ID: Current Date; Run ID = any key; Posting date: 1st Jan 2010 - 31st Dec 2010.
    But however much I try, no data is updated to the delta queue. (Data is available in tables ERDK and ERCH)
    Kindly help.
    Thanks & Regards,
    Labanya.

    First In BW, execute  infopackages:
    Full u2013 returns 0
    Init u2013 returns 0     
    Then Go to  R/3, run EBW_DQ_SS.  Select a date and deactivate old runs.  Select a date 1 year in the future to be sure all old runs are deactivated.  Unlock mass activity type and delete old runs. 
    Execute EBW_DQ_SS by entering your inputs.
    The above mass activity run will populate the delta queue.
    Then Run Delta Info pkg which will pull records into BW
    Thanks
    KPK

  • How do I use a JNDI datasource in my application?

    Not sure how to access the JNDI datasource i setup in my config.xml. I tried to browse it at rmi://localhost:1099/ but it only shows jmxrmi in the tree.
    My config.xml looks like
    <n1:config xsi:schemaLocation="http://www.bea.com/ns/wlevs/config/server wlevs_server_config.xsd" xmlns:n1="http://www.bea.com/ns/wlevs/config/server" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <netio>
        <name>NetIO</name>
        <port>9002</port>
      </netio>
      <work-manager>
        <name>JettyWorkManager</name>
        <min-threads-constraint>5</min-threads-constraint>
        <max-threads-constraint>10</max-threads-constraint>
      </work-manager>
      <jetty>
        <name>JettyServer</name>
        <network-io-name>NetIO</network-io-name>
        <work-manager-name>JettyWorkManager</work-manager-name>
      </jetty>
      <rmi>
        <name>RMI</name>
        <http-service-name>JettyServer</http-service-name>
      </rmi>
      <jndi-context>
        <name>JNDI</name>
      </jndi-context>
      <exported-jndi-context>
        <name>exportedJndi</name>
        <rmi-service-name>RMI</rmi-service-name>
      </exported-jndi-context>
      <jmx>
        <jndi-service-name>JNDI</jndi-service-name>
        <rmi-service-name>RMI</rmi-service-name>
        <rmi-registry-port>1099</rmi-registry-port>
        <rmi-jrmp-port>9999</rmi-jrmp-port>
      </jmx>
      <transaction-manager>
          <name>transactionmanager</name>
          <!--max-resource-requests-on-server>1</max-resource-requests-on-server>
          <max-resource-unavailable-millis>1000</max-resource-unavailable-millis-->
      </transaction-manager>
      <data-source>   
          <name>hqsqlconn</name>   
          <driver-params>     
            <url>jdbc:hsqldb:hsql://localhost/wlevdb</url>
            <driver-name>org.hsqldb.jdbcDriver</driver-name>
            <properties>
              <element>
                <name>user</name>
                <value>sa</value>
              </element>
              <element>
                <name>password</name>
                <value></value>
              </element>
            </properties>
            <use-xa-data-source-interface>true</use-xa-data-source-interface>   
          </driver-params>   
          <connection-pool-params>     
            <initial-capacity>1</initial-capacity>     
            <max-capacity>5</max-capacity>     
            <test-table-name>test_table</test-table-name>   
          </connection-pool-params>   
          <data-source-params>     
            <jndi-names>
              <element>hqsqlconn</element>
            </jndi-names>
            <global-transactions-protocol>TwoPhaseCommit</global-transactions-protocol>
          </data-source-params> 
      </data-source>
    </n1:config>

    I see what you are saying.
    The JNDI approach should work-we will try to reproduce this internally.
    I would recommend leveraging the OSGi service registry, instead of using JNDI, however. The Event Server is a modular server based on OSGi, so one should use the OSGi service registry whenever possible instead of using the jndi registry. Jndi is primarily there to support legacy code that requires Jndi.
    Any data sources that you configure are automatically registered in the OSGi service registry. When there is more than one data source they can be distinguished using their name.
    There are a couple of options.
    If you want to inject a reference to your datasource into a Spring bean, you can use an annotation, @Service, to annotate a setter method on your bean (see my previous post). The container will then inject a reference to the data source into the bean.
    You can also put the following in your spring application context file
    <osgi:reference id="myDataSource"
    interface="javax.sql.DataSource"/>
    This creates a bean proxy that references the datasource by looking up the datasource in the OSGi service registry. It works similarly to JndiObjectFactoryBean, but it uses the OSGi service registry instead of the JNDI registry. You can read more about it here
    http://www.springframework.org/osgi/specification
    (Look in section 3.3)
    Hope that helps.
    Seth
    Edited by swhite at 08/01/2007 6:19 PM

  • Can a web service be used as the datasource for a View Object?

    Has anyone used a web service as the datasource for a View Object?
    I am trying to do the same thing as "Publishing BC4J Components as a Web Service" example, except I want to recreate the View Objects on the client so that I can iterate through them and display them on a web page.
    I probably have two choices:
    1. Use the web service as the datasource.
    2. Use a file as the datasource with no data and then populate the View Objects from the XML from the Web Service.
    Please advise.
    Thank you.
    Richard Catlin
    SAIC

    You can adapt the examples provided in the BC4J Toy Store demo for how to build a programmatically-populated view object to create a view object that fetches its data from a web service.
    The methods that you need to override are the same for any kind of programmatically-populated view object.

  • How to use Set type datasources ?

    Hi,
    Our team has recently implemented CRM for one of our clients and now are integrating BW with CRM. Thus are developing corresponding objects in BW.
    In CRM, the team has created many set types and made those BW relevant as a result system created datasources for each attribute of the set type.
    Has anybody used set types to extract data into BW?
    Regards,
    Vikrant.

    Hi
    go to this guide
    http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_7_0/user/guide/uccx70edgs.pdf
    and see the chapter
    "Designing Scripts for use with the Cisco Application Gateway"

Maybe you are looking for