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

Exporting system view of node federated using FileSystemConnector throws IOException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.2.0.Final
    • 4.1.0.Final
    • Federation
    • None

    Description

      The following exception is thrown when attempting session.exportSystemView() that includes a federated node which uses the FileSystemConnector and ignoreBinary is false.

      javax.jcr.RepositoryException: java.io.IOException: Stream closed
      	at org.modeshape.jcr.JcrSystemViewExporter.emitValue(JcrSystemViewExporter.java:281)
      	at org.modeshape.jcr.JcrSystemViewExporter.emitProperty(JcrSystemViewExporter.java:239)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportProperty(JcrSystemViewExporter.java:185)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:146)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:156)
      	at org.modeshape.jcr.JcrSystemViewExporter.exportNode(JcrSystemViewExporter.java:86)
      	at org.modeshape.jcr.AbstractJcrExporter.exportView(AbstractJcrExporter.java:170)
      	at org.modeshape.jcr.AbstractJcrExporter.exportView(AbstractJcrExporter.java:200)
      	at org.modeshape.jcr.JcrSession.exportSystemView(JcrSession.java:1713)
      	at org.modeshaope.connector.filesystem.FilsystemConnectorTest.shouldExportSystemView(FilsystemConnectorTest.java:24)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
      	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      Caused by: java.io.IOException: Stream closed
      	at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
      	at java.io.BufferedInputStream.fill(BufferedInputStream.java:214)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
      	at org.modeshape.common.util.SelfClosingInputStream.read(SelfClosingInputStream.java:129)
      	at org.modeshape.common.util.Base64$InputStream.read(Base64.java:1673)
      	at org.modeshape.common.util.Base64$InputStream.read(Base64.java:1774)
      	at java.io.FilterInputStream.read(FilterInputStream.java:107)
      	at org.modeshape.jcr.JcrSystemViewExporter.emitValue(JcrSystemViewExporter.java:274)
      	... 51 more
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            adam.mccormick Adam McCormick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: