MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
P0rridge
Post subject: Problem in production with default settings?  PostPosted: Nov 15, 2011 - 01:02 PM
Registered Member
Registered Member


Joined: Jun 20, 2010
Posts: 143

I am getting the error posted below in the production logs. Googling it looks like, unfortunately for the popularity of my web site , that when there is no db access for more than some hours the connection times outs.

The solutions offered include changing the persistence.xml settings http://codingclues.eu/2009/commysqljdbcexceptionsjdbc4communicationsexception/.

Is there a reason why this is not default in MyEclipse? Is this the best solution? Any issues?

Thanks

2011-11-14 03:23:36,856 WARN [TP-Processor14] JDBCExceptionReporter - SQL Error: 0, SQLState: 08S01
2011-11-14 03:23:36,859 ERROR [TP-Processor14] JDBCExceptionReporter - The last packet successfully received from the server was 35,100,579 milliseconds ago. The last packet sent successfully to the server was 35,100,579 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.
2011-11-14 03:23:36,863 WARN [TP-Processor14] JDBCExceptionReporter - SQL Error: 0, SQLState: null
2011-11-14 03:23:36,864 ERROR [TP-Processor14] JDBCExceptionReporter - Already closed.
Nov 14, 2011 3:23:36 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet WebFlow Servlet threw exception
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3333)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1971)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2281)
........
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Nov 17, 2011 - 09:48 PM



Joined: Apr 04, 2011
Posts: 196

Hi P0rridge,

Yes, this is an ongoing known issue with MySql. I'm sorry you ran into it.

We don't emit the updated configuration because we don't know the environment of the final running app. Since the config is dependent on database and traffic, we don't make assumptions that a non-default setting is desired.

Thank you for posting your findings here, hopefully it will help someone else.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits