-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3648284
By: nobody
I have this excerpt from my code...
UnidadeConcedente uc = new UnidadeConcedente(); uc.setNomeFantasia(nomeFantasia.value);
uc.setEmail(email.value);
.....
and my Javabean is some like this...
public class UnidadeConcedente {
private String nomeFantasia;
public String email;
public UnidadeConcedente() {
super();
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
....
My question is... why the server informed that the line "uc.setEmail(email.value);"
is not valid because there is no method setEmail(java.lang.String) in my "UnidadeConcedente" class....
It is strange, because the other attributes can be read perfectly.... please help me...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3648388
By: tomyeh
What is the class of the email object (email.value)?
Post the complete stack trace so it is easier for us to examine.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3648997
By: nobody
The e-mail object is a <textbox> in a .zul file.
I cannot put the stack trace, because the exception is shown on a modal window when I execute the .zul file.
Is there a way that I can send you a picture of the exception?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3649116
By: tomyeh
If you use Tomcat, you could find the stack trace in $TOMCAT_DIR/logs/stdout*.log or catalina*.log.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3649245
By: tomyeh
Looks like uc.setEmail(email.value) is called in zscript. Did you specify the id attribute? Also post ZUML codes.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3649285
By: nobody
Yes, the uc.setEmail(email.value) is called in a zscript. It has its id attribute declared. This is the email textbox declaration:
<textbox id="email" width="400px"/>
Here is the log entry in tomcat...
24 24/03/2006 03:35:35 com.potix.zk.ui.sys.PageImpl interpret:412
SEVERE: >>Sourced file: inline evaluation of: ``novaUnidade();'' : Error in method invocation: Method setEmail( java.lang.String ) not found in class'br.uem.sge.model.beans.UnidadeConcedente' : at Line: 59 : in file: inline
evaluation of: ``boolean validaForm() { /* true-campo nao preenc . .
. '' : uc .setEmail ( email .value )
>>
>> at bsh.BSHMethodInvocation.eval(Unknown Source)
>> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>> at bsh.BSHBlock.evalBlock(Unknown Source)
>> at bsh.BSHBlock.eval(Unknown Source)
>> at bsh.BSHBlock.eval(Unknown Source)
>> at bsh.BSHIfStatement.eval(Unknown Source)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3649302
By: tomyeh
According the message, BeanShell does recognize email.value (as String). So, only two possible cases:
1. wrong package (it is not in the post)
2. The class (gen by compiler) is up to date: either not compiled or not deployed properly. Try clean and re-build, and try re-deploy your app. If still not working, try restart Tomcat service.
After you stop tomcat, you could compare the timestamp of UnidadeConcedente.class and UnidadeConcedente.java.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3649330
By: nobody
Hello....
1 - the package is ok.....
2 - you're right... I've configured the Eclipse output folder to a wrong location.
Now I changed such folder and it is ok. The problem is because may UnidadeConcedente.class is up to date.
Thank you very much for your help....
Best regards...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3649399
By: tomyeh
You are welcome :)
Asked: 2006-03-24 07:00:28 +0800
Seen: 487 times
Last updated: Mar 24 '06