aspose file tools*
The moose likes Distributed Java and the fly likes Unable to invoke RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Unable to invoke RMI" Watch "Unable to invoke RMI" New topic
Author

Unable to invoke RMI

Rohan Kalbhor
Ranch Hand

Joined: Aug 18, 2006
Posts: 78
Hello all,

I am trying to implement a distributed Java Web application with Apache installed on machine as a load balancer and 2 other machines having Tomcat to which requests are forwarded.

When ever I try to access any applets/Java applications from a client machine, I get the below error which is logged in either of the Slave tomcat . I am not sure if this trace is enough to analyse the issue, please let me know if any more info is reuired.







..............................<br />Exceptions are a part of possibility<br />Errors are a part of truth<br />................................
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Hey,

Have you checked out the line where the exception occurs: at com.infoengine.connector.DataAccessObject.execute(DataAccessObject.java:214) - DataAccessObject line 214?
It looks like the execution is getting into your code, are you sure it isn't the connection to the database as opposed to any RMI error?

Sean


I love this place!
Rohan Kalbhor
Ranch Hand

Joined: Aug 18, 2006
Posts: 78
Hello Sean,

That page which I am trying to access is not related to any database activity. I am able to do other database activities without any issues. From what searched on the net it seems that client is trying to pass wrong user/pass due to which this error could come up, but what surprises me is that this page is a part of the whole app and how should it pass any other wrong credentials?

Thanks,
Rohan
Dave Rocks
Greenhorn

Joined: Sep 23, 2011
Posts: 1
Was anyone ever able to identify the cause of this problem? I have the same error message, and I have the same use case (I pasted my error output below). I have been told it may be and LDAP authentication error - but nobody seems to be able to peg. I'd be very interested to know if you were able to resolve it.

Thanks!

