I have set logging on to get more insight into this error:
....
FINE: main: direct socket connection failed:
....
FINE: main: trying with factory:
sun.rmi.transport.proxy.RMIHttpToPortSocketFact
ory@1415de6
9-aug-2004 13:39:31 sun.rmi.transport.proxy.RMIMasterSocketFactory
createSocket
FINE: main: trying with factory:
sun.rmi.transport.proxy.RMIHttpToPortSocketFact
ory@1415de6
9-aug-2004 13:39:31 sun.rmi.transport.proxy.HttpSendSocket <init>
FINER: main: host = x.y.z.k, port = 1099, url = http://x.y.z.k:109
9/
....
FINE: main: failed to get input stream, exception:
java.io.IOException: Server returned HTTP response code: 504 for URL:
http://x.y.z.k:1099/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
So the direct connections fails because of the proxy, after that,
http-to-port connection fails as well. (504 = Gateway timeout). If I
understand it correclty, the implemenation uses a HttpURLConnection. If I
create my own HttpURLConnection with http://x.y.z.k:1099/, the
httpurlconnection connects and does not give an exception??:
System.setProperty("proxySet", "true");
System.setProperty("http.proxyHost", "some.proxy.com");
System.setProperty("http.proxyPort", "80");
//not sure if this is necessary
System.setProperty("firewallSet", "true");
System.setProperty("firewallHost", "some.proxy.com");
System.setProperty("firewallPort", "80");
URL url = new URL("http://x.y.z.k:" + rmiport);
System.out.println("Opening HttpURLConnection at " + rmiport);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.connect(); //does not throw an exception
Can anyone help me with this problem?
kind regards,
Christiaan
"Christiaan" <no...@nospam.com> schreef in bericht
news:41179e1a$1...@newsgroups.borland.com...
> do people use this forum anyway?
CORBA-RMI issues may be rather esoteric. So,
traffic in this newsgroup is generally pretty
low.
The only thing I can suggest is that you
do a Groups-Google search on keywords
corba "connection timed out" firewall
Here's one hit which may be relevant:
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
"Paul Furbacher [TeamB]" <pfurb...@mac.com> schreef in bericht
news:411ce94d$1...@newsgroups.borland.com...
> [...] I was under the impression that rmi is
> the way to go for distributed computing (we make use of a framework that
> only allows rmi for communication). Can you tell me what a more common used
> technology is?
>
> "Paul Furbacher [TeamB]" <pfurb...@mac.com> schreef in bericht
> news:411ce94d$1...@newsgroups.borland.com...
>
>>Christiaan wrote:
>>
>>>do people use this forum anyway?
>>
>>CORBA-RMI issues may be rather esoteric. So,
>>traffic in this newsgroup is generally pretty
>>low.
Ah, I can see how what I wrote could be taken as
saying "not too many people use RMI". Thanks
for catching me up on poor communication skills.
What I guess I tried to say was that the topic itself
is esoteric (compared to say Swing or java.lang issues),
and may not attract a lot of readers, especially among
those who are most skilled at it. That's what I meant.
Sorry that I cannot help you out with the particular
problem. Although I did some limited work with RMI
some four or more years ago, I cannot say that I know
much about it, let alone CORBA. I was hoping that the
one Google hit would do it. Apparently not.
Bye
"Christiaan" <no...@nospam.com> wrote in message
news:41179e1a$1...@newsgroups.borland.com...