On 02/09/2012 11:37 PM, maxwell wrote:
> (Sorry, that got sent before I was ready. Here's the complete msg.)
>
> On Mon, 06 Feb 2012 12:21:45 +0100, Hussein Shafie<[email protected]>
> wrote:
>> If this does not suffice to solve the problem, then please force the
>> "lockTimeout" XXE user preference to 0 (unlimited). By default, this
>> undocumented user preference is set to 86400 (seconds, which is 24
>> hours). May be this will have a positive influence on the behavior of
>> the svn server.
>>
>> This user preference may be specified by starting XXE from a terminal or
>> command window as follows:
>>
>> C:\> xxe -putpref lockTimeout 0
>
> This works, thanks! I'm not sure why it is necessary, though.
See below.
>
>> I suspect the svn server to cause the WebDAV locks created by XXE to
>> expire very, very, quickly.
>>
>> First make sure that your svn server is not configured to expire locks
>> after just a few seconds or a few minutes. Your svn server should allow
>> locks to last for at least 12 hours.
>
> I'm checking with our IT people, but I'm pretty sure this is not the case.
> In several cases, I've had to break the svn lock days after it was set.
> (I'm guessing this problem happens when someone's computer crashes, leaving
> the svn server thinking they still want the lock.) It's also worked fine
> with our XMLMind version 4.6 installations. I suppose the problem could
> arise if there was a large discrepancy between the clock on the svn server
> and the clock on the computer running XXE (like a day), but I don't think
> that's the case. (I just created a dummy file in svn, and the svn
> timestamp checks out ok.)
>
After a bit of thinking about it, my guess is that the svn server only
accepts unlimited lock timeouts (which was always the case with XXE
v4+). That is, it's simply a minor, may be documented, limitation of the
svn implementation of WebDAV.
---
PS: The .jnlp file allows you to pass options to XXE. See
application-desc/argument:
<application-desc main-class="com.xmlmind.xmleditapp.start.WebStart">
<argument>-putpref</argument>
<argument>lockTimeout</argument>
<argument>0</argument>
</application-desc>
There is no harm nor penalty in forcing this user preference each time
XXE is started.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support