RFC call does not work on mac os using jco lib and java





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















SAP RFC call doesnot work on mac os platform. Same code run on windows. There is interesting things that If I connect to sap using with SAP GUI, I successfully call RFC on mac. I use sap official jco lib for connection.



My local machine config:



 SAP Java Connector runtime information

Java Runtime:
Operating System : Mac OS X 10.12.4 for x86_64
Java VM : 1.8.0_121 Oracle Corporation
Default charset : UTF-8

Versions:
JCo API : 3.0.16 (2016-12-06)
JCo middleware : JavaRfc 2.2.19
JCo library : 721.800

Library Paths:
Path to JCo archive : /Users/**/sapcorejco/lib/sapjco3.jar
Path to JCo library : /Users/**/lib/darwinintel64/libsapjco3.jnilib


My erorr is



ERROR [hybrisHTTP10] [DefaultSAPRFCDestinationService] com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Initialization of destination SQ2 failed: Connect to SAP gateway failed


Detail:



LOCATION    CPIC (TCP/IP) on local host
ERROR timeout occured


I think, main problem related to MAC OS, because same code run in windows machine. Maybe we missing some library it come from sap gui? Is there anyone faced this issue?










share|improve this question































    -1















    SAP RFC call doesnot work on mac os platform. Same code run on windows. There is interesting things that If I connect to sap using with SAP GUI, I successfully call RFC on mac. I use sap official jco lib for connection.



    My local machine config:



     SAP Java Connector runtime information

    Java Runtime:
    Operating System : Mac OS X 10.12.4 for x86_64
    Java VM : 1.8.0_121 Oracle Corporation
    Default charset : UTF-8

    Versions:
    JCo API : 3.0.16 (2016-12-06)
    JCo middleware : JavaRfc 2.2.19
    JCo library : 721.800

    Library Paths:
    Path to JCo archive : /Users/**/sapcorejco/lib/sapjco3.jar
    Path to JCo library : /Users/**/lib/darwinintel64/libsapjco3.jnilib


    My erorr is



    ERROR [hybrisHTTP10] [DefaultSAPRFCDestinationService] com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Initialization of destination SQ2 failed: Connect to SAP gateway failed


    Detail:



    LOCATION    CPIC (TCP/IP) on local host
    ERROR timeout occured


    I think, main problem related to MAC OS, because same code run in windows machine. Maybe we missing some library it come from sap gui? Is there anyone faced this issue?










    share|improve this question



























      -1












      -1








      -1








      SAP RFC call doesnot work on mac os platform. Same code run on windows. There is interesting things that If I connect to sap using with SAP GUI, I successfully call RFC on mac. I use sap official jco lib for connection.



      My local machine config:



       SAP Java Connector runtime information

      Java Runtime:
      Operating System : Mac OS X 10.12.4 for x86_64
      Java VM : 1.8.0_121 Oracle Corporation
      Default charset : UTF-8

      Versions:
      JCo API : 3.0.16 (2016-12-06)
      JCo middleware : JavaRfc 2.2.19
      JCo library : 721.800

      Library Paths:
      Path to JCo archive : /Users/**/sapcorejco/lib/sapjco3.jar
      Path to JCo library : /Users/**/lib/darwinintel64/libsapjco3.jnilib


      My erorr is



      ERROR [hybrisHTTP10] [DefaultSAPRFCDestinationService] com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Initialization of destination SQ2 failed: Connect to SAP gateway failed


      Detail:



      LOCATION    CPIC (TCP/IP) on local host
      ERROR timeout occured


      I think, main problem related to MAC OS, because same code run in windows machine. Maybe we missing some library it come from sap gui? Is there anyone faced this issue?










      share|improve this question
















      SAP RFC call doesnot work on mac os platform. Same code run on windows. There is interesting things that If I connect to sap using with SAP GUI, I successfully call RFC on mac. I use sap official jco lib for connection.



      My local machine config:



       SAP Java Connector runtime information

      Java Runtime:
      Operating System : Mac OS X 10.12.4 for x86_64
      Java VM : 1.8.0_121 Oracle Corporation
      Default charset : UTF-8

      Versions:
      JCo API : 3.0.16 (2016-12-06)
      JCo middleware : JavaRfc 2.2.19
      JCo library : 721.800

      Library Paths:
      Path to JCo archive : /Users/**/sapcorejco/lib/sapjco3.jar
      Path to JCo library : /Users/**/lib/darwinintel64/libsapjco3.jnilib


      My erorr is



      ERROR [hybrisHTTP10] [DefaultSAPRFCDestinationService] com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Initialization of destination SQ2 failed: Connect to SAP gateway failed


      Detail:



      LOCATION    CPIC (TCP/IP) on local host
      ERROR timeout occured


      I think, main problem related to MAC OS, because same code run in windows machine. Maybe we missing some library it come from sap gui? Is there anyone faced this issue?







      sap jco saprfc sapjco3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 8 '18 at 16:12









      Trixx

      1,0641816




      1,0641816










      asked Oct 8 '18 at 11:54









      katsukatsu

      366519




      366519
























          2 Answers
          2






          active

          oldest

          votes


















          0














          The error "timeout occurred" from the local low-level CPIC layer of JCo is reported from the operating system's TCP/IP stack. It indicates that the partner host (the specified SAP gateway host) could not be reached or does not respond. The error happens below the SAP protocol layers, i.e. on some TCP/IP layer.



          If the SAP system is in general reachable and accessible with other programs or from other hosts of the same network segment, I suggest to switch on CPIC trace level 2 (-Dcpic.trace=2) and look into it, if this trace can help in identifying the root cause. For example, also issues with initializing the CPIC library are possible because the own IP address or hostname cannot be determined, or the own hostname cannot be resolved. I think it is required that 'ping <ownhostname>' without domain has to work. A working 'ping <ownhostname>.local' would not be sufficient as far as I know. If this would be the root cause, maybe it helps to add the ownhostname to the etc/hosts file.



          One can only guess here without having more details from the error message itself, the CPIC trace and knowledge about your network infrastructure and configuration. But you are for sure not lacking a library here.






          share|improve this answer

































            0














            I finally resolved problem. Problem related VPN applications. I use for vpn Tunnelblick application. We use side to side vpn and tunnelblick default version doesnot fully support. We changed version of tunnelblick solved all problems.Tunnelblick default version: 2.4.6 but I use 2.3.18 for side to side vpn. Tunnelblick configuration screen.






            share|improve this answer
























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52701699%2frfc-call-does-not-work-on-mac-os-using-jco-lib-and-java%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              The error "timeout occurred" from the local low-level CPIC layer of JCo is reported from the operating system's TCP/IP stack. It indicates that the partner host (the specified SAP gateway host) could not be reached or does not respond. The error happens below the SAP protocol layers, i.e. on some TCP/IP layer.



              If the SAP system is in general reachable and accessible with other programs or from other hosts of the same network segment, I suggest to switch on CPIC trace level 2 (-Dcpic.trace=2) and look into it, if this trace can help in identifying the root cause. For example, also issues with initializing the CPIC library are possible because the own IP address or hostname cannot be determined, or the own hostname cannot be resolved. I think it is required that 'ping <ownhostname>' without domain has to work. A working 'ping <ownhostname>.local' would not be sufficient as far as I know. If this would be the root cause, maybe it helps to add the ownhostname to the etc/hosts file.



              One can only guess here without having more details from the error message itself, the CPIC trace and knowledge about your network infrastructure and configuration. But you are for sure not lacking a library here.






              share|improve this answer






























                0














                The error "timeout occurred" from the local low-level CPIC layer of JCo is reported from the operating system's TCP/IP stack. It indicates that the partner host (the specified SAP gateway host) could not be reached or does not respond. The error happens below the SAP protocol layers, i.e. on some TCP/IP layer.



                If the SAP system is in general reachable and accessible with other programs or from other hosts of the same network segment, I suggest to switch on CPIC trace level 2 (-Dcpic.trace=2) and look into it, if this trace can help in identifying the root cause. For example, also issues with initializing the CPIC library are possible because the own IP address or hostname cannot be determined, or the own hostname cannot be resolved. I think it is required that 'ping <ownhostname>' without domain has to work. A working 'ping <ownhostname>.local' would not be sufficient as far as I know. If this would be the root cause, maybe it helps to add the ownhostname to the etc/hosts file.



                One can only guess here without having more details from the error message itself, the CPIC trace and knowledge about your network infrastructure and configuration. But you are for sure not lacking a library here.






                share|improve this answer




























                  0












                  0








                  0







                  The error "timeout occurred" from the local low-level CPIC layer of JCo is reported from the operating system's TCP/IP stack. It indicates that the partner host (the specified SAP gateway host) could not be reached or does not respond. The error happens below the SAP protocol layers, i.e. on some TCP/IP layer.



                  If the SAP system is in general reachable and accessible with other programs or from other hosts of the same network segment, I suggest to switch on CPIC trace level 2 (-Dcpic.trace=2) and look into it, if this trace can help in identifying the root cause. For example, also issues with initializing the CPIC library are possible because the own IP address or hostname cannot be determined, or the own hostname cannot be resolved. I think it is required that 'ping <ownhostname>' without domain has to work. A working 'ping <ownhostname>.local' would not be sufficient as far as I know. If this would be the root cause, maybe it helps to add the ownhostname to the etc/hosts file.



                  One can only guess here without having more details from the error message itself, the CPIC trace and knowledge about your network infrastructure and configuration. But you are for sure not lacking a library here.






                  share|improve this answer















                  The error "timeout occurred" from the local low-level CPIC layer of JCo is reported from the operating system's TCP/IP stack. It indicates that the partner host (the specified SAP gateway host) could not be reached or does not respond. The error happens below the SAP protocol layers, i.e. on some TCP/IP layer.



                  If the SAP system is in general reachable and accessible with other programs or from other hosts of the same network segment, I suggest to switch on CPIC trace level 2 (-Dcpic.trace=2) and look into it, if this trace can help in identifying the root cause. For example, also issues with initializing the CPIC library are possible because the own IP address or hostname cannot be determined, or the own hostname cannot be resolved. I think it is required that 'ping <ownhostname>' without domain has to work. A working 'ping <ownhostname>.local' would not be sufficient as far as I know. If this would be the root cause, maybe it helps to add the ownhostname to the etc/hosts file.



                  One can only guess here without having more details from the error message itself, the CPIC trace and knowledge about your network infrastructure and configuration. But you are for sure not lacking a library here.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 22 '18 at 8:36

























                  answered Nov 17 '18 at 17:28









                  TrixxTrixx

                  1,0641816




                  1,0641816

























                      0














                      I finally resolved problem. Problem related VPN applications. I use for vpn Tunnelblick application. We use side to side vpn and tunnelblick default version doesnot fully support. We changed version of tunnelblick solved all problems.Tunnelblick default version: 2.4.6 but I use 2.3.18 for side to side vpn. Tunnelblick configuration screen.






                      share|improve this answer




























                        0














                        I finally resolved problem. Problem related VPN applications. I use for vpn Tunnelblick application. We use side to side vpn and tunnelblick default version doesnot fully support. We changed version of tunnelblick solved all problems.Tunnelblick default version: 2.4.6 but I use 2.3.18 for side to side vpn. Tunnelblick configuration screen.






                        share|improve this answer


























                          0












                          0








                          0







                          I finally resolved problem. Problem related VPN applications. I use for vpn Tunnelblick application. We use side to side vpn and tunnelblick default version doesnot fully support. We changed version of tunnelblick solved all problems.Tunnelblick default version: 2.4.6 but I use 2.3.18 for side to side vpn. Tunnelblick configuration screen.






                          share|improve this answer













                          I finally resolved problem. Problem related VPN applications. I use for vpn Tunnelblick application. We use side to side vpn and tunnelblick default version doesnot fully support. We changed version of tunnelblick solved all problems.Tunnelblick default version: 2.4.6 but I use 2.3.18 for side to side vpn. Tunnelblick configuration screen.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 27 '18 at 8:38









                          katsukatsu

                          366519




                          366519






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52701699%2frfc-call-does-not-work-on-mac-os-using-jco-lib-and-java%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How to change which sound is reproduced for terminal bell?

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents