on 12-05-2008 11:49 AM
Hi there,
I´m trying to launch NWCE 7.1 Webdynpro applications accessing ABAP function with no success.
The landscape consists of an SAP NWCE 7.1 EHP1 (Trial) and an SAP NW 2004s ABAP (Licensed). NW2004s is configured as Gateway and Message Server for the SLD. I can ping/test JCOs successfully and the SLD seems to work fine. RZ70 and SM59 show no errors in the "R3" side and both systems seem to be well-registered as Technical Systems.
I have done some simple examples in Developer Studio to ensure that the conection between both stacks is going well, but I have allways the same issue regardless using ARFC/ARFC2, new projects/old existing projects, etc.
When I test for first time the application, the following exception is thrown:
Caused by: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The function module "DD_DTEL_GET" cannot be used for 'remote' calls.
at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:456)
at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1416)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:4168)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3596)
at com.sap.mdi.jco6.Destination.execute(Destination.java:29)
... 136 more
If I refresh the page the last exception disappears and a new one is thrown:
#2# local/prjWD_Acceso_ABAP/FlightListApp#java.lang.NullPointerException
at com.sap.mdi.ddtypes.DDDataelement.getDescription(DDDataelement.java:305)
at com.sap.dictionary.types.mdi.util.TextServices.getDescription(TextServices.java:165)
at com.sap.dictionary.types.mdi.util.TextServices.getQuickInfo(TextServices.java:145)
at com.sap.dictionary.runtime.DdDataType$TextService.getQuickInfo(DdDataType.java:220)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:385)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:355)
at com.sap.tc.webdynpro.progmodel.context.MappedAttributeInfo.getDisplayText(MappedAttributeInfo.java:292)
at com.sap.tc.webdynpro.progmodel.view.ViewElement._getText(ViewElement.java:818)
at com.sap.tc.webdynpro.progmodel.view.UIElement.getTooltip(UIElement.java:515)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter$OrdinaryField.getTooltip(InputFieldAdapter.java:8201)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter$OrdinaryField.getParameter(InputFieldAdapter.java:7496)
at com.sap.tc.ls.renderer.ie6.LSInputFieldRenderer.render(LSInputFieldRenderer.java:160)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:152)
at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:519)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:130)
at com.sap.tc.ls.renderer.ie6.LSColumnLayoutRenderer.renderColumnLayoutCellFragment(LSColumnLayoutRenderer.java:1882)
at com.sap.tc.ls.renderer.ie6.LSColumnLayoutRenderer.renderColumnLayoutRowFragment(LSColumnLayoutRenderer.java:1715)
at com.sap.tc.ls.renderer.ie6.LSColumnLayoutRenderer.renderColumnLayoutFragment(LSColumnLayoutRenderer.java:1600)
...
Then, editing the application in Dev. Studio, if I delete tables and/or single fields binded to model context, the last exception doesn´t appear any more but the application enter in the catch section executing the BAPI call:
try
{
wdContext.currentBapi_Flight_Getlist_InputElement().modelObject().execute();
}
catch(Exception ex)
{
wdComponentAPI.getMessageManager().reportException("Execute error."+ex.toString()+ex.getMessage());
StackTraceElement errores[] = ex.getStackTrace();
String errorSTR = new String();
for (int i = 0; i < errores.length; i++){
errorSTR += errores<i>.toString() + "
";
}
wdComponentAPI.getMessageManager().reportException(errorSTR);
}
wdComponentAPI.getMessageManager().reportSuccess("After catch.");
// Resynchronise the data in the context with the data in the model
wdContext.nodeOutput().invalidate();
The first two exception seem to be related each other, and it is true that FM "DD_DTEL_GET" is not RFC enabled in R3. Should it be RFC enabled?
As far as I know, one of the JCO conectors is used for retrieving metadata, that is, data related to types, lenghts, etc. The FM "DD_DTEL_GET" is used for that kind of operations and the second exception is related to that aswell (com.sap.mdi.ddtypes.DDDataelement.getDescription).
I don´t know what else should I test in order to launch an RFC function from WDJ and the trial version is about to expire!
Does anyone know about any oss note or any other tips related to this issue, please?
I am going to test the conectivity via Visual Composer and see whether it´s possible :S
Let me know if you need anymore info about the situation.
Thanks a lot!
Hi
As per my knowledge is concerned this error is due to short dump in the RFC which you are calling from the webdynpro application,Please check the RFC execution in the back end and check the destinations in content Administrator.
Regards
Kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I also encountered this issue. The following actions help me to fix this problem :
(1) Logon to the SAP system where the ABAP function exist. Use T-code "SE37" to change the attribute of function module "DD_DTEL_GET". Then set the function module to "remote-enabled". Please refer to SAP Notes 1244067 to get more detail information.
(2) If you have following error after applying previous action :
java.lang.NullPointerException
at com.sap.mdi.ddtypes.DDDataelement.getReptext(DDDataelement.java:166)
at com.sap.dictionary.types.mdi.util.TextServices.getColumnLabel(TextServices.java:115)
at com.sap.dictionary.runtime.DdDataType$TextService.getColumnLabel(DdDataType.java:212)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:379)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:355)
at com.sap.tc.webdynpro.progmodel.view.ViewElement._getText(ViewElement.java:818)
Please refer to this wiki post article : Link: [Adaptive RFC2 Model NW CE 7.1 java.lang.NullPointerException|https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/adaptiveRFC2ModelNWCE7.1java.lang.NullPointerException]
This article describe the resons why this error occurs and the solutions to fix and avoid the error
You can also refer to this tutorial : Link: [Consuming RFC2 Model Using WebDynpro Java CE 7.11|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0b102ea-efff-2b10-b3aa-d9e84a2c6bb6]
Edited by: Wester wei on Apr 7, 2009 8:19 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I was facing the same issue with CE 7.1 trial version. The solution I found out is very wierd but it works in my case. Rather then doing an apply template insert the UI elements one by one and bind the context attributes with these UI elements.
For example I wanted to display data in a table, so in the root ui elemtnet I inserted Table and then in table inserted column and then in column inserted caption as table cell editor.
Try this out once, probably it will work for you too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly update if you found any solution to this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I´m sorry but I could not solve the problem. I have been testing R3 BAPIS from Visual Composer without any problem, but I cannot launch them via Webdynpro Java.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vicente,
Did u got any solution, I am getting same error even after implementing notes 1244067.
regards,
Sukanta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Check Note 1057548 - function module : RFC_ERROR_SYSTEM_FAILURE
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again,
The issue hasn´t been solved yet :(.
After applying Note 1244067 the function module has the RFC flag checked but the Null Pointer exception are still there.
java.lang.NullPointerException
at com.sap.mdi.ddtypes.DDDataelement.getReptext(DDDataelement.java:166)
at com.sap.dictionary.types.mdi.util.TextServices.getColumnLabel(TextServices.java:115)
at com.sap.dictionary.runtime.DdDataType$TextService.getColumnLabel(DdDataType.java:212)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:379)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:355)
at com.sap.tc.webdynpro.progmodel.view.ViewElement._getText(ViewElement.java:818)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Caption.getText(Caption.java:369)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$HeaderCell.getHeaderText(TableAdapter.java:11441)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$HeaderCell.getParameter(TableAdapter.java:11043)
at com.sap.tc.ls.renderer.ie6.LSSapTableHeaderCellRenderer.renderSapTableHeaderCellFragment_iteration(LSSapTableHeaderCellRenderer.java:2421)
at com.sap.tc.ls.renderer.ie6.LSSapTableRowRenderer.renderSapTableRowFragment(LSSapTableRowRenderer.java:223)
at com.sap.tc.ls.renderer.ie6.LSSapTableRowRenderer.render(LSSapTableRowRenderer.java:122)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:152)
at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:519)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:130)
at com.sap.tc.ls.renderer.ie6.LSSapTableDefaultBodyRenderer.renderSapTableDefaultBodyFragment(LSSapTableDefaultBodyRenderer.java:301)
at com.sap.tc.ls.renderer.ie6.LSSapTableDefaultBodyRenderer.render(LSSapTableDefaultBodyRenderer.java:119)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:152)
at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:519)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:130)
...
Language resources data in the webdynpro are: Current locale = "es", Default VM locale = "es_ES". The backend default language is "EN". Could this be a problem in order to retrieve descriptions or any other language dependent data?
Thank you
Vicente.
Dear Vicente,
java.lang.NullPointerException
at com.sap.mdi.ddtypes.DDDataelement.getReptext(DDDataelement.java:166)
at com.sap.dictionary.types.mdi.util.TextServices.getColumnLabel(TextServices.java:115)
at com.sap.dictionary.runtime.DdDataType$TextService.getColumnLabel(DdDataType.java:212)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:379)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.getDisplayText(DataAttributeInfo.java:355)
at com.sap.tc.webdynpro.progmodel.view.ViewElement._getText(ViewElement.java:818)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Caption.getText(Caption.java:369)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$HeaderCell.getHeaderText(TableAdapter.java:11441)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$HeaderCell.getParameter(TableAdapter.java:11043)
at com.sap.tc.ls.renderer.ie6.LSSapTableHeaderCellRenderer.renderSapTableHeaderCellFragment_iteration(LSSapTableHeaderCellRenderer.java:2421)
at com.sap.tc.ls.renderer.ie6.LSSapTableRowRenderer.renderSapTableRowFragment(LSSapTableRowRenderer.java:223)
at com.sap.tc.ls.renderer.ie6.LSSapTableRowRenderer.render(LSSapTableRowRenderer.java:122)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:152)
at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:519)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:130)
at com.sap.tc.ls.renderer.ie6.LSSapTableDefaultBodyRenderer.renderSapTableDefaultBodyFragment(LSSapTableDefaultBodyRenderer.java:301)
at com.sap.tc.ls.renderer.ie6.LSSapTableDefaultBodyRenderer.render(LSSapTableDefaultBodyRenderer.java:119)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:152)
at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:519)
at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:130)
...
I also met this error, how did you resolve it?
Best Regards.
Jiandong
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.