You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sudheendra Hebbagilu <su...@insage.com> on 2001/02/09 21:31:03 UTC

java.lang.AbstractMethodError while closing MySQL connection

Hi,
I am using mysql as my database. In the beginning I had a older version of
struts. It was throwing this error when establishing a connection in  
java.lang.AbstractMethodError: org/gjt/mm/mysql/Connection.getTypeMap

Then I got the latest nightly build. In GenericConnection class this was
fixed. But now I have the same problem while closing the connection.
Can somebody add another catch statement at line 250 of
org.apache.struts.util.GenericConnection ?

Same as the one on line 123

 catch (AbstractMethodError e) {
            ;   // mm.mysql throws this
 }


Thanks in advance
Sudhi

Re: java.lang.AbstractMethodError while closing MySQL connection

Posted by Matthias Bauer <Ma...@livinglogic.de>.
Hi Sudhi,

maybe it is a good idea to use the mysql driver mm.mysql-2.0.4. I had similar
problems, what caused me to do the upgrade from 1.2 and I do not encounter any
more problems since then.

Have fun,

 --- Matthias



Matthias Bauer +++ mba@livinglogic.de +++ LivingLogic AG +++ www.livinglogic.de


Sudheendra Hebbagilu wrote:
> 
> Hi,
> I am using mysql as my database. In the beginning I had a older version of
> struts. It was throwing this error when establishing a connection in
> java.lang.AbstractMethodError: org/gjt/mm/mysql/Connection.getTypeMap
> 
> Then I got the latest nightly build. In GenericConnection class this was
> fixed. But now I have the same problem while closing the connection.
> Can somebody add another catch statement at line 250 of
> org.apache.struts.util.GenericConnection ?
> 
> Same as the one on line 123
> 
>  catch (AbstractMethodError e) {
>             ;   // mm.mysql throws this
>  }
> 
> Thanks in advance
> Sudhi