gadle.arpit | 9 Feb 08:15
Picon
Gravatar

[dwr-users] Recursive Call

Dear All,

We had a developed a page which gets the status of users on call by making
every 1 sec(. After around 2 hours it stopped working and was throwing an
error in javascript alert box every time a ajax call was fired.

Here is the code for your reference

function liveConsole()
{
    LiveConsoleForm.liveConsole(function(ajaxResponse)
    {

        document.getElementById("liveConsoleGrid").innerHTML=ajaxResponse;
        setTimeout("liveConsole()",1000); 
    });
}

Please let me know whats going wrong and suggest possible solutions

Thanks

Arpit

--
View this message in context: http://dwr.2114559.n2.nabble.com/Recursive-Call-tp7268439p7268439.html
Sent from the DWR - Users mailing list archive at Nabble.com.

Darrell Esau | 8 Feb 19:49

[dwr-users] supporting comet for certain URL's

Hi all,


Using DWR 3.0rc2

I've got reverse ajax all setup and working fine, using polling only.

I'm wondering if it's possible to enable DWR to use comet for only a specific set of URL(s).

I'm looking at the ServerLoadMonitor interface, which seems to be the way to go, however I don't see any way of detecting the client's URL from this interface.

Any ideas?

Thanks!
-d

David Marginian | 8 Feb 15:01

[dwr-users] 2.0.10 Release

I released 2.0.10 last evening.  It contains one bug fix related to Spring - http://bugs.directwebremoting.org/jira/browse/DWR-561.

Our site has been updated with the downloads and the release is also already in Maven central.
buzzer | 7 Feb 17:35
Picon
Gravatar

[dwr-users] CachingHandler host and port in caching key

org.directwebremoting.servlet.CachingHandler uses request's contextPath,
servletPath, pathInfo combination as a cache key. This leads to cross-domain
related problems.

Imagine we have an application, which is hosted on the server with 2
host-ports: host1:port1, host2:port2. Once we accessed /engine.js/ as
/http://host1:port1/context/dwr/engine.js/ it will contain "host1:port1"
URLs forever. E.g. this /one http://host2:port2/context/dwr/engine.js/ will
contain line dwr.engine._pathToDwrServlet =
"http://host1:port1/context/dwr"; what is not correct

--
View this message in context: http://dwr.2114559.n2.nabble.com/CachingHandler-host-and-port-in-caching-key-tp7262906p7262906.html
Sent from the DWR - Users mailing list archive at Nabble.com.

deb | 3 Feb 10:28
Picon
Gravatar

[dwr-users] DWR request sent twice

Hi,
Actually I had the problem when using jetty-7.6.0-RC3 or previous versions,
but when ever EOFException occurs dwr request is received twice at server.
The following is that exception:
*Nov 15, 2011 4:43:18 PM org.directwebremoting.dwrp.BaseCallHandler
marshallException
WARNING: Exception while processing batch*
org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
        at
org.eclipse.jetty.io.UncheckedPrintWriter.setError(UncheckedPrintWriter.java:107)
        at
org.eclipse.jetty.io.UncheckedPrintWriter.write(UncheckedPrintWriter.java:280)
        at
org.eclipse.jetty.io.UncheckedPrintWriter.write(UncheckedPrintWriter.java:295)
        at
org.eclipse.jetty.io.UncheckedPrintWriter.print(UncheckedPrintWriter.java:460)
        at
org.eclipse.jetty.io.UncheckedPrintWriter.println(UncheckedPrintWriter.java:642)
        at
org.directwebremoting.dwrp.PlainCallHandler.sendOutboundScriptPrefix(PlainCallHandler.java:49)
        at
org.directwebremoting.dwrp.BaseCallHandler.marshallOutbound(BaseCallHandler.java:317)
        at
org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:105)
        at
org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120)
        at
org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
        at org.eclipse.jetty.server.Server.handle(Server.java:346)
        at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
        at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)
        at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
        at
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.jetty.io.EofException
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:149)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:96)
        at java.io.ByteArrayOutputStream.writeTo(Unknown Source)
        at org.eclipse.jetty.server.HttpWriter.write(HttpWriter.java:283)
        at org.eclipse.jetty.server.HttpWriter.write(HttpWriter.java:107)
        at
org.eclipse.jetty.io.UncheckedPrintWriter.write(UncheckedPrintWriter.java:271)
        ... 32 more
Nov 15, 2011 4:43:18 PM org.directwebremoting.servlet.ExceptionHandler
handle
WARNING: Error: org.eclipse.jetty.io.RuntimeIOException:
org.eclipse.jetty.io.EofException

