+ Reply to Thread
Results 1 to 10 of 10

Thread: Job Submission Module in the Management Platform gives Exception

  1. #1
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    Default Job Submission Module in the Management Platform gives Exception

    I am trying out the PMC Kit, but cannot get the Job Submission part to work yet. I get the following Exception when clicking on Manage Workload -> Submission -> Batch Jobs

    Code:
    HTTP Status 500 -
    
    type Exception report
    
    message
    
    description The server encountered an internal error () that prevented it from fulfilling this request.
    
    exception
    
    javax.servlet.ServletException: Unable to instantiate Action, listJobsAction,  defined for 'listJobs' in namespace '/batch'Error creating bean with name 'listJobsAction' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Cannot resolve reference to bean 'batchServiceReal' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchServiceReal' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.platform.gui.batch.web.services.batch.BatchService com.platform.gui.batch.web.services.batch.BatchServiceFactory.getServiceReal() throws java.lang.Exception] threw exception; nested exception is java.lang.NoClassDefFoundError
    	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
    	org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
    	com.platform.gui.common.web.filter.BaseFilter.doFilter(BaseFilter.java:102)
    
    root cause
    
    Unable to instantiate Action, listJobsAction,  defined for 'listJobs' in namespace '/batch'Error creating bean with name 'listJobsAction' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Cannot resolve reference to bean 'batchServiceReal' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchServiceReal' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.platform.gui.batch.web.services.batch.BatchService com.platform.gui.batch.web.services.batch.BatchServiceFactory.getServiceReal() throws java.lang.Exception] threw exception; nested exception is java.lang.NoClassDefFoundError - action - file:/usr/share/pmc/ocs/5.0/ocsgui/WEB-INF/classes/com/platform/gui/batch/web/action/batch_struts.xml:9:68
    	com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:294)
    	com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:365)
    	com.opensymphony.xwork2.DefaultActionInvocation.access$000(DefaultActionInvocation.java:38)
    	com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:83)
    	com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
    	com.opensymphony.xwork2.DefaultActionInvocation.<init>(DefaultActionInvocation.java:74)
    	com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
    	org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
    	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
    	org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
    	com.platform.gui.common.web.filter.BaseFilter.doFilter(BaseFilter.java:102)
    
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    
    On the command line lava seems to be working:
    Code:
    [fm@master usr]$ lsid
    Platform Lava 1.0, Oct  6 2008
    Copyright 2007 Platform Computing Corporation
    
    My cluster name is lava
    My master name is master
    [fm@master usr]$ bsub sleep 10
    Job <203> is submitted to default queue <normal>.
    [fm@master usr]$ bjobs
    JOBID   USER    STAT  QUEUE      FROM_HOST   EXEC_HOST   JOB_NAME   SUBMIT_TIME
    203     fm      PEND  normal     master                  sleep 10   Oct  9 11:02
    [fm@master usr]$ bqueues
    QUEUE_NAME      PRIO STATUS          MAX JL/U JL/P JL/H NJOBS  PEND   RUN  SUSP
    owners           43   Open:Active      -    6    -    -     0     0     0     0
    priority         43   Open:Active      -    -    -    -     0     0     0     0
    chkpnt_rerun_qu  40   Open:Active      -    -    -    -     0     0     0     0
    short            35   Open:Active      -    -    -    -     0     0     0     0
    normal           30   Open:Active      -    -    -    -     1     1     0     0
    idle             20   Open:Active      -    -    -    -     0     0     0     0
    
    I am using yesterdays Kusu on Centos:
    Code:
    [fm@master usr]$ cat /etc/*-release
    Kusu "Kramat" 0.10 (build 3520)
    CentOS release 5.2 (Final)
    

  2. #2
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    Default

    For what it is worth here the whole backtrace from /usr/share/pmc/2.0/tomcat/logs/catalina.out

    Code:
    Unable to instantiate Action, listJobsAction,  defined for 'listJobs' in namespace '/batch'Error creating bean with name 'listJobsAction' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Cannot resolve reference to bean 'batchServiceReal' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchServiceReal' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.platform.gui.batch.web.services.batch.BatchService com.platform.gui.batch.web.services.batch.BatchServiceFactory.getServiceReal() throws java.lang.Exception] threw exception; nested exception is java.lang.NoClassDefFoundError - action - file:/usr/share/pmc/ocs/5.0/ocsgui/WEB-INF/classes/com/platform/gui/batch/web/action/batch_struts.xml:9:68
            at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:294)
            at com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:365)
            at com.opensymphony.xwork2.DefaultActionInvocation.access$000(DefaultActionInvocation.java:38)
            at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:83)
            at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
            at com.opensymphony.xwork2.DefaultActionInvocation.<init>(DefaultActionInvocation.java:74)
            at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
            at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
            at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
            at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at com.platform.gui.common.web.filter.BaseFilter.doFilter(BaseFilter.java:102)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
            at java.lang.Thread.run(Unknown Source)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listJobsAction' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Cannot resolve reference to bean 'batchServiceReal' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchServiceReal' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.platform.gui.batch.web.services.batch.BatchService com.platform.gui.batch.web.services.batch.BatchServiceFactory.getServiceReal() throws java.lang.Exception] threw exception; nested exception is java.lang.NoClassDefFoundError
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1073)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
            at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:703)
            at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:125)
            at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)
            at com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:113)
            at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:275)
            ... 26 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchServiceReal' defined in ServletContext resource [/WEB-INF/classes/com/platform/gui/batch/web/action/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.platform.gui.batch.web.services.batch.BatchService com.platform.gui.batch.web.services.batch.BatchServiceFactory.getServiceReal() throws java.lang.Exception] threw exception; nested exception is java.lang.NoClassDefFoundError
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
            at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:289)
            at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:43)
            at org.springframework.web.context.request.SessionScope.get(SessionScope.java:90)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:285)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
            ... 37 more
    Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.platform.gui.batch.web.services.batch.BatchService com.platform.gui.batch.web.services.batch.BatchServiceFactory.getServiceReal() throws java.lang.Exception] threw exception; nested exception is java.lang.NoClassDefFoundError
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:130)
            at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:315)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:758)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:712)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
            ... 43 more
    Caused by: java.lang.NoClassDefFoundError
            at com.platform.gui.batch.web.services.batch.real.RealBatchServiceI.<init>(RealBatchServiceI.java:39)
            at com.platform.gui.batch.web.services.batch.real.RealBatchService.<init>(RealBatchService.java:43)
            at com.platform.gui.batch.web.services.batch.BatchServiceFactory.getServiceReal(BatchServiceFactory.java:19)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:118)
            ... 47 more
    

  3. #3
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    Default

    It does work now for me, but I do not know what changed.

    Hopefully the developers can find that out from reading the backtrace.

    The interface is impressive, thanks for your work!

  4. #4
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Hi,

    Is this the ocs gui kit that you are using? I will get in touch with one of the developers for the kit.

  5. #5
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    Default

    Quote Originally Posted by ltsai View Post
    Hi,

    Is this the ocs gui kit that you are using? I will get in touch with one of the developers for the kit.
    yes i am using the OCS GUI Kit 5.1 (kit-OCS-GUI-5.1-6.noarch.iso)

  6. #6
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Hi

    I was able to reproduce the problem if my lava has not been started fully. Can you try rebooting your master?

    -Liming

  7. #7
    _fmms_ is offline Member
    Join Date
    September 16th, 2008
    Location
    Germany
    Posts
    42
    Downloads
    7
    Uploads
    0

    Default

    Quote Originally Posted by ltsai View Post
    Hi

    I was able to reproduce the problem if my lava has not been started fully. Can you try rebooting your master
    -Liming
    Hi thanks for looking into it.

    This bug never hit me again since
    October 9th, 2008 01:53 PM
    _fmms_ It does work now for me, but I do not know what changed.
    But it certainly would be nicer to get an error instead of backtrace when lava has not fully started.

  8. #8
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Yes, I do agree. I will feedback this to the developers.

    -Liming

  9. #9
    georgegao is offline Junior Member
    Join Date
    October 21st, 2008
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Hi Liming,

    what does it mean"my lava has not been started fully"?

    can you run lsload and bjobs lsf command?

  10. #10
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Some of the daemons did not start. I can't remember which.

    Upon reboot, the daemons did start properly.

    -Liming

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts