Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1284

DiskConnector ends in endless loop during login

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • None
    • 2.5.1.GA
    • Storage
    • None

      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

              Unassigned Unassigned
              jpechane Jiri Pechanec
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: