voyent
IceFaces & Clustering (with AHS)  XML
Forum Index -> Async HTTP Server
Author Message
edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


Hi there,
I configured our application in an JBoss 4.2.2 + Apache 2.2 + IceFace 1.7DR#3 and AHS. If both nodes are online, the application functions normally. If the nodes where the requests were forwarded goes down, the client gets an "Service temporarily down" page from Apache. If close the browser window and open a new one, then the application functions again (on the node left running), but in the server logs I see lots of exceptions thrown, and the pages get refreshed veeeeery slowly:
low
14:57:13,862 INFO [STDOUT] [InitApplicationServlet] Numar stari de flux: 32
14:57:13,862 INFO [STDOUT] [InitApplicationServlet] ------------------------------------- initializare OK
14:57:13,862 INFO [STDOUT] [InitApplicationServlet] Inceput initializare < ApplicationConfig bean >
14:57:13,893 INFO [STDOUT] [InitApplicationServlet] ----------------------------------------------- initializare OK
14:57:13,893 INFO [STDOUT] [InitApplicationServlet] Inceput initializare < Judete Romania >
14:57:13,893 INFO [STDOUT] [InitApplicationServlet] ------------------------------------- initializare OK
14:57:13,893 INFO [STDOUT] [InitApplicationServlet] Inceput initializare < CnpaConfig bean >
14:57:13,925 INFO [STDOUT] [InitApplicationServlet] ----------------------------------------------- initializare OK
14:57:14,034 INFO [QuartzScheduler] Quartz Scheduler v.1.6.0 created.
14:57:14,034 INFO [RAMJobStore] RAMJobStore initialized.
14:57:14,034 INFO [StdSchedulerFactory] Quartz scheduler 'QuartzScheduler' initialized from an externally provided prop
erties instance.
14:57:14,034 INFO [StdSchedulerFactory] Quartz scheduler version: 1.6.0
14:57:14,628 INFO [QuartzScheduler] Scheduler QuartzScheduler_$_NON_CLUSTERED started.
14:57:24,628 INFO [STDOUT] [InitApplicationServlet] MailScheduler pornit cu succes
14:57:24,628 INFO [STDOUT] [InitApplicationServlet] ---=== Status initializare: OK ===---
14:57:24,972 INFO [TomcatDeployer] deploy, ctxPath=/async-http-server, warUrl=.../tmp/deploy/tmp36308async-http-server-
exp.war/
14:57:25,284 INFO [D2DViewHandler]
ICEsoft Technologies, Inc.
ICEfaces 1.7.0 DR3a
Build number: 1
Revision: 15483

14:57:25,409 INFO [JMSAdapter] JMS Environment:
java.naming.provider.url = localhost:1100
java.naming.factory.initial = org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs = org.jboss.naming:org.jnp.interfaces

