cancel
Showing results for 
Search instead for 
Did you mean: 

can't login in activiti explorer

johnrd
Champ in-the-making
Champ in-the-making

Hi,

I am having a problem with login ( kermit/kermit)  I have redeployed the  activiti war file in case of any corruption, created my database but problem persisting.

Please help

John.

a stack trace is given below


Apr 20, 2013 9:47:04 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Vaadin Application Servlet] in context with path [/activiti-explorer] threw exception [com.vaadin.event.ListenerMethod$MethodException: Invocation of method onLogin in org.activiti.explorer.ui.login.LoginPage$ActivitiLoginListener failed.] with root cause
java.lang.NullPointerException
   at org.activiti.explorer.ui.login.DefaultLoginHandler.authenticate(DefaultLoginHandler.java:40)
   at org.activiti.explorer.ui.login.DefaultLoginHandler.authenticate(DefaultLoginHandler.java:34)
   at org.activiti.explorer.ui.login.LoginPage$ActivitiLoginListener.onLogin(LoginPage.java:98)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
   at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
   at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
   at com.vaadin.ui.LoginForm$2.handleParameters(LoginForm.java:103)
   at com.vaadin.ui.Window.handleParameters(Window.java:515)
16 REPLIES 16

eva_lin
Champ in-the-making
Champ in-the-making
hi, JohnRd,

place show your .xml file in
\activiti-explorer\WEB-INF

thanks

johnrd
Champ in-the-making
Champ in-the-making
sorry but i didn't understand quite  well  ..   i have not changed anything in the four xml files that are default installation  from activiti
i have uploaded  all four , extensions changed  to txt for sake of uploading

jbarrez
Star Contributor
Star Contributor
Do you have any other stacktraces before that one?

From the line where the stacktrace happens, it seems the identityService is null. That can only happen if the engine didn't boot properly.

johnrd
Champ in-the-making
Champ in-the-making
Hi  this is all what I got from my tomcat log

Apr 20, 2013 9:33:08 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 20, 2013 9:33:08 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Apr 20, 2013 9:33:17 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 20, 2013 9:33:17 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 20, 2013 9:33:17 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@c4436c')
Apr 20, 2013 9:33:42 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Vaadin Application Servlet] in context with path [/activiti-explorer] threw exception [com.vaadin.event.ListenerMethod$MethodException: Invocation of method onLogin in org.activiti.explorer.ui.login.LoginPage$ActivitiLoginListener failed.] with root cause
java.lang.NullPointerException
at org.activiti.explorer.ui.login.DefaultLoginHandler.authenticate(DefaultLoginHandler.java:40)
at org.activiti.explorer.ui.login.DefaultLoginHandler.authenticate(DefaultLoginHandler.java:34)
at org.activiti.explorer.ui.login.LoginPage$ActivitiLoginListener.onLogin(LoginPage.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
at com.vaadin.ui.LoginForm$2.handleParameters(LoginForm.java:103)
at com.vaadin.ui.Window.handleParameters(Window.java:515)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:528)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Apr 20, 2013 9:37:16 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 20, 2013 9:37:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Apr 20, 2013 9:37:16 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Apr 20, 2013 9:38:05 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Apr 20, 2013 9:38:05 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext

jbarrez
Star Contributor
Star Contributor
> created my database

How did you create your database? Did you use the standard DDL? Does the ACT_ID_USER contains data?

johnrd
Champ in-the-making
Champ in-the-making
I only provided a mysql database url  and the standard ddl  is being used. I do have users (3)  in my act_user table.  I am running tomcat 7 and  in the console  the message  indicating that  users have been initialized is not showing .  I did deploy same activiti war file on a jetty ver9  and it is working  fine.  so most probably a problem with tomcat deployment..

bsethuramalinga
Champ in-the-making
Champ in-the-making
same story here, when I configured Activiti to our LDAP store. It appears that the user gets authenticated with LDAP. I had it working once few months ago, I am not exactly sure what went wrong now. 

Please advise on the dependency JAR files that are essential to configure ldap with activiti. I have copied the following jar files under WEB-INF/classes folder in support of ldap-configuration.

commons-collections-3.12
jul-to-slfj-1.7.2
ldap-client-api-0.1
log4j-1.2.17
mina-core-2.0.0-M3
shared-ash1-0.9.19
shared-cursor-0.9.19
shared-i18n-0.9.19
shared-ldap-0.9.19
slf4j-api-1.7.2



For testing purposes, I have used activiti 5.11 with Tomcat 7.0.30

Uploaded the xml files for reference.

trademak
Star Contributor
Star Contributor
@johnRd So you copied the activiti-explorer.war from the Activiti release distribution right? I really have no problem getting it to work on Tomcat 7.

@bsethuramalingam You introduced the LDAP dependency yourself, so it's difficult to say which dependencies are needed since it's dependent on your code. What's the stacktrace you are seeing?

Best regards,

jonnycarter
Champ in-the-making
Champ in-the-making
For what it's worth, I'm in a similar pickle to @bsethuramalingam.

@bsethuramalingam, I managed to resolve all seeming dependency issues by copying shared-ldap-0.9.17.jar and ldap-client-api-0.1.jar into the ../webapps/activiti-explorer/WEB-INF/lib/ directory in my tomcat instance. I imagine shared-ldap-0.9.19 would work too, but I'm not sure.

However, I am still having another issue. See http://forums.activiti.org/content/nullpointer-exception-ldap-integration-based-apache-directory for the full description (seemed more appropriate to start a new thread).