jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Schriftman" <schri...@gmail.com>
Subject Re: NoSuchItemStateException
Date Wed, 12 Mar 2008 16:20:43 GMT
Stefan - thanks very much for the feedback - it was helpful. Everything is
working now!

Marc

On Mon, Mar 10, 2008 at 4:21 AM, Stefan Guggisberg <
stefan.guggisberg@gmail.com> wrote:

> On Mon, Mar 10, 2008 at 12:47 AM, Marc Schriftman <schrifty@gmail.com>
> wrote:
> > Please forgive my earlier mispost - up too late last night :) Here's
> what I
> >  meant to post:
> >
> >
>  ----------------------------------------------------------------------------------------------
> >
> >  Hi everyone,
> >
> >  Upgrading to 1.4.1 seems to have exposed some kind of bug in my
> >  previously-working application. When I go to create a new versionable
> node
> >  in the repository, I wind up with this stack trace:
> >
> >  org.apache.jackrabbit.core.state.NoSuchItemStateException:
> >  deadbeef-face-babe-cafe-babecafebabe/{
> http://www.jcp.org/jcr/1.0}primaryType<http://www.jcp.org/jcr/1.0%7DprimaryType>
> >
> >     at
> org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(
> >
> >  SharedItemStateManager.java:259)
> >     at
> >  org.apache.jackrabbit.core.state.LocalItemStateManager.getPropertyState
> (
> >  LocalItemStateManager.java:118)
> >     at
> org.apache.jackrabbit.core.state.LocalItemStateManager.getItemState(
> >  LocalItemStateManager.java:150)
> >     at org.apache.jackrabbit.core.version.NodeStateEx.store(
> NodeStateEx.java
> >  :523)
> >     at org.apache.jackrabbit.core.version.NodeStateEx.store(
> NodeStateEx.java
> >  :503)
> >     at
> >
> org.apache.jackrabbit.core.version.AbstractVersionManager.createVersionHistory
> >  (AbstractVersionManager.java:308)
> >     at org.apache.jackrabbit.core.version.VersionManagerImpl$1.run(
> >  VersionManagerImpl.java:224)
> >     at
> >
> org.apache.jackrabbit.core.version.VersionManagerImpl$DynamicESCFactory.doSourced
> >  (VersionManagerImpl.java:579)
> >     at
> >
> org.apache.jackrabbit.core.version.VersionManagerImpl.createVersionHistory
> (
> >  VersionManagerImpl.java:221)
> >     at
> >
> org.apache.jackrabbit.core.version.XAVersionManager.createVersionHistory(
> >  XAVersionManager.java:149)
> >     at org.apache.jackrabbit.core.ItemImpl.initVersionHistories(
> >  ItemImpl.java:785)
> >     at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1221)
> >     at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:896)
> >     at
> com.bsgalliance.storage.jackrabbit.j2ee.JackrabbitUtils.persistItem(
> >  JackrabbitUtils.java:838)
> >
> >  My code is pretty simple, and always worked in the past:
> >
> >  final NodeImpl file = (NodeImpl) root.addNode(fileName, "nt:file");
> >  resource = (NodeImpl) file.addNode("jcr:content", "nt:resource");
> >  resource.addMixin(MIX_VERSIONABLE);
> >  resource.setProperty("jcr:mimeType", filePart.getContentType());
> >  resource.setProperty("jcr:data", filePart.getInputStream());
> >  resource.setProperty("jcr:lastModified", lastModified);
> >  session.save();
> >  resource.checkin();
> >
> >  Anyone got a clue what I'm doing wrong?
>
> just a wild guess:
> are you sure you correctly configured the the versioning Persistence
> Manager
> (see the <Versioning/> element in the repository.xml)?
> errors like the one above can be caused by incorrect versioning
> configuration.
>
> cheers
> stefan
>
> >
> >  Thanks in advance,
> >
> >  Marc Schriftman
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message