My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 279: Caused by: java.lang.NoSuchMethodError: org.jmesa.core.filter.SimpleRowFilter: method <init>()V not found
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2011


 
Reported by br.v...@gmail.com, Aug 11, 2010
What steps will reproduce the problem?
1. switching jar file of jmesa from 2.3.4 to 2.5.3
2.
3.

What is the expected output? What do you see instead?
should not cause any error,instead it gives noSuchmethodError during runtime

What version of the product are you using? On what operating system?
version:-jmesa2.5.3 and OS:-windows XP

Please provide any additional information below.
i was using jmesa-2.3.4.jar and started implementing CustomRowFilter.
but could not because the SimpleRowFilter did not have no arg constructor.
switched to jmesa2.5.3 and now the problem is it gives No Such method Error.Running on JDK(1.6) and Tomcat(6)

Aug 11, 2010
Project Member #1 jeff.johnston.mn@gmail.com
What is the full noSuchmethodError? What method does it say does not exist?

Also, make sure that you do not have both versions of JMesa in your project...
Aug 11, 2010
#2 br.v...@gmail.com
Hi Jeff,

The error is.

Caused by: java.lang.NoSuchMethodError: org.jmesa.core.filter.SimpleRowFilter: method <init>()V not found 
Aug 11, 2010
Project Member #3 jeff.johnston.mn@gmail.com
Did you do a clean and then a full build in your environment? 

It is true that there is not a default constructor...but that is ok. In the previous release I think I have a constructor defined. I had that deprecated for quite a while and then finally pulled it out completely.
Aug 11, 2010
#4 br.v...@gmail.com
yeah i did clean and full build.

i understand that there was no default constructor in the earlier version later when i replaced the jmesa.jar2.3.5 to jmesa2.5.3. it threw this error.

Could there be jar file dependencies problem?or any specific thing to be done after taking the new jmesa.jar(2.5.3) file.
Aug 11, 2010
#5 br.v...@gmail.com
My doubt is there could be a linkage problem.
I m also sure that earlier version worked well where i did not think of implementing custom row filter.
Aug 11, 2010
Project Member #6 jeff.johnston.mn@gmail.com
Are you using the tag library with JSP? It could be your page is cached up. This is a common problem with Tomcat. The solution is to delete the Tomcat work directory.

Other than that it is just such a vague error...which is why it looks like some sort of environmental error such as having two jars in the same classpath. One thing to watch out for is that you do not have an older version in a dependant project. When using tools like Eclipse I have seen errors like this when a different project in the same IDE has a different version.
Aug 11, 2010
#7 br.v...@gmail.com
Thanks jeff,

I m not using the tag library,instead i m making use of API's.
i get this error when i do. tableFacade.setRowFilter(new SimpleRowFilter());

Aug 11, 2010
#8 br.v...@gmail.com
and also there is neither project on my IDE nor in  my workspace for jar files to be dependant.
Aug 11, 2010
#9 br.v...@gmail.com
i meant apart from the project which i m working,there is no other project in the IDE,and the IDE i m using is netbeans6.0.
Aug 11, 2010
Project Member #10 jeff.johnston.mn@gmail.com
That is strange. I just tried that same code and it worked fine for me. I did try it with the new TableModel, but it just passes through to the facade so it is the same.

I could try with the 2.5.3 at work tomorrow as I have not rolled to the 3.0 release candidates yet. I am not hopeful that I would find anything. That is a strange message to get.

If you wanted you could try the 3.0 rc3 as I have been getting good reports back about the backwards compatibility of it.


Aug 11, 2010
#11 br.v...@gmail.com
I deleted the project in my work directory.and stopped tomcat and also closed and reopned the project and i run the project,but i still get the same error.

Now that i will give a try on 3.0rc3.
Aug 11, 2010
#12 br.v...@gmail.com
I tried with 3.0rc3 and still get the same error.
Aug 11, 2010
Project Member #13 jeff.johnston.mn@gmail.com
If you want I can send you a build with a default constructor in that class. It is completely unnecessary but I would be curious if it really does fix your issue. If so send me an email at jeff.johnston.mn@gmail.com and I will send you a jar file.
Aug 11, 2010
#14 br.v...@gmail.com
Jeff,i did took the source file of simpleFilter & other dependable java files from trunk.and created the java classes in my project.seems to be working fine.but i have some other issues well.
anyways will mail you now.
Aug 11, 2010
#15 br.v...@gmail.com
it was a jar file dependency problem jeff,
i found that if i remove from netbeans and configure using libraries,the old jar file was still in lib folder but the path in netbeans was pointing to new one.
i removed the older version from lib folder and put the new jmesa2.5.3 file into lib folder.
It seemed pages were rendered properly with the jmesa tables.:-)
 
But i could see that if there is a link attribute available in jmesa row,instead of displaying the link it displayed like an html <a href="">edit</a>,i guess it was not parsed,
same is the case when i put the jmesa-3.0_10.08.11.jar which u sent me.
good part is that the earlier noSuchMethod  error vanished.
Aug 12, 2010
Project Member #16 jeff.johnston.mn@gmail.com
I am assuming that the link is coming from your bean (item)? The default was changed to escape html syntax. If you have html markup in your data that you do not want displayed you can use the BasicCellEditor.

I changed this awhile back because I felt pretty confident it was the correct default. Plus, if you have a custom cell editor you would either extend from the AbstractCellEditor, or implement the CellEditor directly anyways.

Aug 12, 2010
#17 br.v...@gmail.com
Thanks, Jeff.

I used customsimpler row filter and customized accordingly and all seems working fine now.
Thanks for your support.
Mar 9, 2011
Project Member #18 jeff.johnston.mn@gmail.com
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting