#11 Infinite loop in debug output

closed
nobody
None
5
2005-05-11
2005-05-09
Anonymous
No

In c3p0-0.9.0-pre5, with log4j debug output turned on,
an SQLException causes an infinite loop in
com.mchange.v2.sql.SqlUtils(String, String, Throwable),

The offending loop begins on line 85:

SQLException s2;
while ((s2 = s.getNextException()) != null)
logger.log( MLevel.FINER, "Nested SQLException or
SQLWarning: ", t );
}

I'm not 100% sure, but it looks to me like the
following was intended:

SQLException s2 = s;
while ((s2 = s2.getNextException()) != null)
logger.log( MLevel.FINER, "Nested SQLException or
SQLWarning: ", t );
}

Discussion

  • Steve Waldman

    Steve Waldman - 2005-05-09

    Logged In: YES
    user_id=175530

    Thanks. Very embarrassing. Will be fixed in 0.9.0-pre6.

     
  • Steve Waldman

    Steve Waldman - 2005-05-11
    • status: open --> closed
     
  • Steve Waldman

    Steve Waldman - 2005-05-11

    Logged In: YES
    user_id=175530

    Fixed as of c3p0-0.9.0-pre6. Thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks