[teiid-issues] [JBoss JIRA] (TEIID-2835) After switch to use io.netty, getting exception in TestJDBCSocketTransport

Van Halbert (JIRA) issues at jboss.org
Mon Feb 3 15:58:28 EST 2014


Van Halbert created TEIID-2835:
----------------------------------

             Summary: After switch to use io.netty, getting exception in TestJDBCSocketTransport
                 Key: TEIID-2835
                 URL: https://issues.jboss.org/browse/TEIID-2835
             Project: Teiid
          Issue Type: Bug
          Components: Server
    Affects Versions: 8.7
         Environment: Running build on mac
            Reporter: Van Halbert
            Assignee: Steven Hawkins


When building off of master (which I see there's been a change to io.netty), I get the following error:

Running org.teiid.transport.TestJDBCSocketTransport
Feb 3, 2014 2:51:12 PM org.teiid.logging.JavaLogger log
SEVERE: TEIID40113 Unhandled exception, aborting operation
org.jboss.netty.handler.codec.frame.TooLongFrameException: Adjusted frame length exceeds 100000: 100293 - discarded
	at org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder.fail(LengthFieldBasedFrameDecoder.java:417)
	at org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder.failIfNecessary(LengthFieldBasedFrameDecoder.java:405)
	at org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder.decode(LengthFieldBasedFrameDecoder.java:320)
	at org.teiid.transport.ObjectDecoder.decode(ObjectDecoder.java:108)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)
	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)
	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:695)

I made a change to SSLAwareChannelHandler to increase the estimated decoder size to Integer.MAX_VALUE and the problem was gone.  Here's the difference in size estimates based on what the default was using and the MAX_VALUE I tested with:

=========== DEFAULT ===========2097152
=========== Int Max ===========2147483647

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list