You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Tomohito Nakayama (JIRA)" <de...@db.apache.org> on 2005/10/02 10:48:48 UTC

[jira] Commented: (DERBY-596) jdbcapi/resultsetStream.java fails in DerbyNetClient Framework

    [ http://issues.apache.org/jira/browse/DERBY-596?page=comments#action_12331067 ] 

Tomohito Nakayama commented on DERBY-596:
-----------------------------------------

In the part where next difference  was found , the test program seems to make length of data to be illegal intentionally .
I read these messages that error was correctly handled in network environment .

12 del
< EXPECTED SQLSTATE(XSDA4): An unexpected exception was thrown
13 del
< EXPECTED SQLSTATE(XJ001): Java exception: 'Input stream held less data than requested length.: java.io.IOException'.
14 del
< EXPECTED SQLSTATE(XSDA4): An unexpected exception was thrown
15 del
< EXPECTED SQLSTATE(XJ001): Java exception: 'Input stream held less data than requested length.: java.io.IOException'.
15a13,14
> EXPECTED SQLSTATE(null): End of Stream prematurely reached while reading InputStream, parameter #2.  Remaining data has been 
> padded with 0x0.
> EXPECTED SQLSTATE(null): The specified size of the InputStream, parameter #2, is less than the actual InputStream length


On the other hand , next error seems to not be a just error messaging problem .
8a9
> FAIL - stream was not closed after a get*() call. class java.io.ByteArrayInputStream



>  jdbcapi/resultsetStream.java fails in DerbyNetClient Framework
> ---------------------------------------------------------------
>
>          Key: DERBY-596
>          URL: http://issues.apache.org/jira/browse/DERBY-596
>      Project: Derby
>         Type: Bug
>   Components: Network Client, Network Server, Test
>     Versions: 10.2.0.0
>     Reporter: Tomohito Nakayama
>     Assignee: Tomohito Nakayama

>
> Working in DERBY-525, I found that  jdbcapi/resultsetStream.java , which was originally excluded from DerbyNetClient Framework, fails, if added to.
> Next is resultsetStream.diff :
> ------------------ Java Information ------------------
> Java Version:    1.4.2_08
> Java Vendor:     Sun Microsystems Inc.
> Java home:       /usr/local/j2sdk1.4.2_08/jre
> Java classpath:  /home/naka/ProgramDev/derby/trunk/jars/sane/derby.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyclient.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbytools.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbynet.jar:/usr/local/share/java/db2jcc/lib/db2jcc.jar:/usr/local/share/java/db2jcc/lib/db2jcc_license_c.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyTesting.jar:/home/naka/ProgramDev/derby/trunk/tools/java/jakarta-oro-2.0.8.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_de_DE.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_es.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_fr.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_it.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_ja_JP.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_ko_KR.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_pt_BR.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_zh_CN.jar:/home/naka/ProgramDev/derby/trunk/jars/sane/derbyLocale_zh_TW.jar
> OS name:         Linux
> OS architecture: i386
> OS version:      2.4.27-2-386
> Java user name:  naka
> Java user home:  /home/naka
> Java user dir:   /home/naka/ProgramDev/testDerby/20051001
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [/home/naka/ProgramDev/derby/trunk/jars/sane/derby.jar] 10.2.0.0 alpha - (292740M)
> [/home/naka/ProgramDev/derby/trunk/jars/sane/derbyclient.jar] 10.2.0.0 alpha - (292740M)
> [/home/naka/ProgramDev/derby/trunk/jars/sane/derbytools.jar] 10.2.0.0 alpha - (292740M)
> [/home/naka/ProgramDev/derby/trunk/jars/sane/derbynet.jar] 10.2.0.0 alpha - (292740M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale :  [English/United States [en_US]]
> Found support for locale: [de_DE]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [es]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [fr]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [it]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [ja_JP]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [ko_KR]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [pt_BR]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [zh_CN]
> 	 version: 10.2.0.0 alpha - (292740M)
> Found support for locale: [zh_TW]
> 	 version: 10.2.0.0 alpha - (292740M)
> ------------------------------------------------------
> Framework: DerbyNetClient
> *** Start: resultsetStream jdk1.4.2_08 DerbyNetClient 2005-10-02 13:56:27 ***
> 8a9
> > FAIL - stream was not closed after a get*() call. class java.io.ByteArrayInputStream
> 12 del
> < EXPECTED SQLSTATE(XSDA4): An unexpected exception was thrown
> 13 del
> < EXPECTED SQLSTATE(XJ001): Java exception: 'Input stream held less data than requested length.: java.io.IOException'.
> 14 del
> < EXPECTED SQLSTATE(XSDA4): An unexpected exception was thrown
> 15 del
> < EXPECTED SQLSTATE(XJ001): Java exception: 'Input stream held less data than requested length.: java.io.IOException'.
> 15a13,14
> > EXPECTED SQLSTATE(null): End of Stream prematurely reached while reading InputStream, parameter #2.  Remaining data has been padded with 0x0.
> > EXPECTED SQLSTATE(null): The specified size of the InputStream, parameter #2, is less than the actual InputStream length
> Test Failed.
> *** End:   resultsetStream jdk1.4.2_08 DerbyNetClient 2005-10-02 13:56:49 ***

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira