Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 998B96B05 for ; Fri, 15 Jul 2011 17:36:25 +0000 (UTC) Received: (qmail 57829 invoked by uid 500); 15 Jul 2011 17:36:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57479 invoked by uid 500); 15 Jul 2011 17:36:24 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 57400 invoked by uid 99); 15 Jul 2011 17:36:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 17:36:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 17:36:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 998DB59EEA for ; Fri, 15 Jul 2011 17:36:00 +0000 (UTC) Date: Fri, 15 Jul 2011 17:36:00 +0000 (UTC) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Message-ID: <2078195969.18086.1310751360625.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DERBY-5338) When attempting to insert a 4GB stream client gives SQLState XN015 network protocol error vs embedded 22003 data too large for type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org When attempting to insert a 4GB stream client gives SQLState XN015 network protocol error vs embedded 22003 data too large for type ----------------------------------------------------------------------------------------------------------------------------------- Key: DERBY-5338 URL: https://issues.apache.org/jira/browse/DERBY-5338 Project: Derby Issue Type: Bug Components: Network Client Affects Versions: 10.9.0.0 Reporter: Kathey Marsden Priority: Minor In converting LobLimits test DERBY-1903, I see that attempting to insert a 4GB stream with client gives the error XN015 Caused by: org.apache.derby.client.am.SqlException: Network protocol error: the specified size of the InputStream, parameter #4, is less than the actual InputStream length. at org.apache.derby.client.net.Request.writePlainScalarStream(Request.java:359) at org.apache.derby.client.net.Request.writeScalarStream(Request.java:247) at org.apache.derby.client.net.NetStatementRequest.buildEXTDTA(NetStatementRequest.java:963) at org.apache.derby.client.net.NetStatementRequest.writeExecute(NetStatementRequest.java:151) at org.apache.derby.client.net.NetPreparedStatement.writeExecute_(NetPreparedStatement.java:174) at org.apache.derby.client.am.PreparedStatement.writeExecute(PreparedStatement.java:1800) at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2030) at org.apache.derby.client.am.PreparedStatement.executeUpdateX(PreparedStatement.java:417) at org.apache.derby.client.am.PreparedStatement.executeUpdate(PreparedStatement.java:403) ... 38 more vs's embedded's 22003, the length exceeds the maximum length for the data type. I am not sure if the connection is lost or not. It typically is with protocol errors. Look for this bug number in largedata.LobLimits.java for test case. You can remove the exclusion for usingDerbyNetClient and run org.apache.derbyTesting.functionTests.tests.largedata.LobLimitsLiteTest to reproduce the problem. I will check the test case in soon as part of DERBY-1903 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira