Re: [jr3] Exception Handling

2010-03-01 Thread Michael Dürig
== Use Error Codes == What about using something like a hash code (for example of the current stack trace) as error code? These would then automatically serve as hash tags for Google searches. That is, errors pasted into a discussion forum would be indexed by Google. Searching for 'Error

Re: [jr3] Delayed Repository Initialization

2010-03-01 Thread Guo Du
On Mon, Mar 1, 2010 at 5:41 AM, Thomas Müller thomas.muel...@day.com wrote: The question is: should Jackrabbit 3 *require* (like now) that the credentials for the storage are included in the repository configuration? I think for some storage backends it should not require that. Instead (only

Re: [jr3] Exception Handling

2010-03-01 Thread Dominique Pfister
I wouldn't call it error code, then: every time something changes either in the calling code or in the code throwing the exception, you'll get a different hash code. Dominique On Mon, Mar 1, 2010 at 10:32 AM, Michael Dürig michael.due...@day.com wrote: == Use Error Codes == What about using

Re: [jr3] Exception Handling

2010-03-01 Thread Guo Du
On Mon, Mar 1, 2010 at 9:32 AM, Michael Dürig michael.due...@day.com wrote: What about using something like a hash code (for example of the current stack trace) as error code? These would then automatically serve as hash A good sample to deal with error messages:

Re: [jr3] Delayed Repository Initialization

2010-03-01 Thread Thomas Müller
Hi, I am not clear what credentials you are refering to I refer to the database user name and password that are currently stored in the repository.xml (except when using JNDI): http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/persistence/bundle/BundleDbPersistenceManager.html #

Re: [jr3] Exception Handling

2010-03-01 Thread Michael Dürig
Dominique Pfister wrote: I wouldn't call it error code, then: every time something changes either in the calling code or in the code throwing the exception, you'll get a different hash code. Agreed, the stack trace might be too unstable. But I still like the idea of using something cryptic

Re: [jr3] Exception Handling

2010-03-01 Thread Alexander Klimetschek
On Sun, Feb 28, 2010 at 16:41, Thomas Müller thomas.muel...@day.com wrote: == Use Error Codes == Currently exception message are hardcoded (in English). When using error codes, exception messages could be translated. I'm not saying we should translate them ourselves, but if somebody wants to,

Re: [jr3] Delayed Repository Initialization

2010-03-01 Thread Felix Meschberger
Hi, -1 on defining this on this isolated level. This should be part of a broader concept of how to architect/structure JR3 and its backend connections. Regards Felix On 28.02.2010 16:40, Thomas Müller wrote: Currently Jackrabbit initializes the repository storage (persistence manager) when

Re: [jr3] Delayed Repository Initialization

2010-03-01 Thread Alexander Klimetschek
On Mon, Mar 1, 2010 at 11:50, Thomas Müller thomas.muel...@day.com wrote: String factoryClass = ...; String url = ...?user=sapassword=xyz; RepositoryFactory factory = (RepositoryFactory) Class.forName(factoryClass).newInstance(); MapString, String parameters = new HashMapString, String();

Re: [jr3] Delayed Repository Initialization

2010-03-01 Thread Thomas Müller
Hi, Currently Jackrabbit doesn't support relayed initialization. Unless I misunderstood Felix, he would also like to get rid of this restriction. Just to clarify: my suggestion is *not* about requiring the repository is initialized when the first session is opened. It's also *not* about

[jira] Commented: (JCR-2524) Reduce memory usage of DocIds

2010-03-01 Thread Marcel Reutegger (JIRA)
[ https://issues.apache.org/jira/browse/JCR-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839717#action_12839717 ] Marcel Reutegger commented on JCR-2524: --- Some memory stats from a real life system: a

Re: [jr3] Delayed Repository Initialization

2010-03-01 Thread Alexander Klimetschek
On Mon, Mar 1, 2010 at 14:42, Thomas Müller thomas.muel...@day.com wrote: Couldn't this be done by a special wrapping Repository implementation? That's problematic. Such a wrapper would have quite some overhead. The JCR API is not easily wrapable if you want to do it correctly: you would have

[jira] Commented: (JCR-1248) Helper Method to escape illegal XPath Search Term

2010-03-01 Thread Paco Avila (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839819#action_12839819 ] Paco Avila commented on JCR-1248: - A query like this will fail: //element(*,

[jira] Issue Comment Edited: (JCR-1248) Helper Method to escape illegal XPath Search Term

2010-03-01 Thread Paco Avila (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839819#action_12839819 ] Paco Avila edited comment on JCR-1248 at 3/1/10 7:38 PM: - A query

[jira] Updated: (JCR-2524) Reduce memory usage of DocIds

2010-03-01 Thread Marcel Reutegger (JIRA)
[ https://issues.apache.org/jira/browse/JCR-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger updated JCR-2524: -- Status: Patch Available (was: Open) Reduce memory usage of DocIds

[jira] Updated: (JCR-2524) Reduce memory usage of DocIds

2010-03-01 Thread Marcel Reutegger (JIRA)
[ https://issues.apache.org/jira/browse/JCR-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger updated JCR-2524: -- Attachment: JCR-2524.patch Proposed patch. Reduce memory usage of DocIds

[jira] Commented: (JCR-2524) Reduce memory usage of DocIds

2010-03-01 Thread Marcel Reutegger (JIRA)
[ https://issues.apache.org/jira/browse/JCR-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839855#action_12839855 ] Marcel Reutegger commented on JCR-2524: --- Forgot to mention that the proposed patch

[jira] Commented: (JCR-1697) Simple Google style query

2010-03-01 Thread Paco Avila (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839860#action_12839860 ] Paco Avila commented on JCR-1697: - The GQL.execute() returns a RowIterator and would be nice

[jira] Commented: (JCR-1697) Simple Google style query

2010-03-01 Thread Paco Avila (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839864#action_12839864 ] Paco Avila commented on JCR-1697: - Another option is to handle these kind of queries

[jira] Commented: (JCR-1697) Simple Google style query

2010-03-01 Thread johann sorel (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839877#action_12839877 ] johann sorel commented on JCR-1697: --- GQL has no relation with JCR. it is just a candidate

[jira] Created: (JCR-2525) NodeState and NodeStateListener deadlock

2010-03-01 Thread Frederic Guilbeault (JIRA)
NodeState and NodeStateListener deadlock Key: JCR-2525 URL: https://issues.apache.org/jira/browse/JCR-2525 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-core

[jira] Commented: (JCR-2525) NodeState and NodeStateListener deadlock

2010-03-01 Thread Frederic Guilbeault (JIRA)
[ https://issues.apache.org/jira/browse/JCR-2525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12839913#action_12839913 ] Frederic Guilbeault commented on JCR-2525: -- Proposed solution would be to introduce