Connection Refused when sending adapter test message XI 2.0

I have received a "java.net.ConnectException: A remote host refused an attempted connect operation." when sending a "Test Client Sending out a Plain Single-Part MIME Message".  I have validated the host name and am not sure where to validate the Port and Url it is sending to. Defaults to Port/Url "8230/JMS"  Where do I look to validate this is correct?

Hi Dan,
You are thanking a poster for his answer.
Please next time also give him points.
See: /people/mark.finnern/blog/2004/08/10/spread-the-love
This time I did it for you.
Remember: When you ask a question you also assume the responsibility to assign points.
Please check your other questions and if the answers were good.
Spread the love and give some points.
Thanks in advance, Mark.

Similar Messages

  • When i send a test message throw the RWB for Http receiver adapter it is giving the error "Error in processing caused by: com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SOCKET_TIMEOUT, Read timed out"

    when i send a test message throw the RWB for Http receiver adapter it is giving the error "Error in processing caused by: com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SOCKET_TIMEOUT, Read timed out"

    Hi, Michal
    I have read your Weblog. It makes sense to me. Thanks a lot for your help! However, I still have some questions and listed them as following. Could you please help to answer them?
    <b>Q1:</b> I am new to SAP-XI. So I have no idea about TCODE-SXMB_ADM. Could you introduce more details about it?
    <b>Q2:</b> The XI system I am using is running on SAP-ICC's machine. The tools I can use are:
    <b>1.</b>Builder for Integration Repository
    <b>2.</b>Builder for Integration Configuration
    <b>3.</b>System Landscape Directory
    <b>4.</b>Runtime Workbench
    <b>5.</b>Administration System (for Repository, Directory, Runtime)
    Please note that I do not have a complete control on this SAP-XI. Do you think whether or not I can set the timeout parameter by following the instructions provided in your Weblog?
    For more details about my SAP-XI, please access the following Web page:
    http://iccxi.sap.com:58000/rep/support/admin/index.html
    <b>Q3:</b> The following messages are extracted from the SAP-XI. Wish they are hepful to solving my problem.
    2006-06-19 05:12:16 Success The message was successfully received by the messaging system. Profile: XI URL: http://iccxi.sap.com:58000/MessagingSystem/receive/AFW/XI
    2006-06-19 05:12:16 Success Using connection AFW. Trying to put the message into the request queue.
    2006-06-19 05:12:16 Success Message successfully put into the queue.
    2006-06-19 05:12:16 Success The message was successfully retrieved from the request queue.
    2006-06-19 05:12:16 Success The message status set to DLNG.
    2006-06-19 05:12:16 Success Delivering to channel: ValidationRequestHandlerServiceChannel
    2006-06-19 05:12:16 Success SOAP: request message entering the adapter
    2006-06-19 05:12:37 Success SOAP: call failed
    2006-06-19 05:12:37 Error SOAP: error occured: java.net.ConnectException: Connection timed out: connect
    2006-06-19 05:12:37 Error Exception caught by adapter framework: Connection timed out: connect
    Thanks
    Menghua Li

  • CPALookupException while sending a Test message to Adapter engine

    Hello Experts,
    I am getting following exception while sending a test message to Adapter engine through Runtime Workbench.
    Error while sending message: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve outbound binding for the given P/S/A values: FP=<Configured Party>;TP=;FS=<Configured Communication component>;TS=;AN=<Configured Outbound Interface>;ANS=<Configured Namespace>
    This scenario works fine when I submits the message through Integration engine. So ID configuration is perfect. Also cache contents are upto date.
    Thanks in advance.
    Regards
    Rajeev

    Error is clearly saying that it is unable to find receiver agreement for that particular interface.
    Please check your receiver agreement for the interface.
    If your receiver agreement is fine then do CPA cache refresh using following URL:-
    http://<host>:<port>/CPACache/refresh?mode=full

  • Unable to send a test message (XML file) at the runtime workbench..

    Hi,
    we are not able to send a test message (XML file) at the runtime workbench just to test Idoc's. From the component monitoring, under the integration engine, test message- i have given all the parameters like sender and receiver service, interface namespace with the user id and password details. when i say send message it is throwing error while sending. not even displaying any error to attach here. I beleive it is a configuration problem in the integration directory. what do you reckon guys?
    OS- win 2003 DB-Oracle 10.2.0.4
    SAP PI 2004s basis SPS 18
    Appreciate your much needed help!
    Thx
    Sree

    It is a sender Idoc. we are using sender agreement and comm channel.
    Why are you using a channel and agreement for IDOC....we dont need it when IDOC is sender!
    All the channels and agreements (if created) are in XI/ PI and we can delete them if they are not required
    Edited by: abhishek salvi on Mar 11, 2010 11:49 AM

  • Need help to Configure FTPS connection for File Sender Adapter

    Hi,
    I want to Configure, FTPS connection (Secured Connection) for File Sender Adapter. Could anyone please guide me, what Information I require to configure. I just want to know what Information should I request the team inorder the configure FTPS so that it can be deployed properly.
    I have checked with [SAP Help Link|http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] and while configuring the communication channel found that I need Keystore and the X.509 Certificate and Private Key.  which needs to be deployed on the J2EE server by using the Visual Administrator.
    Is there anything else, I need to configure.
    Any help would be appreciated in this regard.
    Thanks & Regards,
    Varun.K

    The basic things are Certificate/Keys which you already know. Usually it is enough for running a sceanrio.
    However, if you have additional requirements, like FTPS for "Connection Security" for encryption, then you may need additional details like commands. Rest all settings are same as FTP.
    Regards,
    Prateek

  • My phone will not light up when i receve test messages, calls, or other notifications. i have the sounds all turned on and everything turned on i could in the settings but it still wont  work...?

    My phone will not light up when i receve test messages, calls, or other notifications. i have the sounds all turned on and everything turned on i could in the settings but it still wont  work...? please help!!

    Make sure that you have do not disturb off. If you pull up notification center it will be the crescent moon.

  • TCP connection error when sending MODBUS commands to WAGO 750-881 controller after 113655 bytes of data have been sent

    Hi all,
    I am new to the world of labview and am attempting to build a VI which sends commands to a 750-881 WAGO controller at periodic intervals of 10ms. 
    To set each of the DO's of the WAGO at once I therefore attempt to send the Modbus fc15 command every 10ms using the standard Labview TCP write module. 
    When I run the VI it works for about a minute before I recieve an Error 56 message telling me the TCP connection has timed out. Thinking this strange, I decided to record the number of bytes sent via the TCP connection whilst running the program. In doing so I noticed that the connection broke after exactly 113655 Bytes of data had been sent each time. 
    Thinking that I may have been sending too many messages I increased the While-loop delay from 10ms to 20, 100 and 200 ms but the error remained. I also tried playing with the TCP connection timeout and the TCP write timeout but neither of these had any effect on the problem. 
    I cannot see why this error is occuring, as the program works perfectly up untill the 113655 Bytes mark. 
    I have attached a screenshot of the basic VI (simply showing a MODBUS command being sent every second) and of a more advanced VI (where I am able to control each DO of the WAGO manually by setting a frequency at which the DO should switch between ON and OFF). 
    If anybody has any ideas on where the problems lie, or what I could do to further debug the program this would be greatly appreciated. 
    Solved!
    Go to Solution.
    Attachments:
    Basic_VI.png ‏84 KB
    Expanded_VI.png ‏89 KB

    AvdLinden wrote:
    Hi ThiCop,
    Yes the error occurs after exactly 113655 bytes every time. The timeout control I would like to use is 10ms, however even increasing this to 1s or 10s does not remove the error, which leads me to believe that this is not the issue (furthermore, not adding any delay to the while loop, thus letting it run at maximum speed, has shown that the TCP connection is able to send all 113655 bytes in under 3 seconds again pointing towards the timeout control not being the issue here). 
    I attempted Marco's suggestion but an having difficulty translating the string returned into a readable string, (rightnow the response given is "      -#   +   ").
    As to your second suggestion, I implemented something similar where I created a sub VI to build a TCP connection, send a message and then close the connection. I now build each message and then send the string to this subVI which successfully sends the command to my application. Whilst not being the most elegant method of solving the issue, it has resolved the timeout problem meaning I am able to send as many commands as I want. So in that sense the problem has been solved. 
    If you still have tips on how to correctly read the TCP read output, I would however like to see if I could not get my first program to work as it is slightly more robust in terms of timing. 
    Modbus TCP RTU is a binary protocol, as you show in your Basic VI, where you format the data stream using byte values. So you have to interprete the returned answer accordingly with the Modbus RTU spec in hand. Now what is most likely happening is that the connection gets hung after a while since you do NOT read the data the device sends as response to your commands. The TCP/IP stack buffers those bytes and at some point the internal buffers overflow and the connection is blocked by the stack. So adding the TCP Read at strategic places (usually after each write) is the proper solution for this. Is there any reason that you didn't use the NI provided Modbus TCP library?
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • "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)

  • "connection refused" when accessing gmail pop server

    I am having a problem connecting to gmail. I get a "connection refused" error when I try to download or upload mail. This problem started last Saturday Aug, 22nd, give or take a day. As for trouble shooting, here's what info I can share. I am connected to the internet because I can browse websites. I was able to access my mail on the gmail website, using the browser interface. On the website, I was able to read new mail that had been sent to me since the problem started, so there's no problem with the account itself. I have made no recent changes to my e-mail client settings and I tried another email client and had the same type of error message come up. POP is enabled in Gmail. I can not run the telnet test provided on gmail because it appears to be only available to PC users. However, I took my iBook down to the local pub, connected to the internet on wifi, and had no problem. My email client performed its normal functions as usual. At this point I gather the problem has something to do with my ISP specifically not being able to see gmail's server, or vice versa. Should I contact gmail to ask them if there is something they can check? If I have to resolve this through my ISP, what should I tell them to look for? Are there any setting in the System Preference Networking Control Panel I should be checking, such as proxies, ethernet, TCP/IP, etc? Thanks

    I have found that I can use "terminal" on my Mac to run a telnet command on gmail's server addresses. It says "connection refused". Pretty much the same thing my e-mail client said. So I am still working under the assumption that the problem has something to do with my ISP specifically not being able to see gmail's servers, or vice versa. But which is more likely? If the problem is with my ISP, should I simply ask them to change my IP address (or their IP address)? This is an area that I am not very familiar with. And there is an added complication that I may not be able to contact the ISP directly. I will have to speak to the landlord, and it will probably be a situation where I will have to tell the landlord what to say to the ISP. So I'm looking for the layman's nutshell way to convey the info to the landlord so that it does not get lost in the translation to the ISP.
    And another point. I am being told that other users on my landlord's network are not having problems with gmail. Is there a way for ME to force the IP address on MY computer to change? Or is that not really the issue? Thanks

  • My 'secure 'connection 'refused' when access iTunes after 8.0.2.20 upgrade

    My 'secure' network connection was 'refused' when access iTunes. I can view & navigate the iTunes store AND I can update my Podcasts successfully...BUT I can't sign in/download /purchase, et al.
    Triage so far...not neccessarily in this order...
    1) Not using Norton or Macafee - using Verizon Security suite
    Checked firewall - itunes is listed a 'safe'
    2) Ran ITunes Dx program - followed the suggestion to check SSL & TLS - checked correctly (log pasted below)
    3) Uninstalled iTunes and then reinstalled - no change
    4) Cleaned out IE files cookies - no change
    5) Renamed the etc/HOST file name - no change
    6) the Apple Help person said that he has no idea and have done what he would have already suggested...
    Below is pasted the results from the iTunes triage...
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    Dell Computer Corporation Dimension 4550
    iTunes 8.0.2.20
    QuickTime 7.5.5
    FairPlay 1.1.11
    CD Driver 2.0.7.5
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 2.1.2.7
    Bonjour 1.0.5.11 (118.5)
    iTunes Serial Number FA60CA709F4AAB80
    Current user is an administrator.
    The current local date and time is 2008-12-04 15:04:28.
    iTunes is not running in safe mode.
    Video Display Information
    NVIDIA GeForce4 MX 420
    ** External Plug-ins Information **
    No external plug-ins installed.
    ** Network Connectivity Tests **
    Network Adapter Information
    Adapter Name: {B8B89F3F-B5E7-4802-AEF4-CE01824912C0}
    Description: Intel(R) PRO/100 VE Network Connection - Packet Scheduler Miniport
    IP Address: 192.168.1.45
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.1
    DHCP Enabled: Yes
    DHCP Server: 192.168.1.1
    Lease Obtained: Thu Dec 04 14:22:10 2008
    Lease Expires: Fri Dec 05 14:22:10 2008
    DNS Servers: 192.168.1.1
    192.168.1.1
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is off.
    Connection attempt to Apple web site was successful.
    Connection attempt to iTunes Store was successful.
    Secure connection attempt to iTunes Store was unsuccessful.
    The network connection was refused.
    Secure connection attempt to iPhone activation server unsuccessful.
    The network connection was refused.
    Last successful store access was 2008-12-04 14:53:22.

    Although a didn't currently have Norton and had thought I had uninstalled it (no longer in my program menu & no residual icons et al...there is the 'Semantic' TOOL that must be used to REALLY remove Norton security remnants that are buried deep in the c-drive program files. This I didn't know about...
    So I downloaded the tool from the Norton web page and ran it per their instructions. After rebooting, my 8.0.2.20 iTunes secure connect was fine.
    I spent 9+ days trying to get iTunes to work. Norton is the devil company and I will never use that security program again - especially with all the other Norton-specific issues iTunes is having release after release...

  • Connection refused when trying to getOutputStream from https connection

    Hi all !
    I want to make an https connection with a server to send/get the request/response
    What can be the cause of the following error in the following code testHttps.java?
    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 com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at Test.testHttps.main(testHttps.java:46)
    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 com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at Test.testHttps.main(testHttps.java:51)
    testHttps.java
    package Test;
    import java.io.;
    import java.net.;
    import javax.net.ssl.*;
    public class testHttps {
    public static void main(String args[]) throws Exception {
    //System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    // Create a trust manager that does not validate certificate chains
    TrustManager[] trustAllCerts = new TrustManager[]{
    new X509TrustManager() {
    public java.security.cert.X509Certificate[] getAcceptedIssuers() {
    return null;
    public void checkClientTrusted(
    java.security.cert.X509Certificate[] certs, String authType) {
    public void checkServerTrusted(
    java.security.cert.X509Certificate[] certs, String authType) {
    // Install the all-trusting trust manager
    try {
    SSLContext sc = SSLContext.getInstance("SSL");
    sc.init(null, trustAllCerts, new java.security.SecureRandom());
    HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
    } catch (Exception e) {
    System.out.println("Error" e);
    // Now you can access an https URL without having the certificate in the truststore
    try {
    URL url = new URL("https://..............");-->//address of the server given here
    URLConnection conn = url.openConnection();
    HttpsURLConnection urlConn = (HttpsURLConnection) conn;
    urlConn.setDoOutput(true);
    OutputStreamWriter wr = null;
    try{
    wr = new OutputStreamWriter(conn.getOutputStream());
    catch(Exception e){
    e.printStackTrace();
    BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
    String str;
    while( (str=in.readLine()) != null) {
    System.out.println(str);
    } catch (MalformedURLException e) {
    System.out.println("Error in SLL Connetion" +e);
    HostnameVerifier hv = new HostnameVerifier()
    public boolean verify(String urlHostName, SSLSession session)
    System.out.println("Warning: URL Host: " urlHostName " vs. "
    session.getPeerHost());
    return true;
    want to ignore certificate validation.
    plese help me..
    hi brucechapman, as you suggested me, i posted in Core API- networking forum, now please gimme a solution
    Thanks in advance.

    hi brucechapman,
    ran the NetTest program, got the following exception:
    trigger seeding of SecureRandom
    done seeding SecureRandom
    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 com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at Test.NetTest.main(NetTest.java:40)
    NetTest.java:40 -- InputStream is = url.openStream(); at this ling throwing exception.
    For the following program, i have added the argument -Djavax.net.ssl.trustStore=cacerts
    i have exported the certificate from IE and added to the keystore.
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.security.Security;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    public class Communicator {
    public static void main(String[] args) {
    try {
    int port = 34443;
         String strReq = "xml content ";
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    SSLSocketFactory factory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) factory.createSocket("jyoti-win2k8-32", port);
    //Writer out = new OutputStreamWriter(socket.getOutputStream());
    //out.write("GET http://" + "hostname" + "/ HTTP 1.1\r\n");
    // out.write("\r\n");
    //out.write(strReq);
    //out.flush();
    OutputStreamWriter wr = null;
    try{
         wr = new OutputStreamWriter(socket.getOutputStream());
         catch(Exception e){
              e.printStackTrace();
         System.out.println("got output stream");
         try{
         wr.write(strReq);
         //System.out.println("response code : "+conn.getResponseCode());
         System.out.println("written");
         wr.flush();
         catch(IOException e){
              e.printStackTrace();
    InputStreamReader is = new InputStreamReader(socket.getInputStream(),"UTF8") ;
         BufferedReader rd = new BufferedReader(is);
         String line;int count=0;
         System.out.println("rd "+rd);
         while ((line = rd.readLine()) != null) {
              System.out.println("line "+line );
              System.out.println(count++);
              // Process line...
         System.out.println(count);
    rd.close();
    BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    int c;
    while ((c = in.read()) != -1) {
    System.out.write(c);
    //out.close();
    in.close();
    socket.close();
    } catch(IOException ex) {
    ex.printStackTrace();
    Exception :
    javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
         at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
         at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
         at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)
         at sun.nio.cs.StreamEncoder.flush(Unknown Source)
         at java.io.OutputStreamWriter.flush(Unknown Source)
         at Test.Communicator.main(Communicator.java:55)
    Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
         at sun.security.validator.PKIXValidator.<init>(Unknown Source)
         at sun.security.validator.Validator.getInstance(Unknown Source)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(Unknown Source)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
         ... 7 more
    Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
         at java.security.cert.PKIXParameters.setTrustAnchors(Unknown Source)
         at java.security.cert.PKIXParameters.<init>(Unknown Source)
         at java.security.cert.PKIXBuilderParameters.<init>(Unknown Source)
         ... 19 more
    java.net.SocketException: Socket is closed
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getInputStream(Unknown Source)
         at Test.Communicator.main(Communicator.java:66)
    please help me and provide me suggestion/solution. how to get rid off this trustanchor paramater exception
    what is it actualy?
    Thanks in advance.

  • Connection Refused when starting node manager on Linux

    Hi,
    I'm using Weblogic 6.1 SP 2 on Redhat Linux 7.1 with Sun JDK 1.3.1. When I'm running
    the Node Manager on one machine and try to connect to it from another machine (Admin
    Server) I'm getting the following message:
    <May 28, 2002 6:35:59 PM IDT> <Error> <NodeManager> <Could not start server 'EnvelopeManagedBackup'
    via Node Manager - reason: '[SecureCommandInvoker: Could not create a socket to the
    NodeManager running on host 'jarjar:5555' to execute command 'online null', reason:
    Connection refused: connect. Ensure that the NodeManager on host 'jarjar' is configured
    to listen on port '5555' and that it is actively listening]'>
    The Node Manager is listening on the server's listen address (jarjar) and on the
    correct port (5555). When running netstat -a | grep 5555 on the server I get the
    following (jarjar is the computer name):
    tcp 0 0 jarjar:5555 *:* LISTEN
    The admin server is registered in the nodemanager.hosts file.
    Can anyone help me on this?

    ....I happened to get "execute command 'online null'" because of a missing
    "Listen Address" and/or "Listen Port" entry in the "Remote Start" tab of the
    Administration Server.
    Node Manager passes on such values when starting up a managed server - if
    either is blank, the managed server can not identify the Admin Server to
    register to...
    Paola R.

  • SUNW.iws - "Connection refused" when probing a uri in monitor_uri_list

    Hi,
    I use Sun Cluster 3.2 and would like to set Sun Webserver 7u2 as failover resource.
    I configured Resource Group which contain Logical Hostname and Sun Webserver as data resource (using SUNW.iws). I set all nedded data and turn on the resource.
    I've got the messages:
    Feb 11 01:25:21 krasnal-A SC[SUNW.iws:5,Webserver-gr,Webserver-server,iws_svc_start]: Failed to connect to host ha-web and port 80: Connection refused.
    Feb 11 01:25:36 krasnal-A last message repeated 7 times
    Feb 11 01:25:37 krasnal-A SC[SUNW.iws:5,Webserver-gr,Webserver-server,iws_svc_start]: A resource restart attempt on resource Webserver-server in resource group Webserver-gr has been blocked because the number of restarts within the past Retry_interval (620 seconds) would exceed Retry_count (2)
    Feb 11 01:25:37 krasnal-A SC[SUNW.iws:5,Webserver-gr,Webserver-server,iws_svc_start]: Failed to start iPlanet Web Server.
    Feb 11 01:25:37 krasnal-A Cluster.RGM.rgmd: Method <iws_svc_start> failed on resource <Webserver-server> in resource group <Webserver-gr> [exit code <1>, time used: 7% of timeout <300 seconds>]
    server has been shutdown
    In this moment the second node on cluster start the resource and do the same. Monitor, failed, turn off. :-( . Resource are switched 3 times between nodes and at the end get offline status.
    The most important is that connection refused for uri in monitor_uri_list and resource in cluster isn't start or triggering restart/failover.
    It is look like the failover monitor try check resource on port 80 after service start and when notice that service (Webserver) not started - turn down the interface on this node and turn up on second node. Service (webserver) can;t start becouse the interface are down.
    I've found some similar problems which are describes on sunsolve:
    http://sunsolve.sun.com/search/document.do?assetkey=1-1-4900125-1
    and
    http://sunsolve.sun.com/search/document.do?assetkey=1-1-4967197-1
    I'm beginner in cluster problems and maybe I did some big mistake, but ...some help me
    Irek

    Solved!
    I read this post: http://forum.java.sun.com/thread.jspa?messageID=3966316
    and now get things work.
    If you installed NetBeans, you should notice that in your {tomcat_home}/conf/web.xml, NetBeans add these:
      <filter>
        <filter-name>HTTPMonitorFilter</filter-name>
        <filter-class>org.netbeans.modules.web.monitor.server.MonitorFilter</filter-class>
        <init-param>
          <param-name>netbeans.monitor.ide</param-name>
          <param-value>127.0.0.1:8082</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>HTTPMonitorFilter</filter-name>
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
        <dispatcher>ERROR</dispatcher>
      </filter-mapping>Now you should comment out these lines and then can get connected.

  • Connection refused when connecting SMP 3 to ASE 16

    Hi all,
    We're in the process of setting up an installation of SMP 3.0 with Sybase ASE 16 for one of our clients. The final goal is to run the SAP EHS Safety Issue mobile app.
    When installing SMP 3.0 with Derby database, I'm able to start the system without any problems. However, when I try the installation configuring the Sybase ASE DB, the service gets stuck on a loop while starting up and doesn't react. I cannot stop it manually nor restart it. The only way to stop it is by restarting the system.
    On the Sybase side of things, I can install the ASE without any issues. I have also done all the preliminary steps to create the user and smp3 DB for SMP. I've connected to the DB using this user and I'm able to see that the smp3 DB is created.
    When looking at the logs, I can see an exception with the message: Connection refused. Here's an excerpt:
    2014 07 28 15:01:10#0-500#ERROR#org.jgroups.protocols.SMP_JDBC_PING##anonymous#Timer-2,SAPDSMP-5000-smp3-smpserver:com.sap.mobile.platform.server.online.admin.backendconnections.cluster.ClusterBackends,SAPDSMP-4630###Failed creating JDBC connection for SMP_JDBC_PING java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection refused: connect
      at com.sybase.jdbc4.jdbc.SybConnection.getAllExceptions(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybConnection.handleSQLE(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybConnection.tryLogin(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybConnection.handleHAFailover(Unknown Source)
    Any idea what may be causing this issue?
    Kind regards,
    Omar

    I tried using the go.bat to start the server and got the same error. Here's the output:
    Using SMP_BASE:    "D:\SAP\MobilePlatform3\Server"
    Using SMP_HOME:    "D:\SAP\MobilePlatform3\Server"
    Using SMP_OPTS:    " "-Dlog4j.logfiles.path=D:\SAP\MobilePlatform3\Server\log" "
    -Dwicket.configuration=development" "-Dmobiliser.home=D:\SAP\MobilePlatform3\Ser
    ver" "-DMOBILISER_PROTOCOL=http" "-DMOBILISER_HOSTNAME=localhost" "-DMOBILISER_P
    ORT=8080" "-DMOBILISER_HOST=http://localhost:8080" "-Dtracker.defaultHost=localh
    ost" "-Dtracker.defaultPort=8080" "-Dtracker.defaultServlet=/mobiliser" "-Dcom.s
    ap.mobile.platform.server.home=D:\SAP\MobilePlatform3\Server" "-DPREFS_PROTOCOL=
    prefs""
    Using JAVA_HOME:   "D:\SAP\MobilePlatform3\sapjvm_7"
    "Updating SMP3 Server P2 Repository Locations to: D:\SAP\MobilePlatform3\Server/
    p2"
            1 file(s) moved.
            1 file(s) moved.
    "Updating server log name to reflect the hostname"
            1 file(s) moved.
    java version "1.7.0_25"
    Java(TM) SE Runtime Environment (build 7.1.012)
    SAP Java Server VM (build 7.1.012 23.5-b11, Aug  8 2013 23:45:34 - 71_REL - optU
    - windows amd64 - 6 - bas2:201691 (mixed mode))
    D:\SAP\MobilePlatform3\Server>"D:\SAP\MobilePlatform3\sapjvm_7\bin\java.exe" -se
    rver  -XtraceFile=log/vm_@PID_trace.log   "-Dlog4j.logfiles.path=D:\SAP\MobilePl
    atform3\Server\log" "-Dwicket.configuration=development" "-Dmobiliser.home=D:\SA
    P\MobilePlatform3\Server" "-DMOBILISER_PROTOCOL=http" "-DMOBILISER_HOSTNAME=loca
    lhost" "-DMOBILISER_PORT=8080" "-DMOBILISER_HOST=http://localhost:8080" "-Dtrack
    er.defaultHost=localhost" "-Dtracker.defaultPort=8080" "-Dtracker.defaultServlet
    =/mobiliser" "-Dcom.sap.mobile.platform.server.home=D:\SAP\MobilePlatform3\Serve
    r" "-DPREFS_PROTOCOL=prefs" -XX:ErrorFile="D:\SAP\MobilePlatform3\Server\log\err
    or.log" -XX:HeapDumpPath="D:\SAP\MobilePlatform3\Server\log\heap_dump.hprof" "-X
    X:+HeapDumpOnOutOfMemoryError" "-XX:+DisableExplicitGC" "-Xms1024m" "-Xmx2048m"
    "-XX:PermSize=256M" "-XX:MaxPermSize=512M" "-Dosgi.requiredJavaVersion=1.6" "-Du
    seNaming=osgi" "-Dosgi.install.area=." "-Djava.io.tmpdir=./work/tmp" "-Djava.end
    orsed.dirs=lib/endorsed" "-Dorg.eclipse.equinox.simpleconfigurator.exclusiveInst
    allation=false" "-Dcom.sap.core.process=ljs_node" "-Declipse.ignoreApp=true" "-D
    http.proxyHost=" "-Dhttp.proxyPort=" "-Dhttps.proxyHost=" "-Dhttps.proxyPort=" "
    -Dorg.eclipse.net.core.enableProxyService=false" "-Dosgi.noShutdown=true" "-Dosg
    i.framework.activeThreadType=normal" "-Dosgi.embedded.cleanupOnSave=true" "-Dosg
    i.usesLimit=30" "-Djava.awt.headless=true" "-Dtc.active=true" "-Dmail.mime.encod
    eparameters=true" "-Dnet.sf.ehcache.skipUpdateCheck=true" "-Dorg.eclipse.gemini.
    blueprint.extender.internal.boot.ChainActivator.disableBlueprint=true" "-Dcom.sy
    base365.mobiliser.util.tools.springextender.threadpool.size=20" "-Dcom.sybase365
    .mobiliser.util.tools.springextender.shutdown.wait.time=35000" "-Dwicket.configu
    ration=deployment" "-DlicenseAccepted=true" "-Dorg.apache.tomcat.util.buf.UDecod
    er.ALLOW_ENCODED_SLASH=true" "-Dcom.sybase365.mobiliser.framework.service.config
    .MobiliserServiceBeanDefinitionParser.serviceAdviceConfig=audit,security,caller-
    audit,responseCode,traceableRequest,responseCode,filterExternal,sessionManagemen
    t,txn" "-Dcom.sybase365.mobiliser.framework.service.config.MobiliserServiceBeanD
    efinitionParser.internalServiceAdviceConfig=security,responseCode,validation,res
    ponseCode,filterInternal,sessionManagement,txn" "-Dcom.sybase365.mobiliser.frame
    work.service.config.MobiliserInternalServiceBeanDefinitionParser.responseCodeTyp
    e=responseCode" "-Dcom.sybase365.mobiliser.framework.service.config.MobiliserInt
    ernalServiceBeanDefinitionParser.auditType=audit" "-Dcom.sybase365.mobiliser.mon
    ey.persistence.hibernate.dao.transaction.AuthorisationCodeDaoHbnImpl.max=200" "-
    Dcom.sybase365.mobiliser.money.persistence.hibernate.dao.transaction.Authorisati
    onCodeDaoHbnImpl.table=SEQ_AUTH_CODES" "-Dcom.sybase365.mobiliser.money.persiste
    nce.hibernate.dao.transaction.AuthorisationCodeDaoHbnImpl.column=ID_SEQUENCE" "-
    Dcom.sybase365.mobiliser.framework.persistence.hibernate.dialect.useTableBasedSe
    quences=true" "-Dcom.sybase365.mobiliser.framework.persistence.hibernate.dialect
    .useSequenceNameForTableSequences=true" "-Dcom.sybase365.mobiliser.framework.per
    sistence.hibernate.dialect.sequenceTableName=SEQ_TABLE_HILO" "-Dcom.sybase365.mo
    biliser.framework.persistence.hibernate.dialect.sequenceTableSequenceNameColumnN
    ame=STR_SEQUENCE_NAME" "-Dcom.sybase365.mobiliser.framework.persistence.hibernat
    e.dialect.sequenceTableSequenceValueColumnName=ID_SEQUENCE_NEXT_HI_VALUE" "-Dcom
    .sybase365.mobiliser.framework.persistence.jdbc.bonecp.pool.lazy=true" "-Dcom.sa
    p.mobile.platform.server.notifications.baseurl=https://SAPDSMP.corp.local:8081/"
    "-Dcom.sap.mobile.platform.online.proxy.maxresponsesize=-1" "-Dcom.sap.mobile.p
    latform.server.connection.pool.idletimeout=600" "-Dcom.sap.mobile.platform.serve
    r.connection.timeout=60000" "-Dcom.sap.mobile.platform.server.connection.sotimeo
    ut=60000" "-Dcom.sap.mobile.platform.server.enable.statistics=true" "-Dcom.sap.m
    obile.platform.server.maximum.clientlogfiles=10" "-Dcom.sap.mobile.platform.serv
    er.maximum.connectionPoolSize=5000" "-Dcom.sap.mobile.platform.server.maximum.gz
    ipPoolSize=5000" "-Dcom.sybase.security.FactoryRetriever=com.sybase.security.int
    egration.tomcat7.TomcatFactoryRetriever" "-Dcom.sap.mobile.platform.server.gener
    al.status.SMPServerStatusLogging=false" "-DsecretKey=7hZK9zP3cH" "-DsecretKeylen
    gth=128" "-DapnsSocksProxyHost=" "-DapnsSocksProxyPort=" "-Dorg.apache.catalina.
    authenticator.Constants.SSO_SESSION_COOKIE_NAME=X-SMP-SESSIDSSO" "-Dosgi.logfile
    =./log/osgi.log" "-Djava.net.preferIPv4Stack=true" -classpath "D:\SAP\MobilePlat
    form3\Server\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;D:\SAP\
    MobilePlatform3\Server\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;D:\
    SAP\MobilePlatform3\Server\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;D:\S
    AP\MobilePlatform3\Server\plugins\org.eclipse.equinox.launcher_1.3.0.v20120308-1
    358.jar;D:\SAP\MobilePlatform3\Server\plugins\com.sap.db.jdbc_1.0.31.362930.jar;
    D:\SAP\MobilePlatform3\Server\plugins\jconnect-osgi_7.0.7.ESD5-1.jar;D:\SAP\Mobi
    lePlatform3\Server\plugins\com.sybase365.com.ibm.db2jcc4_9.7.4.jar;D:\SAP\Mobile
    Platform3\Server\plugins\oracle-jdbc-osgi_11.2.0.x_3.0.0.M1.jar;D:\SAP\MobilePla
    tform3\Server\plugins\com.springsource.org.apache.commons.codec_1.4.0.jar;D:\SAP
    \MobilePlatform3\Server\plugins\com.springsource.org.apache.commons.codec_1.6.0.
    jar;D:\SAP\MobilePlatform3\Server\plugins\com.springsource.org.apache.commons.la
    ng_2.5.0.jar" org.eclipse.equinox.launcher.Main -console localhost:2401
    Checking DB...
    Failed to connect to the database on startup:java.sql.SQLException: JZ006: Caugh
    t IOException: java.net.ConnectException: Connection refused: connect
    Checking DB...
    Failed to connect to the database on startup:java.sql.SQLException: JZ006: Caugh
    t IOException: java.net.ConnectException: Connection refused: connect

  • Connection lost when sending email from iSeries machine w/ JavaMail API?

    Hello all,
    I have a never-ending process (RPGLE) running on the iSeries machine that frequently needs to send an email. In an attempt to improve performance, I connect to the SMTP server as soon as this process starts. Then, each time an email must be sent, I construct the message and send it. This seems to work, but occasionally (no particular pattern) something goes wrong that causes a javax.mail.MessagingException to be thrown. When this occurs, the process continues to retry the send until it works again... it always ends up working again after 4 minutes or less. However, I'm concerned about the fact that it gets this exception. Any suggestions or ideas would be greatly appreciated. Thanks! Jesse
    Here are some code snippits:
    ~~~The RPGLE process first calls a method to setup the SMTP server and connect:
    String hostName = "email.hostname";
    String hostType = "email.hosttype";
    // Get system properties
    Properties systemProperty = System.getProperties();
    // Setup mail server
    systemProperty.put(hostType, hostName);
    systemProperty.put("mail.smtp.connectiontimeout", "30000");
    systemProperty.put("mail.smtp.timeout", "30000");
    // Get session
    session = Session.getDefaultInstance(systemProperty, null);
    // Connect to the smtp server.
    transport = session.getTransport("smtp");
    transport.connect();
    ~~~ Then, when needed, the RPGLE process continues to call a method to send email. It is in here that the MessagingException is thrown.
    if (!transport.isConnected())
    transport.connect();
    message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
    message.setSubject(subject);
    message.setContent(text,"text/html");
    message.setHeader("X-Mailer", "HtmlMail");
    message.saveChanges();
    transport.sendMessage(message, message.getRecipients (Message.RecipientType.TO));

    Thanks for the link. It was helpful. I added code to print the details of the exception to an IFS text file. However, I'm still not able to determine the problem. Any suggestions you can provide will be greatly appreciated. Thanks!
    These are the details of the exception:
    com.sun.mail.smtp.SMTPSendFailedException: 451 4.3.2 Please try again later
    java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85)
    java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:33)
    javax/mail/MessagingException.<init>(Ljava/lang/String;Ljava/lang/Exception;)V+2 (MessagingException.java:57)
    javax/mail/SendFailedException.<init>(Ljava/lang/String;Ljava/lang/Exception;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;)V+3 (SendFailedException.java:77)
          com/sun/mail/smtp/SMTPSendFailedException.<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Exception;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;)V+10 (SMTPSendFailedException.java:46)
          com/sun/mail/smtp/SMTPTransport.issueSendCommand(Ljava/lang/String;I)V+135 (SMTPTransport.java:1333)
          com/sun/mail/smtp/SMTPTransport.mailFrom()V+509 (SMTPTransport.java:906)
          com/sun/mail/smtp/SMTPTransport.sendMessage(Ljavax/mail/Message;[Ljavax/mail/Address;)V+244 (SMTPTransport.java:535)
          JavaMail.sendMail(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)S+139 (JavaMail.java:191)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How to get rid of the loading status at the bottom

    The loading status is like how it is in chrome now. I absolutely hate that. I use the addon bar, so why can't i put it back into the addon bar. Its just additional stuff i dont need. I would also like it to be where if you hover over a link you can s

  • HT204406 When synching my music to iTunes Match, iTunes either crashes or I get an unknown error (code 8104).

    I continously get this problem and have been trying again and again, but always with the same result.  It seems that most of the time, iTunes Match goes through the first 2 steps (Step 1: Gathering information and Step 2: Matching music) but when it

  • URGENT - OFA Calls in Fixed Assets forms

    Hi there, I have a very urgent situation here, can any one help me by explaining that following piece of code: USER_EXIT('OFA INS_ADJUST ' ||      'TRANSACTION_HEADER_ID=":fa_books_header.transaction_header_id" ' || 'SOURCE_TYPE_CODE="DEPRECIATION" '

  • Can not use Minisap 4.6 R/3

    I have followed all the instructions in the book. For some reason, when I start the object navigator, instead of the object navigator, I see a 'Page not found' instead of the object list. Please, why is this? I have even installed the patch. Thanks.

  • Upgrade my eMac or get a new system?

    My eMac has been running slowly for some time now. Safari and Firefox crash constantly. The computer gets logged when I run several programs at once. I don't run many high memory applications (such as gaming or video editing). I mainly use my compute