Hi guys,
Any help would be appreciated here...extremely frustrating!
I'm trying to execute the simple demo test using Java/JDBC to Oracle.
I'm using the DbFit 1.1 download from the main site.
I am consistently getting the following error message: -
Exception in thread "main" 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 fit.FitServer.establishConnection(FitServer.java:156)
at fit.FitServer.establishConnection(FitServer.java:151)
at fit.FitServer.run(FitServer.java:50)
at fit.FitServer.main(FitServer.java:43)
My test page looks like this: -
!contents -R2 -g -p -f -h
!path lib/*.jar
!|dbfit.OracleTest|
!|Connect|BUPAJN8PN1J.INTERNAL.BUPA.CO.UK:1526|AOETL1UPG|AOETL1UPG|
MMTESTDB|
|Query|select 'test' as x from dual|
|x|
|test|
This test works fine when I use the .Net environment of: -
!contents -R2 -g -p -f -h
!define COMMAND_PATTERN {%m %p}
!define TEST_RUNNER {dotnet2\FitServer.exe}
!define PATH_SEPARATOR {;}
!path dotnet2\*.dll
!|dbfit.OracleTest|
!|Connect|
MMTESTDB.GB.BUPAGROUP.COM|AOETL1UPG|AOETL1UPG|
|Query|select 'test' as x from dual|
|x|
|test|
I tried removing parts of the page text/code and even when I have only
the following in the page I still get the same error: -
!contents -R2 -g -p -f -h
!path lib/*.jar
So I guess it's not a connection to the database that's failing.
There's something else going on, but a connection from what to what?
I've tried this with both a 1.5 and 1.6 JRE and get the same error.
Please help!