RE: PROPFIND 409 conflict ERROR with timeout/deadlock

2007-10-02 Thread Miguel Figueiredo
Hello again Shakti,

 Maybe you can't start a nested transaction like it happens in the no
branch of point 3 and 4 (the 1st transaction happens on point 2).

Hope this helps,
Miguel Figueiredo


-Original Message-
From: Shakti Shrivastava [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 28 de Setembro de 2007 16:23
To: Slide Users Mailing List
Subject: RE: PROPFIND 409 conflict ERROR with timeout/deadlock

Hi Miguel,

That fixed the issue. Thank you very much. But I still don't understand
why? Can Oliver chime in? I would really want to know.

This is what the code is doing (while trying to upload a resource like
http://host:port/slide/files/user-75/myfile.txt

1. Find collection files (this is http://host:port/slide/files)
2. If found add to a list (cache) and start a transaction (explicitly,
using startTransaction())
3. Check if collection user-57 exists using getChildren() if so add to
list (cache). No (explicit) transaction started here
4. Check if myfile.txt exists. No (explicit) transaction started here *
this is where the timeout is occurring 
5. If no then use putMethod()
6. Complete with commitTransaction()
7. in case of error do abortTransaction()

As you see there isn't an issue of nested transactions. Again, thanks
for your input.


-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 28, 2007 2:28 AM
To: 'Slide Users Mailing List'
Subject: RE: PROPFIND 409 conflict ERROR with timeout/deadlock

Hello Shakti,

 Although I'm not familiar with the details (Oliver would), you will be
happy to know that Slide already wraps write requests in internal
transactions. Checkout your Domain.xml, there is a piece of
configuration
that implicitly says just that:

!-- false lets all read-only methods be executed outside of
transactions
--
parameter name=all-methods-in-transactionsfalse/parameter

 From here http://www.checkupdown.com/status/E409.html I deduct that you
might be doing something illegal from the point of view of Slide WebApp.
What can it be?

 Hope this helps,
 Miguel Figueiredo

-Original Message-
From: Shakti Shrivastava [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 27 de Setembro de 2007 23:30
To: slide-user@jakarta.apache.org
Subject: PROPFIND 409 conflict ERROR with timeout/deadlock

I am getting 409 conflict error when trying to create a WebdavResource
object for a given URL. 

The code is trying to create a file along with any missing collections
(that may not exist). Everything works fine however the code seems to
deadlock when trying to create a WebdavResource object on the filename.
I am using startTransaction and commitTransaction to make sure the file
upload either completes successfully or fails completely. The code runs
fine, in that the file upload completes, but I want to understand the
reason of the timeout here and get rid of it. Can someone please shed
some light on this?

I have googled this and nowhere can I find 409 status code associated
with a PROPFIND. This leads me to believe that this timeout has
something to do with a lock. However, nowhere in my code am I explicitly
locking any resource (may be it's the startTransaction()?).

Thanks in advance.

Using:

Tomcat 5.5.x
Slide version 2.2 (from SVN)
JVM: 1.5.x

 

Here are the logs from the SLIDE server (2 lines prefixed with * are the
ones where the error is happening)

http-8081-Processor25, 25-Sep-2007 18:50:08, unauthenticated, GET, 404
Not Found, 547 ms, /files/user-docs/user-57
http-8081-Processor24, 25-Sep-2007 18:50:31, unauthenticated, PROPFIND,
404 Not Found, 781 ms, /files/user-docs/user-57
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, PROPFIND,
207 Multi-Status, 125 ms, /files
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, LOCK, 200
OK, 31 ms, /files
25 Sep 2007 18:50:32 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, PROPFIND,
207 Multi-Status, 63 ms, /files
25 Sep 2007 18:50:32 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:32, unauthenticated, MKCOL, 201
Created, 219 ms, /files/user-docs/user-57
25 Sep 2007 18:50:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:33, unauthenticated, PROPFIND,
207 Multi-Status, 281 ms, /files/3
25 Sep 2007 18:50:33 -
org.apache.slide.webdav.method.AbstractWebdavMethod - INFO - Using
external transaction opaquelocktoken:97995b34f21391315f7f53107fefe0d0
http-8081-Processor25, 25-Sep-2007 18:50:33, unauthenticated, PROPFIND,
207 Multi-Status, 0 ms, /files/user-docs/user-57
** 25 Sep 2007 18:52:33 - file-meta-store - INFO - DEADLOCK
VICTIM: Thread 

I am totally newbie. I am having trouble compiling Slide server with Ant

2007-10-02 Thread Newbie_han

First of all, I am not familiar with Java open-source and any build script
for Java. I was given this open-source project and need to compile it on my
computer. Before asking specific questions, let me explain what I tried so
far to compile this.

- Downloaded Slide server 2.1 from Jakarta official website as zip file.
- Downloaded Jakarta Ant and install in on my Window PC.
- Installed JDK 1.5 on my PC

According to the installation instructions on the
website(http://jakarta.apache.org/slide/installation.html), I executed ant
inside a root directory of slide server ( D:\Fall backup\Independent
study\jakarta-slide-server-src-2.1).

Then, I got the following error messages after failure of compilatoin.

If there is anyone who know how to compile Slide server, give me some help.

-- 
View this message in context: 
http://www.nabble.com/I-am-totally-newbie.-I-am-having-trouble-compiling-Slide-server-with-Ant-tf4559264.html#a13011160
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]