[JBoss Seam] - Seam Remoting - JavaScript memory useage problem?
by pgmjsd
I've notice that Firefox causes my machine to thrash when I leave a page that has Seam Remoting JavaScript running for a long period of time (say, 12 hours). I read ( http://www.jackslocum.com/blog/2006/10/02/3-easy-steps-to-avoid-javascrip... ) that it is a good idea to set XMLHttpRequest onreadystatechange handlers to null when you are done with them, but it looks like remote.js doesn't do this.
The sendAjaxRequest function sets onreadystate change here:
Seam.Remoting.sendAjaxRequest = function(envelope, path, callback, silent)
| {
| Seam.Remoting.log("Request packet:\n" + envelope);
|
| if (!silent)
| Seam.Remoting.displayLoadingMessage();
|
| var asyncReq;
|
| if (window.XMLHttpRequest)
| {
| asyncReq = new XMLHttpRequest();
| if (asyncReq.overrideMimeType)
| asyncReq.overrideMimeType('text/xml');
| }
| else
| asyncReq = new ActiveXObject("Microsoft.XMLHTTP");
|
| asyncReq.onreadystatechange = function() {Seam.Remoting.requestCallback(asyncReq, callback); }
| asyncReq.open("POST", Seam.Remoting.resourcePath + path, true);
| asyncReq.send(envelope);
| return asyncReq;
| }
but it is not set to null here:
| Seam.Remoting.requestCallback = function(req, callback)
| {
| if (req.readyState == 4)
| {
| Seam.Remoting.hideLoadingMessage();
|
| if (req.status == 200)
| {
| Seam.Remoting.log("Response packet:\n" + req.responseText);
|
| if (callback)
| callback(req.responseXML);
| }
| else
| alert("There was an error processing your request. Error code: " + req.status);
| }
| }
|
Do you think that maybe setting onreadystatechange to null would help with this memory problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040294#4040294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040294
19 years
org.jboss.remoting.InvokerLocator exception on runtime?
by Edwin
Hi all,
I am using Tapestry(4.1.1) based web client to access my Remote HelloWorld EJB. I deploy my jar and war file on JBoss 4.0.5 which goes fine and my Bean works from the main method of a simple client. But the same code does not work from my web client. I am new to EJB3 and JBoss so I might be missing something simple but I think my classpaths are fine since standalone client works.
The exception on runtime is:
org.jboss.remoting.InvokerLocator cannot be cast to org.jboss.remoting.InvokerLocator
The stack trace goes:
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:47)
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
$Proxy88.hello(Unknown Source)
com.abc.pro.client.general.ManualHello.login(ManualHello.java:33)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod(ListenerMethodInvokerImpl.java:203)
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:146)
org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke(ListenerMethodInvokerImpl.java:129)
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:70)
org.apache.tapestry.listener.SyntheticListener.actionTriggered(SyntheticListener.java:53)
org.apache.tapestry.listener.ListenerInvokerTerminator.invokeListener(ListenerInvokerTerminator.java:49)
$ListenerInvoker_1122498ce40.invokeListener($ListenerInvoker_1122498ce40.java)
$ListenerInvoker_1122498ce3f.invokeListener($ListenerInvoker_1122498ce3f.java)
org.apache.tapestry.form.Form.renderComponent(Form.java:209)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:710)
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:174)
org.apache.tapestry.form.Form.rewind(Form.java:278)
org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:460)
org.apache.tapestry.form.Form.trigger(Form.java:289)
org.apache.tapestry.engine.DirectService.triggerComponent(DirectService.java:170)
org.apache.tapestry.engine.DirectService.service(DirectService.java:146)
$IEngineService_1122498cebc.service($IEngineService_1122498cebc.java)
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:72)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:246)
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54)
$WebRequestServicer_1122498ce93.service($WebRequestServicer_1122498ce93.java)
$WebRequestServicer_1122498ce8f.service($WebRequestServicer_1122498ce8f.java)
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:61)
$ServletRequestServicer_1122498ce75.service($ServletRequestServicer_1122498ce75.java)
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
$ServletRequestServicerFilter_1122498ce71.service($ServletRequestServicerFilter_1122498ce71.java)
$ServletRequestServicer_1122498ce77.service($ServletRequestServicer_1122498ce77.java)
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
$ServletRequestServicerFilter_1122498ce6f.service($ServletRequestServicerFilter_1122498ce6f.java)
$ServletRequestServicer_1122498ce77.service($ServletRequestServicer_1122498ce77.java)
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
$ServletRequestServicerFilter_1122498ce73.service($ServletRequestServicerFilter_1122498ce73.java)
$ServletRequestServicer_1122498ce77.service($ServletRequestServicer_1122498ce77.java)
$ServletRequestServicer_1122498ce69.service($ServletRequestServicer_1122498ce69.java)
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123)
org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:168)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
java.lang.Thread.run(Unknown Source)
Can someone please comment on this. I have no clue to this. Any help will be much appreciated.
Best,
Ed
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
19 years
[JBoss jBPM] - jBMP for SOA
by viniciuscarvalho
Hello there! I've restarted the idea to use jBPM in a SOA project. I'm struggling against jBPM for a LOOONG time, far more time than anyone would care for a product, I guess. Today I need to decide if we either use IBM SOA products or shall we keep with JBoss products (believe me, I'm really trying to convince the CIOs about jboss but so far...)
Well, I wasn't able to get Seam 1.2.1 + jBPM 3.2 to run side by side. So I've downgraded to 3.1.4. Ok, my app is working, now i need to get the console working (the only reason my CIOs are giving me the chance to use jBMP is the console). I've deployed the jbpm.war application but it complains about the hibernate.cfg.xml. So I tried to deploy the jbpm.sar and I get an strange DOMException :(
I've searched the wiki and could not find an way to deploy the console on a separate jboss not the one at starters kit.
Also, I'm pretty concerned with the idea of having one session factory per application that needs to use the process and to have the code of my ActionHandlers replicated across every single application that uses it.
Maybe jBPM is not the right tool, and I'm asking too much of it.
Any hints, suggestions, ideas on how to get the jbpm console on a separate instance?
Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040285#4040285
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040285
19 years