google-code-export / red-piranha

Automatically exported from code.google.com/p/red-piranha
GNU General Public License v2.0
1 stars 2 forks source link

Chapter 3 import problem "Unable to import into the repository" #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Download, unzip and run drools-5.1.1-guvnor-standalone.zip
2.Download, unzip droolsbook_chapter3_sample.zip 
3.Import the repository_export.xml 

The web UI show the message
"Unable to import into the repository"
On the log y get the following message:
=====================================================================
 ERROR 04-02 10:56:27,988 (UserInfo.java:<init>:52)        Unable to init UserInfo
javax.jcr.RepositoryException: failed to resolve path  relative to node 
/drools:repository/user_info
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:249)
        at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:230)
        at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2546)
        at org.drools.repository.security.PermissionManager.getNode(PermissionManager.java:181)
        at org.drools.repository.security.PermissionManager.getUserInfoNode(PermissionManager.java:116)
        at org.drools.repository.UserInfo.init(UserInfo.java:73)
        at org.drools.repository.UserInfo.<init>(UserInfo.java:50)
        at org.drools.guvnor.server.repository.UserInbox.<init>(UserInbox.java:55)
        at org.drools.guvnor.server.repository.UserInbox.recordUserEditEvent(UserInbox.java:169)
        at org.drools.guvnor.server.repository.RepositoryStartupService$1.afterCheckin(RepositoryStartupService.java:83)
        at org.drools.repository.events.StorageEventManager.doCheckinEvents(StorageEventManager.java:95)
        at org.drools.repository.VersionableItem.checkin(VersionableItem.java:589)
        at org.drools.repository.migration.MigrateDroolsPackage.migratePackage(MigrateDroolsPackage.java:71)
        at org.drools.repository.migration.MigrateDroolsPackage.migrate(MigrateDroolsPackage.java:46)
        at org.drools.repository.RulesRepository.importRulesRepositoryFromStream(RulesRepository.java:1065)
        at org.drools.guvnor.server.files.FileManagerUtils.importRulesRepository(FileManagerUtils.java:271)
        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:616)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
        at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:157)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
        at org.drools.guvnor.server.files.FileManagerUtils_$$_javassist_6.importRulesRepository(FileManagerUtils_$$_javassist_6.java)
        at org.drools.guvnor.server.files.RepositoryBackupServlet.processImportRepository(RepositoryBackupServlet.java:134)
        at org.drools.guvnor.server.files.RepositoryBackupServlet.access$100(RepositoryBackupServlet.java:42)
        at org.drools.guvnor.server.files.RepositoryBackupServlet$1.a(RepositoryBackupServlet.java:71)
        at org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:97)
        at org.drools.guvnor.server.files.RepositoryBackupServlet.doPost(RepositoryBackupServlet.java:55)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
===================================================================
The server is
Linux java-testing 2.6.31-22-generic #70-Ubuntu SMP Wed Dec 1 23:51:13 UTC 2010 
i686 GNU/Linux
And the Java Version:
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.4) (6b20-1.9.4-0ubuntu1~9.10.1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)

Original issue reported on code.google.com by andrade....@gmail.com on 4 Feb 2011 at 1:59

GoogleCodeExporter commented 9 years ago
Mergin this as it is a duplicate of issue 31

Core issue is that samples are written for Drools 4, XML for Drools 5 is 
incompatible.

Happy to update this site with a version with Drools 5 if submitted.

Original comment by paul.m.browne on 4 Feb 2011 at 8:44