On Aug 19, 2008, at 1:42 AM, Richard Grantham wrote:

> Me again, more issues upgrading to Resin 3.1.6. This time with JMS.
>
> We are using MS SQL Server 2005 with JTDS which generates the  
> following
> error when attempting to send a JMS message using a JDBC queue  
> (snipped
> for brevity).

Thanks, I've filed this as a bug.  http://bugs.caucho.com/view.php?id=2856

-- Scott

>
>
> org.springframework.jms.UncategorizedJmsException: Uncategorized
> exception occured during JMS processing; nested exception is
> com.caucho.jms.JMSExceptionWrapper: I/O Error: More data in stream  
> than
> specified by length
> Caused by:
> com.caucho.jms.JMSExceptionWrapper: I/O Error: More data in stream  
> than
> specified by length
>       at com.caucho.jms.jdbc.JdbcQueue.send(JdbcQueue.java:201)
>       at
> com.caucho.jms.connection.JmsSession.send(JmsSession.java:888)
>       at
> com 
> .caucho.jms.connection.MessageProducerImpl.send(MessageProducerImpl.j
> ava:276)
>       at
> com 
> .caucho.jms.connection.MessageProducerImpl.send(MessageProducerImpl.j
> ava:207)
>       at
> org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:534)
>       at
> org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:511)
>       at
> org.springframework.jms.core.JmsTemplate$2.doInJms(JmsTemplate.java: 
> 477)
>       at
> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:428)
>       at
> org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:475)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun 
> .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>       at
> sun 
> .reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> Caused by: java.sql.SQLException: I/O Error: More data in stream than
> specified by length
>       at
> net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1049)
>       at
> net 
> .sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:47
> 8)
>       at
> net 
> .sourceforge.jtds.jdbc.JtdsPreparedStatement.executeUpdate(JtdsPrepar
> edStatement.java:421)
>       at
> net 
> .sourceforge.jtds.jdbcx.proxy.PreparedStatementProxy.executeUpdate(Pr
> eparedStatementProxy.java:75)
>       at
> com 
> .caucho.sql.UserPreparedStatement.executeUpdate(UserPreparedStatement
> java:107)
>       at
> com 
> .caucho.sql.UserPreparedStatement.executeUpdate(UserPreparedStatement
> java:107)
>       at com.caucho.jms.jdbc.JdbcMessage.send(JdbcMessage.java:298)
>       at com.caucho.jms.jdbc.JdbcQueue.send(JdbcQueue.java:199)
>       ... 68 more
> Caused by: java.io.IOException: More data in stream than specified by
> length
>       at
> net.sourceforge.jtds.jdbc.ParamInfo.loadFromStream(ParamInfo.java:272)
>       at
> net.sourceforge.jtds.jdbc.ParamInfo.getBytes(ParamInfo.java:232)
>       at
> net.sourceforge.jtds.jdbc.TdsData.writeParam(TdsData.java:2186)
>       at
> net.sourceforge.jtds.jdbc.TdsCore.executeSQL70(TdsCore.java:3787)
>       at
> net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1029)
>       ... 75 more
>
> It would appear that when persisting a blob to the database-backed JMS
> queue the size is calculated incorrectly.
>
> rgds,
>
> Richard
>
>
>
> Richard Grantham
> Development
>
> -------------------------------
> [EMAIL PROTECTED]
> Limehouse Software Ltd
> DDI: (020) 7566 3336
> Main: (020) 7566 3320
> Fax: (020) 7566 3321
> Limehouse Software Ltd
> 4th Floor
> 1 London Bridge
> London
> SE1 9BG
> Manchester Office:
> 3rd Floor, The Triangle, Exchange Square, Manchester M4 3TR
> Tel: (0161) 240 2440, Fax: (0161) 240 2441, ISDN: 08700 119 400
> Check out Limehouse Software's innovative solutions
> www.limehousesoftware.co.uk - Transforming the way you publish and  
> consult on information
> The information contained in this e-mail or in any attachments is  
> confidential and is intended solely for the named addressee only.  
> Access to this e-mail by anyone else is unauthorised. If you are not  
> the intended recipient, please notify Limehouse Software Ltd  
> immediately by returning this e-mail to sender or calling 020 7566  
> 3320 and do not read, use or disseminate the information. Opinions  
> expressed in this e-mail are those of the sender and not necessarily  
> the company. Although an active anti-virus policy is operated, the  
> company accepts no liability for any damage caused by any virus  
> transmitted by this e-mail, including any attachments.
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to