jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "g.reinhart" <greinhart....@googlemail.com>
Subject Re: How to publish a specific node version to a workspace ?
Date Mon, 23 Feb 2009 09:25:23 GMT



Marcel Reutegger wrote:
> 
> Hmm, not sure, what about calling
> http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Node.html#restore(javax.jcr.version.Version,
> java.lang.String, boolean) on the root node of myWorkspace?
> 

I tried this:

Node node = (Node) myWorkspace Session.getItem("/myObject");  
node.restore("1.1", true or false) ;

I get: 

javax.jcr.version.VersionException: Unable to select appropariate version
for {}change using
DateVersionSelector(date=java.util.GregorianCalendar[time=1235379038531,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/Paris",offset=3600000,dstSavings=3600000,useDaylight=true,transitions=184,lastRule=java.util.SimpleTimeZone[id=Europe/Paris,offset=3600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2009,MONTH=1,WEEK_OF_YEAR=9,WEEK_OF_MONTH=4,DAY_OF_MONTH=23,DAY_OF_YEAR=54,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=4,AM_PM=0,HOUR=9,HOUR_OF_DAY=9,MINUTE=50,SECOND=38,MILLISECOND=531,ZONE_OFFSET=3600000,DST_OFFSET=0],
returnLatest=false)
	at
org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:134)
	at
org.apache.jackrabbit.rmi.server.ServerNode.restoreByUUID(ServerNode.java:415)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)

-- 
View this message in context: http://www.nabble.com/How-to-publish-a-specific-node-version-to-a-workspace---tp22054787p22157964.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message