-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: spring/hibernate 2.1.2 transaction handling on weblogic 8.1
PostPosted: Wed Feb 25, 2004 7:33 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2003 6:24 pm
Posts: 45
Hi folks -

I think I have a similar issue to HB-360, except that using Spring for JTA transaction handling is adding another twist.

Seems like spring is closing the session as expected, but the connection is not closed just yet (as tracing shows) since spring is participating in an existing JTA transaction with weblogic; the session is getting closed during commit, but the connection hasn't been closed before the session is disposed.

I think this is likely a fact of life with weblogic not wanting any closing of the connection.

Any suggestions on how to avoid this wanring? (aside from changing the log level...)

thanks
tyson

here's a log snippet:


Code:
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|executing flush
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|post flush
DEBUG|03:25:13.584|org.springframework.transaction.jta.JtaTransactionManager|Triggering beforeCompletion synchronization

DEBUG|03:25:13.584|org.springframework.transaction.support.TransactionSynchronizationManager|Removed value [org.springfr
amework.orm.hibernate.SessionHolder@1fa0e30] for key [net.sf.hibernate.impl.SessionFactoryImpl@165d26c] from thread [Exe
cuteThread: '9' for queue: 'weblogic.kernel.Default']
DEBUG|03:25:13.584|org.springframework.orm.hibernate.SessionFactoryUtils|Closing Hibernate session
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|closing session
DEBUG|03:25:13.584|net.sf.hibernate.impl.SessionImpl|disconnecting session
DEBUG|03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|SQL Warning
java.sql.SQLWarning: Warning: execution completed with warning
        at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:949)
        at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:1035)
        at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:1062)
        at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1988)
        at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1250)
        at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2529)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2857)
        at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
        at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:536)
        at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
        at com.benefitpoint.cmp.hibernate.AbstractDataManager$2.doInHibernate(AbstractDataManager.java:410)
        at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:149)
        at com.benefitpoint.cmp.hibernate.AbstractDataManager.execRawSqlPreparedStatement(AbstractDataManager.java:435)
        at com.benefitpoint.cmp.hibernate.AbstractDataManager.execRawSql(AbstractDataManager.java:352)
        at com.benefitpoint.cmp.hibernate.marketing.RequestDataManager.getBrokerRequestDescriptions(RequestDataManager.j
ava:103)
        at com.benefitpoint.cmp.marketing.request.RequestController.getAllBrokerRequests(RequestController.java:109)
        at com.benefitpoint.cmp.marketing.BrokerMarketingMgrEJB.getAllRequests(BrokerMarketingMgrEJB.java:130)
        at com.benefitpoint.cmp.marketing.BrokerMarketingMgrEJB_st5fk_EOImpl.getAllRequests(BrokerMarketingMgrEJB_st5fk_
EOImpl.java:154)
        at com.benefitpoint.cmp.marketing.BrokerMarketingMgrEJB_st5fk_EOImpl_WLSkel.invoke(Unknown Source)
        at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
        at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
        at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
        at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
        at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
WARN |03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|SQL Warning: 17110, SQLState: null
WARN |03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|Warning: execution completed with warning


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 29, 2004 3:58 pm 
Newbie

Joined: Tue Aug 03, 2004 1:43 pm
Posts: 7
Location: Chapel Hill, NC
Quote:
WARN |03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|SQL Warning: 17110, SQLState: null
WARN |03:25:15.224|net.sf.hibernate.util.JDBCExceptionReporter|Warning: execution completed with warning


This probably isn't a bug in Hibernate. I've seen this warning when using the newest Oracle 9.2 driver against the Oracle 9.1 server.

Hope this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 5:36 pm 
Newbie

Joined: Fri Aug 05, 2005 3:50 pm
Posts: 2
bdimmick wrote:
This probably isn't a bug in Hibernate. I've seen this warning when using the newest Oracle 9.2 driver against the Oracle 9.1 server.

Hope this helps.


