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

Getting CloseChannelException when calling jcrSession.getValueFactory().createBinary(is))

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.5.1.GA, 2.6.0.Final
    • 2.5.1.GA
    • Storage
    • None

      Calling jcrSession.getValueFactory().createBinary(is)) to upload a text file causes:

      java.nio.channels.ClosedChannelException
      at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88)
      at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:289)
      at org.modeshape.graph.property.basic.FileInputStreamBinary.getSize(FileInputStreamBinary.java:81)
      at org.modeshape.connector.store.jpa.util.Serializer.serializeProperty(Serializer.java:315)
      at org.modeshape.connector.store.jpa.util.Serializer.serializeProperties(Serializer.java:186)
      at org.modeshape.connector.store.jpa.model.simple.SimpleJpaRepository$JpaNode.serializeProperties(SimpleJpaRepository.java:650)
      at org.modeshape.connector.store.jpa.model.simple.SimpleJpaRepository$JpaNode.setProperty(SimpleJpaRepository.java:784)
      at org.modeshape.graph.connector.map.MapRequestProcessor.process(MapRequestProcessor.java:397)

      It appears the stream is being closed at: org.modeshape.connector.store.jpa.util.Serializer.serializeProperty(Serializer.java:315)

        1. kt32.png
          62 kB
          Jakub Liska

              van.halbert Van Halbert (Inactive)
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: