Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Creation of Burlap proxy hangs (together with the whole Tomcat) [SPR-3445] #8128
I have created a small demo application for Spring remoting capabilities. It iterates over configured proxies and calls remote service over each of them (the same way as JPetStore sample application does, but unlike to JPetStore client is Web-based).
Client context (see attached Zip) contains proxies for Hessian, Burlap and HttpInvoker. The problem is that application context creation hangs on creation of Burlap proxy (namely, in afterPropertiesSet()). Not only context creation hangs, but Tomcat stops to respond, even for appication that are already running (e.g. Tomcat welcome page, http://localhost:8080). See hang.log in the attached Zip. As soon as Burlap proxy is commented out application successfully starts and works properly.
To make things even more interesting, above mentioned behavior manifests itself only on Tomcat startup, if application is deployed in already running Tomcat, it works perfectly (till next Tomcat restart), see already_running_tomcat.log in attached zip.
Juergen Hoeller commented
Where exactly does the initialization of the BurlapProxyFactoryBean hang - I suppose it's within the actual Burlap client initialization? In that case, I'm not sure that there is anything we can do about this in Spring itself, since it's Caucho's Burlap client library responsible there, with us just calling into it...
Oleksandr Alesinskyy commented
This I can not say it hangs somewhere in the following code
Is it inthe Spring code or Caucho code I can not say.