[Mulgara-general] Can't connect to remote Mulgara repository using ConnectionFactory
Paul Gearon
gearon at ieee.org
Thu Nov 20 16:40:52 UTC 2008
On Thu, Nov 20, 2008 at 10:27 AM, David Legg
<david.legg at searchevent.co.uk> wrote:
>> Can you open a GUI terminal on Windowss and execute the TQL query
>> there? That shell should see that you have a graph with RMI in the
>> name and connect to the appropriate server for you.
>>
>
> That's a clever idea. I tried it and the webgui pauses for a few
> moments (and I can see packets go back and forth between client and
> remote server) followed by a HTTP 400 error and the following stack
> trace listed in the web page.
Not actually the GUI terminal (it's a horrible Swing client), but I
think this will run the same code anyway....
> I think this gets us a little closer: -
>
> Error executing command: org.mulgara.query.QueryException: Query failed
<snip/>
> Caused by: java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(Unknown Source)
> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.SocksSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.<init>(Unknown Source)
> at java.net.Socket.<init>(Unknown Source)
> at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
> at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
> at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
> at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
> at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
> at sun.rmi.server.UnicastRef.invoke(Unknown Source)
> at org.mulgara.server.rmi.RemoteSessionFactoryImpl_Stub.getDefaultServerURI(Unknown Source)
> at org.mulgara.server.rmi.RmiSessionFactory.<init>(RmiSessionFactory.java:120)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at org.mulgara.util.Reflect.newInstance(Reflect.java:36)
> at org.mulgara.server.driver.SessionFactoryFinder.newSessionFactory(SessionFactoryFinder.java:173)
So RMI can't connect to it at all, huh? What about HTTP? On the
WIndows box, try to retrieve:
http://SearchMaster:8080/sparql/?query=select+%24subject+%24predicate+%24object+from+%3Crmi%3A%2F%2FSearchMaster%2Fserver1%23sampledata%3E+where+%7B%24subject+%24predicate+%24object%7D
While typing this, it occurred to me to ask about your DNS. Is
SearchMaster resolving to 192.168.1.10 for you? Try changing your
graph name to:
rmi://192.168.1.10/server1#sampledata
You can also try the URL with addresses instead of host names:
http://192.168.1.10:8080/sparql/?query=select+%24subject+%24predicate+%24object+from+%3Crmi%3A%2F%2F192.168.1.10%2Fserver1%23sampledata%3E+where+%7B%24subject+%24predicate+%24object%7D
I have to go out for a bit, so I won't be able to respond quickly.
I'll be back in a couple of hours.
Paul
More information about the Mulgara-general
mailing list