directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiajia Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRKRB-246) Fail to run GSSInteropTest
Date Tue, 05 May 2015 13:56:01 GMT

    [ https://issues.apache.org/jira/browse/DIRKRB-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528461#comment-14528461
] 

Jiajia Li commented on DIRKRB-246:
----------------------------------

Hi Colum, 
In my IDE, the "basedir" is the project dir, but not the module dir, so the test can't find
the krb5.conf under module resources. I will upload a patch, it will create a tmp dir to save
the confs, and will delete the folder after test finish. So that don't care about the what
the value of "basedir", is that ok? 

> Fail to run GSSInteropTest
> --------------------------
>
>                 Key: DIRKRB-246
>                 URL: https://issues.apache.org/jira/browse/DIRKRB-246
>             Project: Directory Kerberos
>          Issue Type: Bug
>            Reporter: Jiajia Li
>            Assignee: Colm O hEigeartaigh
>
> Try to run GSSInteropTest.
> 1. When run in console, error as following:
> {code}
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.073 sec <<<
FAILURE! - in org.apache.kerby.kerberos.kerb.server.GSSInteropTest
> testKdc(org.apache.kerby.kerberos.kerb.server.GSSInteropTest)  Time elapsed: 1.068 sec
 <<< ERROR!
> java.security.PrivilegedActionException: null
>         at sun.security.jgss.krb5.Krb5AcceptCredential.getInstance(Krb5AcceptCredential.java:87)
>         at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:127)
>         at sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:193)
>         at sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:427)
>         at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:62)
>         at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:154)
>         at org.apache.kerby.kerberos.kerb.server.GSSInteropTest$KerberosServiceExceptionAction.run(GSSInteropTest.java:246)
>         at org.apache.kerby.kerberos.kerb.server.GSSInteropTest$KerberosServiceExceptionAction.run(GSSInteropTest.java:225)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:422)
>         at org.apache.kerby.kerberos.kerb.server.GSSInteropTest.validateServiceTicket(GSSInteropTest.java:157)
>         at org.apache.kerby.kerberos.kerb.server.GSSInteropTest.testKdc(GSSInteropTest.java:139)
> {code}
> 2. when run in IDE:
> {code}
> java.io.FileNotFoundException: /home/jiajia/devel/plusplusjiajia/directory-kerby/src/test/resources/krb5.conf
(No such file or directory)
> 	at java.io.FileInputStream.open0(Native Method)
> 	at java.io.FileInputStream.open(FileInputStream.java:195)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:138)
> 	at org.apache.kerby.kerberos.kerb.server.GSSInteropTest.setUp(GSSInteropTest.java:93)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message