I get 'No more data to read from socket' after a period of inactivity. Weblogic and Oracle DB

浪尽此生 提交于 2019-12-11 10:09:29

问题


I have a JSP web application deployed on a Weblogic server connected to an Oracle Database. There is no datasource set in the weblogic server instance and the application communicates with the database on it's own (with jdbc). However, every morning when I try to access the web page I get a 'No more data to read from socket' error. I reset the weblogic server and everything gets back to normal, but the thing is I can't keep restarting the server every morning. Is there anyway that this can be fixed automatically? I think it has something to do with the connections in the pool, probably being disabled by oracle but still considered active by the application...

Thanks


回答1:


I did manage to get this corrected.

What I did was creating a datasource in the Weblogic admin console and then configure my app to use this datasource. It was still giving the error initially but then I unchecked the "Keep Connection After Local Transaction" box from the datasource transaction options and this fixed the problem.



来源:https://stackoverflow.com/questions/29386621/i-get-no-more-data-to-read-from-socket-after-a-period-of-inactivity-weblogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!