on 04-02-2008 2:55 PM
Hi All,
I am getting errors IPrivateView ,wdContext can't be resolved.
I set the classpath and repaired project also.
Plz give me the reply.It's urgent.
Thanks
Shirisha
hi,
the IprivateView is not resolved because you have to import the class.
rightclick>source>organizeimports.
will resolve ur problem
thanks and regards
fazal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai Shrisha,
Lets try it this way,
Create a new web dynpro project.Check if there is any prob in that.If no problem then Check the library references ,object.lang are there in the project which your using.May be some files get missed out during project restructure.So you check all and if you find rt.jar or any files missing do find the location from the new project and add them to your project.hope this helps.
Thanks n Regards
Sharanya.R
Once I also got the similiar error. Then after looking in to the code structure carefully I found out that one of my Action had no methods associated with it. I had deleted a method without deleting it's associated Action.
Navigate to Actions tab in IPrivateView and see whether any of Actions have been dis associated with it's method. If it is then either delete that Action or restore the method which was associated with that Action.
Regards,
Gopal
Collection col = new ArrayList();
IPublicApp.IDummynodeElement ele = wdContext.createDummynodeElement();
int size = wdContext.nodeFamily().size();
for (int i = 0 ; i< size-1;i++)
{
if (wdContext.nodeFamily().isSelected(i))
{
ele.setSecondaddress(wdContext.nodeFamily().getFamilyElementAt(i).getSecondaddress());
ele.setStreet(wdContext.nodeFamily().getFamilyElementAt(i).getStreet());
ele.setSubtype(wdContext.nodeFamily().getFamilyElementAt(i).getSubtype());
ele.setSurnameprefix(wdContext.nodeFamily().getFamilyElementAt(i).getSurnameprefix());
ele.setTaxnumber(wdContext.nodeFamily().getFamilyElementAt(i).getTaxnumber());
ele.setTaxoffice(wdContext.nodeFamily().getFamilyElementAt(i).getTaxoffice());
ele.setTelephonenumber(wdContext.nodeFamily().getFamilyElementAt(i).getTelephonenumber());
ele.setThirdaddress(wdContext.nodeFamily().getFamilyElementAt(i).getThirdaddress());
ele.setValidbegin(wdContext.nodeFamily().getFamilyElementAt(i).getValidbegin());
ele.setValidend(wdContext.nodeFamily().getFamilyElementAt(i).getValidend());
col.add(ele);
}
}
wdContext.nodeDummynode().bind(col);
and call this method in view controller(first u creat one method in component controller and write that above coading)
one more thing i wnat to know for what ur using that code please reply
Hi Shirisha,
If u delete any Mapping from Controller to view u ill get this error.
Delete all the links you have with controller i.e model and value node mapping and also all the nodes under context and also comment the custom code you have written.
Rebuild the Project and check.
If all the errors are Resolved then map the controller and view again
Regards,
Sunitha.
Hi Sunitha,
Errors are resolved with ur solution.Thank You very much.
But I am getting new error
""This Compilation Unit indirectly references the missing type java.lang.object(typically some required class file is referencing a type outside the classpath)"".
In JavaBuild Path -> Libraries there is no rt.jar file.Previously this file is showing in Libraries.
Plz help me.
Thanks
Shirisha
Hi Shirisha,
1> Close Your project first then Close the NWDS
2> Delete the .registry file from .metadata
C:\Documents and Settings\Administrator\Documents\SAP\workspace\.metadata
3> Open NWDS and check
To Add the rt.jar file follow the steps.
Go to the Java Build Path => Select Add Variable
Click on Edit =>Click on New Enter
Name : JRE_LIB
Path : C:/j2sdk1.4.2_09/jre/lib/rt.jar
Click on OK.
Select JRE_LIB click on OK.
Select JRE_LIB click on OK.
Click on OK
Regards,
Mithu
Hi Shirisha,
R you getting this error for a single project or for the all the projects that are in your NWDS workspace? If you are getting the error for all the project then reinstall your NWDS.Other wise import this project in another NWDS setup and check whether u r getting same error or not? Before copy the project into the other system must close the project and NWDS.
If you get the same error recreated a new project and copy paste the nodes, implementation from the corrupted project and do the mapping.
I dont know other way around it.
Regards,
Mithu
Hi All,
Thank You for help..
IPrivateView , wdContext errors are resolved.
But I am getting new error
""This Compilation Unit indirectly references the missing type java.lang.object(typically some required class file is referencing a type outside the classpath)"".
In JavaBuild Path -> Libraries there is no rt.jar file.Previously this file is showing in Libraries.
Plz help me.
Thanks
Shirisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
please check the import statement . have you imported the IprivateView.
for eg:
import com.sap.demo.IPrivateTestView;
import <Package Name >.IPrivate<View Name>View;
Hope your Problem get resolved
thanks and regards
fazal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok u write the same code in component conproller and call that method in view ( when ur using in component controller u use
Collection col = new ArrayList();
IPublicApp.IDummynodeElement ele = wdContext.createDummynodeElement();
int size = wdContext.nodeFamily().size();
for (int i = 0 ; i< size-1;i++)
{
if (wdContext.nodeFamily().isSelected(i))
{
ele.setSecondaddress(wdContext.nodeFamily().getFamilyElementAt(i).getSecondaddress());
ele.setStreet(wdContext.nodeFamily().getFamilyElementAt(i).getStreet());
ele.setSubtype(wdContext.nodeFamily().getFamilyElementAt(i).getSubtype());
ele.setSurnameprefix(wdContext.nodeFamily().getFamilyElementAt(i).getSurnameprefix());
ele.setTaxnumber(wdContext.nodeFamily().getFamilyElementAt(i).getTaxnumber());
ele.setTaxoffice(wdContext.nodeFamily().getFamilyElementAt(i).getTaxoffice());
ele.setTelephonenumber(wdContext.nodeFamily().getFamilyElementAt(i).getTelephonenumber());
ele.setThirdaddress(wdContext.nodeFamily().getFamilyElementAt(i).getThirdaddress());
ele.setValidbegin(wdContext.nodeFamily().getFamilyElementAt(i).getValidbegin());
ele.setValidend(wdContext.nodeFamily().getFamilyElementAt(i).getValidend());
col.add(ele);
}
}
wdContext.nodeDummynode().bind(col);
Check the "Problems" or "Tasks" view in Eclipse if there are any errors in the meta-data. Fix them and rebuild the project.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
still have problem? then go to navigator tab, refresh the project and reloading and then organize imports.
regards,
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to do repair poject structure and class path.
Or CTRLSHIFTO short cut to organize imports
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.