orientdb: Server got "java.net.SocketException: Broken pipe"

OrientDB Version, operating system, or hardware.

Operating System

  • Linux
  • MacOSX
  • Windows
  • Other Unix
  • Other, name?

Expected behavior and actual behavior

Expected : Server should run well for ever Actual: Server got this exception after 2 days running well

Steps to reproduce the problem

  1. just having 500MB memory
  2. run server.sh on Linux/Ubuntu

Error message:

java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
    at com.orientechnologies.orient.server.network.protocol.http.OChunkedResponse.writeContent(OChunkedResponse.java:58)
    at com.orientechnologies.orient.server.network.protocol.http.OChunkedResponse.write(OChunkedResponse.java:39)
    at java.io.OutputStream.write(OutputStream.java:116)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
    at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
    at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
    at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:135)
    at java.io.OutputStreamWriter.write(OutputStreamWriter.java:220)
    at java.io.Writer.write(Writer.java:157)
    at java.io.Writer.append(Writer.java:227)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.formatMultiValue(OHttpResponse.java:408)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.writeRecordsOnStream(OHttpResponse.java:355)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.access$000(OHttpResponse.java:43)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse$2.call(OHttpResponse.java:330)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse$2.call(OHttpResponse.java:325)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.sendStream(OHttpResponse.java:500)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.writeRecords(OHttpResponse.java:325)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.writeResult(OHttpResponse.java:222)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.writeResult(OHttpResponse.java:188)
    at com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.writeResult(OHttpResponse.java:179)
    at com.orientechnologies.orient.server.network.protocol.http.command.all.OServerCommandFunction.handleResult(OServerCommandFunction.java:47)
    at com.orientechnologies.orient.server.network.protocol.http.command.all.OServerCommandAbstractLogic.execute(OServerCommandAbstractLogic.java:81)
    at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:168)
    at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:616)
    at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)

2016-09-04 17:11:57:616 SEVER Internal server error:
java.lang.ArrayIndexOutOfBoundsException: 8192 [ONetworkProtocolHttpDb]

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 53 (19 by maintainers)

Most upvoted comments

Hey guys, I had the same issue.

Realized that I did not pass this into the JVM:

System.setProperty(“javax.net.ssl.keyStore”, "src/main/resources/certificates/YOUR_CERT) System.setProperty(“javax.net.ssl.keyStorePassword”, PW_TO_YOUR_CERT)