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

jbarrez
Star Contributor
Star Contributor
You have a process definition that is wrong:  Could not validate XML with BPMN 2.0 XSD. For some reason it is fetched at login time.
Can you try to delete the faulty process definition?

sid121091
Champ in-the-making
Champ in-the-making
I have removed all the process definitions available and restarted explorer. Still facing the same issue.

vasile_dirla
Star Contributor
Star Contributor
Since you still have the issue then you still have the malformed process definition into your system.
You should put a breakpoint here: DeploymentManager.java line:65  and inspect the parameters of the "findDeployedProcessDefinitionById" method.
this way you'll find exactly which process definition is malformed.

sid121091
Champ in-the-making
Champ in-the-making
Hi, I tried using a breakpoint at the specified line and found out two deployed processes. However I am unable to deleter the deployed process definition. Can you suggest me how to go ahead about this?

jbarrez
Star Contributor
Star Contributor
If your data is not important: simply start with a clean database. Otherwise, go into the database and remove the process definitions, and all tables that refer to it. Alternatively, boot up a process engine, pointing it to the same db, and delete the process definition by getting its Deployment and delete the Deployment (with cascade set to 'true')

sid121091
Champ in-the-making
Champ in-the-making
As suggested I started with a clean database. Removed all the process definitions and tables and data related to it. The deployment is also deleted. Now I am able to log into explorer without the error popping out. So login issue is solved. However when I try to deploy a model, I get the following error message "Create of BPMN XML failed" with the following stack trace.

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.cmd.DeployCmd.execute(DeployCmd.java:80)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:35)
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.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:78)
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:156)
at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel.deployModelerModel(EditorProcessDefinitionDetailPanel.java:348)
at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel.deployModel(EditorProcessDefinitionDetailPanel.java:278)
at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel$1.valueChange(EditorProcessDefinitionDetailPanel.java:162)
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.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.Select.changeVariables(Select.java:664)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.changeVariables(AbstractCommunicationManager.java:1460)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1404)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1329)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:761)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:325)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
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: 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)
… 55 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)
… 56 more

I am able to log in now but not deploy a process

vasile_dirla
Star Contributor
Star Contributor
could you post here the xml of the process you want to deploy ?

sid121091
Champ in-the-making
Champ in-the-making
I cannot post the xml due to confidentiality issues from my employer. However I also want you to know that the same xml/process is being able to be deployed in other machines. Is there something wrong with my machine or am I missing something?

vasile_dirla
Star Contributor
Star Contributor
Since you are able to deploy it other machines, for sure there is something wrong with your setup.  (I guess you are using the same activiti version with the machine where is working)

Are you able to deploy other processes and this one is the only one which fails in your machine ?
(if so, just try to simplify it until it becomes deployable and then you'll notice the difference.)