Re: Novell Netdrive
I'll just chime in to say I've seen this product work with great success. The webdav server in this case wasn't Slide (it was mod_dav) but it worked well and the client were very happy with it. One thing to note is that it requires some extra setup on each of the PCs. This isn't an issue in many scenarios, though. -James Christian Knüchel wrote: Hi! While getting into all this WebDAV stuff I looked for a way to map a WebDAV server to a drive letter under Windows and I found an interesting piece software Novell NetDrive. NetDrive can be used to map FTP and WebDav servers to drive letters and it is free and it probably has not so many issues as the Windows Web Folders. You can find NetDrive at http://support.novell.com/servlet/filedownload/uns/pub/ndrv41862.exe/ Greets! ttest - 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]
Re: max revision limit?
Ok. I'll work on it. I'm quite busy at work but I'll make some time for this. Carlos James Mason wrote: Carlos, This seems valuable to me as well. Multivalue properties are a bit of a pain to work with right now. -James Warwick Burrows wrote: Hi Carlos, I definitely think its worth it. How were you thinking of indexing this second table? The way to uniquely identify any individual property in the property table seems to require 3 fields -- property namespace, property name and version id? That would indicate that any table you create would need all three of these as the primary key? Warwick -Original Message- From: Carlos Villegas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 8:40 PM To: Slide Users Mailing List Subject: Re: max revision limit? Warwick Burrows wrote: Yes, but how much bigger? :-) It seems to be a flaw in the design that there is a version property that constantly grows in length with each new version added. Is this the way the spec defined the value of this property, or is this just Slide's implementation? It seems to me it's a design flaw. There are several properties that are a list of values like history and group-member-set. I was thinking of adding a type identifier field to the properties table and storing the individual values in a different table, one per row. That's the usual relational db solution to this problem. BTW, there's a property_type field in the properties table and the Java object also has this field, but it doesn't seem to be used. Is it used at all? If is not can we use it for this purpose? I volunteer to try to fix at least one of the database stores using this technique if anybody thinks it's worth it. Carlos - 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] - 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]
Re: Oracle RDBMS Adapter
On Tuesday 07 September 2004 23:02, LOMBART Christophe wrote: I'm just wondering why the method storeContent has been changed in the OracleRDBMSAdapater. Why this method has been changed ? You can follow the thread here: http://www.mail-archive.com/slide-user%40jakarta.apache.org/msg07284.html Following the oracle doc, It is mandatory to use the class oracle.sql.BLOB for writing blobs. This was also my opinion: http://www.mail-archive.com/slide-user%40jakarta.apache.org/msg07287.html :) But then I've changed idea: http://www.mail-archive.com/slide-user%40jakarta.apache.org/msg07288.html http://www.mail-archive.com/slide-user%40jakarta.apache.org/msg07306.html If standard JDBC calls are made on Oracle for Blob management it is possible to have some SqlException. This adapter version seems to work with 10g and 9i. Did you encounter some exception with it? With the current version there's no need for a Weblogic adapter, no need to have the Oracle jdbc driver to compile the adapter and no need to use deprecated jdbc extensions... Regards, -- Davide Savazzi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Oracle RDBMS Adapter
This adapter version seems to work with 10g and 9i. Did you encounter some exception with it? With 9i, I have sometime some SqlException. For the same unit test, when I'm using the oracle.sql.BLOB, I never received thoses SqlException. I seems to be depending on the document length. I didn't test it with 10g. Anyway, this is not a big issue, I can use my own adapter for 9i. Thanks, Christophe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Oracle RDBMS Adapter
On Wednesday 08 September 2004 10:02, LOMBART Christophe wrote: With 9i, I have sometime some SqlException. For the same unit test, when I'm using the oracle.sql.BLOB, I never received thoses SqlException. I seems to be depending on the document length. I can't test the adapter with 9i... Are you using the Slide test suite? Can you post the exception? -- Davide Savazzi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in command line client lib?
Yes, the problem is the httpclient library that does not allow '@' signs in usernames. I have already submitted a patch to the Httpclient developers. Ingo My username is an email address and this fails with an invalid port number error when I attempt to authenticate and connect to the slide server using the command line client. I think this is related to the inability of apache-commons's httpclient lib not being able to handle the email address as a username for basic auth? Can someone kindly confirm that the command line client is in error and this is not my installation. If you enter an email address for the username and it gives you an error, then it is the httpclient lib. Thanks K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URLGetMethod.executeMethod is hanging under multi threaded en vironment
No, Slide's WebDAV client library does not use the MultiThreadedHttpConnectionManager, although changing this would be straightforward. Perhaps we should make this configurable or simply use that by default. This discussion already came up several times, but noone insisted on really changing that. Ingo Hi Ingo, Is this applicable for other Slide client applications too? Does the Slide WebDAV client make use of the MultiThreadedHttpConnectionManager or is there something that I need to do in my application to enable this? Thanks, Warwick -Original Message- From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 1:03 PM To: Slide Users Mailing List Subject: Re: URLGetMethod.executeMethod is hanging under multi threaded environment Thankyou Ingo, this solved my problem. if (manager == null) { manager = new MultiThreadedHttpConnectionManager(); manager.setMaxTotalConnections(30); manager.setMaxConnectionsPerHost(10); } client = new HttpClient(manager); --- Ingo Brunberg [EMAIL PROTECTED] wrote: This is how I am getting the Client Instance. org.apache.commons.httpclient.HttpURL url = (org.apache.commons. httpclient.HttpURL) getURL(path + / + user); org.prithvi.docparser.microsoft.msexchange.apache.OwaWebdavResource webDavResourceFile = getWebResource( url); //get the client session client = webDavResourceFile.retrieveSessionInstance(); Is this instance comes from SimpleConnectionManager ?? Simple answer, yes. Two notes: - Don't use UrlGetMethod. It's deprecated. Just use GetMethod. - As a first solution try to surround the following two lines of your code given below with a synchronized(client) {} block: int status = client.executeMethod(getMethod); byte attachmentBytes[] = getMethod.getResponseBody(); Regards, Ingo thanks for trying to helping me Sudhakar --- Ingo Brunberg [EMAIL PROTECTED] wrote: First, this is not quite the right list for asking this question. It would have better been asked on the commons-httpclient-dev list. But anyway, your code snippet does not show how you create the HttpClient instance that you use. Be aware that by default you get one that uses the so called SimpleConnectionManager. You cannot use that one to access the same connection concurrently from more than one thread. If you want HttpClient to manage the connections for you in a multithreaded environment, you should use the MutliThreadedConnectionManager. Ingo Hello Guys, Subject: URLGetMethod.executeMethod is hanging under multi threaded environment Please see the folloiwng code. I am trying to download the mails of MS Exchange Server using URLGetMethod.executeMethod. But when execution pointer comes to the thread area (URLGetMethod.executemethod), URLGetMethod.executemethod is not coming out of it's loop. Could you please explain what is the problem with this code?? class SaveAttachmentThread extends Thread implements Runnable { static int threadCount = 0; String uri = ; String strAttachmentName = ; private org.apache.commons.httpclient.HttpClient client = null; org.apache.commons.httpclient.methods.UrlGetMethod attachmentMethod = null; public SaveAttachmentThread(String uri, String strAttachmentName, org.apache.commons.httpclient.HttpClient client) { this.uri = uri; this.strAttachmentName = strAttachmentName; this.client = client; } public SaveAttachmentThread(org.apache.commons.httpclient.methods. UrlGetMethod _getMethod, String attachment) { attachmentMethod = _getMethod; this.strAttachmentName = attachment; } public void run() { //strAttachmentName = URLDecoder.decode(strAttachmentName); System.err.println(Saved to + strAttachmentName); System.err.println(URL : + uri); try { System.err.println(Saving the URL : + strAttachmentName); org.apache.commons.httpclient.methods.UrlGetMethod getMethod = new org. apache.commons.httpclient.methods.UrlGetMethod(uri); int status = client.executeMethod(getMethod); byte attachmentBytes[] = getMethod.getResponseBody(); FileOutputStream fout = new FileOutputStream(strAttachmentName); fout.write(attachmentBytes); fout.close(); fout = null; threadCount++; System.err.println(threadCount); } catch
RE: properties on os x and win xp
Hi, Stefan! Unfortunately, standard Windows MacOS WebDAV support are rather simple and don't allow to set properties. However, you can use other clients like Goliath or the one that's coming with Slide itself. Yours sincerely, Andrey. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Slide Users Mailing List Sent: Tuesday, September 07, 2004 5:58 PM To: [EMAIL PROTECTED] Subject: properties on os x and win xp Importance: Low hi slide-users is it possible to see the properties of a file in slide when i mount the slide-store on mac os x or win-xp? i tried this on os x and saw all the files and folders - but i wasn't able to find the properties... stefan - 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]
Re: URLGetMethod.executeMethod is hanging under multi threaded en vironment
Ingo Brunberg wrote: No, Slide's WebDAV client library does not use the MultiThreadedHttpConnectionManager, although changing this would be straightforward. Perhaps we should make this configurable or simply use that by default. There's is one issue, you must call method.releaseConnection() after you're done with your method. It's simple to go through all methods and add a finally clause to release the connection after use, except for one place: the getMethodData that returns an InputStream. You can't release the connection until the body has been read, and in this case you don't know when that happens. One solution is to wrap the InputStream in a proxy that holds a reference to the Method so it call releaseConnection() when InputStream.close() is invoked. With the current state of WebdavResource is difficult or rather tedious to make it optional. To do this cleanly, is better to first factorize all Method execution through a single utility function. Then it can be changed in only one place and easier to make it configurable. Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with lock
Hi, I'm a beginner Slide API side-server user. I use the version 2.0 I need help about the following problem I want lock an ObjectNode and I think to do in this way: .. Lock lock = _token.getLockHelper(); ... token.begin(); NodeLock nodelock = new NodeLock(/files/fileDiTest,/users/root,/actions/read,new Date(new Date().getTime()+1000),true); lock.lock(slideToken,nodelock); .. token.commit(); but lock.lock(slideToken,nodelock); throws this Exception: org.apache.slide.common.ServiceAccessException: Service TxFileStore at store/metadata working on work/metadata access error : The data null is not legal for a JDOM attribute: A null is not a legal XML value. at org.apache.slide.store.AbstractStore.putLock(AbstractStore.java:741) at org.apache.slide.store.ExtendedStore.putLock(ExtendedStore.java:571) at org.apache.slide.lock.LockImpl.lock(LockImpl.java:128) the configuration file is Domain.sample. Thanks Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with lock
Hi, Antonio! Try to create en explicit node lock (an instance of the org.apache.slide.lock.NodeLock class) and use the setOwnerInfo(java.lang.String ownerInfo) method to set the non-null value of its owner info parameter. Yours sincerely, Andrey. -Original Message- From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 12:10 PM To: [EMAIL PROTECTED] Subject: Problem with lock Hi, I'm a beginner Slide API side-server user. I use the version 2.0 I need help about the following problem I want lock an ObjectNode and I think to do in this way: .. Lock lock = _token.getLockHelper(); ... token.begin(); NodeLock nodelock = new NodeLock(/files/fileDiTest,/users/root,/actions/read,new Date(new Date().getTime()+1000),true); lock.lock(slideToken,nodelock); .. token.commit(); but lock.lock(slideToken,nodelock); throws this Exception: org.apache.slide.common.ServiceAccessException: Service TxFileStore at store/metadata working on work/metadata access error : The data null is not legal for a JDOM attribute: A null is not a legal XML value. at org.apache.slide.store.AbstractStore.putLock(AbstractStore.java:741) at org.apache.slide.store.ExtendedStore.putLock(ExtendedStore.java:571) at org.apache.slide.lock.LockImpl.lock(LockImpl.java:128) the configuration file is Domain.sample. Thanks Antonio - 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]
RE: DB2 server not responding after short time using Slide 2.1 be ta
Even though I'm not currently running a statement on the server. The creation of /files and /files_2 contain the statements that block each other I guess. I'm looking further into this today. Though after every sql statement it seems that all exit paths from the methods are covered and a close statement is being called - which should terminate the statement -- assuming that is what close is supposed to do. I can't explain why, when the update to /files has fully completed, the next read attempt on /files_2 hangs up. Especially since this is happening serially - not in parallel since it is happening in the same thread. I guess what I'm really after is confirmation of what the correct nodestore configuration is when I want to run multiple scopes/stores as is needed for the testsuite. And I did try running a separate db for each nodestore too, but I get exactly the same problem. Which indicates that the problem isn't localized to sharing a nodestore between stores. Hard to believe. Do you get it running with only a single store configured? Yes. The jdbc config works fine with a single store. Which begs the question: can I disable the portions of the testsuite that require the second and third stores to be configured? How much of the testsuite will I lose if I do this? Preferably I'd like to use as much of the testsuite as possible. the nodestore in the first. Unless I'm just not doing it right? I understand the configuration you are trying to do simply is not possible with the current Slide release :( I guess so. Any guesses as to what a valid configuration of the nodestore would be? Should I be able to share a single nodestore or do I have to define an exclusive one for each store definition. Warwick -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 11:01 PM To: Slide Users Mailing List Subject: Re: DB2 server not responding after short time using Slide 2.1 be ta Warwick Burrows wrote: I just took the example Domain.xml and added the two additional store entries needed to run the testsuite. So there's no reason that it is that complicated except that I'm not sure what I can validly take out of it since it is the example that comes with Slide :-) I don't have security enabled but I do need locks and version control. I also need clustering support. I've commented out the property extractors already as I won't need those just yet but I'm not removing the commented out stuff so I can compare with the HEAD whenever fixes come in. I'm using the WebDAV client to access the server. So if you have suggestions for simplification (particularly how to get rid of the user and role definitions and authzn action declarations if I don't need them) I would appreciate it. but it seems all stores go to the same logical DB2 database, right? Yes, that was my intention :-) If so the problem seems pretty clear to me. All three stores with different connections try to acquire locks on the same tables, mutually blocking each other. This would be no deadlock, but rather a livelock or maybe a distributed deadlock. No chance for DB2 to detect it. In this case I don't think that I have even made it to the point where one of the other stores is operational yet. Ie. it hangs just when it is about to start the /files_2 store. I think it has just processed the /files subjectnode: objectnode classname=org.apache.slide.structure.SubjectNode uri=/files ... /objectnode objectnode classname=org.apache.slide.structure.SubjectNode uri=/files_2 ... /objectnode And sometime between when the /files subjectnode is loaded and we are about to read the /files_2 subjectnode from the db to check for its existence the db goes haywire and running select statements from the db2 prompt to the URI table will hang until I shutdown the server. Even though I'm not currently running a statement on the server. The creation of /files and /files_2 contain the statements that block each other I guess. As I said I do not know what you are after, but could you consider to either simplify the Domain.xml or give each store a logical database of its own? I guess what I'm really after is confirmation of what the correct nodestore configuration is when I want to run multiple scopes/stores as is needed for the testsuite. And I did try running a separate db for each nodestore too, but I get exactly the same problem. Which indicates that the problem isn't localized to sharing a nodestore between stores. Hard to believe. Do you get it running with only a single store configured? Can I define one nodestore for all store definitions? The reference keyword only seems to work within a store definition so I can't set the nodestores of the other store entries to reference the nodestore in the first. Unless I'm just not doing it right? I understand the
RE: Oracle RDBMS Adapter
Davide, From your question it would suggest that you've run the testsuite against an oracle store? How did you configure the multiple stores in your domain.xml ie. /files_2 and /files_secondCollection to use the oracle nodestore? Thanks, Warwick -Original Message- From: Davide Savazzi [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:57 AM To: Slide Users Mailing List Subject: Re: Oracle RDBMS Adapter On Wednesday 08 September 2004 10:02, LOMBART Christophe wrote: With 9i, I have sometime some SqlException. For the same unit test, when I'm using the oracle.sql.BLOB, I never received thoses SqlException. I seems to be depending on the document length. I can't test the adapter with 9i... Are you using the Slide test suite? Can you post the exception? -- Davide Savazzi - 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]
Problem using applet
Hi, I wrote an applet to perform the upload to my webdav server using the slide client jars and when I run it from Eclipse, it works fine, but when I put it into Tomcat container I get the following error: java.lang.ClassFormatError: com/powerlogic/ecompany/applet/AppletClienteWebDav (Bad magic number) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148) at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501) at sun.applet.AppletPanel.createApplet(AppletPanel.java:567) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1778) at sun.applet.AppletPanel.runLoader(AppletPanel.java:496) at sun.applet.AppletPanel.run(AppletPanel.java:293) at java.lang.Thread.run(Thread.java:536) Any clues? Here's the servlet code package com.powerlogic.ecompany.applet; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class EcpClienteSlide extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(html); out.println(head); out.println(titleCliente Slide/title); out.println(/head); out.println(body bgcolor=\white\); out.println(applet code=\com.powerlogic.ecompany.applet.AppletClienteWebDav.class\); out.println(archive=\commons-httpclient.jar,jakarta-slide-webdavlib-2.1b1.jar\ width=400 height=200); out.println(/applet); out.println(/body); out.println(/html); } } Thanks. Claudio Carvalho.
RE: URLGetMethod.executeMethod is hanging under multi threaded en vironment
So under what circumstances would we see a problem if we don't use the MultiThreadedHttpConnectionManager in the WebDAV client? Anytime we try to use a multithreaded client configuration?? Warwick -Original Message- From: Ingo Brunberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 7:18 AM To: [EMAIL PROTECTED] Subject: Re: URLGetMethod.executeMethod is hanging under multi threaded en vironment No, Slide's WebDAV client library does not use the MultiThreadedHttpConnectionManager, although changing this would be straightforward. Perhaps we should make this configurable or simply use that by default. This discussion already came up several times, but noone insisted on really changing that. Ingo Hi Ingo, Is this applicable for other Slide client applications too? Does the Slide WebDAV client make use of the MultiThreadedHttpConnectionManager or is there something that I need to do in my application to enable this? Thanks, Warwick -Original Message- From: Koundinya (Sudhakar Chavali) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 1:03 PM To: Slide Users Mailing List Subject: Re: URLGetMethod.executeMethod is hanging under multi threaded environment Thankyou Ingo, this solved my problem. if (manager == null) { manager = new MultiThreadedHttpConnectionManager(); manager.setMaxTotalConnections(30); manager.setMaxConnectionsPerHost(10); } client = new HttpClient(manager); --- Ingo Brunberg [EMAIL PROTECTED] wrote: This is how I am getting the Client Instance. org.apache.commons.httpclient.HttpURL url = (org.apache.commons. httpclient.HttpURL) getURL(path + / + user); org.prithvi.docparser.microsoft.msexchange.apache.OwaWebdavResource webDavResourceFile = getWebResource( url); //get the client session client = webDavResourceFile.retrieveSessionInstance(); Is this instance comes from SimpleConnectionManager ?? Simple answer, yes. Two notes: - Don't use UrlGetMethod. It's deprecated. Just use GetMethod. - As a first solution try to surround the following two lines of your code given below with a synchronized(client) {} block: int status = client.executeMethod(getMethod); byte attachmentBytes[] = getMethod.getResponseBody(); Regards, Ingo thanks for trying to helping me Sudhakar --- Ingo Brunberg [EMAIL PROTECTED] wrote: First, this is not quite the right list for asking this question. It would have better been asked on the commons-httpclient-dev list. But anyway, your code snippet does not show how you create the HttpClient instance that you use. Be aware that by default you get one that uses the so called SimpleConnectionManager. You cannot use that one to access the same connection concurrently from more than one thread. If you want HttpClient to manage the connections for you in a multithreaded environment, you should use the MutliThreadedConnectionManager. Ingo Hello Guys, Subject: URLGetMethod.executeMethod is hanging under multi threaded environment Please see the folloiwng code. I am trying to download the mails of MS Exchange Server using URLGetMethod.executeMethod. But when execution pointer comes to the thread area (URLGetMethod.executemethod), URLGetMethod.executemethod is not coming out of it's loop. Could you please explain what is the problem with this code?? class SaveAttachmentThread extends Thread implements Runnable { static int threadCount = 0; String uri = ; String strAttachmentName = ; private org.apache.commons.httpclient.HttpClient client = null; org.apache.commons.httpclient.methods.UrlGetMethod attachmentMethod = null; public SaveAttachmentThread(String uri, String strAttachmentName, org.apache.commons.httpclient.HttpClient client) { this.uri = uri; this.strAttachmentName = strAttachmentName; this.client = client; } public SaveAttachmentThread(org.apache.commons.httpclient.methods. UrlGetMethod _getMethod, String attachment) { attachmentMethod = _getMethod; this.strAttachmentName = attachment; } public void run() { //strAttachmentName = URLDecoder.decode(strAttachmentName); System.err.println(Saved to + strAttachmentName); System.err.println(URL : + uri); try { System.err.println(Saving the URL : + strAttachmentName); org.apache.commons.httpclient.methods.UrlGetMethod getMethod = new org.
Re: DB2 server not responding after short time using Slide 2.1 be ta
Warwick Burrows wrote: Even though I'm not currently running a statement on the server. The creation of /files and /files_2 contain the statements that block each other I guess. I'm looking further into this today. Though after every sql statement it seems that all exit paths from the methods are covered and a close statement is being called - which should terminate the statement -- assuming that is what close is supposed to do. I can't explain why, when the update to /files has fully completed, the next read attempt on /files_2 hangs up. Especially since this is happening serially - not in parallel since it is happening in the same thread. If you think of freeing locks by terminate the answer is no. Locks are freed upon commit of the whole transaction. I guess what I'm really after is confirmation of what the correct nodestore configuration is when I want to run multiple scopes/stores as is needed for the testsuite. And I did try running a separate db for each nodestore too, but I get exactly the same problem. Which indicates that the problem isn't localized to sharing a nodestore between stores. Hard to believe. Do you get it running with only a single store configured? Yes. The jdbc config works fine with a single store. Which begs the question: can I disable the portions of the testsuite that require the second and third stores to be configured? How much of the testsuite will I lose if I do this? Preferably I'd like to use as much of the testsuite as possible. Only very few testcases. You can only actively exclude them from the test run... I would have to look up how this can be done, so I'd recommend to simply let it run. Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DB2 adapter parent/child binding support bug
Hi, I may have found a problem with the DB2 driver support of bindings across multiple stores -- in terms of synchronizing the binding DB table that is. In my quest to get a working testsuite cmdomain.xml configuration I tried to configure my root store / to use a jdbc nodestore and the other stores to use a previously known working configuration of the XML descriptor store. The hang in db2 went away to be replaced by an exception from DB2RDBMSAdapter.storeObject(). The reason for the exception is in the following code in storeObject() we use object.enumerateBindings() to get a list of the child bindings to insert into the binding table for the parent /. The child bindings are added to this binding list by StructureImp.create() at line 376 before the call is made on line 379 to store the parent object again to include these child changes. So in the storeObject() call that follows one of the bindings is to my XML file descriptor store mount point, /files_2. But since I'm using the XML descriptor store it seems the /files_2 uri isn't inserted into the uri table(??). The object seemed to be created by the XML store but there's no uri in the table. So the getID() call below comes back with 0 trying to get the uri_id for /files_2 and then the sql statement comes back with an exception saying that the child_uuri_id of 0 is not valid because there is no corresponding value in a parent table. Enumeration bindings = object.enumerateBindings(); while (bindings.hasMoreElements()) { ObjectNode.Binding binding = (ObjectNode.Binding) bindings.nextElement(); try { long childID = getID(connection,binding.getUuri()); statement = connection.prepareStatement( insert into BINDING (URI_ID, NAME, CHILD_UURI_ID) values (?,?,?)); statement.setLong(1, uriid); statement.setString(2, binding.getName()); statement.setLong(3, childID); statement.executeUpdate(); } finally { close(statement); } } So the questions are: 1. should this code be searching for a uri for /files_2 in the jdbc store wheren / is stored when /files_2 is in the XML descriptor store? 2. should the code handle child bindings differently if the parent and child are in different stores as they are in this case? Thanks, Warwick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can WebDAV servlet serve non-slide-managed filesystem?
Either/both sound fine. I'd like to resolve the issue with not seeing length and modificationDate when creating a file, but I've honestly had enough of tracing through slide. Maybe I'll get to it later on. If you have some good direction about what I am missing, I will certainly add it in. Regarding your questions: for files I see no modificationDate and a 0 byte file size, for folders just no modificationDate. This is in my Win XP DAV client. I thought that maybe I need to update these properties in the NodeRevisionDescriptor passed in to storeRevisionContent( ) but this did not seem to do the trick. Regarding contributing, I just added some basic docs to my implementation so they are ready to go. How do you want to do this? I assume they need a minor refactor to go in the org.apache.slide.store package namespace. Where do you want to put em? An existing package? org.apache.slide.store.file? Alon On Tue, 07 Sep 2004 23:10:20 +0200, Oliver Zeigermann [EMAIL PROTECTED] wrote: If you need any help, especially with issue 1, or are ready to contribute the store, let me know... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]