On 2013/1/25 5:58, des4900 wrote: > I am working with Guvnor/Drools 5.5.0, jBPM 5.4.0 on Win7 64 bit, JBoss 7.1.1 > > First Problem: > 1. I have a rule in the global area, e.g., Rule1 > 2. I create a new rule in a package by importing Rule1 from the global area > 3. I realize that I imported the wrong rule. > 4. How do I remove Rule1 from the package? If I archive it from the > package, it also archives it from global, which I don't want to do since it > has been imported into many other packages. If I archive it from the > package anyway and then restore it, it reappears in the global area, and > also in all of the other packages that it was a part of. The only thing I > have found that works is to copy the rule, archive it, delete it, and then > import the copied rule into all the packages where the original rule > actually belongs. Thanks for reporting the problem. This is indeed a bug. Please use https://issues.jboss.org/browse/GUVNOR-1993 to track this issue. > > Second Problem (which I got into by trying to deal with the first one > above): > 1. I have a rule in the global area, e.g., Rule2 > 2. I rename Rule2 to Rule3 > 3. I also have a different rule in a package named Rule2 > 4. I archive and delete Rule 2 from the package, and it no longer appears > in the archives, nor in the package. I save the package, close it, stop and > restart JBoss, and check again, and it is not in the archives nor in the > package. > 5. I try to copy Rule3 from the global area to this package giving it the > name Rule2 (the same name as the rule I archived and deleted) and somehow > Guvnor thinks Rule2 is still there. > 6. I get an error (apparently Guvnor thinks the rule is still there): > Error Can not reproduce. If the problem still occurs to you, you can create a very simple Guvnor repository that can be used to reproduce the problem, export the repository and send me the file.
Thanks, Jervis > > 500 The call failed on the server; see server log for details > > > The server log shows this: > 14:22:39,840 ERROR > [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/drools-guvnor]] > (http--0.0.0.0-8080-22) Exception while dispatching incoming RPC call: > com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public > abstract java.lang.String > org.drools.guvnor.client.rpc.AssetService.copyAsset(java.lang.String,java.lang.String,java.lang.String)' > threw an unexpected exception: > org.drools.repository.RulesRepositoryException: > javax.jcr.ItemExistsException: cannot add child node > 'InitClinicalStatementConcepts' to > /drools:repository/drools:package_area/edu.utah.AHRQ_PSI_04_v4_3/assets: > colliding with same-named existing node > at > com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) > [gwt-servlet-2.4.0.jar:] > at > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) > [gwt-servlet-2.4.0.jar:] > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) > [gwt-servlet-2.4.0.jar:] > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) > [gwt-servlet-2.4.0.jar:] > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) > [gwt-servlet-2.4.0.jar:] > 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.13.Final.jar:] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) > [jbossweb-7.0.13.Final.jar:] > at > org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) > [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) > [jbossweb-7.0.13.Final.jar:] > at > org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) > [solder-impl-3.1.1.Final.jar:3.1.1.Final] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) > [jbossweb-7.0.13.Final.jar:] > at > org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) > [solder-impl-3.1.1.Final.jar:3.1.1.Final] > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) > [jbossweb-7.0.13.Final.jar:] > at > org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) > [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) > [jbossweb-7.0.13.Final.jar:] > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) > [jbossweb-7.0.13.Final.jar:] > at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25] > Caused by: org.drools.repository.RulesRepositoryException: > javax.jcr.ItemExistsException: cannot add child node > 'InitClinicalStatementConcepts' to > /drools:repository/drools:package_area/edu.utah.AHRQ_PSI_04_v4_3/assets: > colliding with same-named existing node > at > org.drools.repository.RulesRepository.copyAsset(RulesRepository.java:421) > [guvnor-repository-5.5.0.Final.jar:5.5.0.Final] > at > org.drools.repository.RulesRepository$Proxy$_$$_WeldClientProxy.copyAsset(RulesRepository$Proxy$_$$_WeldClientProxy.java) > [guvnor-repository-5.5.0.Final.jar:5.5.0.Final] > at > org.drools.guvnor.server.RepositoryAssetService.copyAsset(RepositoryAssetService.java:264) > [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final] > at > org.drools.guvnor.server.RepositoryAssetService$Proxy$_$$_WeldClientProxy.copyAsset(RepositoryAssetService$Proxy$_$$_WeldClientProxy.java) > [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final] > at > org.drools.guvnor.server.AssetServiceServlet.copyAsset(AssetServiceServlet.java:166) > [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final] > at sun.reflect.GeneratedMethodAccessor218.invoke(Unknown Source) > [:1.6.0_25] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [rt.jar:1.6.0_25] > at java.lang.reflect.Method.invoke(Method.java:597) > [rt.jar:1.6.0_25] > at > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) > [gwt-servlet-2.4.0.jar:] > ... 27 more > Caused by: javax.jcr.ItemExistsException: cannot add child node > 'InitClinicalStatementConcepts' to > /drools:repository/drools:package_area/edu.utah.AHRQ_PSI_04_v4_3/assets: > colliding with same-named existing node > at > org.apache.jackrabbit.core.BatchedItemOperations.checkAddNode(BatchedItemOperations.java:746) > [jackrabbit-core-2.2.8.jar:2.2.8] > at > org.apache.jackrabbit.core.BatchedItemOperations.copy(BatchedItemOperations.java:401) > [jackrabbit-core-2.2.8.jar:2.2.8] > at > org.apache.jackrabbit.core.WorkspaceImpl.internalCopy(WorkspaceImpl.java:420) > [jackrabbit-core-2.2.8.jar:2.2.8] > at > org.apache.jackrabbit.core.WorkspaceImpl.copy(WorkspaceImpl.java:646) > [jackrabbit-core-2.2.8.jar:2.2.8] > at > org.drools.repository.RulesRepository.copyAsset(RulesRepository.java:404) > [guvnor-repository-5.5.0.Final.jar:5.5.0.Final] > ... 35 more > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Guvnor-problems-tp4021809.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
