Hi,
I just started playing with Jackrabbit 1.3 and am working my way through
understanding the basics. I am running hop 1 and 2 in a JUnit testcase
inside of Eclipse. I was able to get the first hop to work just fine,
but in hop 2, when I try and save I get the stacktrace below. I am
using the transient repository both with and without a repository.xml
(the one included in the .rar) and get the same thing every time. Any
clues on what might be causing this? I tried googling this issue and
found someone asking the same question but with no response back in
December I think.
Also, I have attached the log output of the test run.
Thanks,
-scott
javax.jcr.RepositoryException: /: unable to update item.: Unable to
resolve path for item:
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primary
Type: Unable to resolve path for item:
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primary
Type
at
org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1222)
at
org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)
at
com.ugs.it.salescentre.tests.TestJackRabbit.testSimple(TestJackRabbit.ja
va:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUn
it3TestReference.java:128)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
va:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:196)
Caused by: org.apache.jackrabbit.core.state.ItemStateException: Unable
to resolve path for item:
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primary
Type
at
org.apache.jackrabbit.core.observation.EventStateCollection.getPath(Even
tStateCollection.java:519)
at
org.apache.jackrabbit.core.observation.EventStateCollection.createEventS
tates(EventStateCollection.java:384)
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(Sha
redItemStateManager.java:656)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(Shar
edItemStateManager.java:825)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedIte
mStateManager.java:855)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemS
tateManager.java:326)
at
org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateMa
nager.java:313)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemS
tateManager.java:302)
at
org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionI
temStateManager.java:306)
at
org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1214)
... 20 more
Caused by: javax.jcr.ItemNotFoundException: failed to build path of
af489355-e913-4c4e-bd01-7b737ab15af5:
cafebabe-cafe-babe-cafe-babecafebabe has no child entry for
af489355-e913-4c4e-bd01-7b737ab15af5
at
org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManag
erImpl.java:308)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManag
erImpl.java:297)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManag
erImpl.java:297)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.getPath(HierarchyManager
Impl.java:356)
at
org.apache.jackrabbit.core.observation.EventStateCollection.getPath(Even
tStateCollection.java:514)
... 29 more
org.apache.jackrabbit.core.state.ItemStateException: Unable to resolve
path for item:
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primary
Type
at
org.apache.jackrabbit.core.observation.EventStateCollection.getPath(Even
tStateCollection.java:519)
at
org.apache.jackrabbit.core.observation.EventStateCollection.createEventS
tates(EventStateCollection.java:384)
at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(Sha
redItemStateManager.java:656)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(Shar
edItemStateManager.java:825)
at
org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedIte
mStateManager.java:855)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemS
tateManager.java:326)
at
org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateMa
nager.java:313)
at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemS
tateManager.java:302)
at
org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionI
temStateManager.java:306)
at
org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1214)
at
org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)
at
com.ugs.it.salescentre.tests.TestJackRabbit.testSimple(TestJackRabbit.ja
va:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUn
it3TestReference.java:128)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
va:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:196)
Caused by: javax.jcr.ItemNotFoundException: failed to build path of
af489355-e913-4c4e-bd01-7b737ab15af5:
cafebabe-cafe-babe-cafe-babecafebabe has no child entry for
af489355-e913-4c4e-bd01-7b737ab15af5
at
org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManag
erImpl.java:308)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManag
erImpl.java:297)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManag
erImpl.java:297)
at
org.apache.jackrabbit.core.HierarchyManagerImpl.getPath(HierarchyManager
Impl.java:356)
at
org.apache.jackrabbit.core.observation.EventStateCollection.getPath(Even
tStateCollection.java:514)
... 29 more
null
DEBUG - Initializing transient repository
INFO - Starting repository...
INFO - LocalFileSystem initialized at path D:\web\salescentre\repo\repository
INFO - no custom node type definitions found
INFO - LocalFileSystem initialized at path D:\web\salescentre\repo\version
log4j:WARN No appenders could be found for logger
(org.springframework.core.CollectionFactory).
log4j:WARN Please initialize the log4j system properly.
INFO - LocalFileSystem initialized at path D:\web\salescentre\repo\version\blobs
DEBUG - [EMAIL PROTECTED] size=1, 664/4194304
DEBUG - [EMAIL PROTECTED] size=1, 664/4194304
INFO - initializing workspace 'default'...
INFO - LocalFileSystem initialized at path
D:\web\salescentre\repo\workspaces\default
INFO - LocalFileSystem initialized at path
D:\web\salescentre\repo\workspaces\default\blobs
DEBUG - [EMAIL PROTECTED] size=1, 964/4194304
DEBUG - item added to cache. size=1
DEBUG - item added to cache. size=2
DEBUG - item added to cache. size=3
DEBUG - item added to cache. size=4
DEBUG - item added to cache. size=5
DEBUG - item added to cache. size=6
DEBUG - item added to cache. size=7
DEBUG - item added to cache. size=8
DEBUG - item added to cache. size=9
DEBUG - item added to cache. size=10
DEBUG - item added to cache. size=11
DEBUG - item added to cache. size=12
DEBUG - item added to cache. size=13
DEBUG - item added to cache. size=14
DEBUG - item added to cache. size=15
DEBUG - item added to cache. size=16
DEBUG - item added to cache. size=17
DEBUG - item added to cache. size=18
DEBUG - item added to cache. size=19
DEBUG - item added to cache. size=20
DEBUG - item added to cache. size=21
DEBUG - item added to cache. size=22
DEBUG - item added to cache. size=23
DEBUG - item added to cache. size=24
DEBUG - item added to cache. size=25
DEBUG - item added to cache. size=26
DEBUG - item added to cache. size=27
DEBUG - item added to cache. size=28
DEBUG - item added to cache. size=29
DEBUG - item added to cache. size=30
DEBUG - item added to cache. size=31
DEBUG - item added to cache. size=32
DEBUG - item added to cache. size=33
DEBUG - item added to cache. size=34
DEBUG - item added to cache. size=35
DEBUG - item added to cache. size=36
DEBUG - item added to cache. size=37
DEBUG - item added to cache. size=38
DEBUG - item added to cache. size=39
DEBUG - item added to cache. size=40
DEBUG - item added to cache. size=41
DEBUG - item added to cache. size=42
DEBUG - item added to cache. size=43
DEBUG - item added to cache. size=44
DEBUG - item added to cache. size=45
DEBUG - item added to cache. size=46
DEBUG - item added to cache. size=47
DEBUG - item added to cache. size=48
DEBUG - item added to cache. size=49
DEBUG - item added to cache. size=50
DEBUG - item added to cache. size=51
DEBUG - item added to cache. size=52
DEBUG - item added to cache. size=53
DEBUG - item added to cache. size=54
DEBUG - item added to cache. size=55
DEBUG - item added to cache. size=56
DEBUG - item added to cache. size=57
DEBUG - item added to cache. size=58
DEBUG - item added to cache. size=59
DEBUG - item added to cache. size=60
DEBUG - item added to cache. size=61
DEBUG - item added to cache. size=62
DEBUG - item added to cache. size=63
DEBUG - item added to cache. size=64
DEBUG - item added to cache. size=65
DEBUG - item added to cache. size=66
DEBUG - item added to cache. size=67
DEBUG - item added to cache. size=68
DEBUG - item added to cache. size=69
DEBUG - item added to cache. size=70
DEBUG - item added to cache. size=71
DEBUG - item added to cache. size=72
DEBUG - item added to cache. size=73
DEBUG - item added to cache. size=74
DEBUG - item added to cache. size=75
DEBUG - item added to cache. size=76
DEBUG - item added to cache. size=77
DEBUG - item added to cache. size=78
DEBUG - item added to cache. size=79
DEBUG - item added to cache. size=80
DEBUG - item added to cache. size=81
DEBUG - item added to cache. size=82
DEBUG - item added to cache. size=83
DEBUG - item added to cache. size=84
DEBUG - item added to cache. size=85
DEBUG - item added to cache. size=86
DEBUG - item added to cache. size=87
DEBUG - item added to cache. size=88
DEBUG - item added to cache. size=89
DEBUG - item added to cache. size=90
DEBUG - item added to cache. size=91
DEBUG - item added to cache. size=92
DEBUG - item added to cache. size=93
INFO - workspace 'default' initialized
DEBUG -
JackrabbitTextExtractor(org.apache.jackrabbit.extractor.DefaultTextExtractor)
INFO - LocalFileSystem initialized at path
D:\web\salescentre\repo\repository\index
DEBUG - RedoLog is empty, no recovery needed.
DEBUG - [EMAIL PROTECTED] size=1, 1264/4194304
INFO - resizeAll size=4
DEBUG - [EMAIL PROTECTED] now:4194304 used:664 access:2 new:131072
DEBUG - [EMAIL PROTECTED] now:4194304 used:47920 access:127 new:131072
DEBUG - [EMAIL PROTECTED] now:4194304 used:3256 access:7 new:131072
DEBUG - [EMAIL PROTECTED] now:4194304 used:1178 access:5 new:131072
INFO - resizeAll size=4
DEBUG - [EMAIL PROTECTED] now:131072 used:664 access:0 new:131072
DEBUG - [EMAIL PROTECTED] now:131072 used:127874 access:1651 new:16384000
DEBUG - [EMAIL PROTECTED] now:131072 used:3256 access:0 new:131072
DEBUG - [EMAIL PROTECTED] now:131072 used:1178 access:0 new:131072
INFO - Index initialized: D:\web\salescentre\repo/repository/index
DEBUG -
JackrabbitTextExtractor(org.apache.jackrabbit.extractor.DefaultTextExtractor)
INFO - LocalFileSystem initialized at path
D:\web\salescentre\repo\workspaces\default\index
DEBUG - RedoLog is empty, no recovery needed.
INFO - Index initialized: D:\web\salescentre\repo\workspaces\default/index
INFO - Repository started
INFO - Transient repository initialized
DEBUG - Opening a new session
DEBUG - [EMAIL PROTECTED] size=1, 664/4194304
INFO - Session opened
DEBUG - [EMAIL PROTECTED] size=1, 964/4194304
DEBUG - created item cafebabe-cafe-babe-cafe-babecafebabe
DEBUG - caching item cafebabe-cafe-babe-cafe-babecafebabe
DEBUG - created item af489355-e913-4c4e-bd01-7b737ab15af5
DEBUG - caching item af489355-e913-4c4e-bd01-7b737ab15af5
DEBUG - created item
af489355-e913-4c4e-bd01-7b737ab15af5/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - caching item
af489355-e913-4c4e-bd01-7b737ab15af5/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - created item f8190597-f937-4bd0-abd0-05a9cf8156d3
DEBUG - caching item f8190597-f937-4bd0-abd0-05a9cf8156d3
DEBUG - created item
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - caching item
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - created item f8190597-f937-4bd0-abd0-05a9cf8156d3/{}message
DEBUG - caching item f8190597-f937-4bd0-abd0-05a9cf8156d3/{}message
DEBUG - failed to build path of af489355-e913-4c4e-bd01-7b737ab15af5:
cafebabe-cafe-babe-cafe-babecafebabe has no child entry for
af489355-e913-4c4e-bd01-7b737ab15af5
ERROR - Unable to resolve path for item:
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - /: unable to update item.
DEBUG - invalidated item
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - removing item
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primaryType
from cache
DEBUG - invalidated item f8190597-f937-4bd0-abd0-05a9cf8156d3/{}message
DEBUG - removing item f8190597-f937-4bd0-abd0-05a9cf8156d3/{}message from cache
DEBUG - invalidated item
af489355-e913-4c4e-bd01-7b737ab15af5/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - removing item
af489355-e913-4c4e-bd01-7b737ab15af5/{http://www.jcp.org/jcr/1.0}primaryType
from cache
DEBUG - invalidated item f8190597-f937-4bd0-abd0-05a9cf8156d3
DEBUG - removing item f8190597-f937-4bd0-abd0-05a9cf8156d3 from cache
DEBUG - invalidated item af489355-e913-4c4e-bd01-7b737ab15af5
DEBUG - removing item af489355-e913-4c4e-bd01-7b737ab15af5 from cache
DEBUG - created item
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - caching item
f8190597-f937-4bd0-abd0-05a9cf8156d3/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - created item f8190597-f937-4bd0-abd0-05a9cf8156d3/{}message
DEBUG - caching item f8190597-f937-4bd0-abd0-05a9cf8156d3/{}message
DEBUG - created item
af489355-e913-4c4e-bd01-7b737ab15af5/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - caching item
af489355-e913-4c4e-bd01-7b737ab15af5/{http://www.jcp.org/jcr/1.0}primaryType
DEBUG - created item f8190597-f937-4bd0-abd0-05a9cf8156d3
DEBUG - caching item f8190597-f937-4bd0-abd0-05a9cf8156d3
DEBUG - created item af489355-e913-4c4e-bd01-7b737ab15af5
DEBUG - caching item af489355-e913-4c4e-bd01-7b737ab15af5
DEBUG - invalidated item cafebabe-cafe-babe-cafe-babecafebabe
DEBUG - removing item cafebabe-cafe-babe-cafe-babecafebabe from cache
INFO - Session closed
DEBUG - Shutting down transient repository
INFO - Shutting down repository...
DEBUG - dispose IndexMerger
DEBUG - quit sent
INFO - IndexMerger terminated
DEBUG - IndexMerger thread stopped
DEBUG - merge queue size: 0
DEBUG - committing IndexWriter.
DEBUG - merging segments _0 (1 docs) _1 (1 docs) _2 (1 docs) _3 (1 docs) _4 (1
docs) _5 (1 docs) _6 (1 docs) _7 (1 docs) _8 (1 docs) _9 (1 docs) _a (1 docs)
_b (1 docs) _c (1 docs) _d (1 docs) _e (1 docs) _f (1 docs) _g (1 docs) _h (1
docs) _i (1 docs) _j (1 docs) _k (1 docs) _l (1 docs) _m (1 docs) _n (1 docs)
_o (1 docs) _p (1 docs) _q (1 docs) _r (1 docs) _s (1 docs) _t (1 docs) _u (1
docs) _v (1 docs) _w (1 docs) _x (1 docs) _y (1 docs) _z (1 docs) _10 (1 docs)
_11 (1 docs) _12 (1 docs) _13 (1 docs) _14 (1 docs) _15 (1 docs) _16 (1 docs)
_17 (1 docs) _18 (1 docs) _19 (1 docs) _1a (1 docs) _1b (1 docs) _1c (1 docs)
_1d (1 docs) _1e (1 docs) _1f (1 docs) _1g (1 docs) _1h (1 docs) _1i (1 docs)
_1j (1 docs) _1k (1 docs) _1l (1 docs) _1m (1 docs) _1n (1 docs) _1o (1 docs)
_1p (1 docs) _1q (1 docs) _1r (1 docs) _1s (1 docs) _1t (1 docs) _1u (1 docs)
_1v (1 docs) _1w (1 docs) _1x (1 docs) _1y (1 docs) _1z (1 docs) _20 (1 docs)
_21 (1 docs) _22 (1 docs) _23 (1 docs) _24 (1 docs) _25 (1 docs) _26 (1 docs)
_27 (1 docs) _28 (1 docs) _29 (1 docs) _2a (1 docs) _2b (1 docs) _2c (1 docs)
_2d (1 docs) _2e (1 docs) _2f (1 docs) _2g (1 docs) _2h (1 docs) _2i (1 docs)
_2j (1 docs) _2k (1 docs) _2l (1 docs) _2m (1 docs) _2n (1 docs) into _2o (96
docs)
DEBUG - index added: name=_0, numDocs=96
DEBUG - Committed in-memory index in 220ms.
INFO - Index closed: D:\web\salescentre\repo/repository/index
INFO - shutting down workspace 'default'...
INFO - Notification of EventListeners stopped.
DEBUG - dispose IndexMerger
INFO - IndexMerger terminated
DEBUG - quit sent
DEBUG - IndexMerger thread stopped
DEBUG - merge queue size: 0
DEBUG - committing IndexWriter.
DEBUG - merging segments _0 (1 docs) into _1 (1 docs)
DEBUG - index added: name=_0, numDocs=1
DEBUG - Committed in-memory index in 30ms.
INFO - Index closed: D:\web\salescentre\repo\workspaces\default/index
INFO - Database 'D:\web\salescentre\repo\workspaces\default/db' shutdown.
INFO - workspace 'default' has been shutdown
INFO - Database 'D:\web\salescentre\repo/version/db' shutdown.
INFO - Repository has been shutdown
INFO - Transient repository shut down