airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shahbaz Memon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-1091) PersistenceException while executing BES or Gram Provider
Date Thu, 27 Mar 2014 09:57:17 GMT

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

Shahbaz Memon commented on AIRAVATA-1091:
-----------------------------------------

Here is the complete trace from the BESProvider execution.
org.apache.airavata.gfac.GFacException: Error while initializing provider org.apache.airavata.gfac.provider.impl.BESProvider.
	at org.apache.airavata.gfac.cpi.GFacImpl.schedule(GFacImpl.java:227)
	at org.apache.airavata.gfac.cpi.GFacImpl.submitJob(GFacImpl.java:199)
	at org.apache.airavata.core.gfac.services.impl.SimpleBESWIthSMS.submitJob(SimpleBESWIthSMS.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.airavata.gfac.GFacException: Error while initializing provider org.apache.airavata.gfac.provider.impl.BESProvider.
	at org.apache.airavata.gfac.cpi.GFacImpl.initProvider(GFacImpl.java:235)
	at org.apache.airavata.gfac.cpi.GFacImpl.schedule(GFacImpl.java:220)
	... 26 more
Caused by: <openjpa-2.2.0-r422266:1244990 fatal general error> org.apache.openjpa.persistence.PersistenceException:
Cannot create PoolableConnectionFactory (Schema 'AIRAVATA' does not exist)
	at org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:102)
	at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:603)
	at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1510)
	at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:518)
	at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443)
	at org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:104)
	at org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
	at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
	at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:968)
	at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:959)
	at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:638)
	at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:203)
	at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)
	at org.apache.airavata.persistance.registry.jpa.ResourceUtils.getEntityManager(ResourceUtils.java:77)
	at org.apache.airavata.persistance.registry.jpa.ResourceUtils.isGatewayExist(ResourceUtils.java:163)
	at org.apache.airavata.persistance.registry.jpa.ResourceUtils.createGateway(ResourceUtils.java:85)
	at org.apache.airavata.persistance.registry.jpa.impl.RegistryImpl.<init>(RegistryImpl.java:47)
	at org.apache.airavata.persistance.registry.jpa.impl.RegistryFactory.getDefaultRegistry(RegistryFactory.java:38)
	at org.apache.airavata.gfac.provider.impl.AbstractProvider.initialize(AbstractProvider.java:38)
	at org.apache.airavata.gfac.provider.impl.BESProvider.initialize(BESProvider.java:107)
	at org.apache.airavata.gfac.cpi.GFacImpl.initProvider(GFacImpl.java:233)
	... 27 more
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory
(Schema 'AIRAVATA' does not exist)
	at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
	at org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:110)
	at org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:87)
	at org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:91)
	... 50 more
Caused by: java.sql.SQLSyntaxErrorException: Schema 'AIRAVATA' does not exist
	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.Statement.executeQuery(Unknown Source)
	at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
	at org.apache.commons.dbcp.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:658)
	at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1558)
	at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
	... 55 more
Caused by: org.apache.derby.client.am.SqlException: Schema 'AIRAVATA' does not exist
	at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source)
	at org.apache.derby.client.net.NetStatementReply.parsePrepareError(Unknown Source)
	at org.apache.derby.client.net.NetStatementReply.parsePRPSQLSTTreply(Unknown Source)
	at org.apache.derby.client.net.NetStatementReply.readPrepareDescribeOutput(Unknown Source)
	at org.apache.derby.client.net.StatementReply.readPrepareDescribeOutput(Unknown Source)
	at org.apache.derby.client.net.NetStatement.readPrepareDescribeOutput_(Unknown Source)
	at org.apache.derby.client.am.Statement.readPrepareDescribeOutput(Unknown Source)
	at org.apache.derby.client.am.Statement.flowExecute(Unknown Source)
	at org.apache.derby.client.am.Statement.executeQueryX(Unknown Source)
	... 60 more



> PersistenceException while executing BES or Gram Provider
> ---------------------------------------------------------
>
>                 Key: AIRAVATA-1091
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-1091
>             Project: Airavata
>          Issue Type: Bug
>          Components: GFac
>         Environment: java version "1.7.0_51"
> OpenJDK Runtime Environment (IcedTea 2.4.4) (suse-8.32.5-x86_64)
> OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
>            Reporter: Shahbaz Memon
>
> I have checkout the latest Airavata sources. 
> While I am running a test case that involves invocation of a GFaC provider (BES or Gram),
I get the following exception, 
> <openjpa-2.2.0-r422266:1244990 fatal general error> org.apache.openjpa.persistence.PersistenceException:
Cannot create PoolableConnectionFactory (Schema 'AIRAVATA' does not exist)
> Thanks.



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

Mime
View raw message