Menu

Error receiving message for inbound AS2 request. There is no data

Help
kp5322
2019-06-05
2019-06-05
  • kp5322

    kp5322 - 2019-06-05

    Hi.

    I'm using OpenAS2 2.5 or 2.6 I'm not sure (not sure how to figure out the exact version).

    OpenAS2 is working well with a number of connections, but a new one I'm trying to setup now, I'm getting this (i've removed the IP in the log)

    2019-06-04 06:40:17.123 FINE AS2ReceiverHandler: incoming connection {Removed IP} 31006
    2019-06-04 06:40:17.123 ERROR AS2ReceiverHandler: HTTP connection error on inbound message. [null]
    2019-06-04 06:40:17.123 ERROR java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
    at org.openas2.util.HTTPUtil.readRequest(HTTPUtil.java:281)
    at org.openas2.util.HTTPUtil.readHTTP(HTTPUtil.java:160)
    at org.openas2.util.HTTPUtil.readData(HTTPUtil.java:237)
    at org.openas2.processor.receiver.AS2ReceiverHandler.handle(AS2ReceiverHandler.java:98)
    at org.openas2.processor.receiver.NetModule$ConnectionThread.run(NetModule.java:200)

    2019-06-04 06:40:17.124 ERROR OpenAS2Exception: Error occurred:: Connection reset
    Sources: {}
    org.openas2.processor.receiver.NetException: Address = /{Removed IP} port = 31006
    at org.openas2.processor.receiver.AS2ReceiverHandler.handle(AS2ReceiverHandler.java:103)
    at org.openas2.processor.receiver.NetModule$ConnectionThread.run(NetModule.java:200)
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
    at org.openas2.util.HTTPUtil.readRequest(HTTPUtil.java:281)
    at org.openas2.util.HTTPUtil.readHTTP(HTTPUtil.java:160)
    at org.openas2.util.HTTPUtil.readData(HTTPUtil.java:237)
    at org.openas2.processor.receiver.AS2ReceiverHandler.handle(AS2ReceiverHandler.java:98)
    ... 1 more
    2019-06-04 06:40:17.124 ERROR AS2ReceiverHandler: Error receiving message for inbound AS2 request. There is no data. [null]
    org.openas2.OpenAS2Exception: Missing data in AS2 request.
    at org.openas2.processor.receiver.AS2ReceiverHandler.handle(AS2ReceiverHandler.java:119)
    at org.openas2.processor.receiver.NetModule$ConnectionThread.run(NetModule.java:200)

    Any idea why it would not be seeing the data in the package sent?

    Kevin.

     
  • Christopher Broderick

    The version you are running should show in the console at startup otherwise look in <installdir>/lib for the openas2-server.X.X.jar ... the X.X is the version.
    You will have to turn on TRACE level logging to get more information.
    It looks like the remote end might be disconnecting before an HTTP connection is actually established but not clear on that without TRACE level logging.
    You should ask the trading partner what error they get on their side.
    Would also be useful to know which AS2 server the partner is using as it may help identify the correct config to use.</installdir>