[ 
https://issues.apache.org/jira/browse/DERBY-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kathey Marsden updated DERBY-4149:
----------------------------------

    Attachment: derby-4149_fixDirRemoval_diff.txt

The attached patch changes the test to shutdown the engine instead of the 
database with the teardown method, before removing the direcstory. This allows 
the directory to be properly removed on iseries.  The test still fails on 
iseries but will not leave the hard to remove directory behind.

I will commit this patch this afternoon unless anyone has comments.  I am still 
working to isolate the iseries java problem.


> test failure in jdbcapi.InternationalConnectSimpleDSTest fixture  
> testSimpleDSConnect on IBM iseries - Database '?' not found.
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4149
>                 URL: https://issues.apache.org/jira/browse/DERBY-4149
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>         Environment: IBM iseries, OS: AS/400; OS version: !V5R4M0, jvm: IBM 
> 1.5 (build 1.5.0_13-b05)
>            Reporter: Myrna van Lunteren
>         Attachments: derby-4149_fixDirRemoval_diff.txt, removechindb.java, 
> RemoveDir.java, ReproDerby4149.java
>
>
> This is the test failure's stack trace:
>  
> testSimpleDSConnect(org.apache.derbyTesting.functionTests.tests.jdbcapi.InternationalConnectSimpleDSTest)java.sql.SQLException:
>  Database '?' not found.
>       at java.lang.Throwable.<init>(Throwable.java:196)
>       at java.lang.Exception.<init>(Exception.java:41)
>       at java.sql.SQLException.<init>(SQLException.java:40)
>       at org.apache.derby.impl.jdbc.EmbedSQLException.<init>(Unknown Source)
>       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.EmbedConnection.handleDBNotFound(Unknown 
> Source)
>       at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
>       at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
>       at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
>       at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
>       at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown 
> Source)
>       at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown 
> Source)
>       at 
> org.apache.derbyTesting.functionTests.tests.jdbcapi.InternationalConnectSimpleDSTest.testSimpleDSConnect(InternationalConnectSimpleDSTest.java:61)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at 
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:84)
>       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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to