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
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.