cancel
Showing results for 
Search instead for 
Did you mean: 

Isue activiti kickstar!

activiti_user12
Champ in-the-making
Champ in-the-making
Already have activiti probe, explorer, cycle, modeler installing and working with mysql, but when i install new release of activiti  5.1 i have this problem:

Estado HTTP 500 -

type Informe de Excepción

mensaje

descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.

excepción

javax.servlet.ServletException: java.lang.NullPointerException
   com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:966)
   com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:523)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

causa raíz

java.lang.NullPointerException
   org.activiti.kickstart.service.AdhocWorkflowServiceImpl.<init>(AdhocWorkflowServiceImpl.java:58)
   org.activiti.kickstart.service.ServiceLocator.getAdhocWorkflowService(ServiceLocator.java:33)
   org.activiti.kickstart.ui.panel.AdhocWorkflowPanel.init(AdhocWorkflowPanel.java:78)
   org.activiti.kickstart.ui.panel.AdhocWorkflowPanel.<init>(AdhocWorkflowPanel.java:68)
   org.activiti.kickstart.ui.panel.AdhocWorkflowPanel.<init>(AdhocWorkflowPanel.java:72)
   org.activiti.kickstart.KickStartApplication.initDefaultWorkArea(KickStartApplication.java:83)
   org.activiti.kickstart.KickStartApplication.init(KickStartApplication.java:47)
   com.vaadin.Application.start(Application.java:549)
   com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1146)
   com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:459)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/6.0.29.
Apache Tomcat/6.0.29


Any ideas?
17 REPLIES 17

activiti_user12
Champ in-the-making
Champ in-the-making
my log!

06/01/2011 03:58:40 PM org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() para servlet Vaadin Application Servlet lanzó excepción
java.lang.NullPointerException
at org.activiti.kickstart.service.AdhocWorkflowServiceImpl.<init>(AdhocWorkflowServiceImpl.java:58)
at org.activiti.kickstart.service.ServiceLocator.getAdhocWorkflowService(ServiceLocator.java:33)
at org.activiti.kickstart.ui.panel.AdhocWorkflowPanel.init(AdhocWorkflowPanel.java:78)
at org.activiti.kickstart.ui.panel.AdhocWorkflowPanel.<init>(AdhocWorkflowPanel.java:68)
at org.activiti.kickstart.ui.panel.AdhocWorkflowPanel.<init>(AdhocWorkflowPanel.java:72)
at org.activiti.kickstart.KickStartApplication.initDefaultWorkArea(KickStartApplication.java:83)
at org.activiti.kickstart.KickStartApplication.init(KickStartApplication.java:47)
at com.vaadin.Application.start(Application.java:549)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.startApplication(AbstractApplicationServlet.java:1146)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)

jcosano
Champ in-the-making
Champ in-the-making
I think that "activiti-cfg.jar" is wrong… you should check it…

Copy (and checking database parameters) to "apps\apache-tomcat-6.0.29\webapps\activiti-kickstart\WEB-INF\lib"

jbarrez
Star Contributor
Star Contributor
Indeed, the nullpointer refers to a null process engine, which means that your process engine wasnt created.

Did you use the default activiti.cfg.jar.

activiti_user12
Champ in-the-making
Champ in-the-making
I edit 2 files:

      setup/build.properties and change the db parameter to your type of database {oracle | mysql | postgresql | h2}.
   
      setup/build.${db}.properties and change the JDBC connection parameters to those of your database installation.

and type from prompt

ant cfg.create


this generate the 2 new files have to use activiti.cfg, activiti-cfg.jar


but still with the same error! any ideas?

jbarrez
Star Contributor
Star Contributor
Please read http://activiti.org/userguide/index.html#N11E52

This is currently a known 'issue', since KickStart is not yet fully integrated with the rest of the stack.

jcosano
Champ in-the-making
Champ in-the-making
KickStart has it own activiti-cfg.jar

when you do: ant cfg.create

you create a new activiti-cfg.jar but you need copy manually to:

"apps\apache-tomcat-6.0.29\webapps\activiti-kickstart\WEB-INF\lib"

maybe is userful, modify build.xml and force copy to this location Smiley Tongue

activiti_user12
Champ in-the-making
Champ in-the-making
I edit 2 files:

      setup/build.properties and change the db parameter to your type of database {oracle | mysql | postgresql | h2}.
   
      setup/build.${db}.properties and change the JDBC connection parameters to those of your database installation.

and type from prompt

ant cfg.create


this generate the 2 new files have to use activiti.cfg, activiti-cfg.jar


but still with the same error! any ideas?



ok! let me see if i understand!

1) The comand i used from activiti/setup folder ant cfg.create) is for change the database use by Activiti Suite! By Suite i mean Explorer, Probe and Cycle…. they all use the same mechanism for changing the database, the same does not yet apply for KickStart coz currently not yet using the REST API…

2) i have to generate a new activiti.cfg.jar and place it in the apps/apache-tomcat-6.x/webapps/activiti-kickstart/WEB-INF/lib folder. why? already have one in this location!! is the same i generate at the step 1? I leave the original activiti.cfg.jar that i have in this location(apps/apache-tomcat-6.x/webapps/activiti-kickstart/WEB-INF/lib folder) and doesnt work! i put the new one generate in the step 1 and doesnt work….

3) How can i generate the new one? from where location?


Thank u 4 ur help!

jcosano
Champ in-the-making
Champ in-the-making
when you make cfg.create, you obtain a new cfg-activiti.jar but it's located under setup/build and not replace activiti-cfg inside tomcat.

In my case, I modify build xml and cfg.create, copy the new file to two location more:
- inside activiti-rest lib folder (tomcat)
- inside kickstar lib folder (tomcat)

Answering your questions:

1) Not correct, cfg.create is for create a new jar (for changind database properties, or others for sample mail server, history, job executor…) but not replace anything into the tomcat…

2) you need replace this jar, because is older, and you need copy your last version with correct properties.

3) using cfg.create that generates a jar into setup/build..

eldiegos
Champ in-the-making
Champ in-the-making
when you make cfg.create, you obtain a new cfg-activiti.jar but it's located under setup/build and not replace activiti-cfg inside tomcat.

In my case, I modify build xml and cfg.create, copy the new file to two location more:
- inside activiti-rest lib folder (tomcat)
- inside kickstar lib folder (tomcat)

Answering your questions:

1) Not correct, cfg.create is for create a new jar (for changind database properties, or others for sample mail server, history, job executor…) but not replace anything into the tomcat…

2) you need replace this jar, because is older, and you need copy your last version with correct properties.

3) using cfg.create that generates a jar into setup/build..

I have followed all the steps and i have the same problem than Activiti_user123. I'm trying activiti 5.1 in fedora with mysql.

Any other idea?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.