14:57:25,440 INFO [ThreadFactory] New thread: MessageReceiver Thread [1]
14:57:25,440 INFO [JMSSubscriberConnection$MessageReceiver] MessageReceiver [message_type = 'BufferedContextEvents' OR
message_type = 'ContextEvent'] started.
14:57:25,456 INFO [ThreadFactory] New thread: MessageReceiver Thread [2]
14:57:25,456 INFO [JMSSubscriberConnection$MessageReceiver] MessageReceiver [message_type = 'Announcement' OR message_t
ype = 'Purge' OR message_type = 'UpdatedViews' AND (destination_nodeAddress IS NULL OR destination_nodeAddress = '192.16
8.33.104')] started.
14:57:25,534 INFO [Http11AprProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
14:57:25,550 INFO [AjpAprProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
14:57:25,550 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started i
n 51s:720ms
14:58:06,942 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.io.EOFException)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.Connection.asynchFailure(Connection.java:423)
at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:466)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:395)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2685)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:889)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:340)
... 1 more
14:58:06,942 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.io.EOFException)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.Connection.asynchFailure(Connection.java:423)
at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:466)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:395)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2685)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:889)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:340)
... 1 more
14:58:06,957 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.io.EOFException)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.Connection.asynchFailure(Connection.java:423)
at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:466)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:395)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2685)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:889)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:340)
... 1 more
14:58:10,738 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: Cannot ping the JMS server; - nested throwable: (java.io.IOException: Client is not connec
ted)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57)
at org.jboss.mq.Connection.pingServer(Connection.java:848)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1317)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:288)
at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:262)
at org.jboss.mq.il.uil2.UILServerIL.ping(UILServerIL.java:345)
at org.jboss.mq.Connection.pingServer(Connection.java:844)
... 3 more
14:58:15,535 INFO [TreeCache] viewAccepted(): [192.168.33.59:1375|4] [192.168.33.104:2289]
14:58:15,723 INFO [TreeCache] viewAccepted(): [192.168.33.59:1370|4] [192.168.33.104:2284]
14:58:15,973 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 4, delta: -1) : [192.168.33.1
04:1099]
14:58:15,973 INFO [DefaultPartition] I am (192.168.33.104:1099) received membershipChanged event:
14:58:15,973 INFO [DefaultPartition] Dead members: 1 ([192.168.33.59:1099])
14:58:15,973 INFO [DefaultPartition] New Members : 0 ([])
14:58:15,973 INFO [DefaultPartition] All Members : 1 ([192.168.33.104:1099])
14:58:16,082 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy-hasingleton/jms/jbossmq-httpil.sa
r/jbossmq-httpil.war/
14:58:16,207 INFO [A] Bound to JNDI name: queue/A
14:58:16,207 INFO [B] Bound to JNDI name: queue/B
14:58:16,207 INFO [C] Bound to JNDI name: queue/C
14:58:16,207 INFO [D] Bound to JNDI name: queue/D
14:58:16,207 INFO [ex] Bound to JNDI name: queue/ex
14:58:16,223 INFO [testTopic] Bound to JNDI name: topic/testTopic
14:58:16,223 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
14:58:16,223 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
14:58:16,223 INFO [testQueue] Bound to JNDI name: queue/testQueue
14:58:16,223 INFO [contextEventTopic] Bound to JNDI name: topic/icefaces.contextEventTopic
14:58:16,223 INFO [responseTopic] Bound to JNDI name: topic/icefaces.responseTopic
14:58:16,239 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
14:58:16,239 INFO [DLQ] Bound to JNDI name: queue/DLQ
14:58:16,286 INFO [TreeCache] viewAccepted(): [192.168.33.59:1358|4] [192.168.33.104:2270]
14:58:25,426 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: Cannot ping the JMS server; - nested throwable: (java.io.IOException: Client is not connec
ted)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57)
at org.jboss.mq.Connection.pingServer(Connection.java:848)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1317)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:288)
at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:262)
at org.jboss.mq.il.uil2.UILServerIL.ping(UILServerIL.java:345)
at org.jboss.mq.Connection.pingServer(Connection.java:844)
... 3 more
14:58:25,458 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: Cannot ping the JMS server; - nested throwable: (java.io.IOException: Client is not connec
ted)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57)
at org.jboss.mq.Connection.pingServer(Connection.java:848)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1317)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:288)
at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:262)
at org.jboss.mq.il.uil2.UILServerIL.ping(UILServerIL.java:345)
at org.jboss.mq.Connection.pingServer(Connection.java:844)
... 3 more
14:58:57,365 INFO [JMSAdapter] JMS Environment:
java.naming.provider.url = localhost:1100
java.naming.factory.initial = org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs = org.jboss.naming:org.jnp.interfaces

