Yep, draging the Reusable Subprocess from the stencil resolve the
issue... I could save and reopen the diagram properly.
I got really impressed with the improvements...
congratulations for the excellent job !!!
cheers
On 13/03/12 07:06, Tihomir Surdilovic wrote:
On 3/13/12 12:03 AM, Cristiano Gavião wrote:
> Hi again,
>
> Well, I already did this before. But now I've discovered that its
> working when called from a file inside a guvnor package. but not
> directly in the browser..
>
> But I got a error that prevents the model (see the attached picture)
> saved properly. at least when I tried to open the saved file I got a
> black canvas.
This is a bug we're fixing right now - Do not currently use the
morphing menu to convert a Task node to a Reusable Subprocess; rather
drag the reusable subprocess onto the canvas from the stencil shape
repository itself (under Activities) and connect them. We will have
this fixed for the 2.1 Designer release.
Thanks.
>
>> 00:29:06,846 ERROR
>>
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/designer].[UUIDBasedRepositoryServlet]]
>> (http--127.0.0.1-8080-6) Servlet.service() for servlet
>> UUIDBasedRepositoryServlet threw exception:
>> java.lang.IllegalArgumentException: No enum const class
>> org.jbpm.designer.bpmn2.impl.Bpmn20Stencil.ReusableSubprocess_None
>> at java.lang.Enum.valueOf(Enum.java:196) [:1.6.0_29]
>> at
>> org.jbpm.designer.bpmn2.impl.Bpmn20Stencil.valueOf(Bpmn20Stencil.java:35)
>> [classes:]
>> at
>> org.jbpm.designer.bpmn2.impl.Bpmn20Stencil.createElement(Bpmn20Stencil.java:134)
>> [classes:]
>> at
>>
org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.createBaseElement(Bpmn2JsonUnmarshaller.java:3670)
>> [classes:]
>> at
>>
org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshallItem(Bpmn2JsonUnmarshaller.java:1628)
>> [classes:]
>> at
>>
org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshallItem(Bpmn2JsonUnmarshaller.java:1553)
>> [classes:]
>> at
>>
org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall(Bpmn2JsonUnmarshaller.java:223)
>> [classes:]
>> at
>>
org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall(Bpmn2JsonUnmarshaller.java:199)
>> [classes:]
>> at
>>
org.jbpm.designer.web.profile.impl.JbpmProfileImpl$1.parseModel(JbpmProfileImpl.java:222)
>> [classes:]
>> at
>>
org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository.toXML(UUIDBasedJbpmRepository.java:63)
>> [classes:]
>> at
>>
org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doPost(UUIDBasedRepositoryServlet.java:134)
>> [classes:]
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
>> [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
>> at
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>>
org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)
>> [classes:]
>> at
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>>
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
>> [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
>> at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
>> [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
>> [jbossweb-7.0.1.Final.jar:7.0.2.Final]
>> at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]
>>
>> 00:29:06,850 INFO [stdout] (http--127.0.0.1-8080-4) ERROR 13-03
>> 00:29:06,849 (LoggingHelper.java:error:74) Server returned HTTP
>> response code: 500 for URL:
>>
http://localhost:8080/designer/uuidRepository?profile=jbpm&action=toX...
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4)
>> java.io.IOException: Server returned HTTP response code: 500 for
>> URL:
>>
http://localhost:8080/designer/uuidRepository?profile=jbpm&action=toX...
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.drools.guvnor.server.contenthandler.BPMN2ProcessHandler.serialize(BPMN2ProcessHandler.java:159)
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.drools.guvnor.server.contenthandler.BPMN2ProcessHandler.storeAssetContent(BPMN2ProcessHandler.java:124)
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.drools.guvnor.server.RepositoryAssetOperations.checkinVersion(RepositoryAssetOperations.java:133)
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.drools.guvnor.server.RepositoryAssetService.checkinVersion(RepositoryAssetService.java:153)
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 00:29:06,851 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
>> 00:29:06,852 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.drools.guvnor.server.RepositoryAssetService_$$_javassist_seam_8.checkinVersion(RepositoryAssetService_$$_javassist_seam_8.java)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.drools.guvnor.server.RepositoryServiceServlet.checkinVersion(RepositoryServiceServlet.java:635)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 00:29:06,853 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>> java.lang.reflect.Method.invoke(Method.java:597)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>> 00:29:06,854 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> 00:29:06,855 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> 00:29:06,856 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
>> 00:29:06,856 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
>> 00:29:06,856 INFO [stdout] (http--127.0.0.1-8080-4) at
>>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
>> 00:29:06,856 INFO [stdout] (http--127.0.0.1-8080-4) at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
>> 00:29:06,856 INFO [stdout] (http--127.0.0.1-8080-4) at
>> java.lang.Thread.run(Thread.java:680)
>> 00:29:07,055 INFO [stdout] (http--127.0.0.1-8080-4) (null: -1, -1):
>> Premature end of file.
>> 00:29:07,140 INFO [org.jbpm.designer.server.EditorHandler]
>> (http--127.0.0.1-8080-4) Performing diagram information
>> pre-processing steps.
>> 00:29:07,665 INFO
>> [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
>> (http--127.0.0.1-8080-4) Successfully deleted file
>>
:/Users/cvgaviao/Library/JavaApps/jbpm-installer/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp4941937837370a97/designer.war-d06fd578f3179836/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
>> 00:29:07,673 INFO
>> [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
>> (http--127.0.0.1-8080-4) Created
>>
file:/Users/cvgaviao/Library/JavaApps/jbpm-installer/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp4941937837370a97/designer.war-d06fd578f3179836/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
>> 00:29:07,674 INFO
>> [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
>> (http--127.0.0.1-8080-4) Successfully deleted file
>>
:/Users/cvgaviao/Library/JavaApps/jbpm-installer/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp4941937837370a97/designer.war-d06fd578f3179836/stencilsets/bpmn2.0jbpm/view/activity/workitems/Email.svg
>> 00:29:07,675 INFO
>> [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
>> (http--127.0.0.1-8080-4) Successfully deleted file
>>
:/Users/cvgaviao/Library/JavaApps/jbpm-installer/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp4941937837370a97/designer.war-d06fd578f3179836/stencilsets/bpmn2.0jbpm/view/activity/workitems/Log.svg
>> 00:29:07,678 INFO
>> [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
>> (http--127.0.0.1-8080-4) Created
>>
file:/Users/cvgaviao/Library/JavaApps/jbpm-installer/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp4941937837370a97/designer.war-d06fd578f3179836/stencilsets/bpmn2.0jbpm/view/activity/workitems/Log.svg
>> 00:29:07,680 INFO
>> [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit]
>> (http--127.0.0.1-8080-4) Created
>>
file:/Users/cvgaviao/Library/JavaApps/jbpm-installer/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp4941937837370a97/designer.war-d06fd578f3179836/stencilsets/bpmn2.0jbpm/view/activity/workitems/Email.svg
>> 00:29:08,420 INFO [stdout] (http--127.0.0.1-8080-6) (null: -1, -1):
>> Premature end of file.
>> 00:29:09,100 INFO [org.jbpm.designer.web.server.DictionaryServlet]
>> (http--127.0.0.1-8080-4) check connection response code: 500
>
> what could be?
>
> regards
>
> On 12/03/12 19:37, Tihomir Surdilovic wrote:
>> Most likely you are missing an empty designer.dodeploy file in your
>> AS installation deploy directory.
>> You can install designer without guvnor, however designer is
>> currently storing processes in guvnor, so as standalone you can only
>> view existing processes, but not create/save new ones.
>>
>> Hope this helps.
>>
>>
>> On 3/12/12 5:47 PM, Cristiano Gavião wrote:
>>> Hi,
>>> I want to try the new version of Designer. So, I've got the
>>> designer-2.1-jboss7.war from
>>>
people.redhat.com/tsurdilo/designer/master.
>>> I've renamed to designer.war and deployed into my jboss AS7 that
>>> comes with jbpm-5.2.0.Final-installer-full.
>>>
>>> JbossAS console at
>>>
http://localhost:9990/console/App.html#deployment-list shows me
>>> that designer is enabled but when I try the url
>>>
http://localhost:8080/designer/ I got a 404 error.
>>>
>>> Am I missing something ?
>>>
>>> Btw, must I have guvnor working just to try designer or can I
>>> deploy it in a fresh jboss AS instance ?
>>>
>>> regards,
>>>
>>> Cristiano
>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>