cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Explorer Failing from logging in

sid121091
Champ in-the-making
Champ in-the-making
Hi,

I am new to this, and I apologise in advance if I am not presenting my problem correctly.

Every time I log in to my local activiti explorer, or access anything in it or even try to deploy something, I get the error "Error Parsing XML" along with the following error log. I have searched through the entire forum but am unable to identify the right solution for my specific issue. I request you to help me at the earliest.


[INFO] Starting scanner at interval of 10 seconds. 
com.vaadin.event.ListenerMethod$MethodException: Invocation of method valueChange in org.activiti.explorer.ui.task.TaskPage$1 failed. 
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:530) 
   at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164) 
   at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219) 
   at com.vaadin.ui.AbstractField.fireValueChange(AbstractField.java:897) 
   at com.vaadin.ui.AbstractField.setValue(AbstractField.java:529) 
   at com.vaadin.ui.AbstractSelect.setValue(AbstractSelect.java:676) 
   at com.vaadin.ui.AbstractSelect.setValue(AbstractSelect.java:645) 
   at com.vaadin.ui.Table.setValue(Table.java:3572) 
   at com.vaadin.ui.AbstractSelect.select(AbstractSelect.java:1422) 
   at org.activiti.explorer.ui.AbstractTablePage.selectElement(AbstractTablePage.java:81) 
   at org.activiti.explorer.ui.task.TaskPage.initUi(TaskPage.java:70) 
   at org.activiti.explorer.ui.AbstractPage.attach(AbstractPage.java:43) 
   at com.vaadin.ui.AbstractComponent.setParent(AbstractComponent.java:560) 
   at com.vaadin.ui.AbstractComponentContainer.addComponent(AbstractComponentContainer.java:211) 
   at com.vaadin.ui.CssLayout.addComponent(CssLayout.java:95) 
   at org.activiti.explorer.ui.mainlayout.MainLayout.setMainContent(MainLayout.java:58) 
   at org.activiti.explorer.ui.MainWindow.switchView(MainWindow.java:79) 
   at org.activiti.explorer.DefaultViewManager.switchView(DefaultViewManager.java:342) 
   at org.activiti.explorer.DefaultViewManager.showInboxPage(DefaultViewManager.java:172) 
   at org.activiti.explorer.DefaultViewManager.showDefaultPage(DefaultViewManager.java:90) 
   at org.activiti.explorer.ui.login.LoginPage$ActivitiLoginListener.onLogin(LoginPage.java:102) 
   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:606) 
   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:820) 
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) 
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221) 
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44) 
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 
   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) 
   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 
   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) 
   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) 
   at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) 
   at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) 
   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
   at org.mortbay.jetty.Server.handle(Server.java:326) 
   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) 
   at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) 
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) 
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) 
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) 
   at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) 
   at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) 
Caused by: org.activiti.engine.ActivitiException: Error parsing XML 
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:236) 
   at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:107) 
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:50) 
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.resolveProcessDefinition(DeploymentManager.java:115) 
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedProcessDefinitionById(DeploymentManager.java:65) 
   at org.activiti.engine.impl.persistence.entity.TaskEntity.getTaskDefinition(TaskEntity.java:751) 
   at org.activiti.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:50) 
   at org.activiti.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:32) 
   at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24) 
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57) 
   at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47) 
   at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) 
   at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45) 
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31) 
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40) 
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35) 
   at org.activiti.engine.impl.FormServiceImpl.getTaskFormData(FormServiceImpl.java:58) 
   at org.activiti.explorer.ui.task.TaskDetailPanel.initTaskForm(TaskDetailPanel.java:300) 
   at org.activiti.explorer.ui.task.TaskDetailPanel.init(TaskDetailPanel.java:118) 
   at org.activiti.explorer.ui.task.TaskDetailPanel.attach(TaskDetailPanel.java:99) 
   at com.vaadin.ui.AbstractComponent.setParent(AbstractComponent.java:560) 
   at com.vaadin.ui.AbstractComponentContainer.addComponent(AbstractComponentContainer.java:211) 
   at com.vaadin.ui.GridLayout.addComponent(GridLayout.java:230) 
   at org.activiti.explorer.ui.AbstractPage.setDetailComponent(AbstractPage.java:155) 
at org.activiti.explorer.ui.task.TaskPage.access$000(TaskPage.java:44) 
   at org.activiti.explorer.ui.task.TaskPage$1.valueChange(TaskPage.java:117) 
   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:606) 
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510) 
   … 51 more 