14:58:57,380 INFO [ThreadFactory] New thread: MessageReceiver Thread [1]
14:58:57,380 INFO [JMSSubscriberConnection$MessageReceiver] MessageReceiver [message_type = 'UpdatedViewsQueueExceeded'
] started.
14:59:10,740 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1313)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: ping timeout.
... 3 more
14:59:25,428 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1313)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: ping timeout.
... 3 more
14:59:25,459 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1313)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: ping timeout.
... 3 more
14:59:39,631 ERROR [MessagePipeline]
com.icesoft.net.messaging.MessageServiceException: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested thro
wable: (java.net.SocketException: Operation timed out: connect:could be due to invalid address)
at com.icesoft.net.messaging.jms.JMSAdapter.publish(JMSAdapter.java:189)
at com.icesoft.net.messaging.MessagePipeline.publish(MessagePipeline.java:151)
at com.icesoft.net.messaging.PublishTask.run(PublishTask.java:46)
at java.util.TimerThread.mainLoop(Timer.java:527)
at java.util.TimerThread.run(Timer.java:477)
Caused by:
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Operation timed o
ut: connect:could be due to invalid address)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57)
at org.jboss.mq.Connection.authenticate(Connection.java:1071)
at org.jboss.mq.Connection.<init>(Connection.java:252)
at org.jboss.mq.Connection.<init>(Connection.java:323)
at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:116)
at org.jboss.mq.SpyConnectionFactory.internalCreateConnection(SpyConnectionFactory.java:137)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:118)
at com.icesoft.net.messaging.jms.AbstractJMSConnection.open(AbstractJMSConnection.java:119)
at com.icesoft.net.messaging.jms.JMSAdapter.publish(JMSAdapter.java:181)
... 4 more
Caused by:
java.net.SocketException: Operation timed out: connect:could be due to invalid address
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:541)
at java.net.Socket.connect(Socket.java:491)
at java.net.Socket.<init>(Socket.java:399)
at java.net.Socket.<init>(Socket.java:208)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java)
at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:497)
at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:390)
at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:277)
at org.jboss.mq.Connection.authenticate(Connection.java:1067)
... 11 more
15:00:10,742 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1313)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: ping timeout.
... 3 more
15:00:21,679 ERROR [MessagePipeline]
com.icesoft.net.messaging.MessageServiceException: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested thro
wable: (java.net.SocketException: Operation timed out: connect:could be due to invalid address)
at com.icesoft.net.messaging.jms.JMSAdapter.publish(JMSAdapter.java:189)
at com.icesoft.net.messaging.MessagePipeline.publish(MessagePipeline.java:151)
at com.icesoft.net.messaging.PublishTask.run(PublishTask.java:46)
at java.util.TimerThread.mainLoop(Timer.java:527)
at java.util.TimerThread.run(Timer.java:477)
Caused by:
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Operation timed o
ut: connect:could be due to invalid address)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57)
at org.jboss.mq.Connection.authenticate(Connection.java:1071)
at org.jboss.mq.Connection.<init>(Connection.java:252)
at org.jboss.mq.Connection.<init>(Connection.java:323)
at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:116)
at org.jboss.mq.SpyConnectionFactory.internalCreateConnection(SpyConnectionFactory.java:137)
at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:118)
at com.icesoft.net.messaging.jms.AbstractJMSConnection.open(AbstractJMSConnection.java:119)
at com.icesoft.net.messaging.jms.JMSAdapter.publish(JMSAdapter.java:181)
... 4 more
Caused by:
java.net.SocketException: Operation timed out: connect:could be due to invalid address
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:541)
at java.net.Socket.connect(Socket.java:491)
at java.net.Socket.<init>(Socket.java:399)
at java.net.Socket.<init>(Socket.java:208)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java)
at org.jboss.mq.il.uil2.UILServerIL.createConnection(UILServerIL.java:497)
at org.jboss.mq.il.uil2.UILServerIL.getSocketMgr(UILServerIL.java:390)
at org.jboss.mq.il.uil2.UILServerIL.authenticate(UILServerIL.java:277)
at org.jboss.mq.Connection.authenticate(Connection.java:1067)
... 11 more
15:00:25,429 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1313)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: ping timeout.
... 3 more
15:00:25,461 WARN [Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error
and reconnect
org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1313)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:801)
Caused by:
java.io.IOException: ping timeout.
... 3 more
 

Sorry for the long post, but I hope it helps.

Eduard
jack.van.ooststroom


Joined: 26/Oct/2004 00:00:00
Messages: 223
Offline


Hi Eduard,

Again sorry, I totally missed your post here. I'll have to take a look at this. I couldn't say off hand what the problem might be. I'll have to get back to you on this.

Regards,

Jack van Ooststroom
Senior Developer
ICEsoft Technologies, Inc.
[Email]
 
Forum Index -> Async HTTP Server
Go to:   
Powered by JForum 2.1.7ice © JForum Team