Well obviously it is hard to say without seeing the code (no I don't have
time to look at your code), but something you did say might be a clue.

You said, " my store returns true for folder /files, so I don't have any
idea why slide tries to get contents of this directory "

So do you understand that the "/files" node is a collection/folder?  And
that it would be natural to get the contents of a root directory like
/files?

Things to check.  What did you do differently in your store than are done in
the default Tx* stores?  Replace one store at a time with your own stores,
this sometimes helps to identify what you did wrong as one store depends on
another in a chain sometimes it is hard to determine the actual cause as the
previous store call might succeed but be wrong in its implementation causing
the next store call in the chain to fail.  Ensure your scope is the same
initially as the default Tx stores.  Get a default working first with all
the Tx* stores so you have a reference with a working repository.

After that if you haven't figured it out, post your Domain.xml and error log
extracts (not the whole thing please) along with the offending Store source
method and maybe somebody will be able to help.



Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)953-8949
Fax:(702)974-0341
 

-----Original Message-----
From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 8:56 AM
To: [email protected]
Subject: Slide tries to get contents of folder

I facing strange problem - I'm trying to create simple store (similar to
WebdavFileStore). I implemented just BasicWebdavStore interface. Everything
works fine while there is no directories created inside store, on clean
startup. But when I restarting tomcat, application crashes with this
exception:

14 Feb 2006 18:48:51 - WebDAV store - INFO - isFolder true
14 Feb 2006 18:48:51 - org.apache.slide.common.XMLUnmarshaller - INFO -
Object already exists at /files
14 Feb 2006 18:48:51 - WebDAV store - INFO - isFolder true
14 Feb 2006 18:48:51 - org.apache.slide.common.Namespace - WARNING -
Namespace base configuration might have been already done before
14 Feb 2006 18:48:51 - org.apache.slide.common.Namespace - WARNING -
org.apache.slide.common.ServiceAccessException: Service
[EMAIL PROTECTED] access error :
/home/user/workspace/test/store/files (Is a directory)
org.apache.slide.common.ServiceAccessException: Service
[EMAIL PROTECTED] access error :
/home/user/workspace/test/store/files (Is a directory)
        at
webdav.store.FileSystemStoreImpl.getResourceContent(FileSystemStoreImpl.java
:171)
        at
org.apache.slide.simple.store.WebdavStoreAdapter$TransactionId.retrieveRevis
ionContent(WebdavStoreAdapter.java:517)
        at
org.apache.slide.simple.store.WebdavStoreAdapter.retrieveRevisionContent(Web
davStoreAdapter.java:186)
        at
org.apache.slide.store.AbstractStore.retrieveRevisionContent(AbstractStore.j
ava:1454)
        at
org.apache.slide.store.ExtendedStore.retrieveRevisionContent(ExtendedStore.j
ava:502)
        at
org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:351)
        at
org.apache.slide.common.XMLUnmarshaller.loadObjectRevision(XMLUnmarshaller.j
ava:380)
        at
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:
231)
        at
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:
274)
        at
org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:90)
        at
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessT
okenImpl.java:239)
        at
org.apache.slide.common.Namespace.loadBaseData(Namespace.java:823)
        at org.apache.slide.common.Domain.initNamespace(Domain.java:883)
        at org.apache.slide.common.Domain.init(Domain.java:462)
        at org.apache.slide.common.Domain.init(Domain.java:375)
        at org.apache.slide.common.Domain.init(Domain.java:338)
        at
org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:251)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)

As you can see in 1 and 3-d line, my store returns true for folder /files,
so
I don't have any idea why slide tries to get contents of this directory..
Any
ideas?

I'm using latest Slide from SVN,

-- 
Eugene N Dzhurinsky

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



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

Reply via email to