[ https://issues.apache.org/jira/browse/DERBY-3400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567182#action_12567182 ]
Manjula Kutty commented on DERBY-3400: -------------------------------------- And here is the answer I got when I posted the same in the derby_dev list Manjula Kutty wrote: > The getTypeInfo Fails with ibm16 while running the UpgradeTests. Here is > junit stack trace > > 1) > testGetTypeInfo(org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest)junit.framework.AssertionFailedError: > Column nullability do not match for column 16 expected:<1> but was:<0> > > at org.apache.derbyTesting.junit.JDBC.assertNullability(JDBC.java:741) > > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest.assertMetaDataResultSet(DatabaseMetaDataTest.java:2348) > > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest.testGetTypeInfo(DatabaseMetaDataTest.java:2230) > Does it look like derby issue or a jvm problem? Looks like a jvm issue: DatabaseMetaDataTest passes on the same vm standalone. This test passes on other virtual machines. The expected and correct nullability for the column is non-null which is a zero in the assert above. The the engine is returning the correct value (0) but the assert is expecting (1). At line 2220 of DatabaseMetaDataTest is where the expected value for this column is set: ODBC_COLUMN_NULLABILITY[16 - 1] = false; The false would map to a zero in the expected value. It's as though that line was not being executed by the virtual machine. HTH, Dan. > testgetTypeInfo Fails with ibm16 while running the UpgradeTests > --------------------------------------------------------------- > > Key: DERBY-3400 > URL: https://issues.apache.org/jira/browse/DERBY-3400 > Project: Derby > Issue Type: Bug > Affects Versions: 10.4.0.0 > Environment: java version "1.6.0" > Java(TM) SE Runtime Environment (build pwi3260sr1-20080108_02) > IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Windows XP x86-32 > jvmwi3260-20080102 > _15870 (JIT enabled) > J9VM - 20080102_015870_lHdSMr > JIT - r9_20080101_1821 > GC - 20071224_AA) > JCL - 20071219_01 > sysinfo > ----------------- > [C:/derbydev/trunk/test] java org.apache.derby.tools.sysinfo > ------------------ Java Information ------------------ > Java Version: 1.6.0 > Java Vendor: IBM Corporation > Java home: c:\p4client\mkutty_main\ibm16\jre > Java classpath: > c:/derbydev/trunk/classes;c:/derbydev/trunk/tools/java/junit.ja > r;. > OS name: Windows XP > OS architecture: x86 > OS version: 5.1 build 2600 Service Pack 2 > Java user name: mkutty > Java user home: C:\Documents and Settings\Administrator > Java user dir: C:\derbydev\trunk\test > java.specification.name: Java Platform API Specification > java.specification.version: 1.6 > --------- Derby Information -------- > JRE - JDBC: Java SE 6 - JDBC 4.0 > [C:\derbydev\trunk\classes] 10.4.0.0 alpha - (1) > ------------------------------------------------------ > ----------------- Locale Information ----------------- > Current Locale : [English/United States [en_US]] > Found support for locale: [cs] > version: 10.4.0.0 alpha - (1) > Found support for locale: [de_DE] > version: 10.4.0.0 alpha - (1) > Found support for locale: [es] > version: 10.4.0.0 alpha - (1) > Found support for locale: [fr] > version: 10.4.0.0 alpha - (1) > Found support for locale: [hu] > version: 10.4.0.0 alpha - (1) > Found support for locale: [it] > version: 10.4.0.0 alpha - (1) > Found support for locale: [ja_JP] > version: 10.4.0.0 alpha - (1) > Found support for locale: [ko_KR] > version: 10.4.0.0 alpha - (1) > Found support for locale: [pl] > version: 10.4.0.0 alpha - (1) > Found support for locale: [pt_BR] > version: 10.4.0.0 alpha - (1) > Found support for locale: [ru] > version: 10.4.0.0 alpha - (1) > Found support for locale: [zh_CN] > version: 10.4.0.0 alpha - (1) > Found support for locale: [zh_TW] > version: 10.4.0.0 alpha - (1) > ------------------------------------------------------ > Reporter: Manjula Kutty > Fix For: 10.4.0.0 > > > I can reproduce the test with the just one old version(10.2.2.0) > Here is the junit stack trace > 1) > testGetTypeInfo(org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest)junit.framework.AssertionFailedError: > Column nullability do not match for column 16 expected:<1> but was:<0> > at org.apache.derbyTesting.junit.JDBC.assertNullability(JDBC.java:741) > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest.assertMetaDataResultSet(DatabaseMetaDataTest.java:2348) > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.DatabaseMetaDataTest.testGetTypeInfo(DatabaseMetaDataTest.java:2230) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:99) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > More info can be found at > > > http://people.apache.org/~fuzzylogic/derby_test_results/main/linux/testlog/ibm16/617742-suites.All_diff.txt -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.