4 Replies Latest reply on Jul 9, 2013 2:41 AM by Dinesh Rathore

    RFC_ERROR_COMMUNICATION: Unable to get repository (OS-Linux 64bit)-JBoss-eap-6.1final

    Dinesh Rathore Newbie

      Hi All,

       

      Recently I've setup the Jboss-EAP-6.1-final on Linux 64 bit after deploying mine application there I'm getting below "Connect to SAP gateway failed" error.

       

      FYI.. same application running fine with Linux 32 bit.

       

      ----------------

       

      11:56:33,066 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 50) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SAPService' defined in class path resource [spring/applicationContext-sap.xml]: Invocation of init method failed; nested exception is com.goodyear.gss.sap.SAPException: Failed to start IDoc server

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring.jar:2.5.6]

              at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_24]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) [spring.jar:2.5.6]

              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) [spring.jar:2.5.6]

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) [spring.jar:2.5.6]

              at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) [spring.jar:2.5.6]

              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) [spring.jar:2.5.6]

              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring.jar:2.5.6]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.6.0_24]

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.6.0_24]

              at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.6.0_24]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]

              at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]

              at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: com.goodyear.gss.sap.SAPException: Failed to start IDoc server

              at com.goodyear.gss.sap.SAPAdaptor.startIDocServer(SAPAdaptor.java:136) [classes:]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_24]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.6.0_24]

              at java.lang.reflect.Method.invoke(Method.java:616) [rt.jar:1.6.0_24]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375) [spring.jar:2.5.6]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [spring.jar:2.5.6]

              ... 27 more

      Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Unable to get repository

              at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:140) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.DefaultServer.<init>(DefaultServer.java:107) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.idoc.jco.rt.DefaultJCoIDocServer.<init>(DefaultJCoIDocServer.java:41) [sapidoc3.jar:7.2002.20091030090249.0000]

              at com.sap.conn.idoc.jco.rt.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:17) [sapidoc3.jar:7.2002.20091030090249.0000]

              at com.sap.conn.idoc.jco.rt.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:13) [sapidoc3.jar:7.2002.20091030090249.0000]

              at com.sap.conn.jco.rt.DefaultServerManager.getServer(DefaultServerManager.java:108) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.StandaloneServerFactory.getServerInstance(StandaloneServerFactory.java:169) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.idoc.jco.JCoIDoc.getServer(JCoIDoc.java:96) [sapidoc3.jar:7.2002.20091030090249.0000]

              at com.goodyear.gss.sap.IDocServer.start(IDocServer.java:190) [classes:]

              at com.goodyear.gss.sap.SAPAdaptor.startIDocServer(SAPAdaptor.java:133) [classes:]

              ... 34 more

      Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed

      Connection parameters: TYPE=A DEST=GYO ASHOST=10.120.13.11 SYSNR=00 PCS=1

       

      LOCATION    CPIC (TCP/IP) on local host with Unicode

      ERROR       hostname 'sgcgssd1' unknown

      TIME        Mon Jul  8 11:56:32 2013

      RELEASE     720

      COMPONENT   NI (network interface)

      VERSION     40

      RC          -2

      MODULE      nixxhl.cpp

      LINE        193

      DETAIL      NiHLGetNodeAddr: hostname cached as unknown

      COUNTER     2

       

              at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:621) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1288) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:665) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:173) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:45) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:162) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:798) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:826) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:30) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:900) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:28) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:136) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              ... 43 more

      Caused by: RfcException: [null]

          message: Connect to SAP gateway failed

      Connection parameters: TYPE=A DEST=GYO ASHOST=10.120.13.11 SYSNR=00 PCS=1

       

      LOCATION    CPIC (TCP/IP) on local host with Unicode

      ERROR       hostname 'sgcgssd1' unknown

      TIME        Mon Jul  8 11:56:32 2013

      RELEASE     720

      COMPONENT   NI (network interface)

      VERSION     40

      RC          -2

      MODULE      nixxhl.cpp

      LINE        193

      DETAIL      NiHLGetNodeAddr: hostname cached as unknown

      COUNTER     2

       

          Return code: RFC_FAILURE(1)

          error group: 102

          key: RFC_ERROR_COMMUNICATION

       

              at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:94) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:84) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1281) [sapjco3.jar:20091026 0238 [7.30.1 (2009-10-01)]]

              ... 54 more

       

       

      Thanks, Dinesh.