axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hodchenkov, Paul" <>
Subject RE: Question about MySQL timeout problem
Date Mon, 12 Dec 2011 06:59:59 GMT
Use connection pool in axis2 service (c3p0 for example)

From: Ted Zeng []
Sent: Friday, December 09, 2011 11:24 PM
Subject: Question about MySQL timeout problem

Hi all,

After my app. Runs ok with Axis2 for a while, I get the following exception on Axis2 and Axis
is stuck.
My app. Could not talk to Axis anymore. If I reboot Axis2, then everything works again.

I google this and found out most are reported by Hibernate users and their solutions.
How should I resolve this? Is there a setting for Axis2 I need to set.

-Ted Zeng
Adobe Systems Inc.

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received
from the server was 39,903,899 milliseconds ago.  The last packet sent successfully to the
server was 39,903,899 milliseconds ago. is longer than the server configured value of 'wait_timeout'.
You should consider either expiring and/or testing connection validity before use in your
application, increasing the server configured values for client timeouts, or using the Connector/J
connection property 'autoReconnect=true' to avoid this problem.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    at java.lang.reflect.Constructor.newInstance(
    at com.mysql.jdbc.Util.handleNewInstance(
    at com.mysql.jdbc.SQLError.createCommunicationsException(
    at com.mysql.jdbc.MysqlIO.send(
    at com.mysql.jdbc.MysqlIO.sendCommand(
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
    at com.mysql.jdbc.ConnectionImpl.execSQL(
    at com.mysql.jdbc.PreparedStatement.executeInternal(
    at com.mysql.jdbc.PreparedStatement.executeUpdate(
    at com.mysql.jdbc.PreparedStatement.executeUpdate(
    at com.mysql.jdbc.PreparedStatement.executeUpdate(
    at db.AndroidAutoService.insertDevice(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(
    at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(
    at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
    at org.apache.axis2.engine.AxisEngine.receive(
    at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
    at org.apache.axis2.transport.http.HTTPWorker.service(
    at org.apache.axis2.transport.http.server.AxisHttpService.doService(
    at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
    at java.util.concurrent.ThreadPoolExecutor$
Caused by: Broken pipe
    at Method)
    at com.mysql.jdbc.MysqlIO.send(

View raw message