cancel
Showing results for 
Search instead for 
Did you mean: 

Web DynPro Question

Former Member
0 Kudos

I have a Web Dynpro application (an Employee Lookup App) deployed on the EP 7 portal. I have created the relevant Jco Destinations and these show up as "green" in the WebDynPro Content Administrator. I hence assume these work.

However, when I run the app it gives the following error in the browser:

Error Snippet:

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=socw3s1er15 GROUP=PUBLIC R3NAME=HFD MSSERV=sapmsHFD PCS=1 ERROR service 'sapmsHFD' unknown TIME Tue May 23 20:15:16 2006 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2: service 'sapmsHFD' not found SYSTEM CALL getservbyname_r COUNTER 1

Jco Destinations used are tested successfully in the Web Dynpro content administrator

(WD_EMPLOYEE_MODELDATA_DEST, WD_EMPLOYEE_METADATA_DEST)

Is there something else that needs to be configured? The error indicates that the app is unable to connect to the backend system(socw3s1er15).

I would really appreciate it if you could take a look at error and suggest a possible resolution.

Complete error in the browser:

Error Summary

While processing the current request, an exception occured which could not be handled by the application or the framework.

If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).

Root Cause

The initial exception that caused the request to fail, was:

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=socw3s1er15 GROUP=PUBLIC R3NAME=HFD MSSERV=sapmsHFD PCS=1 ERROR service 'sapmsHFD' unknown TIME Tue May 23 17:36:24 2006 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2: service 'sapmsHFD' not found SYSTEM CALL getservbyname_r COUNTER 2

at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)

at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:970)

at com.sap.mw.jco.JCO$Client.connect(JCO.java:3171)

at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:90)

at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:122)

... 62 more

See full exception chain for details.

System Environment

Client

Web Dynpro Client Type HTML Client

User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; DRS_E; .NET CLR 1.1.4322; InfoPath.1)

Version null

DOM version null

Client Type msie6

Client Type Profile ie6

ActiveX enabled

Cookies enabled

Frames enabled

Java Applets enabled

JavaScript enabled

Tables enabled

VB Script enabled

Server

Web Dynpro Runtime Vendor: SAP, build ID: 7.0007.20060331081328.0000 (release=645_VAL_REL, buildtime=2006-03-31:06:24:04[UTC], changelist=396896, host=pwdfm101), build date: Fri May 05 11:09:09 PDT 2006

J2EE Engine 7.00 patchlevel

Java VM Java HotSpot(TM) Server VM, version:1.4.2_11-b06, vendor: Sun Microsystems Inc.

Operating system Windows 2003, version: 5.2, architecture: x86

Session & Other

Session Locale en_US

Time of Failure Tue May 23 17:36:24 PDT 2006 (Java Time: 1148430984545)

Web Dynpro Code Generation Infos

local/TutWD_FlightList

SapDictionaryGenerationCore 6.4016.00.0000.20060119122443.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:24:49[UTC], changelist=385556, host=PWDFM026.wdf.sap.corp)

SapDictionaryGenerationTemplates (unknown)

SapGenerationFrameworkCore 6.4016.00.0000.20050818152155.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:17:12[UTC], changelist=363812, host=PWDFM026.wdf.sap.corp)

SapIdeWebDynproCheckLayer 6.4016.00.0000.20060119125616.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:35:09[UTC], changelist=385572, host=PWDFM026.wdf.sap.corp)

SapMetamodelCommon 6.4016.00.0000.20060119123849.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:18:19[UTC], changelist=385565, host=PWDFM026.wdf.sap.corp)

SapMetamodelCore 6.4016.00.0000.20060119123849.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:18:09[UTC], changelist=385565, host=PWDFM026.wdf.sap.corp)

SapMetamodelDictionary 6.4016.00.0000.20060119123716.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:21:53[UTC], changelist=385561, host=PWDFM026.wdf.sap.corp)

