I got such error in my Glassfish web server version 188.8.131.52 Build 5. It appears that Size of the buffer to be provided for input streams created by a network listener that uses this transport need to be extended. It’s default value is 8MB and Here I’m increased it to 10MB to fix this issue.
Login to Glassfish administrator console –> Configurations –> server-config –> Network Config –> Transports –> tcp –> Buffer Size. The changes take effect immediately after saving – no need to reboot the domain.