Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jasper exception : unable to find setter method for attribute  RSS feed

 
sanjay pa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Initally I was compiling & run my webbased application using JSDK 1.4.2_05

Now as upgrade the JRE version to 1.4.2_07 , at compile time it starts giving me error saying

Jsperexception : unable to find setter method for attribute.


Initally the setter and getter method where coded like this

===========================================================

public void setPoll(int seconds) {
}
public int getPoll(int seconds) {
return seconds;
}

public InitAutoRefreshTag () {
super();
}

Now while compileing it using 1.4.2_07 I did the following changes int he mehtod and it starts working

====================================
private int seconds = -1;
public void setPoll(int seconds) {
this.seconds= seconds;
}
public int getPoll() {
return this.seconds;
}

public InitAutoRefreshTag () {
super();
}

==================================

But still I didn;t understand the root cause of problme, can anyone tell me about this ..

Please reply
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this.

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!