AnsweredAssumed Answered

Error when save Activiti Modeler

Question asked by bank on Oct 3, 2014
I got an error when I try to save model in Activiti Modeler.

At first time I got this error


    [java] Oct 03, 2014 10:45:00 AM org.restlet.engine.log.LogFilter afterHandle
     [java] INFO: 2014-10-03   10:45:00   127.0.0.1   -   127.0.0.1   8443   GET   /activiti-explorer/service/model/3838/json   -   200   -   0   6   https://workflowbackend.localhost:8443   Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36   https://workflowbackend.localhost:8443/activiti-explorer/service/editor?id=3838
     [java] Oct 03, 2014 10:45:01 AM org.restlet.resource.ServerResource doCatch
     [java] WARNING: Exception or error caught in server resource
     [java] Internal Server Error (500) - The server encountered an unexpected condition which prevented it from fulfilling the request
     [java]    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:540)
     [java]    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:575)
     [java]    at org.restlet.resource.ServerResource.put(ServerResource.java:1374)
     [java]    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:447)
     [java]    at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:683)
     [java]    at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:357)
     [java]    at org.restlet.resource.ServerResource.handle(ServerResource.java:1014)
     [java]    at org.restlet.resource.Finder.handle(Finder.java:246)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.routing.Router.doHandle(Router.java:431)
     [java]    at org.restlet.routing.Router.handle(Router.java:648)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
     [java]    at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:84)
     [java]    at org.restlet.Application.handle(Application.java:384)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.routing.Router.doHandle(Router.java:431)
     [java]    at org.restlet.routing.Router.handle(Router.java:648)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.routing.Router.doHandle(Router.java:431)
     [java]    at org.restlet.routing.Router.handle(Router.java:648)
     [java]    at org.restlet.routing.Filter.doHandle(Filter.java:159)
     [java]    at org.restlet.routing.Filter.handle(Filter.java:206)
     [java]    at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
     [java]    at org.restlet.Component.handle(Component.java:406)
     [java]    at org.restlet.Server.handle(Server.java:516)
     [java]    at org.restlet.engine.connector.ServerHelper.handle(ServerHelper.java:72)
     [java]    at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:152)
     [java]    at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1118)
     [java]    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     [java]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
     [java]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     [java]    at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
     [java]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     [java]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     [java]    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
     [java]    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
     [java]    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
     [java]    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
     [java]    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
     [java]    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
     [java]    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
     [java]    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
     [java]    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
     [java]    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
     [java]    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
     [java]    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     [java]    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     [java]    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     [java]    at java.lang.Thread.run(Thread.java:745)
     [java] Caused by: java.lang.ExceptionInInitializerError
     [java]    at org.apache.batik.transcoder.SVGAbstractTranscoder.<init>(SVGAbstractTranscoder.java:123)
     [java]    at org.apache.batik.transcoder.image.ImageTranscoder.<init>(ImageTranscoder.java:75)
     [java]    at org.apache.batik.transcoder.image.PNGTranscoder.<init>(PNGTranscoder.java:44)
     [java]    at org.activiti.rest.editor.model.ModelSaveRestResource.saveModel(ModelSaveRestResource.java:73)
     [java]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     [java]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java]    at java.lang.reflect.Method.invoke(Method.java:606)
     [java]    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:521)
     [java]    … 62 more
     [java] Caused by: java.lang.ClassCastException: org.apache.batik.extension.svg.BatikDomExtension cannot be cast to org.apache.batik.dom.DomExtension
     [java]    at org.apache.batik.dom.ExtensibleDOMImplementation.getDomExtensions(ExtensibleDOMImplementation.java:280)
     [java]    at org.apache.batik.dom.ExtensibleDOMImplementation.<init>(ExtensibleDOMImplementation.java:95)
     [java]    at org.apache.batik.dom.svg.SVGDOMImplementation.<init>(SVGDOMImplementation.java:91)
     [java]    at org.apache.batik.dom.svg.SVGDOMImplementation.<clinit>(SVGDOMImplementation.java:1596)
     [java]    … 71 more
     [java]


I use activiti-explorer under my webapp.

how can I solve this problem?

Thanks.
Bank.

Outcomes