Reverse AJAX Breaks with Multiple Windows

View: New views
1 Messages — Rating Filter:   Alert me  

Reverse AJAX Breaks with Multiple Windows

by Gavin Andrews :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I am using

 

Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode)

2007-11-16 00:17:33.634::INFO:  jetty-6.1.6rc0

 

I have the beginnings of a nice reverse AJAX application using DWR.  The application sends updates to web pages, the updates being the arrival times of people in a running competition.

 

When I browse to my page it works perfectly.  If I open another browser and browse,,, it works perfectly… I get two updating windows.

 

However if I do a File->New Window in explorer in IE I get a new Window but the updates stop for the old window and the new one.

 

I tried this with the Clock Demo and get the same behaviour (not surprising that’s what I started with!)

 

14859 [btpool0-7] INFO  org.directwebremoting.impl.DefaultRemoter  - Exec: Clock.toggle()

20781 [btpool0-1] WARN  org.directwebremoting.servlet.ExceptionHandler  - Error: java.lang.NullPointerException

2007-11-16 00:17:55.995::WARN:  handle failed

java.lang.IllegalStateException: STATE!=START

            at org.mortbay.jetty.AbstractGenerator.setVersion(AbstractGenerator.java:319)

            at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:774)

            at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:523)

            at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

            at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)

            at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)

            at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

27750 [btpool0-1] INFO  org.directwebremoting.impl.DefaultRemoter  - Exec: Clock.toggle()

 

Any ideas?

 

Thanks in advance

Gavin