cancel
Showing results for 
Search instead for 
Did you mean: 

07100000 Username and password does not match - again??

christoph_retti
Champ in-the-making
Champ in-the-making
Hi guys, I have installed activiti 5.6 and changed the database to mysql, afterwards run ant demo.start.

The database was filled successfully with the demo users and after

I have copied the mysql jdbc driver jar to webapps/activiti-administrator/WEB-INF/lib and
corrected the applicationContext.xml to point to mysql - it was still pointing to the H2 database

I could log on to

  http://localhost:80808/activiti-administrator

and also create users which were then reflected in mysql database table ACT_ID_USER.

Unfortunately, when I try to logon to

  http://localhost:8080/activiti-explorer

using the same username I get an exception

12:31:44,030  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 07100000 Username and password does not match.
org.springframework.extensions.webscripts.WebScriptException: 07100000 Username and password does not match.
   at org.activiti.rest.api.identity.LoginPost.executeWebScript(LoginPost.java:75)
   at org.activiti.rest.util.ActivitiWebScript.executeImpl(ActivitiWebScript.java:68)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
   at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   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:859)
   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(Thread.java:680)
Aug 10, 2011 12:31:44 PM org.springframework.extensions.webscripts.connector.AuthenticatingConnector handshake
SEVERE: An exception occurred while attempting authentication handshake for endpoint: http://localhost:8080/activiti-rest/service
org.springframework.extensions.surf.exception.AuthenticationException: 07100000 Username and password does not match.
   at org.activiti.surf.ActivitiRESTAuthenticator.authenticate(ActivitiRESTAuthenticator.java:97)
   at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.handshake(AuthenticatingConnector.java:403)
   at org.activiti.surf.ActivitiUserFactory.authenticate(ActivitiUserFactory.java:141)
   at org.springframework.extensions.surf.mvc.LoginController.handleRequestInternal(LoginController.java:67)
   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
   at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
   at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
   at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
   at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
   at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
   at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   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:859)
   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(Thread.java:680)
First I thought that the problem was that I was using Java 5 - this because on startup using catalina.sh run I got the exception


com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
   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:1193)
   at com.vaadin.ui.Button.fireClick(Button.java:475)
   at com.vaadin.ui.Button$ClickShortcut.handleAction(Button.java:601)
   at com.vaadin.event.ActionManager.handleAction(ActionManager.java:233)
   at com.vaadin.event.ActionManager.handleAction(ActionManager.java:228)
   at com.vaadin.event.ActionManager.handleActions(ActionManager.java:198)
   at com.vaadin.ui.Panel.changeVariables(Panel.java:356)
   at com.vaadin.ui.Window.changeVariables(Window.java:1084)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1297)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1217)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:733)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:296)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
   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:859)
   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(Thread.java:655)
Caused by: java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
   at org.activiti.administrator.AdminApp.switchView(AdminApp.java:125)
   at org.activiti.administrator.ui.LoginView$1.buttonClick(LoginView.java:119)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:592)
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490)
   … 27 more
which points to a method only available in Java 6 (I thought activiti is compatible with Java >= 1.5?) but after I have run
tomcat using Java 6 this last exception did not appear again but my login problem is still present.

I already deleted the complete tomcat and redeployed everything but this also did not help.

Can you tell me what I could check to track down the problem?

Is there a way to call the REST URL with a username/password so that I can check if the REST service accepts my login?

Any help appreciated

  c
9 REPLIES 9

frederikherema1
Star Contributor
Star Contributor
Login request to rest: http://www.activiti.org/userguide/index.html#N12425

There seems to have slipped a 1.6 call in the administrator app, all other parts are 1.5 compatible.

christoph_retti
Champ in-the-making
Champ in-the-making
Hi, I have also tried to access

  http://localhost:8080/activiti-rest/service/index

and the login I use in the activiti administrator successfully does not work.

I also tried to post a REST login request and the server gets the request but refuses



Why can I login using the activiti administrator but not using the REST API?

  c

christoph_retti
Champ in-the-making
Champ in-the-making
Hi, I have now fully deleted the unpacked activiti 5.6, dropped the database and reinstalled everything new and then it worked with mysql? I will try to perform a
file comparison on the tomcat deployments to see what the difference is tomorrow.

The following observations I did make during the setup process

  • the activiti administrator is not configured correctly: it still uses the h2 configuration in WEB-INF/applicationContext.xml and also misses the mysql JDBC driver

  • the activiti kickstart is missing the mysql JDBC driver and the WEB-INF/lib/activiti-cfg.jar does hold the h2 configuration (the copy operation in the
  •     build.xml does not contain a line for this)
  • the workspace/activiti-cxf-examples contains a .classpath file that does not match the files in libs-runtime
Could you fix this with the next package or can I help you somehow to do this?

  c

christoph_retti
Champ in-the-making
Champ in-the-making
So, I also did the comparison and as you can see the activiti-engine-examples.jar file is packed with the H2 database configuration (and also some logging with level FINE
which is also not the best).

Don't know if this is an error in the ant building of this is shipped like this.

As I downloaded the latest 5.6 version from the website I am not sure if this has already been fixed or is caused during the ant building.

  c

frederikherema1
Star Contributor
Star Contributor
Is admin part of the group "users"?

christoph_retti
Champ in-the-making
Champ in-the-making
There is a group named "user" and no, it is only part of the group "admin":

ID_ REV_ NAME_ TYPE_
accountancy 1 Accountancy assignment
admin 1 System administrator security-role
engineering 1 Engineering assignment
management 1 Management assignment
manager 1 Manager security-role
sales 1 Sales assignment
user 1 User security-role

frederikherema1
Star Contributor
Star Contributor
You should be part of group "user" (user   1   User   security-role) to be able to log in I remember.

christoph_retti
Champ in-the-making
Champ in-the-making
Hi, I checked with my admin user (which is only contained in the admin group) and I can login without no problem - at least with my new installation.

I really think that the problem is with the activiti-cfg.jar which is not updated by the build scripts.

  c

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
I'm not sure if this has already been fixed or is caused during the construction of the ants. :mrgreen:
LOL spammers get more and more creative