Jeffrey Clary wrote:
I didn't attach them before because of their size, but here you go.
Thank you for attaching it. I checked for the failures in the jdbc4 suite and this gives you the clue

java.lang.NoClassDefFoundError: org/apache/derbyTesting/functionTests/tests/jdbc4/TestJDBC40Exception

I reproduced this error the following way I commented the jdk16 variable in my ant.properties.

set my JAVA_HOME = <1.4 home> or <1.6 home>
set PATH=$JAVA_HOME/bin:$PATH

Then did a ant clobber && ant all && ant buildjarsclean.

Now in my test directory I ran

java org.apache.derbyTesting.functionTests.harness.RunSuite jdbc40

Attached is the report for the test. The failure I encounter in the jdbc4 tests if you notice is similar to the failures you see in the jdbc4 tests in your derbyall run.

I am sure that for some reason the JDBC 4.0 files in your repository have not compiled. The main reason being that the jdk16 variable has not been set.

When you run the tests with 1.6 it searches for the JDBC 4.0 related files and does not find it and throws the exception.

There is a problem in your build environment or as kristian said in his email probably you are pointing the CLASSPATH when the tests are run to the wrong location of jar files.

Hope this helps!

By the way, I appreciate your patient help.
Absolutely No problem! As I try to do my best to help I learn a lot too.
Jeff
Generating report for RunSuite jdbc40  null null null true 
------------------ Java Information ------------------
Java Version:    1.6.0_01-ea
Java Vendor:     Sun Microsystems Inc.
Java home:       /usr/java/jdk1.6.0_01/jre
Java classpath:  
/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derby.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_de_DE.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_es.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_fr.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_it.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_ja_JP.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_ko_KR.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_pt_BR.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_zh_CN.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyLocale_zh_TW.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyTesting.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyclient.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbynet.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbytools.jar:/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyrun.jar:/home/narayanan/checkouts/freshworkspace/trunk/tools/java/jakarta-oro-2.0.8.jar:/home/narayanan/checkouts/freshworkspace/trunk/tools/java/db2jcc.jar:/home/narayanan/checkouts/freshworkspace/trunk/tools/java/db2jcc_license_c.jar:/home/narayanan/checkouts/freshworkspace/trunk/tools/java/junit.jar
OS name:         Linux
OS architecture: i386
OS version:      2.6.17-11-386
Java user name:  narayanan
Java user home:  /home/narayanan
Java user dir:   /home/narayanan/TestRuns/run1
java.specification.name: Java Platform API Specification
java.specification.version: 1.6
--------- Derby Information --------
JRE - JDBC: Java SE 6 - JDBC 4.0
[/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derby.jar] 10.3.0.0 
alpha - (523185)
[/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbytools.jar] 
10.3.0.0 alpha - (523185)
[/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbynet.jar] 
10.3.0.0 alpha - (523185)
[/home/narayanan/checkouts/freshworkspace/trunk/jars/sane/derbyclient.jar] 
10.3.0.0 alpha - (523185)
[/home/narayanan/checkouts/freshworkspace/trunk/tools/java/db2jcc.jar] 2.4 - 
(17)
[/home/narayanan/checkouts/freshworkspace/trunk/tools/java/db2jcc_license_c.jar]
 2.4 - (17)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale :  [English/United States [en_US]]
Found support for locale: [cs]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [de_DE]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [es]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [fr]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [hu]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [it]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [ja_JP]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [ko_KR]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [pl]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [pt_BR]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [ru]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [zh_CN]
         version: 10.3.0.0 alpha - (523185)
Found support for locale: [zh_TW]
         version: 10.3.0.0 alpha - (523185)
------------------------------------------------------
Test environment information:
COMMAND LINE STYLE: jdk13
TEST CANONS: master
------------------------------------------------------
------------------------------------------------------
Summary results:

Test Run Started: 2007-03-28 11:31:08.0
Test Run Duration: 00:00:04

4 Tests Run
 0% Pass (0 tests passed)
100% Fail (4 tests failed)
0 Suites skipped
------------------------------------------------------
Failed tests in: jdbc40_fail.txt
------------------------------------------------------
System properties in: jdbc40_prop.txt
------------------------------------------------------
------------------------------------------------------
Failure Details:
********* Diff file jdbc40/jdbc40/TestConnectionMethods.diff
*** Start: TestConnectionMethods jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 
11:31:09 ***
0 add
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/derbyTesting/functionTests/tests/jdbc4/TestConnectionMethods
Test Failed.
*** End:   TestConnectionMethods jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 
11:31:10 ***
********* Diff file jdbc40/jdbc40/TestPreparedStatementMethods.diff
*** Start: TestPreparedStatementMethods jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 
11:31:10 ***
0 add
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods
Test Failed.
*** End:   TestPreparedStatementMethods jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 
11:31:10 ***
********* Diff file jdbc40/jdbc40/TestResultSetMethods.diff
*** Start: TestResultSetMethods jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 
11:31:10 ***
0 add
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/derbyTesting/functionTests/tests/jdbc4/TestResultSetMethods
Test Failed.
*** End:   TestResultSetMethods jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 
11:31:11 ***
********* Diff file jdbc40/jdbc40/AutoloadBooting.diff
*** Start: AutoloadBooting jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 11:31:11 ***
0 add
> Class not found 
> "org.apache.derbyTesting.functionTests.tests.jdbc4.AutoloadBooting"
Test Failed.
*** End:   AutoloadBooting jdk1.6.0_01-ea jdbc40:jdbc40 2007-03-28 11:31:12 ***
------------------------------------------------------

Reply via email to