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 "Myrna van Lunteren (JIRA)" <ji...@apache.org> on 2007/01/17 02:28:27 UTC

[jira] Commented: (DERBY-2233) junit test derbynet/PreparedStatementTest fails with wctme5.7 (aka j9 2.2/ foundation/j2ME 1.0) and weme6.1 (aka j9 2.3 / foundation/j2ME 1.1)

    [ https://issues.apache.org/jira/browse/DERBY-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465338 ] 

Myrna van Lunteren commented on DERBY-2233:
-------------------------------------------

Similarly to DERBY-2157, this test does not need to run with JSR169, because the client configuration is not supported. 
With jars, all that's needed is to ensure derbynet.jar and derbyclient.jar are not in the classpath, but this is not possible when running with classes.
I worried about possibly missing some valuable testing, but the test has this in the comments:
" This test tested prepared statements in client/server context, and many of the test cases is specifically testing corner cases in client/server communication."
So, it appears ok to run only an empty suite for this test.


> junit test derbynet/PreparedStatementTest fails with wctme5.7 (aka j9 2.2/ foundation/j2ME 1.0) and weme6.1 (aka j9 2.3 / foundation/j2ME 1.1) 
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2233
>                 URL: https://issues.apache.org/jira/browse/DERBY-2233
>             Project: Derby
>          Issue Type: Test
>         Environment: jvms wctme5.7 (aka j9 2.2/ foundation/j2ME 1.0) and weme6.1 (aka j9 2.3 / foundation/j2ME 1.1) 
>            Reporter: Myrna van Lunteren
>         Assigned To: Myrna van Lunteren
>
> The test derbynet/preparedStatementTest, recently (Jan 2, revision 491768) converted to junit, fails with the CDC/Foundation/JSR169/J2ME implementation. 
> wctme5.7/j9 2.2/j2ME 1.0 shows: 
> ----------------------------------- 
> 1) testParameterTypes(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.lang.NoClassDefFoundError: java.math.BigDecimal 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testParameterTypes(PrepareStatementTest.java:182) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 2) testBigDecimalSetObject(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.lang.NoClassDefFoundError: java.math.BigDecimal 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testBigDecimalSetObject(PrepareStatementTest.java:430) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 3) testBigDecimalSetObjectWithScale(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.lang.NoClassDefFoundError: java.math.BigDecimal 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testBigDecimalSetObjectWithScale(PrepareStatementTest.java:478) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 4) testSmallBigDecimal(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.lang.NoClassDefFoundError: java.math.BigDecimal 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testSmallBigDecimal(PrepareStatementTest.java:555) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> ---------------------------------- 
> weme6.1/j9 2.3/j2ME 1.1 shows: 
> ---------------------------------- 
> 1) testParameterTypes(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.lang.NoSuchMethodError: java/sql/PreparedStatement.setBigDecimal(ILjava/math/BigDecimal;)V 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testParameterTypes(PrepareStatementTest.java:210) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:203) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 2) testBigDecimalSetObject(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.sql.SQLException: An attempt was made to get a data value of type 'DOUBLE' from a data value of type 'java.math.BigDecimal'. 
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.dataTypeConversion(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source) 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testBigDecimalSetObject(PrepareStatementTest.java:448) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:203) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 3) testBigDecimalSetObjectWithScale(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.sql.SQLException: An attempt was made to get a data value of type 'NUMERIC' from a data value of type 'java.math.BigDecimal'. 
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.dataTypeConversion(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source) 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testBigDecimalSetObjectWithScale(PrepareStatementTest.java:484) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:203) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 4) testSmallBigDecimal(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.sql.SQLException: An attempt was made to get a data value of type 'NUMERIC' from a data value of type 'java.math.BigDecimal'. 
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.dataTypeConversion(Unknown Source) 
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source) 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testSmallBigDecimal(PrepareStatementTest.java:567) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:203) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 5) testAlternatingLobValuesAndNull(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.security.AccessControlException: Access denied (java.util.PropertyPermission file.encoding read) 
> at <unknown class>.<unknown method>(Unknown Source) 
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:618) 
> at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:377) 
> at java.lang.System.getProperty(System.java:363) 
> at java.lang.System.getProperty(System.java:348) 
> at java.lang.String.defaultConverter(String.java:541) 
> at java.lang.String.getBytes(String.java:622) 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testAlternatingLobValuesAndNull(PrepareStatementTest.java:917) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:203) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 6) testLargeParameters_a(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.security.AccessControlException: Access denied (java.util.PropertyPermission file.encoding read) 
> at <unknown class>.<unknown method>(Unknown Source) 
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:618) 
> at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:377) 
> at java.lang.System.getProperty(System.java:363) 
> at java.lang.System.getProperty(System.java:348) 
> at java.lang.String.defaultConverter(String.java:541) 
> at java.lang.String.getBytes(String.java:622) 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testLargeParameters_a(PrepareStatementTest.java:1120) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:203) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> 7) testLargeParameters_b(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)java.security.AccessControlException: Access denied (java.util.PropertyPermission file.encoding read) 
> at <unknown class>.<unknown method>(Unknown Source) 
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:618) 
> at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:377) 
> at java.lang.System.getProperty(System.java:363) 
> at java.lang.System.getProperty(System.java:348) 
> at java.lang.String.defaultConverter(String.java:541) 
> at java.lang.String.getBytes(String.java:622) 
> at org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest.testLargeParameters_b(PrepareStatementTest.java:1164) 
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:203) 
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76) 
> 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) 
> ---------------------------------- 
> (Note, possibly errors, 5,6,and 7 are a separate problem). 

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