| Author |
NoSuchMethodError while accessing a POJO
|
Subhash Bhushan C
Ranch Hand
Joined: Jan 27, 2005
Posts: 106
|
|
Hi, Had posted this in the Struts section, but decided this was a better forum to address this issue. I have an action class ProfileDetailAction, which implements the getter/setter methods related to Profiles. I have 2 classes RegistrationAction and AlterProfileAction extending from it. I have an EJB 3.0 entity class called ProfileDetail which is mapped to an underlying table in MySQL. ProfileDetailAction.java: RegistrationAction.java: ProfileDetail.java: The firstName variable in ProfileDetail action is getting filled properly (I am able to see them in debug mode.) When setFirstName() gets called in RegistrationAction, I get the following error:
I am not sure whether this is a classloader problem, or I am doing something wrong. I am using JBoss, with MySQL DB. I am using Eclipse, and the IDE does not throw up any errors too. I have only one Java version on my laptop, jdk1.5.0_01, which is being used by both Eclipse (my IDE) and JBoss (my App Server). I saw quite a number of posts on the net indicating it might be a version mismatch. But I dont think that applies to this situation. Any clue welcome...
|
Regards,<br />Subhash Bhushan.
|
 |
Pankaj Tiwari
Ranch Hand
Joined: Sep 11, 2005
Posts: 55
|
|
|
try changing "firstName" to "firstname"
|
 |
Anubhav Anand
Ranch Hand
Joined: May 18, 2007
Posts: 341
|
|
Originally posted by Pankaj Tiwari: try changing "firstName" to "firstname"
Would that actually matter ?
|
 |
Subhash Bhushan C
Ranch Hand
Joined: Jan 27, 2005
Posts: 106
|
|
[Copy-Paste] Solved it... You guys wont believe what the problem was... JBoss was not replacing old class files with new files in a new EAR. So, the first version of the file was being reference. Once I cleaned up the deployment directory, everything worked just fine... Thanks for the help, Anand...
|
 |
 |
|
|
subject: NoSuchMethodError while accessing a POJO
|
|
|