Skip to Content
1
Oct 05, 2015 at 12:57 PM

Can´t log on to SAP System in ABAP for Eclipse

2631 Views

Hello Experts,

I have an Eclipse Mars Installation (I also tried Luna) on my MAC OSX machine and want to connect to a CAR System.

I can log in in the SAP Gui 7.40, but not in Eclipse.

I get the Error Message:

Anmeldung an System *** fehlgeschlagen (hostname 'My Computer Name' unknown)

I have added an entry to the /etc/hosts file with 127.0.0.1 My Computer Name, as mentioned here:

Edit: Here is the error Log

com.sap.adt.communication.exceptions.CommunicationException: hostname 'My Computer Name' unknown; Destination data=System Id [client=800, language=EN, systemConfiguration=Name={null} | SystemId=System ID | Host=Server | Server=null | SystemNumber=null | MessageServerService=18152 | Description=null | Group=PUBLIC | Origin=null | PreferredLanguage=null | PartnerName=null | SNCType=SNC_DISABLED | MessageServer=lServer | PreferredClient=null | PreferredUser=null | Router=null, user=User]

------------ Request -----------------------

GET /sap/bc/adt/core/discovery HTTP/1.1

User-Agent: Eclipse/4.5.1.v20150904-0015 ADT/2.48.0

X-sap-adt-profiling: server-time

at com.sap.adt.communication.internal.jco.dispatcher.JCoRequestDispatcher.handleJcoException(JCoRequestDispatcher.java:233)

at com.sap.adt.communication.internal.jco.dispatcher.JCoRequestDispatcher.dispatch(JCoRequestDispatcher.java:166)

at com.sap.adt.communication.internal.session.SystemSession.sendRequest(SystemSession.java:170)

at com.sap.adt.communication.internal.resources.RestResource.invoke(RestResource.java:170)

at com.sap.adt.communication.internal.resources.RestResource.get(RestResource.java:70)

at com.sap.adt.compatibility.internal.discovery.Discovery.createInstance(Discovery.java:84)

at com.sap.adt.compatibility.internal.discovery.Discovery.access$0(Discovery.java:72)

at com.sap.adt.compatibility.internal.discovery.Discovery$DiscoveryProxy.verifyDelegate(Discovery.java:166)

at com.sap.adt.compatibility.internal.discovery.Discovery$DiscoveryProxy.getCollectionMember(Discovery.java:201)

at com.sap.adt.compatibility.internal.graph.provider.GraphProviderFactory.getGraphProvider(GraphProviderFactory.java:39)

at com.sap.adt.compatibility.base.internal.graph.provider.GraphAnalyzer.processExtensionPointGraphProviders(GraphAnalyzer.java:275)

at com.sap.adt.compatibility.base.internal.graph.provider.GraphAnalyzer.isNodeAvailable(GraphAnalyzer.java:172)

at com.sap.adt.compatibility.base.internal.graph.provider.GraphAnalyzerProxy.isNodeAvailable(GraphAnalyzerProxy.java:124)

at com.sap.adt.compatibility.base.internal.graph.provider.GraphAnalyzerProxy.verifyIsLoaded(GraphAnalyzerProxy.java:89)

at com.sap.adt.compatibility.base.internal.graph.provider.GraphAnalyzerProxy.getGraphAnalyzer(GraphAnalyzerProxy.java:58)

at com.sap.adt.compatibility.base.internal.Activator.getCompatibilityGraphAnalyzer(Activator.java:92)

at com.sap.adt.compatibility.internal.graph.analyzer.CompatibilityGraphAnalyzer.<init>(CompatibilityGraphAnalyzer.java:21)

at com.sap.adt.compatibility.internal.graph.analyzer.CompatibilityGraphAnalyzer.<init>(CompatibilityGraphAnalyzer.java:17)

at com.sap.adt.compatibility.internal.Activator.getCompatibilityGraphAnalyzer(Activator.java:152)

at com.sap.adt.destinations.internal.logon.AdtLogonService$1.runInternal(AdtLogonService.java:176)

at com.sap.adt.communication.util.CancelableBlockingJob$BlockingJob.run(CancelableBlockingJob.java:227)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Caused by: com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Initialization of repository destination *** failed: Connect to SAP gateway failed

Connection parameters: TYPE=B DEST= MSHOST= MSSERV=18152 R3NAME= GROUP=PUBLIC PCS=1

LOCATION CPIC (TCP/IP) on local host

ERROR hostname '' unknown

TIME Mon Oct 5 15:31:53 2015

RELEASE 721

COMPONENT NI (network interface)

VERSION 40

RC -2

MODULE niuxi.c

LINE 1759

DETAIL NiPGetHostByName: '' not found

SYSTEM CALL getaddrinfo

COUNTER 1

at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:1031)

at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:29)

at com.sap.conn.jco.rt.RfcDestination.initRepository(RfcDestination.java:982)

at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:1094)

at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:34)

at com.sap.adt.communication.internal.jco.util.JCoFunctionBuilder.createFunctionBuilder(JCoFunctionBuilder.java:58)

at com.sap.adt.communication.internal.jco.dispatcher.JCoRequestDispatcherRestProtocolStrategy.createFunctionBuilder(JCoRequestDispatcherRestProtocolStrategy.java:138)

at com.sap.adt.communication.internal.jco.dispatcher.JCoRequestDispatcherRestProtocolStrategy.createRequestFunction(JCoRequestDispatcherRestProtocolStrategy.java:93)

at com.sap.adt.communication.internal.jco.dispatcher.JCoFunctionExecutor$1.createServiceRequest(JCoFunctionExecutor.java:217)

at com.sap.adt.communication.internal.jco.dispatcher.JCoFunctionExecutor.runInternal(JCoFunctionExecutor.java:112)

... 2 more

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

Connection parameters: TYPE=B DEST= MSHOST= MSSERV=18152 R3NAME= GROUP=PUBLIC PCS=1

LOCATION CPIC (TCP/IP) on local host

ERROR hostname '' unknown

TIME Mon Oct 5 15:31:53 2015

RELEASE 721

COMPONENT NI (network interface)

VERSION 40

RC -2

MODULE niuxi.c

LINE 1759

DETAIL NiPGetHostByName: '' not found

SYSTEM CALL getaddrinfo

COUNTER 1

at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:593)

at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1323)

at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:720)

at com.sap.conn.jco.rt.RepositoryConnection.connect(RepositoryConnection.java:53)

at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:117)

at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:352)

at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)

at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:326)

at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:1026)

... 11 more

Caused by: RfcException:

message: Connect to SAP gateway failed

Connection parameters: TYPE=B DEST= MSHOST= MSSERV=18152 R3NAME= GROUP=PUBLIC PCS=1

LOCATION CPIC (TCP/IP) on local host

ERROR hostname '' unknown

TIME Mon Oct 5 15:31:53 2015

RELEASE 721

COMPONENT NI (network interface)

VERSION 40

RC -2

MODULE niuxi.c

LINE 1759

DETAIL NiPGetHostByName: '' not found

SYSTEM CALL getaddrinfo

COUNTER 1

return code: RFC_FAILURE (1)

error group: 102

key: RFC_ERROR_COMMUNICATION

at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:248)

at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:98)

at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:87)

at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1287)

... 18 more

Do you have a solution for this?

Thanks and best regards,

Lukas