wt.federation.FederationServicesException: java.lang.Exception: Connection refused: connect
Nested exception is: java.lang.Exception: Connection refused: connect
at com.infoengine.connector.DataAccessObject.execute(DataAccessObject.java:214)
at wt.federation.RPCHelper.doAction(RPCHelper.java:528)
at com.ptc.core.ca.co.client.doer.CoDoerHelper_Soap.executeTask(CoDoerHelper_Soap.java:51)
at com.ptc.core.ca.co.client.doer.CoDoerHelper.executeTask(CoDoerHelper.java:208)
at com.ptc.core.ca.co.client.doer.CoAbstractTaskDoer.executeTask(CoAbstractTaskDoer.java:211)
at com.ptc.core.ca.co.client.doer.CoAbstractTaskDoer.execute(CoAbstractTaskDoer.java:87)
at com.ptc.core.ca.co.client.doer.CoDefaultModelTaskDoer.execute(CoDefaultModelTaskDoer.java:129)
at com.ptc.core.ca.co.client.table.CoTable.updateModel(CoTable.java:312)
at com.ptc.core.ca.co.client.element.CoElement.default_init(CoElement.java:614)
at com.ptc.core.ca.co.client.element.CoElement.default_draw(CoElement.java:555)
at com.ptc.core.ca.co.client.element.CoElement.draw(CoElement.java:509)
at com.ptc.core.ca.web.client.layout.WebLayoutRowRenderHandler.render(WebLayoutRowRenderHandler.java:310)
at com.ptc.core.ca.web.client.element.WebRenderHandler.render(WebRenderHandler.java:117)
at com.ptc.core.ca.web.client.element.WebElementUtils.render(WebElementUtils.java:387)
at com.ptc.core.ca.web.client.layout.WebLayoutRow.render(WebLayoutRow.java:226)
at com.ptc.core.ca.co.client.element.CoElement.default_render(CoElement.java:709)
at com.ptc.core.ca.co.client.element.CoElement.default_draw(CoElement.java:558)
at com.ptc.core.ca.co.client.element.CoElement.draw(CoElement.java:509)
at com.ptc.core.ca.web.client.layout.WebSimpleLayoutRenderHandler.render_layout(WebSimpleLayoutRenderHandler.java:138)
at com.ptc.core.ca.web.client.layout.WebSimpleLayoutRenderHandler.render(WebSimpleLayoutRenderHandler.java:83)
at com.ptc.core.ca.web.client.element.WebRenderHandler.render(WebRenderHandler.java:117)
at com.ptc.core.ca.web.client.element.WebElementUtils.render(WebElementUtils.java:387)
at com.ptc.core.ca.web.client.layout.WebSimpleLayout.render(WebSimpleLayout.java:227)
at com.ptc.core.ca.co.client.element.CoElement.default_render(CoElement.java:709)
at com.ptc.core.ca.co.client.element.CoElement.default_draw(CoElement.java:558)
at com.ptc.core.ca.co.client.element.CoElement.draw(CoElement.java:509)
at com.ptc.core.ca.web.client.layout.WebLayoutRowRenderHandler.render(WebLayoutRowRenderHandler.java:310)
at com.ptc.core.ca.web.client.element.WebRenderHandler.render(WebRenderHandler.java:117)
at com.ptc.core.ca.web.client.element.WebElementUtils.render(WebElementUtils.java:387)
at com.ptc.core.ca.web.client.layout.WebLayoutRow.render(WebLayoutRow.java:226)
at com.ptc.core.ca.co.client.element.CoElement.default_render(CoElement.java:709)
at com.ptc.core.ca.co.client.element.CoElement.default_draw(CoElement.java:558)
at com.ptc.core.ca.co.client.element.CoElement.draw(CoElement.java:509)
at com.ptc.core.ca.web.client.layout.WebSimpleLayoutRenderHandler.render_layout(WebSimpleLayoutRenderHandler.java:138)
at com.ptc.core.ca.web.client.layout.WebSimpleLayoutRenderHandler.render(WebSimpleLayoutRenderHandler.java:83)
at com.ptc.core.ca.web.client.element.WebRenderHandler.render(WebRenderHandler.java:117)
at com.ptc.core.ca.web.client.element.WebElementUtils.render(WebElementUtils.java:387)
at com.ptc.core.ca.web.client.layout.WebSimpleLayout.render(WebSimpleLayout.java:227)
at com.ptc.core.ca.co.client.element.CoElement.default_render(CoElement.java:709)
at com.ptc.core.ca.co.client.element.CoElement.default_draw(CoElement.java:558)
at com.ptc.core.ca.co.client.element.CoElement.draw(CoElement.java:509)
at com.ptc.core.ca.web.client.frame.WebSimpleFrameRenderHandler.render(WebSimpleFrameRenderHandler.java:199)
at com.ptc.core.ca.web.client.element.WebRenderHandler.render(WebRenderHandler.java:117)
at com.ptc.core.ca.web.client.element.WebElementUtils.render(WebElementUtils.java:387)
at com.ptc.core.ca.web.client.frame.WebSimpleFrame.render(WebSimpleFrame.java:236)
at com.ptc.core.ca.co.client.element.CoElement.default_render(CoElement.java:709)
at com.ptc.core.ca.co.client.element.CoElement.default_draw(CoElement.java:558)
at com.ptc.core.ca.co.client.element.CoElement.draw(CoElement.java:509)
at com.ptc.core.ca.web.client.gw.WebGateway.handleRequest(WebGateway.java:459)
at org.apache.jsp.wtcore.jsp.com.ptc.core.ca.web.gw.gw_jsp._jspService(gw_jsp.java:141)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at wt.httpgw.filter.TrustedAuthFilter.doFilter(TrustedAuthFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at wt.servlet.CompressionFilter.doFilter(CompressionFilter.java:232)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:324)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:1417)
at wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to invoke RMI
 
Similar Threads
Internet Explorer Problem
Error while accessing hibernate session through JSF
javax.servlet.jsp.JspException in Application
how to analyse log file in tomcat
Request Entity Too Large