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

Raminderjeet Singh updated AIRAVATA-930:
----------------------------------------

    Affects Version/s:     (was: 0.9)
                       0.10

> Airavata Security Implementation failing because of existing database
> ---------------------------------------------------------------------
>
>                 Key: AIRAVATA-930
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-930
>             Project: Airavata
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 0.10
>            Reporter: Raminderjeet Singh
>
> Test fails with following error.
> Running org.apache.airavata.security.userstore.SessionDBUserStoreTest
> [main] ERROR org.apache.airavata.common.utils.DBUtil - An error occurred 
> while closing database connections
> java.sql.SQLException: Cannot close a connection while a transaction is still 
> active.
>       at 
> org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>       at org.apache.derby.client.am.SqlException.getSQLException(Unknown 
> Source)
>       at org.apache.derby.client.am.Connection.closeResourcesX(Unknown Source)
>       at org.apache.derby.client.am.Connection.closeX(Unknown Source)
>       at org.apache.derby.client.net.NetConnection.closeX(Unknown Source)
>       at org.apache.derby.client.am.Connection.close(Unknown Source)
>       at org.apache.derby.client.net.NetConnection.close(Unknown Source)
>       at org.apache.derby.client.net.NetConnection40.close(Unknown Source)
>       at org.apache.airavata.common.utils.DBUtil.executeSQL(DBUtil.java:174)
>       at 
> org.apache.airavata.common.utils.DatabaseTestCases.executeSQL(DatabaseTestCases.java:106)
>       at 
> org.apache.airavata.security.userstore.SessionDBUserStoreTest.setUpDatabase(SessionDBUserStoreTest.java:51)
> Caused by: org.apache.derby.client.am.SqlException: Cannot close a connection 
> while a transaction is still active.
>       at 
> org.apache.derby.client.am.Connection.checkForTransactionInProgress(Unknown 
> Source)
>       ... 31 more
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.131 sec <<< 
> FAILURE!
> Results :
> Tests in error:
>   org.apache.airavata.security.userstore.JDBCUserStoreTest: Table/View 
> 'AIRAVATA_USER' already exists in Schema 'ADMIN'.
>   org.apache.airavata.security.userstore.SessionDBUserStoreTest: Table/View 
> 'PERSONS' already exists in Schema 'ADMIN'.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to