on 04-28-2009 4:35 AM
When I tried to do this:
wdContext.currentCheck_Material_PriceElement().setDateStart("2009-04-27");
It gives the error:
java.lang.IllegalArgumentException: Attribute name 'DateStart' not defined
What could be the error?
Hi Jackson,
Try to change the cardinality of the node Check_Material_PriceElement to 1..1 or 1..n.
Cheers,
Arafat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I checked the model "Check_Unit_Price", indeed the variable is found!
/* ***************************************************************************
ModelAttribute -> DateStart
**************************************************************************/
/** getter for ModelAttribute -> DateStart
@return value of ModelAttribute DateStart */
public java.lang.String getDateStart() {
return (java.lang.String)super.getAttributeValue("DateStart");
}
/** setter for ModelAttribute -> DateStart
@param value new value for ModelAttribute DateStart */
public void setDateStart(java.lang.String value) {
super.setAttributeValue("DateStart", value);
}
SIGH..
java.lang.IllegalArgumentException: Attribute name 'DateStart' not defined for model class 'Check_Material_Price'
I reimported the whole model again.. the webservice is surely working.. but in the application, it just can't find DateStart even though I could use the setter setDateStart ? This is strange..
Hi Jackson,
This is exactly what I said in my first reply. It is possible that the attribute 'DateStart' is not even existing any more in the model.
The reason why the webservice was having this attribute and it was working fine, is may be due to the earlier deployment of the webservice.
I am sure if you redeploy the webservice then even that wil not work.. Please revert back in case you have some issues.
Iguess now your issue would be resolved. After the reimport of the model, restart the server and deploy your application before testing.
Thanks and Reagrds,
Pravesh
Jackson,
check the type of 'DateStart'?
if it is of type Date, then you cannot pass a string in the argument as "2009-04-27".
you need to pass a 'Date' Parameter!
regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jackson,
Please check in the Check_Material_Price node that whether the DateStart attribute is present or not. I guess that is not present.
However if that is present then is this node a model imported node. If this is a model imported node then it might be the case that there is some chnages in the model. You need to check in the backend RFC that whether this attribute actually exist in backend or not.
Finally, Just restart your server and redeploy the application, and then try to run the application again. I have a feeling that if all the above mentioned things are correct then your application is not getting deployed properly.
You can just try to undeploy your application and then redeploy of that once again.
I hope this solves your issue. Please revert back in case there is still some problem.
Thanks and Regards
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.