I am using a Oracle 10.1.0.20 Driver on a Oracle 9.2.0.9 database, and am having the same issues.

Does anyone have a solution other than suppressing all WARN level and lower logs for the net.sf.hibernate.util.JDBCExceptionReporter Logger?


Top
 Profile  
 
 Post subject: SQL Warning: 17110, SQLState: null error
PostPosted: Thu Mar 16, 2006 11:57 pm 
Newbie

Joined: Thu Mar 16, 2006 10:02 pm
Posts: 1
Location: Colorado
We are using 9.2.0.3 oracle Datbase/ ocijdbc14.jar / hibernate 3.1 / jboss 4.0.4 SP1. We get this message everytime AFTER we execute a stored procedure call.


Any ideas what this message means?

Thanks in advance.


2006-03-15 11:28:50,412 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Warning: 17110, SQLState: null
2006-03-15 11:28:50,413 WARN [org.hibernate.util.JDBCExceptionReporter] Warning: execution completed with warning



dump listed below:
2006-03-15 16:11:32,482 DEBUG [org.hibernate.util.JDBCExceptionReporter] SQL Warning
java.sql.SQLWarning: Warning: execution completed with warning
at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:949)
at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:1035)
at oracle.jdbc.dbaccess.DBError.addSqlWarning(DBError.java:1062)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1899)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1199)
at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:516)
at oracle.jdbc.driver.OracleStatement.getCursorValue(OracleStatement.java:3866)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:6042)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:5833)
at oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:698)
at org.jboss.resource.adapter.jdbc.WrappedCallableStatement.getObject(WrappedCallableStatement.java:56)
at net.voicelog.callRecordingReports.ejb.ReportSessionBean.getResponseFrequency(ReportSessionBean.java:75)
at net.voicelog.callRecordingReports.dataFiles.ResponseFrequency.prepareReport(ResponseFrequency.java:54)
at net.voicelog.callRecordingReports.dataFiles.VoicelogReport.executePDF(VoicelogReport.java:78)
at net.voicelog.callRecording.gui.actions.admin.report.ReportAction.runReport(ReportAction.java:100)
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:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at net.voicelog.callRecording.gui.actions.VoiceLogAction.dispatchMethod(VoiceLogAction.java:37)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
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:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at net.voicelog.callRecording.servlet.SecurityFilter.doFilter(SecurityFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at net.voicelog.callRecording.servlet.CompressionFilter.doFilter(CompressionFilter.java:241)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at net.voicelog.callRecording.servlet.TimingFilter.doFilter(TimingFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)


Top
 Profile  
 
 Post subject: SQL Warning: 17110, SQLState: null - solved
PostPosted: Tue Sep 05, 2006 6:00 am 
Newbie

Joined: Tue Sep 05, 2006 5:45 am
Posts: 1
I just solved the problem:

WARN [org.hibernate.util.JDBCExceptionReporter] SQL Warning: 17110, SQLState: null
WARN [org.hibernate.util.JDBCExceptionReporter] Warning: execution completed with warning

or in my case (polish version was).
WARN org.hibernate.util.JDBCExceptionReporter - SQL Warning: 17110, SQLState: null
WARN org.hibernate.util.JDBCExceptionReporter - Warning: wykonywanie ukończono z ostrzeżeniem


why i had the warning:


i had two tables:

<class name="ObjectA">
<id name="resID">
<generator class="native">
<param name="sequence">hibernate_sequence</param>
</generator>
</id>
...
<property name="someNumericValue" type="integer" />
...
</class>


<class name="ObjectB">
<key column="resID"/>
...
<property name="objectACount" formula="(SELECT sum(a.someNumericValue) from object_a a, object_b b WHERE <some rules for joining a with b> )" />
...
</class>

Warning accured because someNumericValues were null.

Property resolver was albe to count the sum but with mentioned warning.



my fix was to secure table column with 'not null' constraint, and filling null values with 0.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.