Now I am using dwr-3.0.0-RC3-dev-363 and jetty-7.6.0. i am getting the same
problem of dwr request being sent twice, but the difference is I do not get
any exception at server side.
This behavior happens only at sometimes, but can be reproducible.

Can some one help me, what can cause this kind of behavior?

Thanks in advance

--
View this message in context: http://dwr.2114559.n2.nabble.com/DWR-request-sent-twice-tp7250229p7250229.html
Sent from the DWR - Users mailing list archive at Nabble.com.

Picon
Gravatar

[dwr-users] Multiple dwr.xml files

First of all, I'm Spanish so I apologize for my English. 

I am using DWR with Struts J2EE application that runs on a server OC4J.
Leaving the default setting, DWR works perfectly, but when dwr.xml separate
file as shown in the tutorials, fails, and the log4j says: 

ERROR : Missing config file: WEB-INF/dwr.xml
[uk.ltd.getahead.dwr.util.CommonsLoggingOutput.error:75]. 

This is part of the web.xml of the application I try to deploy: 

    <servlet>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
        <init-param>
          <param-name>config-default</param-name>
          <param-value>WEB-INF/dwr.xml</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>dwr-sns-invoker</servlet-name>
        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
        <init-param>
          <param-name>config-default</param-name>
          <param-value>WEB-INF/dwr-sns.xml</param-value>
        </init-param>
    </servlet>    
    <servlet-mapping>
        <servlet-name>dwr-invoker</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>    
    <servlet-mapping>
        <servlet-name>dwr-sns-invoker</servlet-name>
        <url-pattern>/dwrsns/*</url-pattern>
    </servlet-mapping>

Could anyone help me? I do not know if I'm missing a configuration setting.

--
View this message in context: http://dwr.2114559.n2.nabble.com/Multiple-dwr-xml-files-tp7239893p7239893.html
Sent from the DWR - Users mailing list archive at Nabble.com.

Yabing Chen | 26 Jan 01:15
Favicon

[dwr-users] Yabing Chen is out of the office.


I will be out of the office starting  01/25/2012 and will not return until
01/31/2012.

I will respond to your message when I return.

Shravan Shetty | 22 Jan 23:14
Picon
Gravatar

[dwr-users] Creating/managing sessions for different users using DWR

Hello DWR users,

I am a newbie to both web development as well as DWR, so may be this question is very basic. I tried to do a lot of
reading (in vain) before posting this question. 
Version: 3.0 RC2. Eclipse IDE and tomcat server.

I am using DWR on cross-domain environment, all the remote calls are working fine. When the user logs in, I
want to save the session variables: userID and service version at user logon. What I currently see is a new
script session ID generated per DWR remote call. But the session variables set after user logs on are lost,
as new session is created per DWR request. 

What should I do to see those session variables set during the remote DWR login() request by all subsequent
requests till the user logs out? Thanks for any suggestions.

Regards,
Shaun
disller | 20 Jan 00:43
Picon
Gravatar

[dwr-users] Can I bind postHook to each requect

Cos I need to wrap some remote call into call back( I do not know what is the
remote call ), I need do different things when the getting the response(
onStateChanged ),such before the remote call, the system generate a task id
and remove it when finish the call , so I want to set the postHook, but,
this postHook is a global stuff, another remote call will still call this
postHook. 

--
View this message in context: http://dwr.2114559.n2.nabble.com/Can-I-bind-postHook-to-each-requect-tp7205871p7205871.html
Sent from the DWR - Users mailing list archive at Nabble.com.

Bala123 | 18 Jan 13:18
Picon

[dwr-users] dwr calls to another server

I want to use the dwr on a different machine which runs the application.for
example: I have server A with tomcat (jsp and js) and Server B - tomcat -
where the java files are stored

how can i achieve this ? 

--
View this message in context: http://dwr.2114559.n2.nabble.com/dwr-calls-to-another-server-tp7199966p7199966.html
Sent from the DWR - Users mailing list archive at Nabble.com.

Darrell Esau | 17 Jan 20:32

[dwr-users] mixing single shots with batching

Hi all,


Say I've got an application that's polling on a regular interval for data.  I have a number of "data clients" in the browser that all have different remote method calls.  Since these aren't user-spawned events, I want to batch them up to all send together, thus only using one connection.  

However, during this polling cycle, I've also got user-generated events which result in remote calls.  I don't want any delay on these calls .. so I don't want them batched.

Is there any way that I can mix batched calls and single shot calls?

So .. I'd start a batch, then end it every 5 seconds or so (then immediately start another one).  During these batches however, I'd want to send off calls at any time, outside the batch.

Thanks!

-d


Gmane