on 06-24-2008 3:31 PM
Hi folks,
we are facing a strange problem with a web dynpro java project. we are using DCs, there are two DCs involved, rested in two different SCs.
There is a "common" DC which contains basic classes, and a "ui" DC of type WebDynpro. ui uses common, has used DC reference on API and LIB.
at the beginning we defined some classes in common, and it all went fine. After a while I wanted to add a private field to a Class and public getter and setter. When I use the class in the ui DC (calling getter method) it results in a NoSuchMethodError during runtime:
java.lang.NoSuchMethodError: com.minol.mares.common.to.KeyValueTO.isShowPar14PopUp()Z
showPar14PopUp is the field name
when accessing the field directly (changed it to public) I am given a java.lang.NoSuchFieldError: showPar14PopUp
A strange Detail is the "Z" which is there probably accidentally maybe theres a bug, never saw it. its always coming with a "Z"
The local eclipse build and the DC build run without complications. I undeployed the web dynpro Application, deleted and added the used DCS, I checked and decompiled the deployed archive (ear and containing jar). I restarted the WebAS, let it run on two different machines...
It behaves just as if the DC is locally built but not used at runtime
probably it still uses the "old" DC version but how can i be sure of that, and how to make it use the new one?
using WebAS 2004 SP19
thanks for suggestions
Stefan
PS: this is a decent prob don't try sending me help.sap links
Hi,
I have also faced this error.
Build & Deploy common DC . Then again build & deploy DC using the common DC.
This solved the problem in my case.
Regards,
Apurva
Edited by: Apurva on Jun 25, 2008 4:16 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right,
But it wasn'tdirectly common dc I could deploy, because it is a java DC.
The problem was that common DCwas also used in a WebDynpro used component, which had a reference, but wasn't included in the original WebDynpro ear.
The class loader loaded the used WDJ DC which contained a common jar, and didn't load the new one.
regards
Stefan
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.