RDBMS Event Generator Issue - JDBC Result Set Already Closed
All -
I am having a problem with an RDBMS event generator that has been exposed by our Load Testing. It seems that after the database is under load I get the following exception trace:
<Aug 7, 2007 4:33:06 PM EDT> <Info> <EJB> <BEA-010213> <Message-Driven EJB: PollerMDB_SessionRqt_1186515408009's transaction was rolledback. The transact ion details are: Xid=BEA1-7F8C65474500D80A5B94(218826722),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepli esOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,XAServerResourceInfo[JMS_Affinity_cgJMSStore_auto_1]=(ServerResourceInfo[JMS_Affi nity_cgJMSStore_auto_1]=(state=rolledback,assigned=wli_int_1),xar=JMS_Affinity_cgJMSStore_auto_1,re-Registered = false),XAServerResourceInfo[ACS.Telcordi a.XA.Pool]=(ServerResourceInfo[ACS.Telcordia.XA.Pool]=(state=rolledback,assigned=wli_int_1),xar=ACS.Telcordia.XA.Pool,re-Registered = false),XAServerReso urceInfo[JMS_Affinity_cgJMSStore_auto_2]=(ServerResourceInfo[JMS_Affinity_cgJMSStore_auto_2]=(state=rolledback,assigned=wli_int_2),xar=null,re-Registered = false),SCInfo[wli_int_domain+wli_int_2]=(state=rolledback),SCInfo[wli_int_domain+wli_int_1]=(state=rolledback),properties=({START_AND_END_THREAD_EQUAL =false}),local properties=({weblogic.jdbc.jta.ACS.Telcordia.XA.Pool=weblogic.jdbc.wrapper.TxInfo@d0b2687}),OwnerTransactionManager=ServerTM[ServerCoordin atorDescriptor=(CoordinatorURL=wli_int_1+128.241.233.85:8101+wli_int_domain+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl, Affinity_cgPool, J MS_Affinity_cgJMSStore_auto_1, ACSDispatcherCP_XA, ACS.Dispatcher.RDBMS.Pool, ACS.Telcordia.XA.Pool},NonXAResources={})],CoordinatorURL=wli_int_1+128.241 .233.85:8101+wli_int_domain+t3+).>
<Aug 7, 2007 4:33:06 PM EDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean threw an Exception in onMessage(). The exception was:
javax.ejb.EJBException: Error occurred while processing message received by this MDB. This MDB instance will be discarded after cleanup; nested exceptio n is: java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages.
javax.ejb.EJBException: Error occurred while processing message received by this MDB. This MDB instance will be discarded after cleanup; nested exception is: java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages
java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages
at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.fetchUsingResultSet(RDBMSIntrusiveQryMDB.java:561)
at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.onMessage(RDBMSIntrusiveQryMDB.java:310)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:400)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:333)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:298)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2698)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2523)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: java.sql.SQLException: Result set already closed
at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:105)
at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:67)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.next()Z(Unknown Source)
at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.handleResultSet(RDBMSIntrusiveQryMDB.java:611)
at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.fetchUsingResultSet(RDBMSIntrusiveQryMDB.java:514)
... 8 more
javax.ejb.EJBException: Error occurred while processing message received by this MDB. This MDB instance will be discarded after cleanup; nested exception is: java.lang.Exception: Error occurred while preparing messages for Publication or while Publishing messages
at com.bea.wli.mbconnector.rdbms.intrusive.RDBMSIntrusiveQryMDB.onMessage(RDBMSIntrusiveQryMDB.java:346)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:400)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:333)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:298)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2698)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2523)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
>
I have tried several things and had my team do research but we have not been able to find an answer to the problem.
If anyone can offer any insight as to why we might be getting this error it would be greatly appreciated. Thanks!
i also have same error during load testing, mainly this error
"Unexpected exception while enlisting XAConnection java.sql.SQLException"
i tried rerunning after increasing connection pool sizes, transaction timeout, but no luck, marginal improvement in performance though
also tried changing the default tracking levl to none, but no luck.
i am with 8.1SP5, how about you ?
do share if you are able to bypass these errors
cheers
Similar Messages
-
Hi everyone,
I know that there are already several threats on this issue, but none of them seems to sovle my issue.
Hence, I'll try it again.
JDeveloper: 11.1.1.3.0
Action: Doing a delete of a row in an entity-based view object, doing a commit. Doing the exact same thing again, but now with an error : java.sql.SQLException: Result set already closed
I'm unable to reproduce in a simple case.
I tried to remove the commit statement, without success.
I tried the following code:
Map sessionMap;
BindingContext context;
String currentFrameName;
DataControlFrame dcFrame;
sessionMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
context = (BindingContext)sessionMap.get(BindingContext.CONTEXT_ID);
currentFrameName = context.getCurrentDataControlFrame();
dcFrame = context.findDataControlFrame(currentFrameName);
dcFrame.commit();
dcFrame.beginTransaction(null); Also without success.
This is my original java code:
OperationBinding deleteOper =
ADFUtils.findOperation(OPERATION_DELETEINVOICE);
deleteOper.execute();
List errors = deleteOper.getErrors();
if (errors != null && !errors.isEmpty()) {
for (Object o : errors) {
logger.severe("Error during delete invoice : " + o + "-----" +
o.getClass());
//Committing the transaction
OperationBinding commitOper = ADFUtils.findOperation(OPERATION_COMMIT);
commitOper.execute();
errors = commitOper.getErrors();
if (errors != null && !errors.isEmpty()) {
for (Object o : errors) {
logger.severe("Error during commit delete invoice : " + o +
"-----" + o.getClass());
}Does anyone have any idea's to tackle this problem?
Thank you in advance.
Filip Huysmans.
<InvoiceFlowManagedBean><removeInvoice> Error during delete invoice : oracle.jbo.AttributeLoadException: JBO-27022: Kan waarde niet laden bij index 1 met Java-object van type java.lang.Integer vanwege java.sql.SQLException.-----class oracle.jbo.AttributeLoadException
<Utils><buildFacesMessage> ADF: Adding the following JSF error message: Result set already closed
java.sql.SQLException: Result set already closed
at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:110)
at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:65)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.getInt(Unknown Source)
at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:506)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2318)
at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3622)
at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2203)
at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:5325)
at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5174)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3304)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3164)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2154)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4853)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2914)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRowDeleted(ViewRowSetIteratorImpl.java:3141)
at oracle.jbo.server.ViewRowSetImpl.notifyRowDeleted(ViewRowSetImpl.java:1964)
at oracle.jbo.server.ViewObjectImpl.notifyRowDeleted(ViewObjectImpl.java:10729)
at oracle.jbo.server.ViewObjectImpl.notifyRowDeleted(ViewObjectImpl.java:10767)
at oracle.jbo.server.QueryCollection.removeRow(QueryCollection.java:4038)
at oracle.jbo.server.QueryCollection.afterRemove(QueryCollection.java:4003)
at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:12662)
at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1354)
at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1370)
at oracle.jbo.server.EntityCache.notifyStateChange(EntityCache.java:1499)
at oracle.jbo.server.EntityImpl.setState(EntityImpl.java:4895)
at oracle.jbo.server.EntityImpl.remove(EntityImpl.java:8477)
at oracle.jbo.server.ViewRowImpl.doRemove(ViewRowImpl.java:3196)
at oracle.jbo.server.ViewRowImpl.remove(ViewRowImpl.java:3241)
at oracle.jbo.server.QueryCollection.doRemove(QueryCollection.java:2425)
at oracle.jbo.server.QueryCollection.remove(QueryCollection.java:2448)
at oracle.jbo.server.ViewRowSetImpl.removeRowAt(ViewRowSetImpl.java:2396)
at oracle.jbo.server.ViewRowSetIteratorImpl.doRemoveCurrentRow(ViewRowSetIteratorImpl.java:2448)
at oracle.jbo.server.ViewRowSetIteratorImpl.removeCurrentRow(ViewRowSetIteratorImpl.java:2473)
at oracle.jbo.server.ViewRowSetImpl.removeCurrentRow(ViewRowSetImpl.java:3252)
at oracle.jbo.server.ViewObjectImpl.removeCurrentRow(ViewObjectImpl.java:9965)
at oracle.adf.model.binding.DCIteratorBinding.removeCurrentRow(DCIteratorBinding.java:2675)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1283)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
at be.fgov.health.mediflow.medicalcosts.view.bean.InvoiceFlowManagedBean.removeInvoice(InvoiceFlowManagedBean.java:957)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at be.fgov.health.mediflow.medicalcosts.view.util.JSFUtils.resolveMethodExpression(JSFUtils.java:96)
at be.fgov.health.mediflow.medicalcosts.components.bean.RemoveConfirmationManagedBean.performRemove(RemoveConfirmationManagedBean.java:59)
hi Filip
Filip Huysmans wrote:
... Doing the exact same thing again, but now with an error : java.sql.SQLException: Result set already closed ...Maybe My Oracle Support note 1077305.1, "Random JBO-27122 and 'Closed Statement' Errors when Running ADF 11g App With XA Datasources", can help.
Its "Solution" says
"Don't use XA Datasources with ADF. So when creating a datasource in the WebLogic server make sure to change the Datasource JDBC driver from “Oracle’s Driver (Thin XA)” to “Oracle’s Driver (Thin)”. "
success
Jan Vervecken -
"java.sql.SQLException: Result set already closed" on weblogic 9.1
Hello together,
i'm using hibernate 3.2.5ga on weblogic 9.1 through a data source with JTA defined to access oracle 10 with the Oracle's Thin XA Driver. Sporadically i get this:
Caused by: java.sql.SQLException: Result set already closed
at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:102)
at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:58)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.getInt(Unknown Source)
at org.hibernate.type.IntegerType.get(IntegerType.java:28)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2096)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1380)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
at org.hibernate.loader.Loader.getRow(Loader.java:1206)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
at org.hibernate.loader.Loader.doQuery(Loader.java:701)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
This exception is thrown when i try to execute a named query for retrieving some data.
Does anybody know what is wrong?
Edited by eazy_rida at 12/17/2007 8:32 AMHi Joe
Here is the full stack trace:
org.springframework.orm.hibernate3.HibernateSystemException: Exception occurred inside setter of uk.co.cpp.ptarmigan.domain.npp.NppCoveredParty.assets; nested exception is org.hibernate.PropertyAccessException: Exception occurred inside setter of uk.co.cpp.ptarmigan.domain.npp.NppCoveredParty.assets
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:379)
at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:872)
at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:868)
at uk.co.cpp.ptarmigan.business.dao.hibernate.HibernateNppPolicyDAOImpl.findPolicyByPolicyNumber(HibernateNppPolicyDAOImpl.java:109)
at uk.co.cpp.testptarmigan.PartyServiceTest.testFetchPhoneAngelUser(PartyServiceTest.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: org.hibernate.PropertyAccessException: Exception occurred inside setter of uk.co.cpp.ptarmigan.domain.npp.NppCoveredParty.assets
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:65)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:337)
at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:200)
at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3571)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:133)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
at org.hibernate.loader.Loader.doQuery(Loader.java:729)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.loadCollection(Loader.java:1994)
at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:63)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)
at org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:454)
at org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:844)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:241)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:912)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernate(HibernateTemplate.java:881)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374)
... 28 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:42)
... 52 more
Caused by: org.hibernate.exception.GenericJDBCException: could not initialize a collection: [uk.co.cpp.ptarmigan.domain.npp.NppCoveredParty.assets#component[partyId,policyId]{partyId=77951, policyId=78632}]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.loadCollection(Loader.java:2001)
at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:63)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at org.hibernate.collection.PersistentBag.toArray(PersistentBag.java:257)
at java.util.Collections.sort(Collections.java:158)
at uk.co.cpp.ptarmigan.domain.npp.NppCoveredParty.setAssets(NppCoveredParty.java:54)
... 57 more
Caused by: java.sql.SQLException: Result set already closed
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137)
at weblogic.jdbc.rmi.internal.ResultSetImpl_weblogic_jdbc_wrapper_ResultSet_oracle_jdbc_driver_OracleResultSetImpl_922_WLStub.next(Unknown Source)
at weblogic.jdbc.rmi.internal.ResultSetStub_weblogic_jdbc_rmi_internal_ResultSetImpl_weblogic_jdbc_wrapper_ResultSet_oracle_jdbc_driver_OracleResultSetImpl_922_WLStub.next(Unknown Source)
at weblogic.jdbc.rmi.internal.ResultSetStraightReader.next(ResultSetStraightReader.java:27)
at weblogic.jdbc.rmi.SerialResultSet.next(SerialResultSet.java:84)
at org.hibernate.loader.Loader.doQuery(Loader.java:697)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.loadCollection(Loader.java:1994)
... 66 more
Caused by: java.sql.SQLException: Result set already closed
at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:102)
at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:58)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.next(Unknown Source)
at weblogic.jdbc.rmi.internal.ResultSetImpl_weblogic_jdbc_wrapper_ResultSet_oracle_jdbc_driver_OracleResultSetImpl.next(Unknown Source)
at weblogic.jdbc.rmi.internal.ResultSetImpl_weblogic_jdbc_wrapper_ResultSet_oracle_jdbc_driver_OracleResultSetImpl_WLSkel.internalInvoke1(Unknown Source)
at weblogic.jdbc.rmi.internal.ResultSetImpl_weblogic_jdbc_wrapper_ResultSet_oracle_jdbc_driver_OracleResultSetImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:550)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:440)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:436)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:58)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:975)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
We are using using a connection within a client application (in our case we are executing this from a jUnit Integration test) so could this be caused by the handling of these remote connections? -
Java.sql.SQLException: Result set already closed
Hi,
Our application is getting migrated to weblogic 10.3.5 and java 1.6.
We use Ibatis(2.3.0.677.jar) in our application, when i am running my application, I get below exception in weblogic 10.3.5 with TransactionManager as JNDI.
NOTE: This applicaiton runs very well in weblogic 9.2. And I have even tried locally using the JUnit with transactionManager as SIMPLE which works well too.
BFSCITWA170546|CSI_APP_ID_NA|ERROR |0|2011-09-06 18:02:16,464|[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'|AbstractMessageConsumerMdb.java|:- [System] Failed processing message - rolling back
com.citi.eztop.ezengine.refactoring.common.exception.MessageProcessingException: DAOException received
at com.citi.eztop.ezengine.refactoring.workpublishing.mdb.WorkPublisherQueueConsumerMDB.handleTextMessage(WorkPublisherQueueConsumerMDB.java:87)
at com.citi.eztop.ezengine.refactoring.common.mdb.AbstractMessageConsumerMdb.onMessage(AbstractMessageConsumerMdb.java:163)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:574)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:477)
at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:282)
at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:120)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: com.citi.eztop.ezengine.refactoring.common.exception.DAOException: Failed to queryForObject [WorkItem.getWorkItemById]
at com.citi.eztop.ezengine.refactoring.common.persistence.sqlmapdao.BaseSqlMapDao.queryForObject(BaseSqlMapDao.java:60)
at com.citi.eztop.ezengine.refactoring.common.persistence.sqlmapdao.WorkItemSqlMapDao.getWorkItemById(WorkItemSqlMapDao.java:15)
at com.citi.eztop.ezengine.refactoring.workpublishing.businesslayer.WorkPublisher.process(WorkPublisher.java:73)
at com.citi.eztop.ezengine.refactoring.workpublishing.mdb.WorkPublisherQueueConsumerMDB.handleTextMessage(WorkPublisherQueueConsumerMDB.java:83)
... 8 more
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/citi/eztop/ezengine/refactoring/common/persistence/sqlmapdao/sql/WorkItem.xml.
--- The error occurred while applying a result map.
--- Check the WorkItem.workItemResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.sql.SQLException: Result set already closed
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:185)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForObject(GeneralStatement.java:104)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:566)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:541)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForObject(SqlMapClientImpl.java:83)
at com.citi.eztop.ezengine.refactoring.common.persistence.sqlmapdao.BaseSqlMapDao.queryForObject(BaseSqlMapDao.java:56)
... 11 more
Caused by: java.sql.SQLException: Result set already closed
at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:144)
at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:97)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.next(Unknown Source)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.ibatis.common.jdbc.logging.ResultSetLogProxy.invoke(ResultSetLogProxy.java:47)
at $Proxy78.next(Unknown Source)
at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:380)
at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleMultipleResults(SqlExecutor.java:301)
at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:190)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteQuery(GeneralStatement.java:205)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:173)
... 17 more
Please help me to resolve this issue, as I am stuck with this.Hi Joe,
Thanks alot for your reply, but the same code is working in weblogic 9.2 and it is in production as well.
I have even replicated the settings of 9.2 to 10.3, but still was not able to fnd out the issue.
Anyways will file an SR and provide it for you.
Thanks,
Addhankkiv -
Getting Error message"Result set already closed"
i am getting java.lang.reflect.InvocationTargetException when i write code as
rs.clearWarnings();
rs.close();
rs = null;
but i am not getting any exception when write as
rs.close();
rs = null;
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.rbi.aas.util.BusinessDelegateBean.service(BusinessDelegateBean.java:119)
at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.service(Unknown Source)
at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl_CBV.service(Unknown Source)
at org.rbi.aas.util.CommonWebUtil.processRequest(CommonWebUtil.java:48)
at org.rbi.aas.trans.actionclass.BankMergerAction.execute(BankMergerAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.sql.SQLException: Result set already closed
at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:144)
at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:97)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.clearWarnings(Unknown Source)
at org.rbi.aas.util.DAOManagerImpl.resetResultSet(DAOManagerImpl.java:72)
at org.rbi.aas.trans.dao.BankMergerDAO.getMerger(BankMergerDAO.java:95)
at org.rbi.aas.trans.model.BankMergerFacadeBean.service(BankMergerFacadeBean.java:73)
at org.rbi.aas.trans.model.BankMergerFacade_2lp38w_ELOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
at org.rbi.aas.trans.model.BankMergerFacade_2lp38w_ELOImpl.service(Unknown Source)
... 41 more
[17.07.2013 16:07:00]-[INFO]-[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)']-[BusinessDelegateBean]-[[TRC] - service - BusinessDelegateBean:service: Reached at InvocationTargetException class java.sql.SQLException]
BusinessException Caught
java.lang.Exception: Result set already closed
at org.rbi.aas.util.BusinessDelegateBean.service(BusinessDelegateBean.java:137)
at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.service(Unknown Source)
at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl_CBV.service(Unknown Source)
at org.rbi.aas.util.CommonWebUtil.processRequest(CommonWebUtil.java:48)
at org.rbi.aas.trans.actionclass.BankMergerAction.execute(BankMergerAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)rs.clearWarnings();
rs.close();
rs = null;
above code works perfectly well in jdeveoper 10g .....i am facing problem in JDeveloper 11.1.2.4.0...recently we have migrated to new weblogic server -
Recursive delete cause error: result set already closed
hi, will appreciate if someone can help me out on this. i need to delete the thread in a forum such that everytime administrator clicks to delete a thread, i need to recursively delete all the children too. however, when i have a thread with, say 2 children, only the 1st child can be deleted. i got this error msg: result set already closed. below is my codes. anyone can help? thks!
public boolean deleteChat (long lngChatID) {
strSQL = "delete from Chat_Tbl where Chat_Id = ? ";
pst1 = con.prepareStatement(strSQL);
pst1.setLong(1,lngChatID);
intRowsUpdated = pst1.executeUpdate();
strSQL = "select Chat_Id " +
"from Chat_Tbl " +
"where Parent_Id = ? ";
pst1 = con.prepareStatement(strSQL);
pst1.setLong(1,lngChatID);
rs1 = pst1.executeQuery();
while (rs1.next()) {
lngNewChatID = rs1.getLong(1);
deleteChat(lngNewChatID);
}Hello
strSQL = "delete from Chat_Tbl where Chat_Id = ? ";Can this statement be modified like this
strSQL = "delete from Chat_Tbl where Parent_Id = ? ";
HTH
VJ -
How to create an RDBMS event generator using wlst on weblogic 10.3
how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration"
but i can' t find this class in classpath on weblogic 10.3, pls help me, thanks. code sample is better.Hi,
RDBMS Event Generator Channel Rule Definition
When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
You should always use the navigation links provided and create a new channel rule definition.
http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
Regards,
Kal -
New article: Exploring the WebLogic Integration 8.1 RDBMS Event Generator
Dev2Dev has just published an article that you may be interested in:
Exploring the WebLogic Integration 8.1 RDBMS Event Generator
http://dev2dev.bea.com/pub/a/2007/02/rdbms-event-generator.html
If you'd like to write for Dev2Dev on a WebLogic Integration (or any other) topic, please contact me!
Regards,
Jon
Jon Mountjoy - Editor, Dev2Dev - http://dev2dev.bea.com/pub/au/13If you are using a cluster you need to make sure the connection pool and data source are deployed on the admin server. I have had this problem many times before.
-
Gor The result set is closed after switch to latest microsoft JDBC driver
The same code works fine with the previous version of the microsoft JDBC driver, but throws
com.microsoft.sqlserver.jdbc.SQLServerException: The result set is closed.
for the JDBC driver 4.
Please Help!
Thanks.I found the same exception when dealing with ResultSetMetaData.
Using the old driver (1.2.2828.100) it was possible to do something like:
Statement s = con.createStatement();
ResultSet r = s.executeQuery("select * from <table>");
ResultSetMetaData m = r.getMetaData();
r.close();
s.close();
int numCols = m.getColumnCount();
But using the new driver (2.0.1803.100) it complains that the result set is closed.
The solution was to keep the ResultSet and Statement open until after the ResultSetMetaData is no longer needed. It is somewhat inconvenient because before it was possible to have a utility method that would return a ResultSetMetaData object and not have to worry about keeping the Statement and ResultSet objects around.
I was hoping for a speed increase for batch inserts by having the latest driver, sadly there is no performance gain. -
WLST Script for RDBMS Event Generator
Hello WLI Gurus,
I need the WLST Script for RDBMS Event Generator. There was a script in dev2dev but is no longer accessible. I need it for WLI 9.2.
Thanks in advance.
VarunIf you are using a cluster you need to make sure the connection pool and data source are deployed on the admin server. I have had this problem many times before.
-
RDBMS event generator & JNDI datasources
Hi everyone,
My WLI 8.1 SP5 is going nuts ! I'm under a cluster architecture, WL 8.1 SP6 with Red Hat Linux, JRockit 1.4.2_10. Deploying an application i need to create some RDBMS event generator, but when i do this, i get an NameNotFoundException looking for my jndi datasource ( see below ). The datasource is created and i can work with it, since it's a must for my application. How is it possible that a datasource exists for a web application and does not for an integration event ? Does anyone have any experience about this ? Any help will be very appreciated !!
<18-may-2007 23H47' CEST> <Error> <WLW> <000000> <Error occurred while retrieving the Database Type
javax.naming.NameNotFoundException: Unable to resolve 'DSDataSource' Resolved ; remaining name 'DSDataSource'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:924)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:230)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:154)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:188)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:258)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:363)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.bea.wli.event.util.EventUtils.getDataSourceConnection(EventUtils.java:640)
at com.bea.wli.oam.rdbmseg.RDBMSChannelValidator.setChannelValues(RDBMSChannelValidator.java:471)
at com.bea.wli.oam.rdbmseg.RDBMSChannelValidator.validate(RDBMSChannelValidator.java:218)
at com.bea.wli.oam.rdbmseg.RDBMSMainServlet.submitChannel(RDBMSMainServlet.java:327)
at com.bea.wli.oam.eg.framework.XEGMainServlet.processRequest(XEGMainServlet.java:88)
at com.bea.wli.oam.eg.framework.XEGMainServlet.doPost(XEGMainServlet.java:151)
at com.bea.wli.oam.core.BaseServlet.userService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Unknown Source)
at com.bea.wli.oam.core.BaseServlet.run()Ljava.lang.Object;(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at com.bea.wli.security.authentication.AuthenticationService.runAs(AuthenticationService.java:109)
at com.bea.wli.oam.core.BaseServlet.secureService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Unknown Source)
at com.bea.wli.oam.core.BaseServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)If you are using a cluster you need to make sure the connection pool and data source are deployed on the admin server. I have had this problem many times before.
-
i am getting the messaeg "Result set is closed".
anyone know what this is?Just a guess:
A ResultSet object is automatically closed when the Statement object that generated it is closed, re-executed, or used to retrieve the next result from a sequence of multiple results.
http://java.sun.com/j2se/1.4.1/docs/api/java/sql/ResultSet.html
Post your code next time! -
Issue with result set of query
I have the following tables:
--soccer.soccer_optical_player_gm_stats
--This is only sample data
GAME_CODE PLAYER_ID NUMBER_OF_SPRINTS
88884 84646 55
88884 64646 15
88884 55551 35
88884 88446 10
etc...--soccer.soccer_optical_team_gm_stats
--This is only sample data
GAME_CODE TEAM_ID
88884 13
88884 13
88884 15
88884 13
etc...--customer_data.cd_soccer_schedule
--sample data
GAME_DATE 5/2/2009 7:30:00 PM
GAME_CODE 88884
GAME_CODE_1032 2009050207
HOME_TEAM_ID_1032 13
HOME_TEAM_ID 5360
HOME_TEAM_NAME Los Angeles
HOME_TEAM_NICKNAME Galaxy
HOME_TEAM_ABBREV LA
AWAY_TEAM_ID_1032 15
AWAY_TEAM_ID 5362
AWAY_TEAM_NAME New York
AWAY_TEAM_NICKNAME Red Bulls
AWAY_TEAM_ABBREV RBSo using the tables above i'm trying to sum the number of sprints for each team and output it...
With the following code:
select distinct
sch.game_date,
tm.team_id,
sch.game_code,
sch.game_code_1032,
sch.home_team_id_1032,
sch.home_team_id,
sch.home_team_name,
sch.home_team_nickname,
sch.home_team_abbrev,
sch.away_team_id_1032,
sch.away_team_id,
sch.away_team_name,
sch.away_team_nickname,
sch.away_team_abbrev,
home_tm_sprints,
away_tm_sprints
-- bulk collect into distance_run_leaders
from
customer_data.cd_soccer_schedule sch,
soccer.soccer_optical_team_gm_stats tm,
select distinct
sum(plyr.number_of_sprints) as home_tm_sprints,
sch.game_code,
sch.home_team_name,
sch.away_Team_name,
sch.game_code,
rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_home
from
soccer.soccer_optical_player_gm_stats plyr,
soccer.soccer_optical_team_gm_stats tm,
customer_data.cd_soccer_schedule sch
where sch.season_id = 200921
and tm.team_id = sch.home_team_id
and sch.game_code = plyr.game_code
group by
sch.game_code,
sch.home_team_name,
sch.away_Team_name,
sch.game_code
order by rankings_order_home asc
) home_team,
select distinct
sum(plyr.number_of_sprints) as away_tm_sprints,
sch.game_code,
sch.home_team_name,
sch.away_Team_name,
sch.game_code,
rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_away
from
soccer.soccer_optical_player_gm_stats plyr,
soccer.soccer_optical_team_gm_stats tm,
customer_data.cd_soccer_schedule sch
where sch.season_id = 200921
and tm.team_id = sch.away_team_id
and sch.game_code = plyr.game_code
group by
sch.game_code,
sch.home_team_name,
sch.away_Team_name,
sch.game_code
order by rankings_order_away asc
) away_team
where sch.game_code = tm.game_code
and sch.season_id = 200921Issues:
1. The output above returns multiple entries(like 30 or so) for each game_code (i only want two entries returned for each game_code).
--(Only difference between the two result sets is the team_id, which ultimatly lets me know if it a result for the home or away team)
Something like:
GAME_DATE 5/2/2009 7:30:00 PM 5/2/2009 7:30:00 PM
TEAM_ID 13 15
GAME_CODE 88884 88884
GAME_CODE_1032 2009050207 2009050207
HOME_TEAM_ID_1032 13 13
HOME_TEAM_ID 5360 5360
HOME_TEAM_NAME Los Angeles Los Angeles
HOME_TEAM_NICKNAME Galaxy Galaxy
HOME_TEAM_ABBREV LA LA
AWAY_TEAM_ID_1032 15 15
AWAY_TEAM_ID 5362 5362
AWAY_TEAM_NAME New York New York
AWAY_TEAM_NICKNAME Red Bulls Red Bulls
AWAY_TEAM_ABBREV RB RB
HOME_TM_SPRINTS 152 152
AWAY_TM_SPRINTS 452 4522. In addition to that, I'm also having an issue trying to figure out how to do a general ranking...in the from clause i'd so a seperate ranking for just the home teams and just the away the teams. I can't seem to figure out how to merge the rankings into one, and just have one general ranking.
Edited by: user652714 on May 7, 2009 4:18 PM
Edited by: user652714 on May 8, 2009 7:14 AMok maybe I just need to give you a better understanding of what i'm trying to ultimatly do, and maybe that will help clarify things.
In the original code I posted the following subquery in the from clause...
select distinct
sum(plyr.number_of_sprints) as home_tm_sprints,
sch.game_code,
sch.home_team_name as home_team_name,
sch.game_code,
rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_home
from
soccer.soccer_optical_player_gm_stats plyr,
soccer.soccer_optical_team_gm_stats tm,
customer_data.cd_soccer_schedule sch
where sch.season_id = 200921
and tm.team_id = sch.home_team_id
and sch.game_code = plyr.game_code
group by
sch.game_code,
sch.home_team_name,
sch.away_Team_name,
sch.game_code
order by rankings_order_home asc the result set was this...
HOME_TM_SPRINTS GAME_CODE HOME_TEAM_NAME GAME_CODE RANKINGS_ORDER_HOME
576 870988 New York 870988 1
480 870991 Chicago 870991 2
435 870945 Chicago 870945 3
416 870983 San Jose 870983 4
402 870961 D.C. 870961 5
322 870972 Columbus 870972 6
236 870957 Columbus 870957 7
215 870986 Kansas City 870986 8
143 870984 Los Angeles 870984 9Here is the other subquery that i had originally posted:
select distinct
sum(plyr.number_of_sprints) as away_tm_sprints,
sch.game_code,
sch.away_team_name away_team ,
sch.game_code,
rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_away
from
soccer.soccer_optical_player_gm_stats plyr,
soccer.soccer_optical_team_gm_stats tm,
customer_data.cd_soccer_schedule sch
where sch.season_id = 200921
and tm.team_id = sch.away_team_id
and sch.game_code = plyr.game_code
group by
sch.game_code,
sch.home_team_name,
sch.away_Team_name,
sch.game_code
order by rankings_order_away ascResult rest:
AWAY_TM_SPRINTS GAME_CODE AWAY_TEAM GAME_CODE RANKINGS_ORDER_AWAY
483 870972 Chicago 870972 1
435 870945 New York 870945 2
430 870986 D.C. 870986 3
429 870984 New York 870984 4
402 870961 New England 870961 5
384 870988 San Jose 870988 6
320 870991 New England 870991 7
208 870983 Chivas USA 870983 8
118 870957 Colorado 870957 9Final output that I want/trying to get
TM_SPRINTS GAME_CODE TEAM GAME_CODE RANKINGS_ORDER
576 870988 New York 870988 1
483 870972 Chicago 870972 2
480 870991 Chicago 870991 3
435 870945 Chicago 870945 4
435 870945 New York 870945 4
430 870986 D.C. 870986 6
429 870984 New York 870984 7
416 870983 San Jose 870983 8
402 870961 D.C. 870961 9
402 870961 New England 870961 9
384 870988 San Jose 870988 11
322 870972 Columbus 870972 12
320 870991 New England 870991 13
236 870957 Columbus 870957 14
215 870986 Kansas City 870986 15
208 870983 Chivas USA 870983 16
143 870984 Los Angeles 870984 17
118 870957 Colorado 870957 18The above is what i'm going for...but if it's to difficult to merge the columns into one (instead of having a seprate column for home_team_* and away_team_* that's fine to.
Edited by: user652714 on May 11, 2009 9:04 AM -
Oracle Coherence implementation for JDBC result set
Instead of ORM, is Oracle coherence will support for accessing the data using normal JDBC calls?
If it supports JDBC , what is the CacheStore implemetation for this?
Can you provide me some example how to cache the JDBC ResultSet values and retrieve back from Cache?Hi,
I think you mix up several concepts.
user13266701 wrote:
Instead of ORM, is Oracle coherence will support for accessing the data using normal JDBC calls?At the moment (up to 3.5.x), there is no way to query Coherence via JDBC out-of-the-box. There were a couple of initiatives to provide such features but they were not part of the product, only initiatives in the Incubator, but I believe they have been dropped.
Upcoming releases may bring replacement, although I don't think it would be outright JDBC compatible, as that would imply converting an object-oriented data to result set so that you can convert it back, so it would in effect waste CPU resources.
If it supports JDBC , what is the CacheStore implemetation for this?
CacheStores have nothing to do with how you access the cache itself. Those are internal operations invoked by Coherence itself. Don't look for a relationship between querying the cache and doing anything with the cache store. The only relationship with them is that key-based operations on the cache may lead to operations on the cache store, but whether they do happen or not depends on the cache content, too.
Can you provide me some example how to cache the JDBC ResultSet values and retrieve back from Cache?If I understand, that is yet a third concept. If you indeed want to cache JDBC ResultSet-s obtained from the database, then I have to disappoint you: it is not directly possible, as the ResultSet object is an abstraction over an open database cursor, and hence it keeps a database resource. Active resources cannot be cached in Coherence. You may acquire a RowSet from the JDBC driver, which would be possible to cache, however it may not be the most efficient thing to do due to possibly not optimal serialization format used by the RowSet to serialize itself.
So if I did not answer the questions you wanted to ask, would you please explain in more detail what exactly you would like to do?
Best regards,
Robert -
JDBC Result Set from Non-Database Source
In Java, is it possible to create a result set from a non-database data source?, for example an XML file, text file, vectors, java beans
We have a Swing application that currently makes direct JDBC calls to the DB2 database for creating result sets. We want to replace JDBC calls with calls to web service, but want to still create result sets on the client, so the replacement of the datasource from database to web service call is transparent to the rest of the code.In Java, is it possible to create a result set from a
non-database data source?, Yes.
for example an XML file,
text file, vectors, java beans
We have a Swing application that currently makes
direct JDBC calls to the DB2 database for creating
result sets. We want to replace JDBC calls with calls
to web service, but want to still create result sets
on the client, so the replacement of the datasource
from database to web service call is transparent to
the rest of the code.You might want to think carefully about what you are doing.
It is fairly easy, although somewhat tedious (many methods,) to create a new type of ResultSet.
But if the above application is doing SQL via statements and expecting the result via a ResultSet then you are not just creating a ResultSet but an entire driver and one that will have to deal with SQL as well. And if you have to handle the SQL itself that means you will probably need a parser and interpreter.
Maybe you are looking for
-
K7N2 Delta-L: Strange cold boot problem & solution
My K7N2 Delta-L has a problem cold booting when the vcore is set in the bios at 1.65v of higher. After a cold boot, you get a blank black screen. I noticed that even if you run at default speeds but set the vcore to 1.65v of higher the problem still
-
Changing a link in welcome page
Hi, I'd like to change one link in the welcome page (not in the left hand menu). For example changing the BBPSC01for BBPSC03 or BBPSC02. I can't see nothing in the roles about, it is neccesary to modify the template?? I'm running a SRM 5 with integra
-
Logic Pro 7.2.3 released? Finally a quad G5 fix???
"Logic Pro 7.2.3 addresses performance issues when Logic Pro 7 is used on Mac Pro and G5 Quad computers. Logic Pro 7.2.3 is recommended for all Mac Pro and G5 Quad users. An existing Logic Pro 7.2.1 or Logic Pro 7.2.2 installation is required for thi
-
QA Refresh in 2 System Landscape
Hello, All these while I have been working on 3 system Landscape. Now, I will be working on a 2 System Landscape. One of the 4 Clients in the DEV System is the QA Client. The other System is the PRD which just have a single client as Production. Usua
-
Generate two xml reports from same execution
I need to generate a summary report and detail report from the same execution. Detail report will record all the steps marked as Record result Summary report to record only the steps that are of type Pass/Fail, Numeric Limit Test, MultiNumeric Limit