Spring TCP Socket client not receiving data from Mainframe

前端 未结 2 729
灰色年华
灰色年华 2021-01-29 01:08

I am trying to use this example to send and receive the data to and from a Mainframe machine that uses HEX data to communicate. So I have the following in my config

2条回答
  •  离开以前
    2021-01-29 02:04

    This is not a DEBUG log, only INFO; your log4j configuration must be wrong.

    inside deserialize

    This is simply the receiving thread waiting for data; it is stuck in your for loop waiting for the mainframe to close the connection - I suggest you add some debug inside the loop.

    EDIT

    Commons-logging is missing from your POM...

    
        commons-logging
        commons-logging
        1.2
    
    

    or switch to log4j2

    
        org.apache.logging.log4j
        log4j-core
        2.7
    
    

    and create a log4j2 config file.

    Spring Framework 5 now uses its own implementation of commons-logging that does not support log4j 1.x.

提交回复
热议问题