{"id":488,"date":"2008-03-19T00:00:00","date_gmt":"2008-03-18T16:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=488"},"modified":"2011-07-15T09:35:48","modified_gmt":"2011-07-15T01:35:48","slug":"proxool-fatalsqlexceptionhelper-testexception","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=488","title":{"rendered":"proxool.FatalSqlExceptionHelper.testException()"},"content":{"rendered":"<p><P>\u6211\u7ec8\u4e8e\u627e\u5230\u4e86\u51fa\u95ee\u9898\u7684\u7ebf\u7a0b\u4e86\u3002<\/P><br \/>\n<P>\u901a\u8fc7thread dump \u6211\u53d1\u73b0\u5982\u4e0b\u7ebf\u7a0b\u4e00\u76f4\u5728\u8fd0\u884c\uff1a<BR>&#8220;resin-tcp-connection-*:80-6075&#8221; daemon prio=1 tid=0x0857aac8 nid=0x7fb0 runnable [0x82dfe000..0x82dff19c]<BR>at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:116)<BR>at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:103)<BR>at org.logicalcobwebs.proxool.AbstractProxyStatement.testException(AbstractProxyStatement.java:65)<BR>at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:146)<BR>at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)<BR>at $java.sql.Statement$$EnhancerByCGLIB$$1a91e2dc.close()<BR>at com.tag.db.doEndTag(valuetag.java:438)<BR>at _jsp._rst._eng_0aa__jsp._jspService(_products_0viewinfo__jsp.java:75)<BR>at com.caucho.jsp.JavaPage.service(JavaPage.java:60)<BR>at com.caucho.jsp.Page.pageservice(Page.java:570)<BR>at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159)<BR>at com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)<BR>at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)<BR>at com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)<BR>at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)<BR>at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)<BR>at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)<BR>at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:267)<BR>at com.caucho.server.port.TcpConnection.run(TcpConnection.java:388)<BR>&#8211; locked &lt;0x5c472008&gt; (a java.lang.Object)<BR>at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)<BR>at com.caucho.util.ThreadPool.run(ThreadPool.java:423)<BR>at java.lang.Thread.run(Thread.java:595)<\/P><br \/>\n<P>\u7136\u540e\u6211\u53c8\u67e5\u770b\u4e86\u9876\u7ea7\u7684\u4ee3\u7801\u8c03\u7528<BR>at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:116)<BR>\u4e5f\u5c31\u662ftestException\u8fd9\u4e2a\u65b9\u6cd5\u4e00\u76f4\u5728\u6267\u884c\uff0c\u6211\u4e0d\u6e05\u695a\u4e3a\u4ec0\u4e48\u4e3a\u4f1a\u51fa\u73b0\u5982\u6b64\u6b7b\u5faa\u73af\u3002<\/P><br \/>\n<P>\u6211\u60f3\u95ee\u95ee\u5927\u5bb6\uff0c\u4ec0\u4e48\u6837\u7684\u4ee3\u7801\u4f1a\u5bfc\u81f4proxool\u7684testException\u4e00\u76f4\u8fd0\u884c\u7740\u3002<\/P><br \/>\n<P><BR>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4e0d\u77e5\u9053\u662f\u5206\u6570\u4e0d\u591f\uff0c\u8fd8\u662f\u4eba\u624d\u7a00\u5c11\uff0c\u600e\u4e48\u5c31\u6ca1\u4eba\u56de\u7b54\u5462\u3002\u90c1\u95f7<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4e3a\u4ec0\u4e48\u4f1a\u91cd\u590d\u51fa\u73b0\uff1a<BR>at com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)<BR>at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)<BR>at com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)<BR>at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)<BR>\u8c01\u80fd\u544a\u8bc9\u6211\u554a\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u672c\u6765proxool\u662f\u5f88\u6709\u53e3\u7891\u7684\u8fde\u63a5\u6c60 \uff0c\u600e\u4e48\u4f1a\u5bfc\u81f4<\/P><br \/>\n<P>at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:116)\u4e2dtestException\u8fd0\u884c\u6ca1\u5b8c\u6ca1\u4e86\u5462\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u52aa\u529b\u63a5\u5206\u5347\u7ea7\u4e2d&#8230;\u5e2e\u4f60up!<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>filter \u6b7b\u5faa\u73af\u8c03\u7528\uff1f<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u56de\u590d\uff1aiihero(\u963f\u9ed1\u54e5)<\/P><br \/>\n<P>\u5e94\u8be5\u4e0d\u662ffilter\u7684\u5f15\u8d77\u7684\uff0c\u5982\u679c\u662ffilter\u7684\u8bdd\uff0c\u90a3\u6240\u6709\u7684\u9875\u9762\u90fd\u4f1a\u5f88\u5bb9\u6613\u8fdb\u5165\u6b7b\u5faa\u73af\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4e0b\u9762\u5c31\u662f\u8fd9\u4e2a\u6c38\u8fdc\u4e0d\u7ed3\u675f\u7684\u65b9\u6cd5\uff0c\u6211\u770b\u4e86\u4e00\u4e0b\u6e90\u4ee3\u7801\uff0c\u867d\u7136\u6709\u5faa\u73af\u90e8\u5206\uff0c\u4f46\u4e5f\u4e0d\u5bfc\u81f4\u6b7b\u5faa\u73af\uff0c<BR>\u5927\u4f19\u5e2e\u6211\u5206\u6790\u4e00\u4e0b\uff0c\u5177\u4f53\u662f\u4ec0\u4e48\u539f\u56e0\u4f1a\u5bfc\u81f4\u4e0b\u9762\u7684\u4ee3\u7801\u4e00\u76f4\u6267\u884c\uff1f <BR>\/**<BR>* Test to see if an exception is a fatal one<BR>* @param cpd the definition so we can find out what a fatal exception looks like<BR>* @param t the exception to test<BR>* @param level the recursion level (max 20)<BR>* @return true if it is fatal<BR>*\/<BR>protected static boolean testException(ConnectionPoolDefinitionIF cpd, Throwable t, int level) {<BR>boolean fatalSqlExceptionDetected = false;<BR>Iterator i = cpd.getFatalSqlExceptions().iterator();<BR>while (i.hasNext()) {<BR>if (t.getMessage() != null &amp;&amp; t.getMessage().indexOf((String) i.next()) &gt; -1) {<BR>\/\/ This SQL exception indicates a fatal problem with this connection.<BR>fatalSqlExceptionDetected = true;<BR>}<BR>}<\/P><br \/>\n<P>\/\/ If it isn&#8217;t fatal, then try testing the contained exception<BR>if (!fatalSqlExceptionDetected &amp;&amp; level &lt; 20) {<BR>Throwable cause = getCause(t);<BR>if (cause != null) {<BR>fatalSqlExceptionDetected = testException(cpd, cause, level + 1);<BR>}<BR>}<\/P><br \/>\n<P>return fatalSqlExceptionDetected;<BR>}<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>while (i.hasNext()) {<BR>if (t.getMessage() != null &amp;&amp; t.getMessage().indexOf((String) i.next()) &gt; -1) {<BR>\/\/ This SQL exception indicates a fatal problem with this connection.<BR>fatalSqlExceptionDetected = true;<BR>}<BR>}<\/P><br \/>\n<P>t.getMessage() != null\u8fd9\u53e5\u8bdd\u4e0d\u6210\u7acb\u7684\u8bdd\uff0c\u5c31\u6ca1\u673a\u4f1a\u8c03\u7528i.next\uff08\uff09<BR>\u5c31\u6b7b\u5faa\u73af\u4e86\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u5728\u7f51\u4e0a\u5927\u5bb6\u90fd\u5bf9proxool\u8d5e\u8d4f\u6709\u52a0\uff0c\u4f46\u662f\u6211\u4eec\u7684\u9879\u76ee\u51fa\u73b0\u5982\u6b64\u4e25\u91cd\u7684\u9519\u8bef\uff0c\u5b9e\u5c5e\u4e0d\u5e94\u8be5\uff0c<BR>\u8bf7\u5144\u5f1f\u4eec\u5e2e\u6211\u67e5\u660e\u6b64\u539f\u56e0\uff0c\u4e0d\u8ba9\u6211\u518d\u53bb\u6000\u7591proxool\u7684\u8fc7\u9519\u4e86\uff0c\u628a\u6e05\u767d\u7559proxool\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u56de\u590d:zhmt(\u4e0d\u723d\u4f60\u5c31\u7528\u5206\u7838\u6211\uff01\uff01\uff01) <\/P><br \/>\n<P>t.getMessage() != null\u4e0d\u6210\u7acb\uff0c\u4e5f\u5e94\u8be5\u4f1a\u518d\u6b21\u8c03\u7528i.hasNext()\u5427<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u8bf7\u5927\u4f19\u5e2e\u6211\u628a\u94c1\u9876\u8d77\u6765\uff0c\u90fd\u5feb\u4e24\u5929\u4e86\uff0c\u8fd8\u662f\u6ca1\u627e\u5230\u7b54\u6848\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4f60\u8bf4\u7684\u9519\u4e86\uff0c&amp;&amp; \u8fd0\u7b97\u662f\u4ece\u5de6\u5230\u53f3\uff0c\u5de6\u8fb9\u7684\u4e0d\u6210\u7acb\uff0c\u76f4\u63a5\u5c31\u8fd4\u56defalse\u4e86\uff0c\u4e0d\u518d\u8ba1\u7b97\u53f3\u8fb9\u7684\u3002\u6240\u4ee5\u4e0d\u8c03\u7528i.next\uff08\uff09\u3002<\/P><br \/>\n<P>\u697c\u4e3b\u8981\u52a0\u5f3a\u57fa\u7840\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4f60\u53ef\u4ee5\u5199\u4e2a\u5c0f\u4f8b\u5b50\u6d4b\u8bd5\u4e00\u4e0b\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u5f53 t.getMessage() != null\u4e0d\u6210\u7acb\u65f6\uff0c\u662f\u201ct.getMessage().indexOf((String) i.next()) &gt; -1\u201d\u6ca1\u673a\u4f1a\u6267\u884c\u3002\u4e0d\u662fi.hasNext<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u56de\u590d: zhmt(\u4e0d\u723d\u4f60\u5c31\u7528\u5206\u7838\u6211\uff01\uff01\uff01) <\/P><br \/>\n<P>\u6211\u8fd8\u662f\u4e0d\u660e\u767d\uff0ct.getMessage() != null\u8fd9\u53e5\u8bdd\u4e0d\u6210\u7acb\u7684\u8bdd\uff0c\u5c31\u4f1a\u5bfc\u81f4\u6b7b\u5faa\u73af\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u5c31\u7b97\u201ct.getMessage().indexOf((String) i.next()) &gt; -1\u4e0d\u77e5\u9053\uff0c\u4e5f\u4e0d\u4f1a\u5bfc\u81f4\u6b7b\u5faa\u73af\u554a\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u6211\u4e0a\u9762\u7684\u90a3\u6bb5\u4ee3\u7801\u662f\u4eceproxool\u4e2d\u53d6\u51fa\u6765\u7684\uff0c\u5982\u679c\u8fd9\u4e48\u5bb9\u6613\u5c31\u6b7b\u5faa\u73af\u4e86\uff0c\u90a3\u6211\u5c31\u8981\u6000\u7591\u8fd9\u4e2a\u4e1c\u897f\u7684\u5b89\u5168\u6027\u5566\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4f60\u7684\u95ee\u9898\u7684\u80cc\u666f\u662f\u4ec0\u4e48\u554a\uff1f<BR>\u4e0d\u80fd\u5149\u770b\u8fd9\u4e00\u70b9\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>resin-tcp-connection-*:80-6075&#8243; daemon prio=1 tid=0x0857aac8 nid=0x7fb0 runnable <\/P><br \/>\n<P>\u8fd9\u662f\u4e2a\u5b88\u62a4\u7ebf\u7a0b\uff0c\uff08daemon\uff09\uff0c\u4e00\u76f4\u8fd0\u884c\u7684\u8bdd\uff0c\u662f\u5f88\u6b63\u5e38\u7684\u3002\u53ef\u80fd\u95ee\u9898\u4e0d\u5728\u8fd9\u91cc\uff0c\u4f60\u7684\u662f\u4ec0\u4e48\u6027\u80fd\u95ee\u9898\u554a\uff1f<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u597d\uff0c\u90a3\u6211\u5c31\u8bf4\u8bf4\u80cc\u666f \uff1a<\/P><br \/>\n<P>\u6211\u7ef4\u62a4\u7684\u662f\u4e2a\u7f51\u7ad9\u9879\u76ee\uff0c\u7f51\u7ad9\u7ecf\u5e38\u670d\u52a1\u5668cpu 99%,\u5e76\u4e14\u4e0a\u53bb\u4e86\u5c31\u4e0d\u4e0b\u6765\u4e86\uff0c\u5f00\u59cb\u6211\u5c31\u786e\u5b9a\u662f<BR>\u6b7b\u5faa\u73af\u7684\u95ee\u9898\uff0c\u4f46\u662f\u627e\u4e0d\u5230\u6839\u636e\uff0c\u524d\u4e24\u5929\u6211\u7528kill -3 pid,\u6bcf\u96945\u5206\u949fThread Dump\u4e00\u4e0b\uff0c\u53d1\u73b0<BR>\u4e0a\u9762\u7684\u7ebf\u7a0b\u4e00\u76f4\u5728\u865a\u62df\u673a(JVM\uff09\u91cc\u9762\u8fd0\u884c\u8005\u3002\u90a3\u53ea\u6709\u6b7b\u5faa\u73af\u624d\u4e0d\u4f1a\u9000\u51fa\u7684\u3002<BR>\u6211\u4e0d\u77e5\u9053\u6211\u8bb2\u6e05\u695a\u6ca1\uff1f<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>daemon\u662f\u5b88\u62a4\u8fdb\u7a0b\uff0c\u4f46\u662f\u4e0d\u5e94\u8be5\u4e0d\u7ed3\u675f\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4f60\u786e\u4fe1\u662f\u8fd9\u4e2a\u7ebf\u7a0b\u542f\u52a8\u540ecpu\u624d\u5230100\uff05\u7684\u5417\uff1f<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u662f\u7684\u3002\u5728\u5e73\u65f6\uff0c\u6211\u627e\u4e0d\u5230\u8fd9\u6837\u7684\u7ebf\u7a0b\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u6211\u67e5\u4e86\u4e00\u4e0b\u5b83\u7684\u6e90\u7801\uff0c\u8fd9\u4e2a\u7c7b\u662f\u7528\u6765\u68c0\u67e5\u4e00\u4e2a\u5f02\u5e38\u662f\u5426\u662f\u4e25\u91cd\u5f02\u5e38\uff0c\u5b83\u80fd\u4e00\u76f4\u8fd0\u884c\u8bf4\u660e\u4f60\u7684\u5e94\u7528\u5bfc\u81f4\u4e86\u5f88\u591asql\u5f02\u5e38\u3002\u5982\u679c\u8fd9\u4e2apool\u662f\u7ecf\u8fc7\u5927\u5bb6\u7684\u68c0\u9a8c\u7684\u8bdd\uff0c\u53ef\u80fd\u4f60\u7684\u5e94\u7528\u4e2d\uff0c\u54ea\u4e00\u90e8\u5206\u7684sql\u8c03\u7528\u5f88\u6709\u95ee\u9898\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u662f\u7684\uff0c\u4f46\u662f\u5f88\u591a\u5f02\u5e38\u4e5f\u4f1a\u6709\u4e2a\u6570\u91cf\u9650\u5236\u554a\uff0c\u53ef\u80fd\u5904\u7406\u6821\u9a8c\u7684\u901f\u5ea6\u6162\u554a\uff0c\u800c\u4e0d\u4f1a\u51fa\u73b0\uff0c\u6b7b\u5faa\u73af\u554a\u3002<BR>\u5728\u9875\u9762\u4e0a\u4f20\u5165\u7684sql\u8bed\u53e5\u96be\u514d\u6709\u4e9b\u95ee\u9898\uff0c\u6211\u6d4b\u8bd5\u8fc7\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5904\u7406\u7684\uff0c\u4f46\u662f\u6211\u60f3\u5728\u5c31\u4e0d\u660e\u767d\uff0c\u4ec0\u4e48\u60c5\u51b5\u4e0b\uff0c\u4ec0\u4e48\u6837\u7684SQL\u8bed\u53e5\u4f1a\u5bfc\u81f4\u6b7b\u5faa\u73af\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4f60\u770b\u4e86\u6709\u591a\u5c11\u4e2a\u8fd9\u6837\u7ebf\u7a0b\u4e86\u5417\uff1f<BR>\u53ef\u80fd\u4e0d\u662f\u6b7b\u5faa\u73af\uff0c\u800c\u662f\u7ebf\u7a0b\u7ed3\u675f\u540e\u53c8\u88ab\u542f\u52a8\u8d77\u6765\u3002\u6216\u8005\u662f\u542f\u52a8\u4e86\u591a\u4e2a\u8fd9\u6837\u7684\u7ebf\u7a0b\u3002<BR>\u5982\u679c\u4e0d\u662f\u6211\u611f\u624d\u8bf4\u7684\u90a3\u4e2a\u6b7b\u5faa\u73af\u7684\uff0c\u5c31\u4e0d\u53ef\u80fd\u51fa\u73b0\u6b7b\u5faa\u73af\u4e86\uff08next\u548chasNext\u8981\u6210\u5bf9\u4f7f\u7528\u624d\u4e0d\u4f1a\u6b7b\u5728\u90a3\uff0c\u5982\u679c\u53ea\u4f7f\u7528hasNext\u800c\u4e0d\u4f7f\u7528next\uff0c\u90a3\u4e48iterator\u662f\u4e0d\u5f80\u4e0b\u8d70\u7684\uff0c\u5c31\u4f1a\u6b7b\u4e86\u3002\uff09\u3002<BR>\u53e6\u5916\u5b83\u7684\u9012\u5f52\u8c03\u7528\u4e5f\u4e0d\u4f1a\u8d85\u8fc720\u5c42\uff0c\u6240\u4ee5\u4e5f\u4e0d\u4f1a\u6b7b\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u6211\u89c9\u5f97\u4ece\u81ea\u5df1\u7684\u5e94\u7528\u4e0a\u6765\u6539\u8fdb\u5e94\u8be5\u66f4\u597d\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u56de\u590d\uff1azhmt(\u4e0d\u723d\u4f60\u5c31\u7528\u5206\u7838\u6211\uff01\uff01\uff01) <\/P><br \/>\n<P>\u4f60\u8bf4\u7684\u6709\u9053\u7406\uff0c\u5982\u679c t.getMessage() ==null\u7684\u8bdd\uff0c\u5c31\u4f1a\u9677\u5165\u6b7b\u5faa\u73af\u3002<\/P><br \/>\n<P>\u4f46\u662f\u6211\u770b\u6211\u4eec\u7684\u4ee3\u7801\u90fd\u662f\u6309\u7167JDBC\u89c4\u8303\u6765\u5199\u7684\u554a\u3002<\/P><br \/>\n<P>\u4e0b\u9762\u6211\u8d34\u4e9b\u539f\u7801\uff0c\u5e2e\u6211\u770b\u770b\u6709\u4ec0\u4e48\u95ee\u9898\u3002<\/P><br \/>\n<P>&nbsp;<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>public HashMap getdbValue(PoolBean pool) throws Exception<BR>{<BR>if(pool.getLog().isDebugEnabled())<BR>pool.getLog().debug(&#8220;star getdbValue&#8221;);<\/P><br \/>\n<P>String system_name = pool.getDatabaseInfo().getSystemName();<BR>HashMap result = null;<BR>String temp_sql = createSql();<BR>if(temp_sql == null)<BR>throw new SQLException(&#8220;not sql statement&#8221;);<\/P><br \/>\n<P>Statement stmt = null;<BR>ResultSet rs = null;<BR>Connection con = null;<BR>try<BR>{<BR>con = pool.getNoInfoConnection();\/\/ .getConnection();<BR>con.setReadOnly(true);<BR>stmt = con.createStatement();<BR>rs = stmt.executeQuery(temp_sql);<BR>\/\/ rs = stmt.executeQuery(sql);<BR>if (rs != null) {<BR>ResultSetMetaData rsmd = rs.getMetaData();<BR>int colCount = rsmd.getColumnCount();<BR>if (rs.next()) {<BR>result = new HashMap();<BR>for (int i = 1; i &lt;= colCount; i++) {<BR>String name = rsmd.getColumnName(i);<BR>name = name.toLowerCase();<BR>String type_name = rsmd.getColumnTypeName(i).toLowerCase();<BR>\/\/ System.out.println(&#8220;field name : &#8221; + name + &#8221; , type_anme : &#8221; + type_name);<BR>if (&#8220;text&#8221;.equals(type_name)) {<BR>\/\/\u5f53\u5b57\u6bb5\u7c7b\u578b\u4e3atext\u65f6\uff0c\u5982\u679c\u76f4\u63a5\u7528rs.getObject(i)\u53d6\u6570\u636e\uff0c\u5728jtds1.0\u7248\u672c\u4e2d\u4e0d\u80fd\u76f4\u63a5\u53d6\u51fa\uff0c\u6539\u4e3a\u4ee5\u4e0b\u65b9\u5f0f\u5373\u53ef 2005-07-22 \u5f20\u8d35\u5e73<BR>String tt_str = rs.getString(i);<BR>\/\/ System.out.println(&#8220;text &#8212; &#8220;+tt_str);<BR>if (tt_str == null)<BR>tt_str = &#8220;&#8221;;<BR>else<BR>tt_str = tt_str.trim();<BR>result.put(name.trim(), tt_str);<BR>}<BR>else {<BR>Object obj_value = rs.getObject(i);<BR>if (obj_value instanceof java.lang.String) {<BR>String t_str = null;<BR>if (obj_value == null)<BR>t_str = &#8220;&#8221;;<BR>else<BR>t_str = String.valueOf(obj_value).trim();<BR>result.put(name.trim(), t_str);<BR>}<BR>else {<BR>result.put(name.trim(), obj_value);<BR>}<BR>}<BR>}<BR>}<BR>rsmd = null;<BR>}<BR>rs.close();<BR>stmt.close();<BR>con.setReadOnly(false);<BR>con.close();<BR>}<BR>catch(SQLException e)<BR>{<BR>\/\/CloseCon.Close(con);<BR>pool.getLog().error(system_name+&#8221;,&#8221;+e.getMessage()+&#8221;,sql:&#8221;+temp_sql);<BR>throw new SQLException(&#8220;database perform error : &#8221; + e.getMessage());<BR>}<BR>finally<BR>{<BR>CloseCon.Close(con);<BR>}<\/P><br \/>\n<P>return result;<\/P><br \/>\n<P>}<\/P><br \/>\n<P>\u4ece\u7ebf\u7a0b\u5806\u6808\u4e0a\u770b$java.sql.Statement$$EnhancerByCGLIB$$1a91e2dc.close()<BR>\uff0c\u662f\u4ecestmt.close()\u8fdb\u53bb\u7684\u3002<\/P><br \/>\n<P><BR>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u89c9\u5f97\u4e0d\u89c4\u8303<BR>rs.close();<BR>stmt.close();<BR>con.setReadOnly(false);<BR>con.close();<\/P><br \/>\n<P>\u4ee5\u4e0a\u8fd9\u4e9b\u4e1c\u897f\u90fd\u8981\u653e\u5728finnally\u5757\u4e2d\u7684\u3002<\/P><br \/>\n<P>\u6211\u6ca1\u7528\u8fc7PoolBean\uff0c\u4e0d\u77e5\u9053\u600e\u4e48\u7528\uff0c\u89c9\u5f97\u6570\u636e\u5e93\u7684\u64cd\u4f5c\u597d\u50cf\u6ca1\u591a\u5927\u95ee\u9898\u3002\u4f60\u5012\u7f51\u4e0a\u641c\u7d22\u8d44\u6599\u770b\u770b\u5427\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u4f60\u770b\u4e0bFilter\u91cc\u9762\u7684\u8df3\u8f6c\u662f\u4e0d\u662f\u9519\u4e86\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u56de\u590d\uff1azhmt(\u4e0d\u723d\u4f60\u5c31\u7528\u5206\u7838\u6211\uff01\uff01\uff01) <\/P><br \/>\n<P>PoolBean \u662f\u6211\u4eec\u81ea\u5df1\u5199\u7684\u4e00\u4e2a\u7c7b\uff0c\u4e3b\u8981\u662f\u505a\u8ddf\u8fde\u63a5\u6c60\u7684\u8854\u63a5\u5de5\u4f5c\u3002<\/P><br \/>\n<P>\u662f\u7684\uff0c\u4e0d\u662f\u5f88\u89c4\u8303\uff0c\u4f46\u662f\u8fd9\u6837\u4e5f\u5e94\u8be5\u4e0d\u4f1a\u5bfc\u81f4proxool\u6b7b\u5faa\u73af\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u6211\u4eec\u81ea\u5df1\u7684Filter\u7c7b\uff0c\u770b\u770b\u6709\u4ec0\u4e48\u95ee\u9898\u3002<\/P><br \/>\n<P>public class SetCharacterEncodingFilter implements Filter {<\/P><br \/>\n<P>Log log = LogFactory.getLog(this.getClass().getName());<\/P><br \/>\n<P>\/\/ &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Instance Variables<\/P><br \/>\n<P>\/**<BR>* The default character encoding to set for requests that pass through<BR>* this filter.<BR>*\/<BR>protected String encoding = null;<\/P><br \/>\n<P><BR>\/**<BR>* The filter configuration object we are associated with. If this value<BR>* is null, this filter instance is not currently configured.<BR>*\/<BR>protected FilterConfig filterConfig = null;<\/P><br \/>\n<P>\/**<BR>* \u4e0a\u4f20\u6587\u4ef6\u7684\u6700\u5927\u5927\u5c0f<BR>*\/<BR>protected int fileMaxLength = 200*1024; \/\/200K<\/P><br \/>\n<P>\/**<BR>* Should a character encoding specified by the client be ignored?<BR>*\/<BR>protected boolean ignore = true;<\/P><br \/>\n<P><BR>\/**<BR>* Take this filter out of service.<BR>*\/<BR>public void destroy() {<\/P><br \/>\n<P>this.encoding = null;<BR>this.filterConfig = null;<\/P><br \/>\n<P>}<\/P><br \/>\n<P><BR>\/**<BR>* Select and set (if specified) the character encoding to be used to<BR>* interpret request parameters for this request.<BR>*<BR>* @param request The servlet request we are processing<BR>* @param result The servlet response we are creating<BR>* @param chain The filter chain we are processing<BR>*<BR>* @exception IOException if an input\/output error occurs<BR>* @exception ServletException if a servlet error occurs<BR>*\/<BR>public void doFilter(ServletRequest request, ServletResponse response,<BR>FilterChain chain)<BR>throws IOException, ServletException {<\/P><br \/>\n<P>\/\/ Conditionally select and set the character encoding to be used<\/P><br \/>\n<P>HttpServletRequest t_re = (HttpServletRequest) request;<\/P><br \/>\n<P>String re_uri = trimString(t_re.getRequestURI());<BR>String re_host = trimString(t_re.getServerName());<BR>String qu_str = trimString(t_re.getQueryString());<\/P><br \/>\n<P><BR>if (re_uri.indexOf(&#8220;.do&#8221;) &gt; 0)<BR>{<BR>if (log.isInfoEnabled())<BR>log.info(re_host + re_uri + &#8220;?&#8221; + qu_str);<\/P><br \/>\n<P>try<BR>{<\/P><br \/>\n<P>if (ignore || (request.getCharacterEncoding() == null)) {<BR>String encoding = selectEncoding(request);<BR>if (encoding != null)<BR>request.setCharacterEncoding(encoding);<BR>}<BR>\/\/ Pass control on to the next filter<BR>chain.doFilter(request, response);<BR>}<BR>catch(Exception e)<BR>{<BR>\/\/ e.printStackTrace();<BR>String error_mes = e.getMessage();<BR>String strServerName = null;<BR>String strQueryString = null;<BR>String requestUrl = null;<BR>String remoteAddr = null;<BR>String referer = &#8220;&#8221;;<BR>if(error_mes.indexOf(&#8220;reset&#8221;)&lt;0 )<BR>{<BR>try {<BR>strServerName = t_re.getServerName();<BR>strQueryString = t_re.getQueryString();<BR>requestUrl = t_re.getRequestURI();<BR>\/\/ strQueryString = CodeTransfer.ISOToUnicode(strQueryString);<BR>referer = t_re.getHeader(&#8220;referer&#8221;);<BR>remoteAddr = t_re.getRemoteAddr();<BR>}<BR>catch (Exception e1) {}<BR>if (error_mes != null &amp;&amp; !&#8221;null&#8221;.equals(error_mes)&amp;&amp; error_mes.length() &gt; 0) {<BR>log.error(&#8220;,exception:&#8221; +<BR>error_mes + strServerName + &#8221; , &#8221; + strQueryString + &#8221; , &#8221; +<BR>requestUrl + &#8221; , &#8221; + referer);<BR>\/\/ System.out.println(&#8220;exception at filter:&#8221; +<BR>\/\/ error_mes);<BR>}<\/P><br \/>\n<P>}<BR>if(log.isInfoEnabled())<BR>log.info(strServerName + &#8221; , &#8221; + strQueryString+ &#8221; , &#8221; + requestUrl + &#8221; , &#8221; + referer);<BR>}<\/P><br \/>\n<P>}<\/P><br \/>\n<P><BR>\/**<BR>* Place this filter into service.<BR>*<BR>* @param filterConfig The filter configuration object<BR>*\/<BR>public void init(FilterConfig filterConfig) throws ServletException {<\/P><br \/>\n<P>this.filterConfig = filterConfig;<BR>this.encoding = filterConfig.getInitParameter(&#8220;encoding&#8221;);<BR>String value = filterConfig.getInitParameter(&#8220;ignore&#8221;);<BR>String file_max_length = filterConfig.getInitParameter(&#8220;file_max_length&#8221;);<BR>if(file_max_length!=null &amp;&amp; file_max_length.length() &gt;0)<BR>{<BR>fileMaxLength = com.kenfor.util.MyUtil.getStringToInt(file_max_length,200)*1024;<BR>}<\/P><br \/>\n<P>if (value == null)<BR>this.ignore = true;<BR>else if (value.equalsIgnoreCase(&#8220;true&#8221;))<BR>this.ignore = true;<BR>else if (value.equalsIgnoreCase(&#8220;yes&#8221;))<BR>this.ignore = true;<BR>else<BR>this.ignore = false;<\/P><br \/>\n<P>}<\/P><br \/>\n<P>\/**<BR>* Select an appropriate character encoding to be used, based on the<BR>* characteristics of the current request and\/or filter initialization<BR>* parameters. If no character encoding should be set, return<BR>* null.<BR>* <\/P><br \/>\n<P>* The default implementation unconditionally returns the value configured<BR>* by the encoding initialization parameter for this<BR>* filter.<BR>*<BR>* @param request The servlet request we are processing<BR>*\/<BR>protected String selectEncoding(ServletRequest request) {<\/P><br \/>\n<P>return (this.encoding);<\/P><br \/>\n<P>}<BR>private String trimString(String value)<BR>{<BR>String result = &#8220;&#8221;;<BR>if(value !=null)<BR>result = value.trim();<\/P><br \/>\n<P>return result;<BR>}<\/P><br \/>\n<P><BR>}<\/P><br \/>\n<P>&nbsp;<\/P><br \/>\n<P>&nbsp;<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u5982\u679c\u771f\u7684\u662fproxool\uff0c\u90a3\u6211\u5e94\u8be5\u611f\u5230\u6b23\u6170\uff0c\u5982\u679c\u662f\u6211\u4eec\u5199\u7684\u4ee3\u7801\u4e0d\u5f53\u5f15\u8d77\u7684\uff0c\u4f46\u6211\u5c31\u771f\u7684\u65e0\u5730\u4e4b\u5bb9\u4e86\u3002<\/P><br \/>\n<P>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/P><br \/>\n<P>\u5475\u5475\uff0c\u8fd9\u4e2a\u6211\u4e5f\u641e\u4e0d\u6e05\u695a\uff0c\u697c\u4e3b\u6700\u597d\u628a\u4f60\u4eec\u7684\u90a3\u4e2apoolBean\u81ea\u5df1\u6d4b\u8bd5\u4e00\u4e0b\u3002<BR>\u80fd\u627e\u5230\u90a3\u79cd\u60c5\u51b5\u4e0b\u51fa\u90a3\u4e2a\u9519\u8bef\u662f\u6700\u597d\u7684\u3002<\/P><br \/>\n<P>\u770b\u770b\u5faa\u73af\u4f7f\u7528\u7684\u65f6\u5019\u662f\u5426\u4e5f\u629b\u51fa\u8fd9\u4e2a\u5f02\u5e38\uff0c\u5982\u679c\u8fd9\u6837\u7684\u8bdd\u5c31\u67e5\u67e5\u54ea\u7684\u95ee\u9898\u5427\u3002\u5982\u679c\u4e0d\u51fa\u9519\uff0c\u53ef\u80fd\u5c31\u662fsql\u5199\u7684\u6709\u95ee\u9898\u4e86\u3002<\/P><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7ec8\u4e8e\u627e\u5230\u4e86\u51fa\u95ee\u9898\u7684\u7ebf\u7a0b\u4e86\u3002 \u901a\u8fc7thread dump \u6211\u53d1\u73b0\u5982\u4e0b\u7ebf\u7a0b\u4e00\u76f4\u5728\u8fd0\u884c\uff1a&#8220;resin-tcp-connection-*:80-6075&#8221; daemon prio=1 tid=0x0857aac8 nid=0x7fb0 runnable [0x82dfe000..0x82dff19c]at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:116)at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:103)at org.logicalcobwebs.proxool.AbstractProxyStatement.testException(AbstractProxyStatement.java:65)at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:146)at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)at $java.sql.Statement$$EnhancerByCGLIB$$1a91e2dc.close()at com.tag.db.doEndTag(valuetag.java:438)at _jsp._rst._eng_0aa__jsp._jspService(_products_0viewinfo__jsp.java:75)at com.caucho.jsp.JavaPage.service(JavaPage.java:60)at com.caucho.jsp.Page.pageservice(Page.java:570)at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159)at com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)at com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:267)at com.caucho.server.port.TcpConnection.run(TcpConnection.java:388)&#8211; locked &lt;0x5c472008&gt; (a java.lang.Object)at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)at com.caucho.util.ThreadPool.run(ThreadPool.java:423)at java.lang.Thread.run(Thread.java:595) \u7136\u540e\u6211\u53c8\u67e5\u770b\u4e86\u9876\u7ea7\u7684\u4ee3\u7801\u8c03\u7528at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:116)\u4e5f\u5c31\u662ftestException\u8fd9\u4e2a\u65b9\u6cd5\u4e00\u76f4\u5728\u6267\u884c\uff0c\u6211\u4e0d\u6e05\u695a\u4e3a\u4ec0\u4e48\u4e3a\u4f1a\u51fa\u73b0\u5982\u6b64\u6b7b\u5faa\u73af\u3002 \u6211\u60f3\u95ee\u95ee\u5927\u5bb6\uff0c\u4ec0\u4e48\u6837\u7684\u4ee3\u7801\u4f1a\u5bfc\u81f4proxool\u7684testException\u4e00\u76f4\u8fd0\u884c\u7740\u3002 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u4e0d\u77e5\u9053\u662f\u5206\u6570\u4e0d\u591f\uff0c\u8fd8\u662f\u4eba\u624d\u7a00\u5c11\uff0c\u600e\u4e48\u5c31\u6ca1\u4eba\u56de\u7b54\u5462\u3002\u90c1\u95f7 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u4e3a\u4ec0\u4e48\u4f1a\u91cd\u590d\u51fa\u73b0\uff1aat com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)at com.kenfor.exutil.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:152)at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)\u8c01\u80fd\u544a\u8bc9\u6211\u554a\u3002 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u672c\u6765proxool\u662f\u5f88\u6709\u53e3\u7891\u7684\u8fde\u63a5\u6c60 \uff0c\u600e\u4e48\u4f1a\u5bfc\u81f4 at org.logicalcobwebs.proxool.FatalSqlExceptionHelper.testException(FatalSqlExceptionHelper.java:116)\u4e2dtestException\u8fd0\u884c\u6ca1\u5b8c\u6ca1\u4e86\u5462\u3002 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u52aa\u529b\u63a5\u5206\u5347\u7ea7\u4e2d&#8230;\u5e2e\u4f60up! &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &hellip; <a href=\"https:\/\/www.strongd.net\/?p=488\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">proxool.FatalSqlExceptionHelper.testException()<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[103],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","category-java","tag-proxool"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":881,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions\/881"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}