Retrieving error information while connecting to JCO

Hello, I'm programing in Java using JCO to connect to SAP. Everything works fine when I introduce good data in the createClient method. The problem is that if I introduce a wrong user/password it do not connect but I get no error code so I don't know how can I show the scpecific error to the user.
Also if the server does not exists an exception happend, I capture the exception and I can show the message as is but, how can I know if the exception is because of the server Id or the server Ip or the client number?
Thanks

Hello,
  JCO exceptions are thrown using the JCO.Exception class.
When you catch the exception object you can find out the key, group and detail message. Based on the group like
JCO_ERROR_LOGON_FAILURE or JCO_ERROR_COMMUNICATION etc. you can take subsequent actions. The text gives you more details.
try {
            client = JCO.createClient .... 
            } catch (JCO.Exception ex) {
              if ( ex.getGroup() == JCO.Exception.JCO_ERROR_COMMUNICATION ) {
              take some action....
              ex.getMessage( )      
Octavian

Similar Messages

  • CRS 5 Backups fail with this error: Unknown error occured while connecting to the host

    Dear All,
    We have backup issue with  UCCX 5.0(2)SR03_Build317, while trying to take  backup giving following error "Unknown error occurred while connecting to the host".
    I have found the solution in the Cisco and tried all the suggestion, still not working and same error observed. Due to backup issue we unable to do any changes on the CRS, when we try to create new agents, those agents are not reflecting in the CRS.
    Also I have observed bellow error , when try to re-sync the JTAPI,
    Error while handling the input   request.
    Top of Form
    Config Changes are not allowed during 'Backup' operation, which   was started by 'Scheduler' at 'Fri Jun 08 18:00:03 GMT+08:00 2012 '. Please   try again after 'Backup' is complete.
    Bottom of Form
    http://www.cisco.com/en/US/products/sw/custcosw/ps1846/products_tech_note09186a00809a752c.shtml
    Solution
    Complete these steps in order to resolve this issue:
    •1.      Access the UCCX server and navigate to Start > Run, and type CET.
    •2.      When the warning message appears, click NO.
    •3.      Choose com.cisco.crs.cluster.config.ArchiveAdminConfig.
    •4.      On the right side, double-click the record ID.
    •5.      Click the com.cisco.crs.cluster.config.ArchiveAdminConfig tab, and clear the password under Backup Storage.
    •6.      Click Apply.
    •7.      Navigate to Appadmin > Tools > Backup and Restore.
    •8.      Under Backup Storage Location, type the new password, and click Update.
    After you complete these steps, you can run the backup. If the backup fails, restart the server, and try the backup again. If the backup still fails, you can navigate to CET, clear all the fields, and then type the new information for the storage location.
    Please help me with your suggestions.
    Thanks & Regards,
    Naveen .S

    Please any one help me on this issue..

  • "cannot retrieve download information please connect to itunes" ? problem,

    what does "cannot retrieve download information please connect to itunes" mean?
    lately, my ipod has been acting weird, about 3 days ago, it wasn't able to access the 'Updates" section of the mobile store. Now it can, so I downloaded the Tap Tap update, it tells me to go hook it up to my computer and now this message pops up on my ipod every 5 min.

    I had this same problem with the message cannot retrieve download information please connect to itunes. Everything else on the ipod works fine, but you might notice that the ipod is displaying the wrong time, or the time keeps changing. the time thing sometimes occures with this problem just something esle I noticed wrong. The good news is that the problem is not with the ipod or your connection, It is a problem with Itunes, if your computer hibernates while itunes is open and you wake it up and plug your ipod in it screws up stuff with the itunes store and also messes with your time, to solve this problem all you need to do is to is to close itunes, reopen it plug your ipod in and hit sync. pluging your ipod into your computer after it has hibernated and itunes was open causes this problem, so just always restart Itunes before you plug in your ipod after hibernating. hope this helps

  • Error 809 while connecting IKEv2

    Hi Experts,
    I am trying to connect IKEv2 VPN connection to a RRAS VPN server on Server 2008 R2 but getting the error 809 while connecting from the client machine, I can easily connect the PPTP,L2TP and even SSTP but on IKEv2 is giving the error.
    Any suggestions for troubleshooting....??
    Thank You.
    TechSpec90

    Hi  Tecspec90 ,
    Error 809 is a network connection issue .
    We need to enable UDP port 500 and 4500 on firewall .
    Here is the detailed information for the error :
    Troubleshooting common VPN related errors :
    http://blogs.technet.com/b/rrasblog/archive/2009/08/12/troubleshooting-common-vpn-related-errors.aspx
    If the ports are enabled ,we could check the events of RRAS and NPS to find out the problem .
    Check the events of NPS ,the events would tell us why the connection is forbidden .
    If there is no events in NPS ,we could check the events in RRAS to find out what caused the problem .
    Best Regards,
    Leo
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Installed latest version of iTunes, now I cannot play music through my Airport express. I'm seeing the message "An error occurred while connecting to the AirPlay device "living room". The network connection failed.

    Installed latest version of iTunes, now I cannot play music through my Airport Express. I'm seeing the message "An error occurred while connecting to the AirPlay device "living room". The network connection failed..."Living room" is what I named the is what I named The AirPlay function of the Aport Express. Thanks!

    I have the same problem - did you solve it?

  • "An error occurred while connecting to the AirPlay device "Living Room Apple TV". An unknown error occurred (406)."

    This error message keeps popping up overtime I try to play an iTunes bought tv show from my mac book pro to my apple tv "An error occurred while connecting to the AirPlay device “Living Room Apple TV”. An unknown error occurred (406)."
    Does anyone know what this means and how to fix it. Both devices are registered on the same apple id and password. This problem just started happening within the last week or so but prior to that everything was working as it should have. In fact since the launch of icloud things have been glitchy for me with purchasing and playing off the apple tv as well.
    Can someone please help?'
    Thanks

    Unfortunately Apple's error codes are very much a mystery (at least to me), try restarting the Apple TV, iPad and router. If that doesn't help look into whether you might be encountering interference on your network.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel.

  • An error occurred while connecting to the AirPlay device "Apple TV". An unknown error occurred (-15000).

    Hi ,
    I acquired an Apple TV (Gen3) a couple of days ago.
    The Apple TV seems to be connected properly to WIFI (Good signal)
    I watched streaming videos on Youtube and film trailers – the speed is ok.
    I followed the protocol but, still, I cannot connect Itunes to the Apple tv.
    These are the error messages:
    On the TV : apple tv could not connect to library
    In Itunes: An error occurred while connecting to the AirPlay device “Apple TV”. An unknown error occurred (-15000).
                    Please note that Apple TV doesn’t appear in the list of devices in Itune’s preferences menu.
    The Home Share is enabled on both devices and I connected with the Same Apple ID on each device.
    Airplay is on.
    Ref Apple TV :
    Apple tv: Model MD199HC/A
    Serial number DY******RHN
    apple tv software : 5.3(6105)
    Imac: OS X version 10.8.4
    I already tried to :
    Unplug/plug modem and router
    Test connectivity
    Disable the Firewall
    Re-enable the firewall with Itunes in the list of ‘allowed’ devices
    Re-set Apple TV (3 times) + Up to date
    Re-start Apple TV and computer several time
    Itunes is up to date
    Could you please help?
    Many Thanks
    Sylvie
    <Edited By Host>

    Hi all,
    Thanks for your comments.
    In my knowledge, there isn't any security software active on my computer.
    After re-setting my routeur several times, I finally swapped it against an Airport Time Capsule.
    It solved the problem, however, I would be interested to know if a (less expensive) solution exists.
    Sylvie

  • I had itunes played from my PC to my music system that is connected through a nework.  It use to work fine, but now I get an error message that say "An error occured while connecting to the Airplay Device "Stereo".  An unknown error occured (-15000)".

    When trying to play itunes from my PC to my stereo connected to an Airport Express, I gen an error that says "An error occured while connecting to the Airplay device "Stereo" an unknown error occured (-15000)".  This has happened before and for reasons unknown to me, the problem corrects itself, then it starts again/  Makes me wish I did not have my music on itunes.

    moehadi, Welcome to the discussion area!
    This is typically caused by a firewall or Internet security software running on your PC. Please read the comments in "Error -3256 or -15000 when streaming to AirPort Express base stations using iTunes".
    Also there is "iTunes 8: Unknown error -15000 when attempting to stream music to devices connected to AirPort Express with AirTunes".

  • Error occured while connecting to FTP Server...

    Hi,
    I am trying to use the file adapter to pick the file from FTP server however file adapter raised the following error:
    Error occurred while connecting to the FTP server \"64.72.230.42:21\": java.net.ConnectException: Connection timed out: connect
    I changed the timeout of the communication channel to 1200 but still getting this error after a minute.
    The ftp server is working fine with my ftp client.
    Could you please help me to fix this issue ?

    I got the following message
    "Processing finished successfully" when the ftp folder did not have the required file.
    Do you mean, the connection is ok when there is no file in the source directory.
    Yes.
    However as soon as i put the file start getting the same error message.
    This could be then an authorization issue. Check if your source dir & file are having proper authorizations. Check with your BASIS guy.
    I set the source directory to a folder name which does not exit on ftp server. now i am getting "The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /user038888888888888888/input: The system cannot find the path specified:"
    So, do you think it is a problem of authorizations ? and if it is then how can i change it ? should i have to change the permissions of the folder on ftp server?
    Thanks for your support. I really appreciate your help. I almost spend a whole day trying to fix this issue.
    Regards,
    Ehsaan.

  • Image Ultra Builder 4.0: "An error occurred while connecting to server: Check the server"

    Ladies & gentlemen 
    I am using evaluation version of ImageUltra Builder 4.0 for Windows
    XP. Both server and console have been installed on the same machine.
    When I try to add a new repository, then after pressing the final
    "Finish" button I get the message "An error occurred while
    connecting to server: Check the server". 
    This message appears when the service IUServer runs. 
    I have not found any mention of this error neither in the Internet nor
    in the documentation. Can any one suggest what could have been done wrong?
    Thanks, Ilya Druker

    I've had the same problem when trying to generate a database on an external storage unit. When I create a new repository there are two option:
    1) Location: - This is the location where you want to store the files itself. This server does not have to have a database running on it
    2) Server: - This is the name of the server that actually runs the DB2 database that keeps track of the repositories. This server does not have to be the same as the location where you store the files. This could also be the IP address of the server, not necessarily the name.
    The documentation for this is somewhat confusing, but the above stuff works atleast. I have tried in never versions than 4.0 as well.

  • BIB-16613 Database access error occurred while connecting to the OLAP insta

    I am trying to connect to the database using the BI Beans sample bootstrap.jpr
    I am getting the BIB-16613 error.
    oracle.dss.security.BISecurityException: BIB-16613 Database access error occurred while connecting to the OLAP instance.
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    The bi_checkconfig utility gives me:
    C:\utils\JDev903\bibeans\bin>bi_checkconfig -h pavelr -po 1521 -sid LOCAL -u BIBDEMO -p BIBDEMO
    BI Beans Diagnostics(v1.0.0.0) 17/03/03
    ===============================================================================
    JDEV_ORACLE_HOME ............................. = C:\utils\JDev903
    JAVA_HOME .................................... = C:\OraHome1\jdk
    JDeveloper version ........................... = 9.0.3.1035 (Production)
    BI Beans version ............................. = 9.0.3.4.0
    BI Beans internal version .................... = 2.7.0.11.3
    Connect to database .......................... = Successful
    JDBC driver version .......................... = 9.2.0.1.0
    JDBC JAR file location ....................... = C:\utils\JDev903\jdbc\lib
    Database version ............................. = 9.2.0.2.1
    OLAP Catalog version ......................... = N/A
    OLAP AW Engine version ....................... = N/A
    OLAP API Server version ...................... = N/A
    BI Beans Catalog version ..................... = N/A; not installed in BIBDEMO
    OLAP API JAR file version .................... = 9.2
    OLAP API JAR file location ................... = C:\utils\JDev903\jdev\lib\ext
    Load OLAP API metadata ....................... = Successful
    Number of metadata folders ................... = 3
    Number of metadata measures .................. = 26
    Number of metadata dimensions ................ = 22
    Metadata output location ..................... = C:\utils\JDev903\bibeans\bin\bi_metadata.txt
    I can connect to OLAP BIBDEMO (and SH) schema using OEM.
    I can connect to BIBDEMO from JDev Connections (Catalog connection to BIBCAT, OLAP connection to BIBDEMO).
    How can I establish the connection from the bootstrap sample?
    Pavel

    Please try follow the steps under "Installing and Configuring the Samples "http://otn.oracle.com/products/bib/htdocs/samples/installing_samples.html - the section titled "Update the samples project settings".

  • An error occurred while connecting to the FTP server '127.0.0.1:14147'

    HI Experts,
    I have been tried Content Conversion by using the FTP. Under Adapter Monitoring --> Communication Channel monitoring i found this error:
    An error occurred while connecting to the FTP server '127.0.0.1:14147'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx:  4     '. For details, contact your FTP server vendor.
    Regards,
    -Prabhakar.A

    Hi
    Pl mention the error correctly, whats the FTP error code? (something like this: 426, 521)
    Could be due to 2 reasons:
    1) insufficient privileges
    2) wrong port
    Srikanth Srinivasan
    Edited by: Srikanth Srinivasan on Jun 20, 2010 2:19 PM

  • Error occurred while connecting to the FTP server: java.lang.NullPointerExc

    Hello Experts,
    I have a scenario wherein i have to send file from FTP to application server of ECC.
    I don't want to do any mapping and transformation; Just need to transfer the file as it is.
    I have achieved this using Integrated scenario.
    But in the sender communication channel i get an error saying "Error occurred while connecting to the FTP server "*.*.*.*:*": java.lang.NullPointerException"
    I have checked all my FTP parameters many times and everything is correct.
    Thanks,
    Lalit Mohan Gupta.

    Hi,
    You can check the connect test of FTP in either of the below ways.
    1. Use FTP Dos command (i.e go the run and type ftp..) and from there try to login to the source FTP server by using FTP Commands. If you are able to connect to the same then ask your basis to check the connectivity test from PI server.
    If you are not able to connect check the error you are getting and post the same if you are not able to resolve the same.
    2. There is Program from SAP which need to be deployed into Server and after that you can test the ftp connection by yourselves from PI server. Search in sap support for Connection Test SAP Note..
    HTH
    Rajesh

  • Error -42032 while connecting iPad2 to Windows PC / iTunes 10.5.0.142 to update iOS 5

    Error -42032 while connecting iPad2 to Windows PC / iTunes 10.5.0.142 to update iOS 5. After downloading iOS 5 I'll get error -3259 and the updateprocess of my iPad2 don't starts.

    I guess I should also note that sometimes it just crashes... just because.
    So, get to fixin'.
    No, seriously, fix it.

  • Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement: there has been an error occurred while connecting to Apple's online store try again

    Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement:
    there has been an error occurred while connecting to Apple's online store try again

    Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement:
    there has been an error occurred while connecting to Apple's online store try again

Maybe you are looking for