on 08-11-2008 12:00 PM
I am creating an application in dyn pro and i have got errors at the code which is generated by dyn pro automatically. I have imported the zip file TutWD_EJBinWD_Init .The errors are generated on the following lines.
private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
this.wdControllerAPI = wdThis.wdGetAPI();
this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
public void onActionSubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
public void onActionReset(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
I've had the same problem and reason has never been the generated code, it has always been something i did wrong and that was reflected in the generated code.
The reasons for me have been from a bad mapped context attribute to common errors like a unresolved . , ; or {
It really hard to find errors lik that and for me, rebuilding the project only made worse things (when it was of bad mapping context)
The bad mapping i remember was actually with model attributes which cannot be individually bound, I have always to delete all the node content and recreate and rebind everything inside.
Hope that helps a little
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HiFabian,
I do have the standard SAP API files and classes as the automatically generated code in other applications can access these classes stored in com.sap.tc.
I cant access the api functions only in this particular application..
I am using Nwds v 7.0.10 an java 1.4.2
Edited by: Nikhil Tapkir on Aug 12, 2008 6:47 AM
i really coudnt find a solution to this.. thank u all for helping i wld probably go wid the opton of reinstalling NWDS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nikhil,
so in fact that u can access the WD API i think that something went wrong when you have importet the tutorial.
In fact that it is an tutorial i do not think that there is any error inside it and i dont think that you have to check all the code for any errors.
I think maybe you have choosen a diffrent packe or application name while creating the application and now after the import the package qualifier or the application name or anything like this does not match with the tutorial code.
Was there any information which name and packages do you have to use for the tutorial?
Where can i download the tutorial? Did you have an link so that i'm able to import it in my development workplace. It would be easier for me to find the error.
kind regards
Fabian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have faced such issues so many times and in the beginning I thought the same that the autmatic code generation process isn't efficient and error free. I tried all the stuff and suggestions mentioned here, but all in vain. But with time I learned that my programming errors that are causing series of errors that are actually not there.
My suggestion is, go to through the every line of error message(not in the code but in the task list section, may on right side tab), i hope you will find one or two culprits that might be causing this series of errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
is it possible, that you do not have the standard SAP API files and classes?
I think if the compiler says that he can't find or resolve com.sap.tc i think you haven't got these classes.
What Version of NWDS do you have installed and which application server and Java version are you using?
Can you access any standard web dynpro api functions?
kind regards
Fabian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi jhansi,
even your solution did not help. thanks 4 tryin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when i try clearing the errors it says com.sap.tc cannot be resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go to the Problems tab and clear all the errors first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.