Caused by: java.lang.RuntimeException: Could not validate XML with BPMN 2.0 XSD 
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:262) 
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:185) 
   … 81 more 
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 
   at org.apache.xerces.impl.xs.XSConstraints.overlapUPA(Unknown Source) 
   at org.apache.xerces.impl.xs.XSConstraints.overlapUPA(Unknown Source) 
   at org.apache.xerces.impl.xs.models.XSDFACM.checkUniqueParticleAttribution(Unknown Source) 
   at org.apache.xerces.impl.xs.XSConstraints.fullSchemaChecking(Unknown Source) 
   at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) 
   at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) 
   at org.apache.xerces.jaxp.validation.BaseSchemaFactory.newSchema(Unknown Source) 
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:627) 
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:659) 
   at org.activiti.bpmn.converter.BpmnXMLConverter.createSchema(BpmnXMLConverter.java:214) 
   at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:193) 
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:251) 
   … 82 more 
31 REPLIES 31

sid121091
Champ in-the-making
Champ in-the-making
I tried to deploy a Hello World process definition and even that fails to get deployed!

vasile_dirla
Star Contributor
Star Contributor
If it's not too much i suggest you just to start it from 0, with a clean tomcat and a fresh install of Activiti. clean database.
(at least try it in a different machine ,just as a test to see if you will have the same errors in a fresh machine)

sid121091
Champ in-the-making
Champ in-the-making
The xml code was not visible. Hence attaching the text file for it

sid121091
Champ in-the-making
Champ in-the-making
I did follow your instructions. Started from square one. Reinstalled everything. New tomcat and project and all. Still facing the same issue.

vasile_dirla
Star Contributor
Star Contributor
Hi Sid,
first of all please edit the prev. post with the XML (where is not visible) and make it looks normal Smiley Happy (hope you have edit permissions)

I'll have a look at this xml and meantime please provide details about your setup:
OS, java version, Activiti version, and how you installed activiti (step by step so i could reproduce exactly your environment)

vasile_dirla
Star Contributor
Star Contributor
I verified your xml and I don'r have any error when deploying it.

1. deployed it programatically in a simple application.
2. imported in the explorer application, edit, save and then deployed it successfully. (no errors in the console)

So for sure there is something specific to your setup.
please provide the relevant information about your setup as I already said in the prev. message:
OS, Database, Activiti Version, step by step how you configure it (including config files if possible (you know mask the credentials and ip of your machines.. etc..) Smiley Happy )

You started my curiosity and I would like to see what's happening.  Smiley Happy

sid121091
Champ in-the-making
Champ in-the-making
I am glad you are curious about it, because me and my team mates are hitting our heads against the wall regarding this. And I would like to get this solved at the earliest. Anyways the following are the details of my setup.

The setup consists of a console, rest, explorer and core.
JAVA : Version 1.7.0_79
OS : Name - mac os x yosemite, Version - 10.10.4, arch - x86_64
Activiti : Version 5.15.1
Play framework : Version 2.2.6
Elasticsearch : Version 0.90.5
Replaced the elasticsearch.yml file (File attached 'elasticsearch.txt')
MySQL : Version 5.6.25 (For the database)
The database contains content for ACT_ID_USER and ACT_GE_PROPERTY. Just basic information for logging in.
IntelliJ Idea 14 Community Edition
Maven : Version 3.3.3
Added a settings file to .m2 folder (File attached 'settings.txt')
Scala : Version 2.11.7
SBT : Version 0.13.8
Tomcat : Version 7
Already provided you with the XML needed to deploy
I have imported and tried to deploy in the explorer application only.

This is pretty much my setup. Installed and moved the necessary files as mentioned above. Ran the code (maven) and then started activiti explorer application. That is where I end up with this error.

sid121091
Champ in-the-making
Champ in-the-making
Note: I have installed activiti on my local, though have not tried it out (Mostly because I am not able to understand the way to do it, inspite of referring so many documents). I deploy the xml on the activit explorer application, accessing the localhost of the company(i guess)!

vasile_dirla
Star Contributor
Star Contributor
In your local environment,
just access the explorer application and import the xml, then deploy it and let us know what's happening.

btw: do you have any reason to use 5.15 and not use to 5.18 ?

sid121091
Champ in-the-making
Champ in-the-making
To run explorer application, i run the company explorer. To run it on local environment, what do I start first?
I don't think there is any specific reason for 5.15. They started with it and are sticking with it still I guess