airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Jayasekara (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRAVATA-909) Airavata API needs airavata-client.properties. Ideally we should need such configuration file
Date Mon, 26 Aug 2013 21:25:52 GMT
Amila Jayasekara created AIRAVATA-909:
-----------------------------------------

             Summary: Airavata API needs airavata-client.properties. Ideally we should need
such configuration file
                 Key: AIRAVATA-909
                 URL: https://issues.apache.org/jira/browse/AIRAVATA-909
             Project: Airavata
          Issue Type: Improvement
            Reporter: Amila Jayasekara
             Fix For: 1.0


I am trying to use Airavata API as a maven dependency. But without above mentioned property
file in my class path, I get following exception;

Ideally we should not have this configuration file. If we need to have this configuration
file we should embed in the jar and let user use the jar as it is.

Thanks
Amila

/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/bin/java -Didea.launcher.port=7535
"-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 12.app/bin" -Dfile.encoding=UTF-8 -classpath
"/Applications/IntelliJ IDEA 12.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 12.app/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/deploy.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/javaws.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/jce.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/plugin.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Classes/charsets.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Classes/classes.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Classes/jsse.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Classes/ui.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/ext/apple_provider.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home/lib/ext/sunpkcs11.jar:/Users/thejaka/development/apache/airavata/airavata/samples/sample-gateway/target/classes:/Users/thejaka/.m2/repository/org/apache/derby/derbyclient/10.9.1.0/derbyclient-10.9.1.0.jar:/Users/thejaka/.m2/repository/org/apache/derby/derbynet/10.9.1.0/derbynet-10.9.1.0.jar:/Users/thejaka/.m2/repository/org/apache/derby/derby/10.9.1.0/derby-10.9.1.0.jar:/Users/thejaka/development/apache/airavata/airavata/modules/airavata-client/target/classes:/Users/thejaka/development/apache/airavata/airavata/modules/registry/registry-api/target/classes:/Users/thejaka/development/apache/airavata/airavata/modules/commons/utils/target/classes:/Users/thejaka/.m2/repository/org/ogce/xpp3/1.1.6/xpp3-1.1.6.jar:/Users/thejaka/.m2/repository/junit/junit/4.7/junit-4.7.jar:/Users/thejaka/.m2/repository/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar:/Users/thejaka/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.2/jcl-over-slf4j-1.7.2.jar:/Users/thejaka/.m2/repository/org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.jar:/Users/thejaka/.m2/repository/org/apache/xmlbeans/xmlbeans/2.5.0/xmlbeans-2.5.0.jar:/Users/thejaka/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/thejaka/.m2/repository/org/ogce/xsul/2.10.7/xsul-2.10.7.jar:/Users/thejaka/.m2/repository/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar:/Users/thejaka/.m2/repository/org/apache/santuario/xmlsec/1.5.5/xmlsec-1.5.5.jar:/Users/thejaka/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/thejaka/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar:/Users/thejaka/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar:/Users/thejaka/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/Users/thejaka/.m2/repository/org/opensaml/opensaml/1.1/opensaml-1.1.jar:/Users/thejaka/.m2/repository/org/bouncycastle/bcprov-jdk16/1.45/bcprov-jdk16-1.45.jar:/Users/thejaka/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/thejaka/.m2/repository/org/apache/ant/ant/1.9.2/ant-1.9.2.jar:/Users/thejaka/.m2/repository/org/apache/ant/ant-launcher/1.9.2/ant-launcher-1.9.2.jar:/Users/thejaka/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/7.0.22/tomcat-embed-core-7.0.22.jar:/Users/thejaka/.m2/repository/org/ogce/xsul5/1.2.7/xsul5-1.2.7.jar:/Users/thejaka/.m2/repository/org/ogce/xpp5/1.2.8/xpp5-1.2.8.jar:/Users/thejaka/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar:/Users/thejaka/.m2/repository/org/apache/ws/commons/axiom/axiom-api/1.2.8/axiom-api-1.2.8.jar:/Users/thejaka/.m2/repository/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.1/geronimo-activation_1.1_spec-1.0.1.jar:/Users/thejaka/.m2/repository/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.2/geronimo-javamail_1.4_spec-1.2.jar:/Users/thejaka/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar:/Users/thejaka/.m2/repository/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar:/Users/thejaka/.m2/repository/org/apache/ws/commons/axiom/axiom-impl/1.2.8/axiom-impl-1.2.8.jar:/Users/thejaka/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.4/wstx-asl-3.2.4.jar:/Users/thejaka/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/1.2.8/axiom-dom-1.2.8.jar:/Users/thejaka/.m2/repository/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.2/geronimo-ws-metadata_2.0_spec-1.1.2.jar:/Users/thejaka/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar:/Users/thejaka/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar:/Users/thejaka/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/thejaka/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar:/Users/thejaka/.m2/repository/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar:/Users/thejaka/.m2/repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar:/Users/thejaka/.m2/repository/org/apache/ws/commons/schema/XmlSchema/1.4.3/XmlSchema-1.4.3.jar:/Users/thejaka/.m2/repository/org/apache/neethi/neethi/2.0.4/neethi-2.0.4.jar:/Users/thejaka/.m2/repository/org/apache/woden/woden-api/1.0M8/woden-api-1.0M8.jar:/Users/thejaka/.m2/repository/xerces/xmlParserAPIs/2.6.0/xmlParserAPIs-2.6.0.jar:/Users/thejaka/.m2/repository/org/apache/woden/woden-impl-dom/1.0M8/woden-impl-dom-1.0M8.jar:/Users/thejaka/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar:/Users/thejaka/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/thejaka/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar:/Users/thejaka/.m2/repository/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar:/Users/thejaka/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/Users/thejaka/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar:/Users/thejaka/.m2/repository/org/slf4j/slf4j-log4j12/1.7.2/slf4j-log4j12-1.7.2.jar:/Users/thejaka/.m2/repository/org/apache/derby/derbytools/10.9.1.0/derbytools-10.9.1.0.jar:/Users/thejaka/development/apache/airavata/airavata/modules/commons/gfac-schema/target/classes:/Users/thejaka/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.2/jackson-mapper-asl-1.9.2.jar:/Users/thejaka/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.2/jackson-core-asl-1.9.2.jar:/Users/thejaka/development/apache/airavata/airavata/modules/workflow-model/workflow-model-core/target/classes:/Users/thejaka/.m2/repository/org/ogce/gpel-client/1.0.9/gpel-client-1.0.9.jar:/Users/thejaka/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/Users/thejaka/.m2/repository/org/apache/xmlbeans/xmlbeans/2.6.0/xmlbeans-2.6.0.jar:/Users/thejaka/development/apache/airavata/airavata/modules/commons/workflow-execution-context/target/classes:/Users/thejaka/development/apache/airavata/airavata/modules/ws-messenger/message-monitor/target/classes:/Users/thejaka/development/apache/airavata/airavata/modules/ws-messenger/client/target/classes:/Users/thejaka/development/apache/airavata/airavata/modules/ws-messenger/commons/target/classes:/Users/thejaka/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/thejaka/.m2/repository/org/apache/axis2/axis2-transport-http/1.5.1/axis2-transport-http-1.5.1.jar:/Users/thejaka/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar:/Users/thejaka/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar:/Users/thejaka/.m2/repository/xalan/xalan/2.7.0/xalan-2.7.0.jar:/Users/thejaka/.m2/repository/org/apache/httpcomponents/httpcore/4.0/httpcore-4.0.jar:/Users/thejaka/.m2/repository/com/rabbitmq/amqp-client/3.1.2/amqp-client-3.1.2.jar:/Users/thejaka/.m2/repository/wsdl4j/wsdl4j/1.5.2/wsdl4j-1.5.2.jar:/Users/thejaka/.m2/repository/org/ogce/yfilter/1.0/yfilter-1.0.jar:/Users/thejaka/.m2/repository/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar:/Users/thejaka/.m2/repository/org/apache/axis2/axis2-transport-local/1.5.1/axis2-transport-local-1.5.1.jar:/Users/thejaka/.m2/repository/org/ogce/atomixmiser/0.9.4/atomixmiser-0.9.4.jar:/Users/thejaka/.m2/repository/org/apache/axis2/axis2-adb-codegen/1.5.1/axis2-adb-codegen-1.5.1.jar:/Users/thejaka/.m2/repository/org/apache/axis2/axis2-adb/1.5.1/axis2-adb-1.5.1.jar:/Users/thejaka/.m2/repository/org/apache/axis2/axis2-codegen/1.5.1/axis2-codegen-1.5.1.jar:/Users/thejaka/.m2/repository/javax/jcr/jcr/2.0/jcr-2.0.jar:/Users/thejaka/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Applications/IntelliJ
IDEA 12.app/lib/junit-4.10.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter
-ideVersion5 org.apache.airavata.sample.gateway.executor.WorkflowExecutorTest,testRunWorkflow
log4j:WARN No appenders could be found for logger (org.apache.airavata.sample.gateway.executor.WorkflowExecutor).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

