Skip to Content
author's profile photo Former Member
Former Member

Error....Plz help

Hi Experts,

In my Application i have two screens.

On one screen i have a button named DELETE.When i click this button it should navigate to the next screen which has the layout and functionality.

But when i click on the first screen button.I get the following Exception.

com.sap.tc.webdynpro.services.exceptions.CreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Caption

* at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:161)*

* at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:177)*

* at com.test.testapp.wdp.InternalDeleteOperation.wdCreateUITreeForGroup(InternalDeleteOperation.java:282)*

* at com.test.testapp.wdp.InternalDeleteOperation.wdCreateUITree(InternalDeleteOperation.java:259)*

* at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.createUITree(DelegatingView.java:74)*

* at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:443)*

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

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

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

* at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:789)*

* at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:296)*

* at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:767)*

* at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)*

* at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)*

* at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)*

* at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)*

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

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

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

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

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

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

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

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

* 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:401)*

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

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

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

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

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

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

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

* 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: java.lang.reflect.InvocationTargetException

* at sun.reflect.GeneratedConstructorAccessor2091.newInstance(Unknown Source)*

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

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

* at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:151)*

* ... 39 more*

Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "Header" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Caption

* at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:735)*

* at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:40)*

* at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:168)*

* at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractCaption.<init>(AbstractCaption.java:87)*

* at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Caption.<init>(Caption.java:83)*

* ... 43 more*

Please help me out so that i can proceed further.

I have checked the navigation part like inbounds and outbounds,all are given correctly.

help me out to resolve this issue.

Regards,

Chandrashekar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 06:16 AM

    Hi chandrashekar,

    In Outline check the <b>id </b> property of the <b> Caption-Header </b> view elements from the properties window it seems some of the ids are duplicate it should be unique.

    Other wise delete the container elements and design the view layout once again.

    dynpro-table--dynamically-change-table-header-name

    Regards,

    Mithu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 06:17 AM

    Hi Chandrasekhar

    Are you using another other operation in the onAction event of button other than navigation statement

    wdThis.wdfireplug<>();

    Best Regards

    Chaitanya.A

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 06:48 AM

    Hi,

    Cannot add element with duplicate ID "Header" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Caption

    Above error clearly mention that the UIelement is duplicated, if you are creating UI Elements at runtime make sure that the same id is not used mulitple time and create the UI element only once by making use of the parameter isFirstTime which is part of the wdDoModify Method.

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:09 AM

    Since the error has occured while creating an element, make sure that the element name is unique accross your views. You can follow an approach of "Increment Counter" appended to the ElementID name u provide. In short, be certain to keep the name Uinque.

    Regards,

    Kunal Kotak

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.