com.mongodb.MongoSocketReadException: Prematurely reached end of stream

Google Groups | green | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Check if your server is listening to the the same adress you're trying to connect to.
  2. 0

    Mongodb: `com.mongodb.MongoSocketReadException: Prematurely reached end of stream` with morphia

    Stack Overflow | 3 months ago | green
    com.mongodb.MongoSocketReadException: Prematurely reached end of stream
  3. 0

    Mongodb: `com.mongodb.MongoSocketReadException: Prematurely reached end of stream` with morphia

    Google Groups | 3 months ago | green
    com.mongodb.MongoSocketReadException: Prematurely reached end of stream
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    BigDecimal on save - error

    GitHub | 4 months ago | fa-at-pulsit
    com.mongodb.MongoSocketReadException: Prematurely reached end of stream
  6. 0

    MongoSocketReadException at testing insertMany

    GitHub | 2 years ago | miniway
    com.facebook.presto.mongodb.TestMongodbDistributedQueries

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mongodb.MongoSocketReadException

      Prematurely reached end of stream

      at com.mongodb.connection.SocketStream.read()
    2. MongoDB Java Driver
      DBCollection.insert
      1. com.mongodb.connection.SocketStream.read(SocketStream.java:88)
      2. com.mongodb.connection.InternalStreamConnection.receiveResponseBuffers(InternalStreamConnection.java:494)
      3. com.mongodb.connection.InternalStreamConnection.receiveMessage(InternalStreamConnection.java:224)
      4. com.mongodb.connection.UsageTrackingInternalConnection.receiveMessage(UsageTrackingInternalConnection.java:96)
      5. com.mongodb.connection.DefaultConnectionPool$PooledConnection.receiveMessage(DefaultConnectionPool.java:440)
      6. com.mongodb.connection.WriteCommandProtocol.receiveMessage(WriteCommandProtocol.java:262)
      7. com.mongodb.connection.WriteCommandProtocol.execute(WriteCommandProtocol.java:104)
      8. com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:67)
      9. com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:37)
      10. com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:168)
      11. com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:289)
      12. com.mongodb.connection.DefaultServerConnection.insertCommand(DefaultServerConnection.java:118)
      13. com.mongodb.operation.InsertOperation.executeCommandProtocol(InsertOperation.java:76)
      14. com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:139)
      15. com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:133)
      16. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:422)
      17. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:413)
      18. com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:133)
      19. com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:60)
      20. com.mongodb.Mongo.execute(Mongo.java:845)
      21. com.mongodb.Mongo$2.execute(Mongo.java:828)
      22. com.mongodb.DBCollection.executeWriteOperation(DBCollection.java:342)
      23. com.mongodb.DBCollection.insert(DBCollection.java:337)
      24. com.mongodb.DBCollection.insert(DBCollection.java:328)
      24 frames
    3. Morphia
      DatastoreImpl.save
      1. org.mongodb.morphia.DatastoreImpl.saveDocument(DatastoreImpl.java:1297)
      2. org.mongodb.morphia.DatastoreImpl.tryVersionedUpdate(DatastoreImpl.java:1340)
      3. org.mongodb.morphia.DatastoreImpl.save(DatastoreImpl.java:1286)
      4. org.mongodb.morphia.DatastoreImpl.save(DatastoreImpl.java:775)
      5. org.mongodb.morphia.DatastoreImpl.save(DatastoreImpl.java:758)
      5 frames