on 04-01-2010 2:40 PM
Hi,
i have no idea, we have implement a messagearea and everything is working fine in dev and quality systems. But on production we get this:
The initial exception that caused the request to fail, was:
java.lang.NoSuchMethodException: com.sap.tc.webdynpro.clientserver.uielib.pattern.api.IWDMessageArea.<init>(com.sap.tc.webdynpro.progmodel.view.View, java.lang.String)
at java.lang.Class.getConstructor0(Class.java:1937)
at java.lang.Class.getConstructor(Class.java:1027)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:149)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:177)
at com.bosch.crm.tt.wbmb.component.wdp.InternalHeaderView.wdCreateUITree(InternalHeaderView.java:270)
... 36 more
Any idea?
Stefan
Edited by: Stefan Porges on Apr 1, 2010 3:45 PM
Now I see, for some user it works, for some not.
hi
it looks like the lib version in your DEV QA PRD may be different.
Best regards,
john
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am also facing the same exception after code migration to 7.4.
com.sap.tc.webdynpro.services.exceptions.CreationFailedException: Cannot create view element implementation for interface com.sap.tc.webdynpro.clientserver.uielib.pattern.api.IWDMessageArea. (Have you declared a library usage at the Web Dynpro component?)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElementWithUncheckedId(ViewElementFactory.java:160)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:135)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:159)
at com.pg.dc_volumenonsapmat.views.volumeoverrideview.VolumeOverrideView.wdDoModifyView(VolumeOverrideView.java:256)
at com.pg.dc_volumenonsapmat.views.volumeoverrideview.wdp.InternalVolumeOverrideView.wdDoModifyView(InternalVolumeOverrideView.java:3552)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:94)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:746)
at com.sap.tc.webdynpro.progmodel.window.ViewController.modifyView(ViewController.java:254)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:432)
at com.sap.tc.webdynpro.clientserver.phases.ModifyViewPhase.execute(ModifyViewPhase.java:69)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
.......
Caused by: java.lang.NoSuchMethodException: com.sap.tc.webdynpro.clientserver.uielib.pattern.api.IWDMessageArea.<init>(com.sap.tc.webdynpro.progmodel.view.View, java.lang.String)
Please suggest the possible reason for this exception as IWDMessageArea is working fine in other migrated applications.
Hi Govardan,
Webdynpro java DC has been already migrated to 7.4 and below steps are followed for migration:
1. 7. 0 code migration using auto migration wizard.
2. Deprecated dependencies are removed/replaced as per sap recomendation.
3. Project Repair for Classpath, structure and Internal API usage
4. Rebuild the project
5. Added the import statements for 'IWDMessageArea' & 'IWDTransparentContainer' and fixed all code related errors.
6.Build the project the project and deployed successfully
7. I get this error on portal while testing this application
java.lang.NoSuchMethodException:com.sap.tc.webdynpro.clientserver.uielib.pattern.api.IWDMessageArea.<init>(com.sap.tc.webdynpro.progmodel.view.View, java.lang.String)
Please suggest the possible reason for this error.
Hi Govardan,
There is no error in build and deployment of this DC.
all the message area added in views are generated on runtime, so there is no choice for deleting and adding it again at design time.
There is one more point to note, other 5 DCs present in the same SC are not throwing any errors for IWDMessageArea api.
public static void wdDoModifyView(IPrivateVolumeOverrideView wdThis, IPrivateVolumeOverrideView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view,
boolean firstTime)
{
if(firsttime){
IWDTransparentContainer l_trc = (IWDTransparentContainer) view.getElement("trc_messagearea");
IWDMessageArea l_ma = (IWDMessageArea)view.getElement("msg_dynmessagearea");
if(l_ma!=null){
l_ma.destroy();
}
l_ma = (IWDMessageArea)view.createElement(IWDMessageArea.class, "msg_dynmessagearea"); //Error comes on this line
// l_ma.setEnabled(true);
// l_ma.setVisible(WDVisibility.VISIBLE);
// l_trc.addChild(l_ma, 0);
}
}
hi simran,
here
{
if(firsttime){
IWDTransparentContainer l_trc = (IWDTransparentContainer) view.getElement("trc_messagearea");
IWDMessageArea l_ma = (IWDMessageArea)view.getElement("msg_dynmessagearea");
if(l_ma!=null){
l_ma.destroy();
}
l_ma = (IWDMessageArea)view.createElement(IWDMessageArea.class, "msg_dynmessagearea"); //Error comes on this line
// l_ma.setEnabled(true);
// l_ma.setVisible(WDVisibility.VISIBLE);
// l_trc.addChild(l_ma, 0);
}
Here the code is correct ,can u please give more detail on this.. like full error stack ...
Regards
Govardan Raj S
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.