Hide Forgot
project_key: SOA See attached logs and test case. When I try to login to JCR repository with DiskConnector then the following sytacj trace is generated in the server 2011-10-25 12:43:13,311 INFO [STDOUT] (Thread-35) [TestNG] Running: InContainer 2011-10-25 12:43:13,318 INFO [STDOUT] (Thread-35) Retrieving server repository: test-disk 2011-10-25 12:43:13,328 DEBUG [org.modeshape.jcr.JcrRepositoryFactory] (Thread-35) Trying to load ModeShape JCR Repository with parameters: {org.modeshape.jcr.URL=jndi:jcr/local?repositoryName=test-disk} 2011-10-25 12:43:13,329 DEBUG [org.modeshape.jcr.JcrRepositoryFactory] (Thread-35) Trying to access repository: test-disk 2011-10-25 12:43:13,330 TRACE [org.modeshape.graph.connector.base.Connection] (Thread-35) MapRepositoryConnection.execute(...) took 00:00:00.000,049 2011-10-25 12:43:13,403 ERROR [STDERR] (Thread-35) java.lang.StackOverflowError 2011-10-25 12:43:13,404 ERROR [STDERR] (Thread-35) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) 2011-10-25 12:43:13,404 ERROR [STDERR] (Thread-35) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243) 2011-10-25 12:43:13,404 ERROR [STDERR] (Thread-35) at java.io.File.exists(File.java:750) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.connector.disk.DiskWorkspace.fileFor(DiskWorkspace.java:218) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.connector.disk.DiskWorkspace.getNode(DiskWorkspace.java:174) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.connector.disk.DiskWorkspace.getNode(DiskWorkspace.java:63) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:136) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:177) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:66) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.graph.connector.base.BaseTransaction.getRootNode(BaseTransaction.java:121) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.graph.connector.base.BaseTransaction.getNode(BaseTransaction.java:127) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:182) 2011-10-25 12:43:13,405 ERROR [STDERR] (Thread-35) at org.modeshape.graph.connector.base.MapTransaction.getNode(MapTransaction.java:66) . . . The code probably contains an infinite loop under certain conditions
Attachment: Added: loop.tgz
Link: Added: This issue Cloned to SOA-3523
Attachment: Added: diskrep.tgz
I've attached a new JAR file for the disk connector, with extra debug log statements and some extra exception handling. Please retest locally with this JAR (note it is named differently than the existing JAR in the kit), and turn on debug logging (at least in the 'org.modeshape.connector.disk' packages).
Attachment: Added: modeshape-connector-disk-SOA3522.jar
Attachment: Added: soa3522.log.gz
Attachment: Added: modeshape-config-van.xml
The issue was identified mode:repositoryRootPath="/home/jpechane/workspace/SOATests/tests/modeshape/build/testdiskrepository" works mode:repositoryRootPath="/home/jpechane/workspace/SOATests/tests/modeshape/build/test-disk-repository" does not work See the difference: dashes
So I finally find the issue. There was another process deleting the directory of Disk connector after server start-up. So it is not a real bug, just misleading error report.