That'll be a bug.
Can you raise a JIRA for GUVNOR and attach your JCR repository?
Sent on the move
We defined a lot of rules using Drools 5.5.0.
Since Drools 6 has been released, we used "drools-wb-jcr2vfs-migration"
script to migrate the repository from 5.5.0 to 6.
The script generated exception during execution.
It said modules migrated. But when migrating categories, it fails.
Hope to seek advice. Below is the output with errors:
D:\Austin\drools-wb-jcr2vfs-migration-core-6.0.0.Final\bin>runMigration.bat
Migration started. Reading from inputJcrRepository
({D:\Austin\drools-wb-jcr2vfs-migration-core-6.0.0.Final\bin\inputJcr}).
Module migration started
=============== session-guest-4
Module [ForrestGumpSample] migrated.
Module [com.austin.callmethod] migrated.
Module [com.austin.complex] migrated.
Module [com.austin.scorecard] migrated.
Module [com.austin.test] migrated.
Module [com.austin.testRep] migrated.
Module [com.austin.workitem] migrated.
Module [com.boc.demo] migrated.
Module [com.boc.riskmgmt.drools.florence] migrated.
Module [com.boc.riskmgmt.drools.florence2] migrated.
Module [com.boc.riskmgmt.nelson] migrated.
Module [com.declarative.test] migrated.
Module [com.demo.strata] migrated.
Module [com.philip] migrated.
Module [defaultPackage] migrated.
=============== session-guest-4
Global migrated.
Module migration ended
Category migration started
=============== session-guest-4
=============== session-guest-4
=============== session-guest-4
=============== session-guest-4
=============== session-guest-4
org.drools.repository.RulesRepositoryException: Unable to load the category
: [M_Model] does not exist.
at
org.drools.repository.RulesRepository.loadCategory(RulesRepository.java:1098)
at
org.drools.repository.RulesRepository$Proxy$_$$_WeldClientProxy.loadCategory(RulesRepository$Proxy$_$$_WeldClientProxy.java)
at
org.drools.guvnor.server.RepositoryCategoryOperations.loadChildCategories(RepositoryCategoryOperations.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:45)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)
at
org.drools.guvnor.server.RepositoryCategoryOperations$Proxy$_$$_WeldClientProxy.loadChildCategories(RepositoryCategoryOperations$Proxy$_$$_WeldClientProxy.java)
at
org.drools.guvnor.server.RepositoryCategoryService.loadChildCategories(RepositoryCategoryService.java:54)
at
org.drools.guvnor.server.RepositoryCategoryService$Proxy$_$$_WeldClientProxy.loadChildCategories(RepositoryCategoryService$Proxy$_$$_WeldClientProxy.java)
at
org.drools.workbench.jcr2vfsmigration.migrater.CategoryMigrater.loadChildCategories(CategoryMigrater.java:42)
at
org.drools.workbench.jcr2vfsmigration.migrater.CategoryMigrater.loadChildCategories(CategoryMigrater.java:49)
at
org.drools.workbench.jcr2vfsmigration.migrater.CategoryMigrater.loadChildCategories(CategoryMigrater.java:49)
at
org.drools.workbench.jcr2vfsmigration.migrater.CategoryMigrater.migrateAll(CategoryMigrater.java:34)
at
org.drools.workbench.jcr2vfsmigration.migrater.CategoryMigrater$Proxy$_$$_WeldClientProxy.migrateAll(CategoryMigrater$Proxy$_$$_WeldClientProxy.java)
at
org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrater.migrateAll(Jcr2VfsMigrater.java:90)
at
org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrater$Proxy$_$$_WeldClientProxy.migrateAll(Jcr2VfsMigrater$Proxy$_$$_WeldClientProxy.java)
at
org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrationApp.migrate(Jcr2VfsMigrationApp.java:64)
at
org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrationApp.run(Jcr2VfsMigrationApp.java:52)
at
org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrationApp.main(Jcr2VfsMigrationApp.java:37)
Caused by: javax.jcr.PathNotFoundException: M_Model
at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2135)
at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2129)
at
org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2129)
at
org.drools.repository.RulesRepository.loadCategory(RulesRepository.java:1088)
... 21 more
Migration ended with errors. Written into outputVfsRepository
({D:\Austin\drools-wb-jcr2vfs-migration-core-6.0.0.Final\bin\outputVfs}).
--
View this message in context: http://drools.46999.n3.nabble.com/Exception-when-executing-drools-wb-jcr2vfs-migration-tp4027341.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users