cancel
Showing results for 
Search instead for 
Did you mean: 

Context exception while opening a view

Former Member
0 Kudos

Hi,

When I try to launch a view in my WD app, I get the following exception. As far as I know, all input fields have been mapped to context attributes.

com.sap.tc.webdynpro.progmodel.context.ContextException: Path null does not point to an attribute, but to com.sap.tc.webdynpro.progmodel.generation.DelegatingView@1a48a84

at com.sap.tc.webdynpro.progmodel.context.Paths.createAttributePointer(Paths.java:94)

at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.CheckBox.getChecked(CheckBox.java:258)

at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.CheckBox.getChecked(CheckBox.java:295)

at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.CheckBoxAdapter.getChecked(CheckBoxAdapter.java:164)

at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.CheckBoxAdapter.getValue(CheckBoxAdapter.java:311)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.CheckBoxRenderer.render(CheckBoxRenderer.java:55)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutCellFragment(GridLayoutRenderer.java:739)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:388)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:310)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.render(GridLayoutRenderer.java:71)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1115)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.render(GroupRenderer.java:61)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:334)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:193)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:41)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutCellFragment(SingleColumnLayoutRenderer.java:582)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutFragment(SingleColumnLayoutRenderer.java:227)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.render(SingleColumnLayoutRenderer.java:66)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1115)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.render(GroupRenderer.java:61)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:334)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:193)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:41)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

Please advise how this can be resolved.

Thanks !

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

As already has been correctly stated, there seems to be a missing or wrong data binding of a CheckBox element.

How do you assign the binding path to this checkbox, in the view designer or at runtime?

A missing context binding should lead to an error message in the "Task" view of NWDS.

Armin

Former Member
0 Kudos

I made sure all checkboxes in the view I am trying to open are tied to a boolean value. However ther are other views that could have UI elements not bound to attributes. Not sure if this could be the issue. Could this be the case.

I can build the project with '0' errors.

Still getting error as detailed below.

-


com.sap.tc.webdynpro.progmodel.context.ContextException: Path null does not point to an attribute, but to com.sap.tc.webdynpro.progmodel.generation.DelegatingView@31fc6

at com.sap.tc.webdynpro.progmodel.context.Paths.createAttributePointer(Paths.java:94)

at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.CheckBox.getChecked(CheckBox.java:258)

at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.CheckBox.getChecked(CheckBox.java:295)

at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.CheckBoxAdapter.getChecked(CheckBoxAdapter.java:164)

at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.CheckBoxAdapter.getValue(CheckBoxAdapter.java:311)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.CheckBoxRenderer.render(CheckBoxRenderer.java:55)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutCellFragment(GridLayoutRenderer.java:739)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:388)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:310)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.render(GridLayoutRenderer.java:71)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1115)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.render(GroupRenderer.java:61)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:334)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:193)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:41)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutCellFragment(SingleColumnLayoutRenderer.java:582)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutFragment(SingleColumnLayoutRenderer.java:227)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.render(SingleColumnLayoutRenderer.java:66)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1115)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.render(GroupRenderer.java:61)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:334)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:193)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:41)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutCellFragment(SingleColumnLayoutRenderer.java:582)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutFragment(SingleColumnLayoutRenderer.java:227)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.render(SingleColumnLayoutRenderer.java:66)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:374)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:51)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:45)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:545)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:354)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:254)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:157)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:416)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:640)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

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

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)

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

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

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

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

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

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

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

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

Former Member
0 Kudos

It might be that. You have to give all the fields specified as mandatory.

Message was edited by: Noufal Kareem

Former Member
0 Kudos

Hi Srikanth,

I think the problem is that only. You have to bind all the check boxes with correct attributes if they are mandatory. Check when this error is coming and at that time which all views are loaded on the browser.

So, at the time of loading that view if it finds any elements inside that view without binding to context atrribute where it requires then it gives such error.

So, check it out.

Regards,

Bhavik

Former Member
0 Kudos

Thanks guys ! There was one lil check box that for some reason got 'un-bound' when I was trying to verify. For some reason in NWDS if you are in the checked field and click the entry in there, the value changes to false. I have rectified that.

Now, just to see if my view will pull-up, I dont have any methods that I added called in the wdDoInit, wdDoModifyView or wdDoExit functions, just to rule out the possibility of my code being the culprit. In other words they have no code.

But I get the message below...

-


java.lang.NullPointerException

at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.DropDownByIndexAdapter.setViewAndNodeElement(DropDownByIndexAdapter.java:229)

at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:231)

at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:64)

at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.LabelAdapter.getLabeledControlName(LabelAdapter.java:283)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.LabelRenderer.render(LabelRenderer.java:70)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutCellFragment(GridLayoutRenderer.java:739)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:388)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:310)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GridLayoutRenderer.render(GridLayoutRenderer.java:71)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1115)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.GroupRenderer.render(GroupRenderer.java:61)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:334)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:193)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:41)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:285)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:97)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutCellFragment(SingleColumnLayoutRenderer.java:582)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.renderSingleColumnLayoutFragment(SingleColumnLayoutRenderer.java:227)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SingleColumnLayoutRenderer.render(SingleColumnLayoutRenderer.java:66)

at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager

Is this something to do with binding as well ? Like I said before, project compiles with '0' errors.

Thanks !

Sri

Former Member
0 Kudos

Now seems a problem with the dropdownbyindex. Check that too.

Bind it to a node attribute of cardinality 0..n

Former Member
0 Kudos

The parent node of the attribute (cardinality 0..n) I am binding the drop down list is a singleton. Any issues with the node being a singleton ? Do let me know.

Thanks !

Former Member
0 Kudos

Problem was because dropdownlists were bound to nodes that were singletons. Changing them to non-singletons resolved the problem.

Thanks to one'n all!

Former Member
0 Kudos

Hi Srikanth,

I think you have bound check box check property to value attribute of type boolean but you do not have assigned any value to it.

Just check it if you dont haave assigned value then initialize it with true or false.

Regards,

Bhavik

Former Member
0 Kudos

Hi Bhavik

What is the value of a boolean attribute if un intialized?? Since it is boolean it can have either true or false and nothing else

Regards

Pran

Former Member
0 Kudos

Hi Srikanth

You have not bound the checkbox to any attribute. Try to bind it to an attribute of the type boolean

Regards

Pran