[QFJ-133] Return of bug 89 - session lookup causes an NPE if JdbcLog is miconfigured initially Created: 07/Feb/07 Updated: 12/Apr/07 Resolved: 11/Feb/07 |
|
| Status: | Closed |
| Project: | QuickFIX/J |
| Component/s: | Engine |
| Affects Version/s: | 1.0.5 |
| Fix Version/s: | 1.1.0 |
| Type: | Bug | Priority: | Default |
| Reporter: | Toli Kuznets | Assignee: | Steve Bate |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
I'm able to reproduce the same situation as was in bug 89 initially (http://www.quickfixj.org/jira/browse/QFJ-89) If you misconfigure the JdbcLog (wrong db name, or just turn off the db altogether), you get into a situation where JdbcLog calls into LogUtil.logThrowable() which tries to lookup the session through Session.lookupSession() which comes back as null and that produces an NPE. There are actually 2 bugs: Second bug (this has to do with proxool) I will create an issue to track the 2nd bug separately as well. I am submitting a patch that's fixing both bugs: |
| Comments |
| Comment by Toli Kuznets [ 07/Feb/07 ] |
|
Patch containing the fix to both bugs described in this issue |
| Comment by Toli Kuznets [ 07/Feb/07 ] |
|
Stacktrace that shows the NPE for when session is not found if the jdbc logger throws an error due to misconfiguraiton. also contains the stacktrace for eventual OutOfMemoryException b/c of recursive falied attemps to log an error (when JdbcLog is misconfigured) |