<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Messages posted by "lomboz"]]></title>
		<link>http://forums.terracotta.org/forums/posts/listByUser/3110.page</link>
		<description><![CDATA[Messages posted by "lomboz"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Problem with Quartz an CMT Datasource</title>
				<description><![CDATA[ Hello together,

I have a installation of a J2EE Software an problems with quartz and the CMT Datasource. We have updated quartz from 1.4 to 1.7.3.
My system environment is as follow:
- JBoss 4.2.3 GA
- mySql 5.0.67
- mysql-Driver 5.0.5 GA
- Quartz-Version: 1.7.3 (Updated from Quartz 1.4)
- Hibernateversion 2.0

My JBoss Datasource looks as follow:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;datasources&gt;
   &lt;local-tx-datasource&gt;

      &lt;!-- The jndi name of the DataSource, it is prefixed with java:/ --&gt;
      &lt;jndi-name&gt;jdbc/mySQL_Datasource&lt;/jndi-name&gt;
      
      &lt;!-- The connection url to db --&gt;
      &lt;connection-url&gt;jdbc:mysql://url:port/db?autoReconnect=true&lt;/connection-url&gt;

      &lt;driver-class&gt;com.mysql.jdbc.Driver&lt;/driver-class&gt;

      &lt;!-- The login and password --&gt;
      &lt;user-name&gt;username&lt;/user-name&gt;
      &lt;password&gt;password&lt;/password&gt;
      &lt;min-pool-size&gt;5&lt;/min-pool-size&gt;
      &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;
   &lt;/local-tx-datasource&gt;

   &lt;no-tx-datasource&gt;
      &lt;!-- The jndi name of the DataSource, it is prefixed with java:/ --&gt;
      &lt;jndi-name&gt;jdbc/mySQL_datasource_nonTx&lt;/jndi-name&gt;
      &lt;connection-url&gt;jdbc:mysql://url:port/db_name?autoReconnect=true&lt;/connection-url&gt;

      &lt;!-- The driver class --&gt;
      &lt;driver-class&gt;com.mysql.jdbc.Driver&lt;/driver-class&gt;

      &lt;!-- The login and password --&gt;
      &lt;user-name&gt;username&lt;/user-name&gt;
      &lt;password&gt;password&lt;/password&gt;
      &lt;min-pool-size&gt;5&lt;/min-pool-size&gt;
      &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;
   &lt;/no-tx-datasource&gt;
&lt;/datasources&gt;
</pre>
		</div>
And i have following exception in my log.files
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">ERROR &#91;org.quartz.impl.jdbcjobstore.JobStoreCMT&#93; MisfireHandler: Error handling misfires: null
java.lang.reflect.UndeclaredThrowableException
	at $Proxy56.rollback&#40;Unknown Source&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.rollbackConnection&#40;JobStoreSupport.java:3583&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.doRecoverMisfires&#40;JobStoreSupport.java:3133&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage&#40;JobStoreSupport.java:3869&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.run&#40;JobStoreSupport.java:3889&#41;
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor220.invoke&#40;Unknown Source&#41;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java:25&#41;
	at java.lang.reflect.Method.invoke&#40;Method.java:597&#41;
	at org.quartz.impl.jdbcjobstore.AttributeRestoringConnectionInvocationHandler.invoke&#40;AttributeRestoringConnectionInvocationHandler.java:71&#41;
	... 5 more
Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: 

** BEGIN NESTED EXCEPTION ** 

java.net.SocketException
MESSAGE: Broken pipe

STACKTRACE:

java.net.SocketException: Broken pipe
	at java.net.SocketOutputStream.socketWrite0&#40;Native Method&#41;
	at java.net.SocketOutputStream.socketWrite&#40;SocketOutputStream.java:92&#41;
	at java.net.SocketOutputStream.write&#40;SocketOutputStream.java:136&#41;
	at java.io.BufferedOutputStream.flushBuffer&#40;BufferedOutputStream.java:65&#41;
	at java.io.BufferedOutputStream.flush&#40;BufferedOutputStream.java:123&#41;
	at com.mysql.jdbc.MysqlIO.send&#40;MysqlIO.java:2708&#41;
	at com.mysql.jdbc.MysqlIO.sendCommand&#40;MysqlIO.java:1604&#41;
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect&#40;MysqlIO.java:1715&#41;
	at com.mysql.jdbc.Connection.execSQL&#40;Connection.java:3243&#41;
	at com.mysql.jdbc.Connection.setAutoCommit&#40;Connection.java:5371&#41;
	at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkTransaction&#40;BaseWrapperManagedConnection.java:529&#41;
	at org.jboss.resource.adapter.jdbc.WrappedConnection.checkTransaction&#40;WrappedConnection.java:826&#41;
	at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback&#40;WrappedConnection.java:499&#41;
	at sun.reflect.GeneratedMethodAccessor220.invoke&#40;Unknown Source&#41;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java:25&#41;
	at java.lang.reflect.Method.invoke&#40;Method.java:597&#41;
	at org.quartz.impl.jdbcjobstore.AttributeRestoringConnectionInvocationHandler.invoke&#40;AttributeRestoringConnectionInvocationHandler.java:71&#41;
	at $Proxy56.rollback&#40;Unknown Source&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.rollbackConnection&#40;JobStoreSupport.java:3583&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport.doRecoverMisfires&#40;JobStoreSupport.java:3133&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage&#40;JobStoreSupport.java:3869&#41;
	at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.run&#40;JobStoreSupport.java:3889&#41;


** END NESTED EXCEPTION **



Last packet sent to the server was 0 ms ago.
	at com.mysql.jdbc.MysqlIO.send&#40;MysqlIO.java:2723&#41;
	at com.mysql.jdbc.MysqlIO.sendCommand&#40;MysqlIO.java:1604&#41;
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect&#40;MysqlIO.java:1715&#41;
	at com.mysql.jdbc.Connection.execSQL&#40;Connection.java:3243&#41;
	at com.mysql.jdbc.Connection.setAutoCommit&#40;Connection.java:5371&#41;
	at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkTransaction&#40;BaseWrapperManagedConnection.java:529&#41;
	at org.jboss.resource.adapter.jdbc.WrappedConnection.checkTransaction&#40;WrappedConnection.java:826&#41;
	at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback&#40;WrappedConnection.java:499&#41;
	... 9 more</pre>
		</div>

I hope this Information are sufficient for describing the Error and anyone can answer my Questions:
- How can we reproduces this error? (This error is from a production System
- How can we fix them ? ]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/preList/4272/22664.page#22664</guid>
				<link>http://forums.terracotta.org/forums/posts/preList/4272/22664.page#22664</link>
				<pubDate><![CDATA[Tue, 28 Sep 2010 07:23:10]]> GMT</pubDate>
				<author><![CDATA[ lomboz]]></author>
			</item>
	</channel>
</rss>