[jboss-user] [Beginners Corner] - Re: Connetion timeout in jboss

venuwin do-not-reply at jboss.com
Thu Mar 5 03:36:55 EST 2009


Hi Jaikiran,

We have a HTTPUnit module that sits inside an EAR along with some EJBs and all. The servlet would invoke a HTTPUnit class for fetching some information from few websites. This HTTPUnit class would fill some web forms in 2rd party websites and submit them. The servlet would get the response and send it back to the caller. 

Fails means : 

Connection timed out exception. This happens after 2-3 days mostly.


  | 2009-03-02 00:56:52,090 ERROR [net.tss.vendors.f1800.statemachine.F1800OrderUtility] placeBillingDetails() [Order ID: 10332, Customer ID: luke.mark at ymail.com] Ex : placeBillingDetails()
  | java.net.ConnectException: Connection timed out
  | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  | 	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  | 	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1227)
  | 	at java.security.AccessController.doPrivileged(Native Method)
  | 	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1221)
  | 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:910)
  | 	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
  | 	at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getResponseCode(HttpsURLConnectionOldImpl.java:288)
  | 	at com.meterware.httpunit.HttpWebResponse.readResponseHeader(HttpWebResponse.java:162)
  | 	at com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebResponse.java:200)
  | 	at com.meterware.httpunit.HttpWebResponse.<init>(HttpWebResponse.java:56)
  | 	at com.meterware.httpunit.HttpWebResponse.<init>(HttpWebResponse.java:67)
  | 	at com.meterware.httpunit.WebConversation.newResponse(WebConversation.java:76)
  | 	at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:164)
  | 	at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:128)
  | 	at com.meterware.httpunit.FrameHolder.updateFrames(FrameHolder.java:184)
  | 	at com.meterware.httpunit.WebWindow.updateFrameContents(WebWindow.java:252)
  | 	at com.meterware.httpunit.WebClient.updateFrameContents(WebClient.java:485)
  | 	at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:146)
  | 	at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:130)
  | 	at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121)
  | 	at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:144)
  | 	at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:130)
  | 	at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121)
  | 	at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:110)
  | 	at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:255)
  | 	at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:232)
  | 	at com.meterware.httpunit.WebForm.submitRequest(WebForm.java:96)
  | 	at com.meterware.httpunit.WebForm.doFormSubmit(WebForm.java:107)
  | 	at com.meterware.httpunit.WebForm.submit(WebForm.java:69)
  | 	at com.meterware.httpunit.WebForm.submit(WebForm.java:58)
  | 	at net.tss.vendors.f1800.statemachine.F1800OrderUtility.placeBillingDetails(F1800OrderUtility.java:952)
  | 	at net.tss.app.statemachine.OrderProcessor.doPlaceBillingDetails(OrderProcessor.java:252)
  | 	at net.tss.vendors.f1800.statemachine.F1800OrderProcessorContext$F1800OrderStateMachine_Default$F1800OrderStateMachine_PlaceBillingDetails.Entry(F1800OrderProcessorContext.java:482)
  | 	at net.tss.vendors.f1800.statemachine.F1800OrderProcessorContext$F1800OrderStateMachine_Default$F1800OrderStateMachine_PlaceShippingDetails.next(F1800OrderProcessorContext.java:424)
  | 	at net.tss.vendors.f1800.statemachine.F1800OrderProcessorContext.next(F1800OrderProcessorContext.java:25)
  | 	at net.tss.app.statemachine.OrderProcessor.next(OrderProcessor.java:89)
  | 	at net.tss.app.statemachine.OrderProcessor.fetchPrices(OrderProcessor.java:116)
  | 	at net.tss.app.ejb.mdb.beans.OrderUnitProcessor.onMessage(OrderUnitProcessor.java:125)
  | 	at sun.reflect.GeneratedMethodAccessor533.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | 	at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | 	at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
  | 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
  | 	at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
  | 	at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
  | 	at $Proxy114.onMessage(Unknown Source)
  | 	at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:183)
  | 	at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:905)
  | 	at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
  | 	at org.jboss.mq.SpySession.run(SpySession.java:323)
  | 	at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:249)
  | 	at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
  | 	at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
  | 	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215127#4215127

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215127



More information about the jboss-user mailing list