cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent help Required

agrawalanish
Champ in-the-making
Champ in-the-making

Getting below exception when tried to deploy bpmn file (uploaded to server using DWR) -

Please let me know what is the issue.

Note: Able to deploy same BPMN using Junit

http-bio-8080-exec-1] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource xxxx.bpmn20.xml
[http-bio-8080-exec-1] ERROR org.activiti.engine.impl.interceptor.CommandContext - Error while closing command context
org.activiti.engine.ActivitiException: Error parsing XML
     at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:195)
     at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
     at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:42)
     at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:68)
     at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:33)
     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:130)
     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:75)
     at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:139)
     at com.minacs.core.bpm.service.impl.BPMDeploymentServiceImpl.deploy(BPMDeploymentServiceImpl.java:34)
     at com.minacs.tradefree.services.impl.ProcessServiceImpl.deployProcess(ProcessServiceImpl.java:200)
     at com.minacs.tradefree.services.impl.ProcessServiceImpl.createProcess(ProcessServiceImpl.java:132)
     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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
     at com.sun.proxy.$Proxy51.createProcess(Unknown Source)
     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 org.directwebremoting.impl.CreatorModule$1.doFilter(CreatorModule.java:236)
     at org.directwebremoting.impl.CreatorModule.executeMethod(CreatorModule.java:242)
     at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:358)
     at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:311)
     at org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:105)
     at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:126)
     at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:144)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
     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.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
     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:502)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
     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:1041)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: Could not validate XML with BPMN 2.0 XSD
     at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:231)
     at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:181)
     … 60 more
Caused by: org.xml.sax.SAXParseException; Premature end of file.
     at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
     at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
     at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
     at org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(Unknown Source)
     at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
     at javax.xml.validation.Validator.validate(Validator.java:124)
     at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:165)
     at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:220)
     … 61 more

1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Seems like your BPMN-file is not complete. First, check if the file is a valid XML-file.

How do you add the files to your deployment and how are you deploying the files?