SOAP 'Connection refused' in java

I am using the code attached to Log onto the SOAP Actuate reporting server using HttpURLConnection in Java. I get "java.net.ConnectException: Connection refused" while calling connection.getInputStream(); PLease note I do not get error while openConnection() but get it while getting the InputStream.
URL u = new URL("http://devserver:8000//soap/servlet/acweb");
               System.out.println("Opening connection...");
URLConnection uc = u.openConnection();
               System.out.println("Opening connection Done...");
HttpURLConnection connection = (HttpURLConnection) uc;
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("Connection", "Keep-Alive");
connection.setRequestProperty("Content-Type", "text/xml;charset-'utf-8'");
connection.setRequestProperty("SOAPAction", "");
Writer wout = new OutputStreamWriter(connection.getOutputStream());
System.out.println("connection.getOutputStream...");
wout.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n");
wout.write("<SOAP-ENV:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"");
wout.write("xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"");
wout.write("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">");
wout.write("<SOAP-ENV:Body>");
wout.write("<SOAP-ACTU:Login xmlns:SOAP-ACTU=\"http://schemas.actuate.com/actuate6\">");
wout.write("<User>testuser</User>");
wout.write("<Password>tsetpwd</Password>");
wout.write("<Domain>HQ</Domain>");
wout.write("<UserSettings>true</UserSettings>");
wout.write("</SOAP-ACTU:Login>");
wout.write(" </SOAP-ENV:Body>");
wout.write("</SOAP-ENV:Envelope>");
wout.flush();
wout.close();
System.out.println("Wout.close...");
InputStream in = connection.getInputStream();
System.out.println("connection.ger Input Stream...");
int c;
while ((c = in.read()) != -1) System.out.print(c);
in.close();
System.out.println("Input Stream closed...");
catch (IOException e)
System.out.println("IO EXception : "+e);
catch (Exception ee)
System.out.println("EXception : "+ee);

"Connection refused" generally means there is no server listening at the port you tried to connect to.

Similar Messages

  • SOAP: Connection refused: Issue

    Hi Guru's ,
    We are facing trouble in executing outbound scenarios using SOAP channel.
    All the messages are getting processed fine in SXMB_MONI but in comm channel monitoring we are getting below mention message
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Connection refused: connect: java.net.ConnectException: Connection refused: connect"
    "SOAP: call failed: java.net.ConnectException: Connection refused: connect"
    Inbound is working fine for this scenario its just for outbound its not working.
    This issue is for all the outbound interfaces using SOAP Communication Channel.
    This is issue is in our new production server having clusters (2 nodes).
    The same interface works fine in QA and Dev.
    Any idea's what could be the issue.
    Cheers !
    PI Rocker

    Hi Volker,
    We were using this option because we were facing issues in SOAP reciver system while reciving messages in QA and Dev .
    But just to give a try I removed the tick from "Do Not use SOAP Envelope".
    Now I am getting below message in Communication Channel.
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: invalid content type for SOAP: TEXT/HTML; HTTP 415 Unsupported Media Type: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 415 Unsupported Media Type
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 415 Unsupported Media Type "
    Any clues ?

  • Connection refused with java, but not javaw

    I have a ServerSocket based program...listening on a port. It is really a very simple program. And I can run it with javaw. Then I can use another problem, for example, telnet to connect to that port, just to prove I can connect to that port. Everything is fine.
    Now if I run the exactly the same ServerSocket program with java, then I got the connection refused error.
    It is weird.
    Do you know why? Do you know a good socket troubleshooting tool on Windows? I am afraid of the viruses, so I haven't downloaded any free tools yet.

    You're right.
    The Norton personal firewall does not handle localhost to localhost correctly. I do all the tests on the same machine. The netstat -an shows the port is listening in either case. But now I know the firewall blocks one of them silently. No rule prompt was triggered. Worse, no logging produced for that particular access.
    Thanks. You've been very helpful.

  • Connection refused from Java in Windows to remote postgresql Linux server

    I fail to connect from windows to a remote postgresql linux server. The SQLEexception received is same as the SQLException that happen to the localhost connection to postgresql where the condition of postgresql not started or not start with -i option to allow tcp/ip connection. The SQLException is SQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    Please help..
    Java class file with the following codes:
    String url = "jdbc:postgresql://servername:5432/databasename";
    Connection con = DriverManager.getConnection(url,"username","password");
    The /var/lib/pgsql/data/pg_hba.conf have the following configuration:
    # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
    local all all trust
    host all all 127.0.0.1 255.255.255.255 trust
    hostssl all all 219.94.117.8 255.255.255.255 trust
    hostssl all all 0.0.0.0. 0.0.0.0 trust
    host all all 219.94.117.8 255.255.255.255 trust
    host all all 0.0.0.0 0.0.0.0 trust
    The /var/lib/pgsql/data/postgresql.conf have the following configuration:
    # Connection Parameters
    tcpip_socket = true
    #ssl = false
    #max_connections = 32
    #superuser_reserved_connections = 2
    #port = 5432
    #hostname_lookup = false
    #show_source_port = false
    The postgresql start in the /etc/init.d directory with the command ./postgresql start
    postgres 16923 0.1 0.3 9556 1956 pts/0 S 01:58 0:00 /usr/bin/postmaster -p 5432 -i
    postgres 16925 0.0 0.3 10548 1948 pts/0 S 01:58 0:00 postgres: stats buffer process
    postgres 16926 0.0 0.3 9580 1968 pts/0 S 01:58 0:00 postgres: stats collector process
    root 16931 0.0 0.1 2664 716 pts/0 R 01:58 0:00 ps aux

    On my machine (OS X ) I had trouble with postgresql refusing to notice the -i option in the configuration file. Instead I manually had to specifiy postmaster -i ...
    Also check your firewall settings. I also could not get localhost to work, I had to use the actual IP address of the machine, ie not 127.0.0.1. Use telnet hostip 5432 to check if you can get a connection. For my situation once telnet would connect, then JDBC started working too. Then localhost started working too.

  • Calling a WebServices From Java Stored Proc fails with Connection refused

    I have followed the example in Note:220662.1 on Metalink step by step.
    I am using two windows machines (2000 SP4). I have Oracle 9.2.0.5 EE on one of them and OC4J 9.0.4 standalone on the other(running on JVM 1.4.2_05-b04). The 2 servers "see" each other over the network.
    I can execute the stub from the database machine:
    C:\WebServices\HelloWorld>java HelloWorldImplWSStub
    Hello World - The current time is Sat Aug 21 11:56:20 EDT 2004When running it from the database, I get:
    SQL> select ws_hello_world from dual;
    select ws_hello_world from dual
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: [SOAPException:
    faultCode=SOAP-ENV:IOException; msg=Connection refused;
    targetException=java.net.ConnectException: Connection refused]
    Elapsed: 00:00:21.02The trace file generated on the database server machine looks like:
    [SOAPException: faultCode=SOAP-ENV:IOException; msg=Connection refused; targetException=java.net.ConnectException: Connection refused]
      at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:765)
      at org.apache.soap.rpc.Call.invoke(Call.java:261)
      at HelloWorldImplWSStub.sayHelloWorld(HelloWorldImplWSStub.java:52)Here is the stub code generated using JDeveloper 9.0.5.1:
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import java.net.URL;
    import org.apache.soap.rpc.Call;
    import org.apache.soap.Constants;
    import java.util.Vector;
    import org.apache.soap.rpc.Response;
    import org.apache.soap.rpc.Parameter;
    import org.apache.soap.Fault;
    import org.apache.soap.SOAPException;
    import java.util.Properties;
    public class HelloWorldImplWSStub  {
      public HelloWorldImplWSStub() {
        m_httpConnection = new OracleSOAPHTTPConnection();
        m_smr = new SOAPMappingRegistry();
      public static String endpoint = "http://oc4jsrv:8888/MyWorkarea-OC4J-context-root/HelloWorldImplWS";
      public String getEndpoint() {
        return _endpoint;
      public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
      private static OracleSOAPHTTPConnection m_httpConnection = null;
      private static SOAPMappingRegistry m_smr = null;
      public static String sayHelloWorld() throws Exception {
        String returnVal = null;
        URL endpointURL = new URL(_endpoint);
        Call call = new Call();
        call.setSOAPTransport(m_httpConnection);
        call.setTargetObjectURI("HelloWorldImplWS");
        call.setMethodName("sayHelloWorld");
        call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
        Vector params = new Vector();
        call.setParams(params);
        call.setSOAPMappingRegistry(m_smr);
        Response response = call.invoke(endpointURL, "");
        if (!response.generatedFault()) {
          Parameter result = response.getReturnValue();
          returnVal = (String)result.getValue();
        else {
          Fault fault = response.getFault();
          throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
        return returnVal;
      public void setMaintainSession(boolean maintainSession) {
        m_httpConnection.setMaintainSession(maintainSession);
      public boolean getMaintainSession() {
        return m_httpConnection.getMaintainSession();
      public void setTransportProperties(Properties props) {
        m_httpConnection.setProperties(props);
      public Properties getTransportProperties() {
        return m_httpConnection.getProperties();
       public static void main(String[] argv) throws Exception   {    
        HelloWorldImplWSStub hstub = new HelloWorldImplWSStub();    
        System.out.println(hstub.sayHelloWorld());  
    }The PL/SQL function code:
    CREATE OR REPLACE FUNCTION ws_hello_world RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'HelloWorldImplWSStub.sayHelloWorld() return java.lang.String';Any help would be greatly appreciated.

    Hello,I have the same problem. Did you find any solution to it?
    Thanks. Diego (Argentina)

  • Error while deploying module with iasdeploy : Exception while createXmlDocument() : connection refused

    Hi to you all,
    I work with iAS 6.0 sp2 on Solaris.
    For 1 day, I get that exception when trying to deploy or remove my modules (servlets + JSP) with the iasdeploy tool :
    Exception while createXmlDocument()
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native method)
    at com.netscape.server.deployment.WebbAppReg.run(compiled code)
    at com.netscape.server.deployment.WebbAppReg.main(Unknown source)
    The war archive is put in the JAR directory, unpacked in the APPS/modules directory, but the servlets of the module have the null GUID in the registry ({000000 000000 000000}. And so, I have the GX error when trying to invoke them.
    What appends ? Is it a iAS process which is unable ?
    Please help !
    Paul-Emile

    I think you have not put the xml files in the war file.
    You need to put them under WEB-INF/ directory. Manually generate the guids using kguidgen script and try to deploy the war module. It should work fine. If it doesnot work please send me the file. So that I can further investigate and find out where exactly the problem is.Other wise you can use the deploytool.
    Please let me know if this works fine.
    Thanks for visiting our web forum.

  • Connection refused!! analytics------ sawserver

    Hi I have installed the BIEE and deployed the analytic app. But when I go to the URL: http://localhost:7005/analytics, i obtain the following error:
    *500 Internal Server Error*
    when I lock the logs files i found this:
    ####<Mar 16, 2010 9:35:36 AM EDT> <Error> <HTTP> <bls6-2-1> <wls1_c1_biee_presentation_m1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default
    (self-tuning)'> <<WLS Kernel>> <> <> <1268746536115> <BEA-101019> <[ServletContext@157247066[app:analytics module:analytics.war path:/analytics
    spec-version:null]] Servlet failed with IOException
    java.net.ConnectException:* Connection refused*
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:186)
         at com.siebel.analytics.web.sawconnect.ConnectionPoolSocketFactoryImpl.createSocket(ConnectionPoolSocketFactoryImpl.java:63)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.siebel.analytics.web.sawconnect.ConnectionPoolSocketFactoryImpl.createSocket(ConnectionPoolSocketFactoryImpl.java:70)
         at com.siebel.analytics.web.sawconnect.ConnectionPool.createNewConnection(ConnectionPool.java:314)
         at com.siebel.analytics.web.sawconnect.ConnectionPool.getConnection(ConnectionPool.java:133)
         at com.siebel.analytics.web.SAWBridge.processRequest(SAWBridge.java:299)
         at com.siebel.analytics.web.SAWBridge.doGet(SAWBridge.java:325)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Why the analytic no have connect whit saw server.
    the saw sever are up and running:
    ps -ef|grep sawserver
    oracle 14827 1 0 09:58 pts/0 00:00:00 /bin/sh /app/oracle/product/obiee/setup/sawserver.sh
    oracle 14842 14827 35 09:58 pts/0 00:00:01 /app/oracle/product/obiee/web/bin/sawserver
    and check the default port:
    netstat -a|grep 9710
    2     tcp 0 0 *:9710 *:* LISTEN
    But I still whit the same error:
    Thanks any help.

    Hi,
    I configured one more repository in my local PC and did all the steps to run multiple rpd's in same PC.
    the changes I did did are mentioned below.
    1. Created new DSN
    2. added star1 = xxxx.rpd; in nqsconfig.ini
    3.deployed analytics.ear using enterprise manager
    4.Copied the catalog files to the catalog folder
    5.created new instanceconfig.xml file
    6.added new port and DSN in the file
    7.added new port number in the web.xml file located in C:\OracleBI\oc4j_bi\j2ee\home\applications\AnalyticsBarc\analytics\WEB-INF
    8.started new presentation server with below mentioned command and it is succseful
    "OracleBI\web\bin>sawserver.exe -c c:\OracleBIData\web\config\instanceconfig_Testing.xml"
    9.created new presentation server with below mentioned command
    sc.exe create "Oracle BI Presentation Server Second" binPath= "C:\OracleBI\web\bin\sawserver.exe -c c:\OracleBIData\web\config\instanceconfig_Testing.xml /service"
    10. opened url "http://<server_name>:9704/analytics_<application_name>"
    all the stpes are correct but i am still getting below error
    "analytics: Servlet error
    java.net.ConnectException: Connection refused: connect "
    please guide me how to resolve this issue and let me know the mistakes I did. This is an urgent issue so i am ready to call if you give your contact number

  • Connect refused in Exchange Portlet

    Hi,
    I am trying to config the exchange portlet using URL-services and basic authentication. When I get to create web provider, the following error show up:
    An error occurred when attempting to call the providers register
    function. (WWC-43134)
    An unexpected error occurred: ORA-29532: Java call terminated by uncaught Java
    exception: java.net.ConnectException: Connection refused (WWC-43000)
    An unexpected error occurred: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java)
    at java.net.Socket.<init>(Socket.java)
    at java.net.Socket.<init>(Socket.java)
    at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:574)
    (WWC-43000)
    Any idea?
    Thanks.

    Do you mean the IsItWorking page or the test.asp in exchange portlet?
    They both work fine.
    Thanks. I meant neither of these but the test page for provider. The
    installation instructions document refers this in the file
    "INSTALLING.MICROSOFT.EXCHANGE.55.PORTLETS.html" and under
    "Configuring the Web Provider" section. You have to make sure
    the provider's servlet alias
    http://your_oracle_http_server_hostname:port/servlet/exchange55
    is running fine before specifying this URL in the provider registration
    screen.
    Hope it is clear now :-)
    Thanks,
    Amjad.

  • Connection refused - I need some help :]

    Hello !
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at java.net.Socket.<init>(Socket.java:309)
    at java.net.Socket.<init>(Socket.java:124)
    at Test.main(Test.java:91)
    Have you read that !!
    It's terrible...
    I don't succeed in finding a solution...
    Can you help me ?
    thanks a lot !!

    First aid check list for "connection refused":
    - Check host name.
    - Check port number.
    - Try numeric IP address of server host, in case name server is hosed.
    - Are there any firewalls between client and server blocking the port.
    - Check that the server is running.
    - Check that the server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port.
    - Try "telnet server-host-name the-port-number" from the client, to see if firewalls are blocking it.
    - If "telnet" fails: try telnet with the numeric ip address.
    - If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
    - Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"?

  • Connection refused in Linux

    hi,
    i have some questions here. Hope you can help me..
    first, i run my server on local host in Linux. Then i run my client on local host too so that it connects to server : Socket socket = new Socket(InetAddress.getLocalHost().getHostAddress(), port); But exception occurs:
    java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect<Native Method>
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at java.net.Socket.<init>(Socket.java:309)
         at java.net.Socket.<init>(Socket.java:124)Why this will happen? Can you explain what is this problem? But when i run the same things in Windows, it run properly and successfully without any exception. Why?
    I really need your help..it's urgent for me..i appreciate your kindness..thanks..

    What port are you using? Typically only root can run servers below 1024.

  • ORACLE 9.2.0 thin Connection Refused  Please Help.

    I am using the ojdbc14.jar ORACLE JDBC driver. I have installed it in a folder d:\bpa\oracle. I have also set the classpath using the eclipse IDE to the file. I can register the driver no problem
    However when I try to connect I get the following Connection refused error:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:547)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:347)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at Helloworld.main(Helloworld.java:30)
    My code is very simple at the moment as I am just testing this stuff:
    public class Helloworld {
         public static void main(String[] args)
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         try {
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
              Connection con = DriverManager.getConnection("jdbc:oracle:thin:@203.56.110.153:1521:IDBP", "system", "manager");
         System.out.print(" This has succeeded" );
         } catch (SQLException e1) {
              // TODO Auto-generated catch block
              e1.printStackTrace();
              return;
         } finally{
              System.out.print("This is a another test");
    I have done the Telnet thing and there is no response that says cannot connect . I am sure NOT how to be certain that my telnet session is OK because the cmd prompt does not come back with anything. just blank.
    Do I need the oracle client on my machine when I try to run this?... I did not think so...
    I am a java newbie so pleeeeeeeeez help

    Please, please, please, please do not use the "SYSTEM" account (unless you are a super-duper Oracle DBA and actually want to modify the way Oracle works).
    The SYSTEM and SYS accounts are special and primarily for Oracle internal stuff; I'm a 50%-time Oracle DBA and I log in as one of them no more than 6 times a year. I believe it's possible that those accounts can be configured to require local access, which could your problem.
    The best way to debug Oracle connection problems (if it doesn't work in JDBC and you don't have a clue), is to figure out your credentials and connection strings using some other product. Oracle's SQL*PLUS client (not the web-based iSQL thingie, but the standalone client) is good for sorting out credentials and confirming remote DB reachability, which is often the problem, but it's not a JDBC-based product and configuring it is a little arcane too if you don't have a handy DBA to help. Still, it's a very powerful tool.
    There are also lots of Java/JDBC generic clients, pehaps the simplest to get up and running is HenPlus (sort of a generic SQL*Plus, actually).
    http://henplus.sourceforge.net/
    Read the docs, but basically you just give it a JDBC driver and a connection URL and it works (or doesn't). If you can't get that working, then you know there's a problem with the IP, the SID or service (you're using SID format) or the user credentials.

  • SOAP (Receiver): error occured: Connection refused:

    Hi experts,
    I have a RFC -> XI -> SOAP scenario and while testing the same it gets cancelled with the following errors:
    SOAP: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: Connection refused: connect: java.net.ConnectException: Connection refused: connect
    MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Connection refused: connect: java.net.ConnectException: Connection refused: connect
    Exception caught by adapter framework: Connection refused: connect
    Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Connection refused: connect: java.net.ConnectException: Connection refused: connect.
    Please help me out.
    Regards,
    Daniela

    Hi,
    1. Either the SOAP Url in the SOAP adapter is wrong,
    2. Or there is a proxy server between XI and the Webserivce and so provide the proxy server details in the SOAP adapter ( with Authentication ) if needed and give it a shot.
    Regards
    Bhavesh

  • "Connection refused" when using Java client for Web Service

    I deployed a web service to Weblogic Server 7.0 running on Windows 2000. I can
    use IE browser to see its WSDL perfectly but when I run the Java client, the proxy
    method call generates the following error:
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:426)
    at java.net.Socket.connect(Socket.java:376)
    at java.net.Socket.<init>(Socket.java:291)
    at java.net.Socket.<init>(Socket.java:119)
    at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:412)
    at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:390)
    at weblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBin
    ding.java:246)
    at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:34)
    at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    javax.xml.rpc.JAXRPCException: Failed to send request:java.net.ConnectException:
    Connection refused: connect
    at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:37)
    at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Exception in handler's handleRequest().
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Conn
    ection refused: connect; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    186)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:459)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)

    In your client program, when you do "new XXX_Impl(String wsdlurl)", did you
    pass in the wsdl you were hitting with browser?
    -Neal
    "Ray Yan" <[email protected]> wrote in message
    news:[email protected]...
    >
    I deployed a web service to Weblogic Server 7.0 running on Windows 2000. Ican
    use IE browser to see its WSDL perfectly but when I run the Java client,the proxy
    method call generates the following error:
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    atjava.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:426)
    at java.net.Socket.connect(Socket.java:376)
    at java.net.Socket.<init>(Socket.java:291)
    at java.net.Socket.<init>(Socket.java:119)
    atweblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:412)
    atweblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
    lientBinding.java:390)
    atweblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBin
    ding.java:246)
    atweblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:34)
    atweblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    javax.xml.rpc.JAXRPCException: Failed to sendrequest:java.net.ConnectException:
    Connection refused: connect
    atweblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
    ndler.java:37)
    atweblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
    :131)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:417)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Exception in handler's handleRequest().
    java.rmi.RemoteException: SOAPFault:javax.xml.rpc.soap.SOAPFaultException: Conn
    ection refused: connect; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    186)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    207)
    at CenterWSClient.main(CenterWSClient.java:73)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: Connection refused:connect
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:459)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:359)
    atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
    atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
    181)

  • Java.lang.Exception: IOException in sending Request :: Connection refused:

    Hi all,
    I am a new to Oracle 10g.I am using Enterprise manager for DBA jobs.After ogging in to enterprise manager, when i click the refresh button, i get the folllowing error
    " java.lang.Exception: IOException in sending Request :: Connection refused: connect"
    Please do help to slove this problem.
    Thanks

    I'm having the same error in my console header. Here is the content of the emagent.trc file.
    Running 10gR2 on Win 2K3 server. (bold added for readability)
    emctl status dbconsole responds with 'EM Daemon is not running'
    2007-03-29 14:02:23 Thread-1776 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
    2007-03-29 14:02:23 Thread-1776 WARN main: clear collection state due to OMS_version difference
    2007-03-29 14:02:23 Thread-1776 WARN command: Job Subsystem Timeout set at 600 seconds
    2007-03-29 14:02:24 Thread-1776 WARN upload: Upload manager has no Failure script: disabled
    2007-03-29 14:02:24 Thread-1776 WARN upload: Recovering left over xml files in upload directory
    2007-03-29 14:02:24 Thread-2920 ERROR command: nmejcn: received no status header from repository at http://dB_Domain:5500/em/upload/
    2007-03-29 14:02:24 Thread-1776 WARN upload: Recovered 0 left over xml files in upload directory
    2007-03-29 14:02:25 Thread-1776 WARN metadata: Metric collectSnapshot does not have any data columns
    2007-03-29 14:02:27 Thread-1776 WARN metadata: Metric Disk_Path does not have any data columns
    2007-03-29 14:02:27 Thread-1776 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2007-03-29 14:02:53 Thread-1776 WARN TargetManager: Regenerating all Metadata
    2007-03-29 14:05:17 Thread-1776 ERROR util.files: ERROR: nmeufis_new: failed in lfiopn on file: E:\oracle\product\10.2.0\db_3\dB_Domain_SIGD\sysman\emd\agntstmp.txt. error = 2 (No such file or directory)
    2007-03-29 14:05:28 Thread-1776 ERROR collector: nmecs_validateStateFile(): state file invalid : E:\oracle\product\10.2.0\db_3\dB_Domain_SIGD\sysman\emd\state\snapshot
    2007-03-29 14:05:28 Thread-1776 ERROR collector: Collector state files cleaned, severity will be resent
    2007-03-29 14:05:35 Thread-3660 ERROR upload: Error in uploadXMLFiles. Trying again in 60.00 seconds.
    2007-03-29 14:05:48 Thread-676 ERROR upload: Failed to delete/move xml file C:\WINDOWS\TEMP\X11.uod, ret = -2 ; agent exiting
    2007-03-29 14:05:48 Thread-676 ERROR : Signalled to Exit with status 3
    2007-03-29 14:05:48 Thread-1776 ERROR main: EMAgent abnormal terminating
    2007-03-29 14:06:29 Thread-2996 WARN command: Job Subsystem Timeout set at 600 seconds
    2007-03-29 14:06:29 Thread-2996 WARN upload: Upload manager has no Failure script: disabled
    2007-03-29 14:06:29 Thread-2996 WARN upload: Recovering left over xml files in upload directory
    2007-03-29 14:06:29 Thread-2996 WARN upload: Recovered 5 left over xml files in upload directory
    2007-03-29 14:06:29 Thread-2996 WARN upload: Merging leftover data file named errors.dat
    2007-03-29 14:06:29 Thread-2996 WARN upload: Merging leftover data file named severity.dat
    2007-03-29 14:06:30 Thread-2996 WARN upload: Merging leftover data file named rawdata.dat
    2007-03-29 14:06:30 Thread-2996 WARN metadata: Metric collectSnapshot does not have any data columns
    2007-03-29 14:06:31 Thread-2996 WARN metadata: Metric Disk_Path does not have any data columns
    2007-03-29 14:06:31 Thread-2996 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2007-03-29 14:07:29 Thread-2328 ERROR util.files: nmeufile_getLength: Error in lfilen. Error = 2 (No such file or directory)
    2007-03-29 14:15:19 Thread-1960 WARN http: 268,-1: nmehl_httpListener: signaled to exit from emctl
    Thank you for your help!
    Message was edited by:
    david.d

  • Java.lang.Exception: IOException is sending Request :: Connection refused

    Hi, everybody.
    Oracle Database Control 10g displays on the home page the following message
    -- java.lang.Exception: IOException is sending Request :: Connection refused
    after killing some database lock that is impeding the users to successfully carry out their daily activities.
    What could be the reason ?

    agent come with db was not working on that time

