Bug 781037 (SOA-3522) - DiskConnector ends in endless loop during login
Summary: DiskConnector ends in endless loop during login
Keywords:
Status: CLOSED NOTABUG
Alias: SOA-3522
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.2.0.ER5
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-25 10:54 UTC by Jiri Pechanec
Modified: 2011-10-26 11:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
[jpechane@jpechane modeshape]$ java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.10) (fedora-55.1.9.10.fc14-x86_64) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) [jpechane@jpechane modeshape]$ uname -a Linux jpechane 2.6.35.14-97.fc14.x86_64 #1 SMP Sat Sep 17 00:15:37 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Last Closed: 2011-10-26 11:27:11 UTC
Type: Bug


Attachments (Terms of Use)
loop.tgz (726.23 KB, application/x-gzip)
2011-10-25 10:55 UTC, Jiri Pechanec
no flags Details
diskrep.tgz (274 bytes, application/x-gzip)
2011-10-25 14:24 UTC, Jiri Pechanec
no flags Details
modeshape-connector-disk-SOA3522.jar (32.94 KB, application/java-archive)
2011-10-25 14:51 UTC, Randall Hauch
no flags Details
soa3522.log.gz (354.51 KB, application/x-gzip)
2011-10-25 14:58 UTC, Jiri Pechanec
no flags Details
modeshape-config-van.xml (20.50 KB, text/xml)
2011-10-25 16:30 UTC, Van Halbert
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-1284 0 None None None Never
Red Hat Issue Tracker SOA-3522 0 None None None Never

Description Jiri Pechanec 2011-10-25 10:54:06 UTC
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

Comment 1 Jiri Pechanec 2011-10-25 10:55:01 UTC
Attachment: Added: loop.tgz


Comment 2 Van Halbert 2011-10-25 12:03:05 UTC
Link: Added: This issue Cloned to SOA-3523


Comment 4 Jiri Pechanec 2011-10-25 14:24:57 UTC
Attachment: Added: diskrep.tgz


Comment 5 Randall Hauch 2011-10-25 14:51:23 UTC
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).

Comment 6 Randall Hauch 2011-10-25 14:51:23 UTC
Attachment: Added: modeshape-connector-disk-SOA3522.jar


Comment 7 Jiri Pechanec 2011-10-25 14:58:42 UTC
Attachment: Added: soa3522.log.gz


Comment 9 Van Halbert 2011-10-25 16:30:10 UTC
Attachment: Added: modeshape-config-van.xml


Comment 10 Jiri Pechanec 2011-10-26 10:40:20 UTC
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

Comment 11 Jiri Pechanec 2011-10-26 11:27:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.