homena / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

Caused by: java.lang.NoSuchMethodError: org.jmesa.core.filter.SimpleRowFilter: method <init>()V not found #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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)

Original issue reported on code.google.com by br.v...@gmail.com on 11 Aug 2010 at 9:35

GoogleCodeExporter commented 9 years ago
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...

Original comment by jeff.johnston.mn@gmail.com on 12 Aug 2010 at 1:54

GoogleCodeExporter commented 9 years ago
Hi Jeff,

The error is.

Caused by: java.lang.NoSuchMethodError: org.jmesa.core.filter.SimpleRowFilter: 
method <init>()V not found 

Original comment by br.v...@gmail.com on 12 Aug 2010 at 2:37

GoogleCodeExporter commented 9 years ago
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.

Original comment by jeff.johnston.mn@gmail.com on 12 Aug 2010 at 2:43

GoogleCodeExporter commented 9 years ago
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.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 2:49

GoogleCodeExporter commented 9 years ago
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.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 2:51

GoogleCodeExporter commented 9 years ago
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.

Original comment by jeff.johnston.mn@gmail.com on 12 Aug 2010 at 2:58

GoogleCodeExporter commented 9 years ago
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());

Original comment by br.v...@gmail.com on 12 Aug 2010 at 3:08

GoogleCodeExporter commented 9 years ago
and also there is neither project on my IDE nor in  my workspace for jar files 
to be dependant.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 3:13

GoogleCodeExporter commented 9 years ago
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.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 3:17

GoogleCodeExporter commented 9 years ago
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.

Original comment by jeff.johnston.mn@gmail.com on 12 Aug 2010 at 3:22

GoogleCodeExporter commented 9 years ago
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.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 3:28

GoogleCodeExporter commented 9 years ago
I tried with 3.0rc3 and still get the same error.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 3:53

GoogleCodeExporter commented 9 years ago
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.

Original comment by jeff.johnston.mn@gmail.com on 12 Aug 2010 at 4:12

GoogleCodeExporter commented 9 years ago
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.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 4:15

GoogleCodeExporter commented 9 years ago
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.

Original comment by br.v...@gmail.com on 12 Aug 2010 at 5:43

GoogleCodeExporter commented 9 years ago
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.

Original comment by jeff.johnston.mn@gmail.com on 12 Aug 2010 at 5:11

GoogleCodeExporter commented 9 years ago
Thanks, Jeff.

I used customsimpler row filter and customized accordingly and all seems 
working fine now.
Thanks for your support.

Original comment by br.v...@gmail.com on 13 Aug 2010 at 2:36

GoogleCodeExporter commented 9 years ago

Original comment by jeff.johnston.mn@gmail.com on 9 Mar 2011 at 8:42