Maybe you are looking for

  • Missing Contacts and Calendar on iPhone - but still in MobileMe

    Hi all Hopefully some one can help me, I just restored my phone and signed into MobileMe in the settings, but the phone refuses to Sync my contacts and calendar, Ive manually synced them from Itunes, but its really annoying that its not syncing from

  • Display is too small at normal zoom.

    When I start Firefox, it is super zoomed in, but the fonts and everything look normal. But, when I zoom out to the point where I don't have a sideways scroll bar (on websites that wouldn't normally have to scroll sideways, like Google,) the fonts are

  • Wrong number of bytes in MidiMessage?

    Hi, I'm implementing a MIDI trace panel. My class implements the Receiver interface, gets the transmitter from a selected MidiDevice and sets the receiver to an object of my class. The send() method is:-     public void send(javax.sound.midi.MidiMess

  • Plz help me on updating nokia 6630

    dear sir, i am from egypt and i have nokia6630 and i notice that there is an update for it i install it with pc suit the problem is the old software suppot arabic language and the new installaition isn't support arabic is thier is any way to update t

  • Inapp purchase

    Hi, I had done an In App Purchase on The Simpsons Tapped Out, where i purchased donuts. However due to server issues with the game, i am unable to log-in since their Valentines Day Update. Kindly advise if I can get a refund. Probably once the game s