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 "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2014/03/17 09:32:48 UTC

[jira] [Reopened] (DERBY-6107) Investigate why setting a login timeout causes NativeAuthenticationServiceTest to fail when run in a suite

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

Knut Anders Hatlen reopened DERBY-6107:
---------------------------------------


This issue still reproduces in my environment. Note that some of the test cases in NativeAuthenticationServiceTest are disabled on Windows. With JDK 7u51 on Linux, I see this failure when I run lang._Suite with derby.tests.login.timeout=10:

{noformat}
java.sql.SQLSyntaxErrorException: Authentication cannot be performed because the credentials database 'classpath:nast' does not exist.
        at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:95)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:233)
        at org.apache.derby.impl.jdbc.authentication.NativeAuthenticationServiceImpl.authenticateUser(NativeAuthenticationServiceImpl.java:330)
        at org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase.authenticate(AuthenticationServiceBase.java:252)
        at org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials(EmbedConnection.java:1302)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:426)
        at org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:628)
        at org.apache.derby.jdbc.InternalDriver$LoginCallable.call(InternalDriver.java:387)
        at org.apache.derby.jdbc.InternalDriver$LoginCallable.call(InternalDriver.java:363)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: ERROR 4251I: Authentication cannot be performed because the credentials database 'classpath:nast' does not exist.
        at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:290)
        at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:285)
        at org.apache.derby.impl.jdbc.authentication.NativeAuthenticationServiceImpl.authenticateRemotely(NativeAuthenticationServiceImpl.java:438)
        at org.apache.derby.impl.jdbc.authentication.NativeAuthenticationServiceImpl.authenticateUser(NativeAuthenticationServiceImpl.java:321)
        ... 10 more
{noformat}

> Investigate why setting a login timeout causes NativeAuthenticationServiceTest to fail when run in a suite
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-6107
>                 URL: https://issues.apache.org/jira/browse/DERBY-6107
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.1.1
>            Reporter: Rick Hillegas
>
> See DERBY-6094 for the details of this problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)