Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4137

Unable to create SAP destination endpoints if there is no SAP server endpoint.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: jboss-fuse-6.2.1
    • Component/s: SwitchYard
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      • Copy libraries libsapjco3.so, sapjco3.jar, sapidoc3.jar into $FUSE_HOME/lib
      • Append the following packages to property org.osgi.framework.system.packages.extra in etc/config.properties
        • com.sap.conn.idoc, com.sap.conn.idoc.jco, com.sap.conn.jco, com.sap.conn.jco.ext, com.sap.conn.jco.monitor, com.sap.conn.jco.rt, com.sap.conn.jco.server
      • Add user admin:admin
      • Start Fuse

      git clone -c http.sslverify=false https://gitlab.mw.lab.eng.bos.redhat.com/jbossqe-soa/jbossqe-fsw-it.git
      cd jbossqe-fsw-it
      mvn clean install -Pjboss-fuse -pl :sap-test -am -Ddisable.groovy.compiler=true
      

      => Test trfcAndSrfcDestinationTest should work, but TmpService is only workaround service.

      • Remove TmpService from switchyard.xml (lines 38-54)
      • Run test again

      => Test trfcAndSrfcDestinationTest should FAIL! Why?

      Show
      Copy libraries libsapjco3.so , sapjco3.jar , sapidoc3.jar into $FUSE_HOME/lib Append the following packages to property org.osgi.framework.system.packages.extra in etc/config.properties com.sap.conn.idoc, com.sap.conn.idoc.jco, com.sap.conn.jco, com.sap.conn.jco.ext, com.sap.conn.jco.monitor, com.sap.conn.jco.rt, com.sap.conn.jco.server Add user admin:admin Start Fuse git clone -c http.sslverify=false https://gitlab.mw.lab.eng.bos.redhat.com/jbossqe-soa/jbossqe-fsw-it.git cd jbossqe-fsw-it mvn clean install -Pjboss-fuse -pl :sap-test -am -Ddisable.groovy.compiler=true => Test trfcAndSrfcDestinationTest should work, but TmpService is only workaround service. Remove TmpService from switchyard.xml (lines 38-54) Run test again => Test trfcAndSrfcDestinationTest should FAIL ! Why?

      Description

      SwitchYard SAP destination endpoint cannot be created if no SAP server endpoint is present. I did not find similar issue in pure Camel, only in SwitchYard. I had to create a dummy SAP server endpoint as workaround. Then jco-server was initialised and my test worked.

      Caused by: java.lang.NullPointerException
      	at org.fusesource.camel.component.sap.SapRfcDestinationEndpoint.createRequest(SapRfcDestinationEndpoint.java:110)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                igarashitm Tomohisa igarashi
                Reporter:
                mbasovni Martin Basovnik
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: