jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mallikarjun Revgond (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-232) jcr:baseVersion is not updated when the base version is removed from the version history
Date Wed, 23 Sep 2009 16:30:16 GMT

    [ https://issues.apache.org/jira/browse/JCR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758758#action_12758758
] 

Mallikarjun Revgond commented on JCR-232:
-----------------------------------------

Hi Tripod,

I am working jackrabbit 1.0 , i am still facing the same problem as above.  

I have deleted latest version from the versionHistory and trying to get the baseVersion of
the node i am getting the fallowing error log. 

please guide me how to resolve this issue.

Exception in thread "main" javax.jcr.ItemNotFoundException: df41a752-1c10-4e35-8cf8-f62f142726c5
	at org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:112)
	at org.apache.jackrabbit.rmi.server.ServerNode.getBaseVersion(ServerNode.java:483)
	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:585)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
	at sun.rmi.transport.Transport$1.run(Transport.java:153)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
	at java.lang.Thread.run(Thread.java:595)
	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
	at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
	at sun.rmi.server.UnicastRef.invoke(Unknown Source)
	at org.apache.jackrabbit.rmi.server.ServerNode_Stub.getBaseVersion(Unknown Source)
	at org.apache.jackrabbit.rmi.client.ClientNode.getBaseVersion(ClientNode.java:581)
	at JackTest.main(JackTest.java:62)

> jcr:baseVersion is not updated when the base version is removed from the version history
> ----------------------------------------------------------------------------------------
>
>                 Key: JCR-232
>                 URL: https://issues.apache.org/jira/browse/JCR-232
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: versioning
>            Reporter: Edgar Poce
>            Assignee: Tobias Bocanegra
>             Fix For: 1.0
>
>
>         Session s1 = repo.login(new SimpleCredentials("user1", "pwd1".toCharArray()));
>         Node root1 = s1.getRootNode() ;
>         Node test1 = root1.addNode("test") ;
>         test1.addMixin("mix:versionable");
>         s1.save() ;
>         System.out.println(test1.getProperty("jcr:baseVersion").getValue().getString())
;
>         test1.checkin() ;
>         System.out.println(test1.getProperty("jcr:baseVersion").getValue().getString())
;
>         test1.getVersionHistory().removeVersion("1.0") ;
>         // the base version wasn't updated :(
>         System.out.println(test1.getProperty("jcr:baseVersion").getValue().getString())
;
>         // the next line throws ItemNotFoundException :(
>         test1.getBaseVersion() ;
> javax.jcr.ItemNotFoundException: c33bf049-c7e1-4b34-968a-63ff1b1113b0
> 	at org.apache.jackrabbit.core.ItemManager.createItemInstance(ItemManager.java:498)
> 	at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:349)
> 	at org.apache.jackrabbit.core.PropertyImpl.getNode(PropertyImpl.java:642)
> 	at org.apache.jackrabbit.core.NodeImpl.getBaseVersion(NodeImpl.java:2960)
> 	at org.apache.jackrabbit.core.RemoveVersionTest.main(RemoveVersionTest.java:56)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message