× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Just from a quick look at the Hibernate source, it looks like that, while
this is being logged, the exception is, in fact, being caught and dealt with
in the code.  You'll need to turn on logging within Hibernate or your
application to see where the loop is actually happening.

Gary

> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx 
> [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of 
> andy.prince@xxxxxxxxxx
> Sent: Friday, January 09, 2004 7:09 AM
> To: java400-l@xxxxxxxxxxxx
> Subject: SQLException: Function sequence error
> 
> 
> Help... I'm beginning to panic!!!
> 
> We are about to go live & recently a new disasterous error 
> has started appearing in the WAS (V5.0.2 Base on iSeries - 
> OS/400 V5R2M0 with latest cumulative & WAS groups) logs that 
> causes Websphere to loop & tie up 99% CPU until I kill it by hand.
> 
> It was happening more regularly until I changed from using 
> the native driver to the toolbox but does still happen with 
> the toolbox driver, we are also using Hibernate.
> 
> Here's the error if anyone can help or give me a clue where 
> to look (Thanks in advance):
> 
> [08/01/04 17:54:36:820 UTC] 92c3f7c6 BatcherImpl   W
> net.sf.hibernate.impl.BatcherImpl  TRAS0014I: The following 
> exception was logged java.sql.SQLException: Function sequence error.
>       java/lang/Throwable.<init>(Ljava/lang/String;)V+4 
> (Throwable.java:85) 
>       java/lang/Exception.<init>(Ljava/lang/String;)V+1 
> (Exception.java:33) 
>       
> java/sql/SQLException.<init>(Ljava/lang/String;Ljava/lang/String;I)V+1
> (SQLException.java:34) 
>       
> com/ibm/as400/access/JDError.throwSQLException(Ljava/lang/String;)V+0
> (JDError.java:394) 
>       com/ibm/as400/access/AS400JDBCStatement.getMaxRows()I+0
> (AS400JDBCStatement.java:2241) 
>       
> net/sf/hibernate/impl/BatcherImpl.closeQueryStatement(Ljava/sql/Prepar
> edStatement;)V+0 (BatcherImpl.java:121) 
>       net/sf/hibernate/impl/BatcherImpl.closeStatements()V+0
> (BatcherImpl.java:134) 
>       
> net/sf/hibernate/impl/SessionImpl.disconnect()Ljava/sql/Connection;+0
> (SessionImpl.java:2930) 
>       
> uk/co/ltf/ltas/custinter/actions/SlaMonitorAction.releaseSession(Lnet/
> sf/hibernate/Session;)V+0 (SlaMonitorAction.java:572) 
>       
> uk/co/ltf/ltas/custinter/actions/SlaMonitorAction.execute(Lorg/apache/
> struts/action/ActionMapping;Lorg/apache/struts/action/ActionFo
> rm;Ljavax/serv
> let/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRes
> ponse;)Lorg/ap
> ache/struts/action/ActionForward;+0 (SlaMonitorAction.java:58) 
>       
> org/apache/struts/action/RequestProcessor.processActionPerform(Ljavax/
> servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServle
> tResponse;Lorg
> /apache/struts/action/Action;Lorg/apache/struts/action/ActionF
> orm;Lorg/apach
> e/struts/action/ActionMapping;)Lorg/apache/struts/action/Actio
> nForward;+0
> (RequestProcessor.java:484) 
>       
> org/apache/struts/action/RequestProcessor.process(Ljavax/servlet/http/
> HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
> (RequestProcessor.java:217) 
>       
> org/apache/struts/action/ActionServlet.process(Ljavax/servlet/http/Htt
> pServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
> (ActionServlet.java:1481) 
>       
> org/apache/struts/action/ActionServlet.doPost(Ljavax/servlet/http/Http
> ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
> (ActionServlet.java:525) 
>       
> javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServlet
> Request;Ljavax/servlet/http/HttpServletResponse;)V+0 
> (HttpServlet.java:733) 
>       
> javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;L
> javax/servlet/ServletResponse;)V+0 (HttpServlet.java:848) 
>       
> com/ibm/ws/webcontainer/servlet/StrictServletInstance.doService(Ljavax
> /servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (StrictServletInstance.java:105) 
>       
> com/ibm/ws/webcontainer/servlet/StrictLifecycleServlet._service(Ljavax
> /servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (StrictLifecycleServlet.java:160) 
>       
> com/ibm/ws/webcontainer/servlet/ServicingServletState.service(Lcom/ibm
> /ws/webcontainer/servlet/StrictLifecycleServlet;Ljavax/servlet
> /ServletReques
> t;Ljavax/servlet/ServletResponse;)V+0 
> (StrictLifecycleServlet.java:333) 
>       
> com/ibm/ws/webcontainer/servlet/StrictLifecycleServlet.service(Ljavax/
> servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (StrictLifecycleServlet.java:116) 
>       
> com/ibm/ws/webcontainer/servlet/ServletInstance.service(Ljavax/servlet
> /ServletRequest;Ljavax/servlet/ServletResponse;Lcom/ibm/ws/web
> container/weba
> pp/WebAppServletInvocationEvent;)V+0 (ServletInstance.java:250) 
>       
> com/ibm/ws/webcontainer/servlet/ValidServletReferenceState.dispatch(Lc
> om/ibm/ws/webcontainer/servlet/ServletInstanceReference;Ljavax
> /servlet/Servl
> etRequest;Ljavax/servlet/ServletResponse;Lcom/ibm/ws/webcontai
> ner/webapp/Web
> AppServletInvocationEvent;)V+0 (ValidServletReferenceState.java:42) 
>       
> com/ibm/ws/webcontainer/servlet/ServletInstanceReference.dispatch(Ljav
> ax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lcom/
> ibm/ws/webcont
> ainer/webapp/WebAppServletInvocationEvent;)V+0
> (ServletInstanceReference.java:40) 
>       
> com/ibm/ws/webcontainer/webapp/WebAppRequestDispatcher.handleWebAppDis
> patch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/ht
> tp/HttpServlet
> Response;)V+0 (WebAppRequestDispatcher.java:739) 
>       
> com/ibm/ws/webcontainer/webapp/WebAppRequestDispatcher.dispatch(Ljavax
> /servlet/ServletRequest;Ljavax/servlet/ServletResponse;Z)V+0
> (WebAppRequestDispatcher.java:231) 
>       
> com/ibm/ws/webcontainer/webapp/WebAppRequestDispatcher.forward(Ljavax/
> servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (WebAppRequestDispatcher.java:148) 
>       
> org/apache/struts/action/RequestProcessor.doForward(Ljava/lang/String;
> Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Htt
> pServletRespon
> se;)V+0 (RequestProcessor.java:1058) 
>       
> org/apache/struts/action/RequestProcessor.processForwardConfig(Ljavax/
> servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServle
> tResponse;Lorg
> /apache/struts/config/ForwardConfig;)V+0 (RequestProcessor.java:428) 
>       
> org/apache/struts/action/RequestProcessor.process(Ljavax/servlet/http/
> HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
> (RequestProcessor.java:217) 
>       
> org/apache/struts/action/ActionServlet.process(Ljavax/servlet/http/Htt
> pServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
> (ActionServlet.java:1481) 
>       
> org/apache/struts/action/ActionServlet.doPost(Ljavax/servlet/http/Http
> ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
> (ActionServlet.java:525) 
>       
> javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServlet
> Request;Ljavax/servlet/http/HttpServletResponse;)V+0 
> (HttpServlet.java:733) 
>       
> javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;L
> javax/servlet/ServletResponse;)V+0 (HttpServlet.java:848) 
>       
> com/ibm/ws/webcontainer/servlet/StrictServletInstance.doService(Ljavax
> /servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (StrictServletInstance.java:105) 
>       
> com/ibm/ws/webcontainer/servlet/StrictLifecycleServlet._service(Ljavax
> /servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (StrictLifecycleServlet.java:160) 
>       
> com/ibm/ws/webcontainer/servlet/ServicingServletState.service(Lcom/ibm
> /ws/webcontainer/servlet/StrictLifecycleServlet;Ljavax/servlet
> /ServletReques
> t;Ljavax/servlet/ServletResponse;)V+0 
> (StrictLifecycleServlet.java:333) 
>       
> com/ibm/ws/webcontainer/servlet/StrictLifecycleServlet.service(Ljavax/
> servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (StrictLifecycleServlet.java:116) 
>       
> com/ibm/ws/webcontainer/servlet/ServletInstance.service(Ljavax/servlet
> /ServletRequest;Ljavax/servlet/ServletResponse;Lcom/ibm/ws/web
> container/weba
> pp/WebAppServletInvocationEvent;)V+0 (ServletInstance.java:250) 
>       
> com/ibm/ws/webcontainer/servlet/ValidServletReferenceState.dispatch(Lc
> om/ibm/ws/webcontainer/servlet/ServletInstanceReference;Ljavax
> /servlet/Servl
> etRequest;Ljavax/servlet/ServletResponse;Lcom/ibm/ws/webcontai
> ner/webapp/Web
> AppServletInvocationEvent;)V+0 (ValidServletReferenceState.java:42) 
>       
> com/ibm/ws/webcontainer/servlet/ServletInstanceReference.dispatch(Ljav
> ax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lcom/
> ibm/ws/webcont
> ainer/webapp/WebAppServletInvocationEvent;)V+0
> (ServletInstanceReference.java:40) 
>       
> com/ibm/ws/webcontainer/webapp/WebAppRequestDispatcher.handleWebAppDis
> patch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/ht
> tp/HttpServlet
> Response;)V+0 (WebAppRequestDispatcher.java:739) 
>       
> com/ibm/ws/webcontainer/webapp/WebAppRequestDispatcher.dispatch(Ljavax
> /servlet/ServletRequest;Ljavax/servlet/ServletResponse;Z)V+0
> (WebAppRequestDispatcher.java:231) 
>       
> com/ibm/ws/webcontainer/webapp/WebAppRequestDispatcher.forward(Ljavax/
> servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
> (WebAppRequestDispatcher.java:148) 
>       
> com/ibm/ws/webcontainer/srt/WebAppInvoker.doForward(Ljavax/servlet/htt
> p/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
> (WebAppInvoker.java:78) 
>       
> com/ibm/ws/webcontainer/srt/WebAppInvoker.handleInvocationHook(Ljava/l
> ang/Object;)V+0 (WebAppInvoker.java:146) 
>       
> com/ibm/ws/webcontainer/cache/invocation/CachedInvocation.handleInvoca
> tion(Ljava/lang/Object;)V+0 (CachedInvocation.java:66) 
>       
> com/ibm/ws/webcontainer/srp/ServletRequestProcessor.dispatchByURI(Ljav
> a/lang/String;Lcom/ibm/ws/webcontainer/srp/ISRPConnection;)V+0
> (ServletRequestProcessor.java:71) 
>       
> com/ibm/ws/webcontainer/oselistener/OSEListenerDispatcher.service(Lcom
> /ibm/ws/webcontainer/oselistener/api/IOSEConnection;)V+0
> (OSEListener.java:317) 
>       com/ibm/ws/webcontainer/http/HttpConnection.handleRequest()V+0
> (HttpConnection.java:56) 
>       com/ibm/ws/http/HttpConnection.readAndHandleRequest(Z)V+0
> (HttpConnection.java:562) 
>       com/ibm/ws/http/HttpConnection.run()V+0 
> (HttpConnection.java:373) 
>       com/ibm/ws/util/ThreadPool$Worker.run()V+0 
> (ThreadPool.java:566) 
> 
> 
> --------------------------------------------------------------------
> mail2web - Check your email from the web at http://mail2web.com/ .
> 
> 
> 
> _______________________________________________
> This is the Java Programming on and around the iSeries / 
> AS400 (JAVA400-L) mailing list To post a message email: 
> JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change 
> list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
> 



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.