14 Replies Latest reply on Dec 9, 2005 11:46 AM by for Jbpm

    Deploying Par  File from eclipse 3.1

    ch praveen Newbie

      HI,

      Iam using eclipse 3.1, when I tried to deploy par file below exception is encountered.


      java.lang.reflect.InvocationTargetexception


      Also Iam not able to use Lomboz plugin with eclipse 3.1. Any suggestions.

      Thanks in advance.



        • 1. Re: Deploying Par  File from eclipse 3.1
          Ronald van Kuijk Master

          is there more info in the eclipse logging? it is in the .meta directory in the workspace.

          Could be that you try to deploy to a non-local server or a local server not running on port 8080

          • 2. Re: Deploying Par  File from eclipse 3.1
            Tran Lap Newbie

            Oh, it is my error.
            So you do this step:
            Right click in "exam.par" ->Refresh.
            It will work OK.
            e sure you started your server.

            • 3. Re: Deploying Par  File from eclipse 3.1
              for Jbpm Novice

              Hi!
              I am getting the similar error now. But there is no more exception trace in .log file.
              Whenever I right click on the Myprocess.par and select deploy process archiver I get the error saying

              An unexpected exception caused the deployment to fail
              java.lang.reflect.InvocationTargetexception

              As there is no error in stack trace I am not able to figure out reson behind this.

              Appreciate your help!

              • 4. Re: Deploying Par  File from eclipse 3.1
                Huang Linchuan Newbie

                 

                "forJbpm" wrote:
                Hi!
                I am getting the similar error now. But there is no more exception trace in .log file.
                Whenever I right click on the Myprocess.par and select deploy process archiver I get the error saying

                An unexpected exception caused the deployment to fail
                java.lang.reflect.InvocationTargetexception

                As there is no error in stack trace I am not able to figure out reson behind this.

                Appreciate your help!


                First,you should run the jbpm server.
                And then,you will succeed.

                • 5. Re: Deploying Par  File from eclipse 3.1
                  for Jbpm Novice

                  Hi!
                  Thanks!
                  I am running my jbpm server. I deployed few of simple workflows before this. But In this case I tried to complicate a bit (Not much). I am trying to implement something like websale example but much simpler than that with only two steps.


                  • 6. Re: Deploying Par  File from eclipse 3.1
                    Ronald van Kuijk Master

                    is there an error in the logging of the jbpm server?

                    • 7. Re: Deploying Par  File from eclipse 3.1
                      for Jbpm Novice

                      nah! :-(
                      No trace in jbpmserver or even .log file.

                      • 8. Re: Deploying Par  File from eclipse 3.1
                        Ronald van Kuijk Master

                        Is there some logging in the eclipse logfile (see the second post in this thread)

                        • 9. Re: Deploying Par  File from eclipse 3.1
                          for Jbpm Novice

                          Nope!
                          There is only one log file in workspace i.e in $MY_WORKSPACE/.metadata/.log file
                          There is nothing in that log file.

                          My localhost is running on port 8080 only.

                          Is there any other log file??
                          in jbpm-server directory I see only one *boot.log* under jbpm/log

                          Thanks!

                          • 10. Re: Deploying Par  File from eclipse 3.1
                            Koen Aers Master

                            Okay... I know we still have to work on the deployment in the designer. In fact this is one of the tasks that I think myself that should have high priority.
                            The problem is without doubt that the deployer does not find one or more class files of the action/assignment handler classes used in your processdefinition.xml file. Make sure these classes are on the build path of your eclipse project.

                            Regards,
                            Koen

                            • 11. Re: Deploying Par  File from eclipse 3.1
                              for Jbpm Novice

                              Hi
                              I could deploy my process archive finally.
                              I just followed steps given in one of the forum thread. I got following message as well!

                              12:41:24,767 DEBUG [DeployServlet] deploying archive file:///JBPM_HOME/build/ECSDemo4.par
                              12:41:25,033 DEBUG [FileDefinition] preparing file 'processimage.jpg' for storage in the database
                              12:41:25,038 DEBUG [FileDefinition] preparing file 'gpd.xml' for storage in the database
                              12:41:25,050 DEBUG [ProcessArchiveDeployer] starting transaction to deploy process ProcessDefinition(ECSDemo4)
                              12:41:25,241 DEBUG [ProcessArchiveDeployer] flushing...
                              12:41:25,378 DEBUG [ProcessArchiveDeployer] committing transaction to deploy process ProcessDefinition(ECSDemo4)
                              12:41:25,413 DEBUG [PersistenceContext] committing transaction


                              But now when I log in and click on my process to Start New Process Execution
                              I get following error

                              12:42:10,001 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
                              java.lang.NullPointerException
                               at org.jbpm.webapp.tag.ProcessImageTag.extractBoxConstraint(ProcessImageTag.java:98)
                               at org.jbpm.webapp.tag.ProcessImageTag.writeTable(ProcessImageTag.java:69)
                               at org.jbpm.webapp.tag.ProcessImageTag.doEndTag(ProcessImageTag.java:42)
                               at org.apache.jsp.task_jsp._jspx_meth_jbpm_processimage_0(org.apache.jsp.task_jsp:722)
                               at org.apache.jsp.task_jsp._jspx_meth_f_view_0(org.apache.jsp.task_jsp:168)
                               at org.apache.jsp.task_jsp._jspService(org.apache.jsp.task_jsp:116)
                               at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
                               at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                               at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
                               at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                               at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                               at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                               at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
                               at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
                               at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
                               at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
                               at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:25)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:28)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                               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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                               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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              12:42:10,011 DEBUG [PersistenceContext] rolling back transaction
                              12:42:10,029 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception
                              javax.faces.FacesException: org.apache.jasper.JasperException
                               at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
                               at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
                               at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
                               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:25)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:28)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                               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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                               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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                               at java.lang.Thread.run(Thread.java:595)
                              Caused by: org.apache.jasper.JasperException
                               at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
                               at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                               at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                               at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                               at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                               at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
                               at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
                               at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
                               at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
                               ... 34 more
                              


                              Please help!
                              Thanks in advance

                              • 12. Re: Deploying Par  File from eclipse 3.1
                                for Jbpm Novice

                                Is it okay if I continue in this thread or should I start new one??

                                • 13. Re: Deploying Par  File from eclipse 3.1
                                  Ronald van Kuijk Master

                                  it's usually better if you start a new thread for a new issue. I can give you a small answer though. This error usually happens when the image of the process contains all nodes on top of eachother in the top left corner. If you correct this in the GPD this error disappears (at least it did for me)

                                  • 14. Re: Deploying Par  File from eclipse 3.1
                                    for Jbpm Novice

                                    to avoid confusion I have started a new thread for this new problem

                                    http://www.jboss.com/index.html?module=bb&op=viewtopic&t=73695

                                    I will take care of all these things next time onwards.
                                    Thanks!