org.apache.airavata.client.api.exception.AiravataAPIInvocationException: Error while initializing
the Airavata API
	at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:64)
	at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:43)
	at org.apache.airavata.sample.gateway.executor.WorkflowExecutor.setupExperiment(WorkflowExecutor.java:110)
	at org.apache.airavata.sample.gateway.executor.WorkflowExecutorTest.testRunWorkflow(WorkflowExecutorTest.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	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.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.runners.ParentRunner.run(ParentRunner.java:236)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.apache.airavata.client.api.exception.AiravataAPIInvocationException: Error
while initializing the Airavata API
	at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:178)
	at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:61)
	... 28 more
Caused by: org.apache.airavata.common.exception.AiravataConfigurationException: Error reading
the configuration file
	at org.apache.airavata.registry.api.AiravataRegistryFactory.getRegistryClass(AiravataRegistryFactory.java:126)
	at org.apache.airavata.registry.api.AiravataRegistryFactory.getRegistry(AiravataRegistryFactory.java:77)
	at org.apache.airavata.client.AiravataClient.getRegistry(AiravataClient.java:319)
	at org.apache.airavata.client.AiravataClient.createConfig(AiravataClient.java:122)
	at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:159)
	... 29 more
Caused by: org.apache.airavata.registry.api.exception.RegistrySettingsLoadException
	at org.apache.airavata.registry.api.util.RegistrySettings.validateSuccessfulPropertyFileLoad(RegistrySettings.java:70)
	at org.apache.airavata.registry.api.util.RegistrySettings.getSetting(RegistrySettings.java:75)
	at org.apache.airavata.registry.api.AiravataRegistryFactory.getRegistryClass(AiravataRegistryFactory.java:105)
	... 33 more
Caused by: java.lang.NullPointerException
	at org.apache.airavata.registry.api.util.RegistrySettings.<clinit>(RegistrySettings.java:62)
	... 34 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message