[daisy] [JIRA] Updated: (DSY-582) attempt to create a
never-expiring lock on document throws exception
Bruno Dumon (JIRA)
issues at cocoondev.org
Mon Nov 19 07:35:29 CST 2007
[ http://issues.cocoondev.org//browse/DSY-582?page=all ]
Bruno Dumon updated DSY-582:
----------------------------
Fix Version: 2.2
> attempt to create a never-expiring lock on document throws exception
> --------------------------------------------------------------------
>
> Key: DSY-582
> URL: http://issues.cocoondev.org//browse/DSY-582
> Project: Daisy
> Type: Bug
> Components: Repository
> Versions: 2.1
> Reporter: Martin Below
> Priority: Minor
> Fix For: 2.2
>
> I'm trying to create a never-expiring lock on document.
> According to the API-Doc, this is done by using a duration if -1.
> document.lock(-1, LockType.PESSIMISTIC)
> the following exception is thrown:
> Caused by: org.outerj.daisy.repository.clientimpl.infrastructure.DaisyPropagatedException: [org.outerj.daisy.repository.RepositoryException] Error getting a lock on document 147-DSY, branch main (ID 1), language default (ID 1)
> Caused by: org.outerj.daisy.repository.clientimpl.infrastructure.DaisyPropagatedException: [java.sql.SQLException] Column 'time_expires' cannot be null
> when I do a
> document.lock(Long.MAX_VALUE, LockType.PESSIMISTIC);
> I get
> Caused by: org.outerj.daisy.repository.RepositoryException: Received exception from repository server.
> at org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient.handleNotOkResponse(DaisyHttpClient.java:179)
> at org.outerj.daisy.repository.clientimpl.infrastructure.DaisyHttpClient.executeMethod(DaisyHttpClient.java:111)
> at org.outerj.daisy.repository.clientimpl.RemoteDocumentStrategy.lock(RemoteDocumentStrategy.java:448)
> at org.outerj.daisy.repository.commonimpl.DocumentVariantImpl.lock(DocumentVariantImpl.java:373)
> at org.outerj.daisy.repository.commonimpl.DocumentImpl.lock(DocumentImpl.java:246)
> at de.belowgmbh.insurion.dm.DaisyDocumentServiceImpl$DaisyDocumentAdapter.checkOut(DaisyDocumentServiceImpl.java:397)
> ... 21 more
> Caused by: org.outerj.daisy.repository.clientimpl.infrastructure.DaisyPropagatedException: [org.outerj.daisy.repository.RepositoryException] Error getting a lock on document 149-DSY, branch main (ID 1), language default (ID 1)
> Caused by: org.outerj.daisy.repository.clientimpl.infrastructure.DaisyPropagatedException: [java.sql.SQLException] Data truncated for column 'time_expires' at row 1
> I'm using the RemoteRepositoryManager running on Ubuntu Linux.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the daisy
mailing list