[kepler-dev] Problems when executing workflow in headless kepler command line using workflow kar file

Timothy McPhillips tmcphillips at me.com
Wed Aug 24 16:26:54 PDT 2011


Hi Madhavi,

Can you run your workflow from the command line if it is exported as xml, rather than saved as a kar file?   There is a possibly related bug for the build system in bugzilla: http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5381.

I just tried running a simple workflow from the command line using Kepler 2.2, and got an error (different from yours--see below) when trying to run a kar, but success when running a workflow exported as xml (moml). 

In other words, this works:  

./kepler.sh -runwf ~/hello.xml 

And this does not:

./kepler.sh -runwf ~/hello.kar 

The error message I get for the latter includes the following line:

     [null] Unsupported file type or connection not available: file:/Users/tmcphillips/hello.kar

Tim

On Aug 22, 2011, at 10:14 PM, Madhavi Tikhe wrote:

> Hi,
>  
> When I try run the workflow using the the kar file using kepler command line, I get the following exception.
> Ø   kepler.sh -runwf -nogui] workflow.kar
>  
> Extracting workflow from KAR
> java.lang.NullPointerException
>         at org.kepler.util.sql.DatabaseFactory.getDBConnection(DatabaseFactory.java:89)
>         at org.kepler.objectmanager.cache.LocalRepositoryManager.<init>(LocalRepositoryManager.java:148)
>         at org.kepler.objectmanager.cache.LocalRepositoryManager$LocalRepositoryManagerHolder.<clinit>(LocalRepositoryManager.java:855)
>         at org.kepler.objectmanager.cache.LocalRepositoryManager.getInstance(LocalRepositoryManager.java:851)
>         at org.kepler.kar.KARFile.cacheKARContents(KARFile.java:567)
>         at com.lifetech.cgr.service.AnalysisControlManager.getManager(AnalysisControlManager.java:136)
>         at com.lifetech.cgr.service.AnalysisControlManager.launchOneAnalaysis(AnalysisControlManager.java:60)
>         at com.lifetech.cgr.service.LifeScopeCommandLineServer.manageOperations(LifeScopeCommandLineServer.java:160)
>         at com.lifetech.cgr.service.LifeScopeCommandLineServer.run(LifeScopeCommandLineServer.java:121)
>         at java.lang.Thread.run(Thread.java:636)
> Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
>         at org.kepler.objectmanager.cache.LocalRepositoryManager.getInstance(LocalRepositoryManager.java:851)
>         at org.kepler.kar.KARFile.cacheKARContents(KARFile.java:567)
>         at com.lifetech.cgr.service.AnalysisControlManager.getManager(AnalysisControlManager.java:136)
>         at com.lifetech.cgr.service.AnalysisControlManager.launchOneAnalaysis(AnalysisControlManager.java:60)
>         at com.lifetech.cgr.service.LifeScopeCommandLineServer.manageOperations(LifeScopeCommandLineServer.java:160)
>         at com.lifetech.cgr.service.LifeScopeCommandLineServer.run(LifeScopeCommandLineServer.java:121)
>         at java.lang.Thread.run(Thread.java:636)
> Caused by: java.lang.NullPointerException
>         at org.kepler.objectmanager.cache.LocalRepositoryManager.<init>(LocalRepositoryManager.java:154)
>         at org.kepler.objectmanager.cache.LocalRepositoryManager$LocalRepositoryManagerHolder.<clinit>(LocalRepositoryManager.java:855)
>         ... 7 more
>  
> I don’t have any database installed or configured for kepler. And I tried executing kepler after clearing the kepler cache. Does anybody have any idea about the possible cause of this exception and possible solution?
> This  exception is blocking my work. Please let me know if there is any quick fix available.
>  
> Regards,
> Madhavi
>  
> DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
> 
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20110824/7a5314a7/attachment-0001.html>


More information about the Kepler-dev mailing list