SapMetamodelWebDynpro 6.4016.00.0000.20060126165535.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:30:00[UTC], changelist=386862, host=PWDFM026.wdf.sap.corp)

SapWebDynproGenerationCTemplates 6.4016.00.0000.20060126165422.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:51:36[UTC], changelist=386861, host=PWDFM026)

SapWebDynproGenerationCore 6.4016.00.0000.20060119125616.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:35:38[UTC], changelist=385572, host=PWDFM026.wdf.sap.corp)

SapWebDynproGenerationTemplates 6.4016.00.0000.20060126165422.0000 (release=630_VAL_REL, buildtime=2006-02-12:21:51:36[UTC], changelist=386861, host=PWDFM026)

sap.com/tcwddispwda

No information available null

sap.com/tcwdcorecomp

No information available null

Detailed Error Information

Detailed Exception Chain

com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type extern:com.sap.tut.wd.flightlist.model.types.FlightModel:com.sap.tut.wd.flightlist.model.types.Bapisfldat could not be loaded: com.sap.dictionary.runtime.DdException: failed to create provider: Connect to message server host failed

Connect_PM TYPE=B MSHOST=socw3s1er15 GROUP=PUBLIC R3NAME=HFD MSSERV=sapmsHFD PCS=1

ERROR service 'sapmsHFD' unknown

TIME Tue May 23 17:36:24 2006

RELEASE 700

COMPONENT NI (network interface)

VERSION 38

RC -3

MODULE ninti.c

LINE 530

DETAIL NiPGetServByName2: service 'sapmsHFD' not found

SYSTEM CALL getservbyname_r

COUNTER 2

at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:305)

at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:229)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:654)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)

at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)

at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:443)

at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:381)

at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:410)

at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:79)

at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:121)

at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:117)

at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:207)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:654)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)

at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:690)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:536)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:705)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:560)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:300)

at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:204)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:359)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:670)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:267)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:40)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: com.sap.dictionary.runtime.DdException: failed to create provider: Connect to message server host failed

Connect_PM TYPE=B MSHOST=socw3s1er15 GROUP=PUBLIC R3NAME=HFD MSSERV=sapmsHFD PCS=1

ERROR service 'sapmsHFD' unknown

TIME Tue May 23 17:36:24 2006

RELEASE 700

COMPONENT NI (network interface)

VERSION 38

RC -3

MODULE ninti.c

LINE 530

DETAIL NiPGetServByName2: service 'sapmsHFD' not found

SYSTEM CALL getservbyname_r

COUNTER 2

at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:254)

at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:146)

at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:97)

at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:79)

at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:48)

at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)

at com.sap.dictionary.runtime.DdBroker.getStructure(DdBroker.java:180)

at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:303)

... 50 more

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:229)

... 57 more

Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed

Connect_PM TYPE=B MSHOST=socw3s1er15 GROUP=PUBLIC R3NAME=HFD MSSERV=sapmsHFD PCS=1

ERROR service 'sapmsHFD' unknown

TIME Tue May 23 17:36:24 2006

RELEASE 700

COMPONENT NI (network interface)

VERSION 38

RC -3

MODULE ninti.c

LINE 530

DETAIL NiPGetServByName2: service 'sapmsHFD' not found

SYSTEM CALL getservbyname_r

COUNTER 2

at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)

at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:970)

at com.sap.mw.jco.JCO$Client.connect(JCO.java:3171)

at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:90)

at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:122)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Navin

open services file from following

c:\winnt\system32\drivers\etc

check for following entry

sapmsHFD------> 36<instance_number>/tcp

if entry is missing createt the entry.

still problem persist

check ur SLD setting

regards,

kaushal

Answers (1)

Answers (1)

achim_hauck2
Active Contributor
0 Kudos

Navin,

you have to make an entry in your "services" file:

sapmsHFD 36<systemnr of HFD>/tcp

kr, achim

Former Member
0 Kudos

Thanks, Kaushal and Achim! the app works now!