0

cannot find getter method

asked 2006-03-24 07:00:28 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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...

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2006-03-24 08:31:53 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit

answered 2006-03-24 14:19:53 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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?

link publish delete flag offensive edit

answered 2006-03-24 15:17:00 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.


link publish delete flag offensive edit

answered 2006-03-24 16:35:22 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit

answered 2006-03-24 16:52:33 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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)

link publish delete flag offensive edit

answered 2006-03-24 17:04:46 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.


link publish delete flag offensive edit

answered 2006-03-24 17:15:33 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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...

link publish delete flag offensive edit

answered 2006-03-24 17:57:44 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3649399

By: tomyeh

You are welcome :)

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-03-24 07:00:28 +0800

Seen: 487 times

Last updated: Mar 24 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More