Comments (6)
Facing same issue for DB2 database too.
<dependency>
<groupId>org.bgee.log4jdbc-log4j2</groupId>
<artifactId>log4jdbc-log4j2-jdbc4</artifactId>
<version>1.15</version>
</dependency>
Original comment by [email protected]
on 19 Nov 2013 at 5:27
from log4jdbc-log4j2.
We're facing the same issue. And the problem is indeed specific to the oracle
driver which closes an empty result set the first time next() is called.
So is there an update on the status of this bug? It's preventing us from using
JDBC logging effectively at the moment.
Original comment by [email protected]
on 9 Dec 2013 at 9:42
from log4jdbc-log4j2.
OK, I'll try to fix that today.
Original comment by [email protected]
on 9 Dec 2013 at 9:45
from log4jdbc-log4j2.
I deployed a snapshot, could you please tell me all if it fixes your issues? If
it doesn't, please provide me the exception stacktraces.
<dependency>
<groupId>org.bgee.log4jdbc-log4j2</groupId>
<artifactId>log4jdbc-log4j2-jdbcXX</artifactId>
<version>1.16-SNAPSHOT</version>
</dependency>
I haven't actually installed Oracle, nor DB2, but mocked the behavior of
returning a null ResultSetMetaData. Given the error it generated, I am not
totally convinced that the diagnostic is correct. So please keep me posted :)
Original comment by [email protected]
on 11 Dec 2013 at 12:24
from log4jdbc-log4j2.
Just tried it out (on Oracle). The NPE is gone and result set logging is
working.
Thanks a lot!
Original comment by [email protected]
on 11 Dec 2013 at 7:35
from log4jdbc-log4j2.
OK, the diagnostic was correct: because the ResultSetMetaData could not be
acquired, the Integer columnCount in DefaultResultSetCollector was null; when
calling getColumnCount, which returns an int, the auto boxing was generating
the NPE.
columnCount is now an int, with default value 0, and another attribute is used
to ensure that the metadata are acquired only once.
Artifact version 1.16 released. Closing this issue.
Original comment by [email protected]
on 12 Dec 2013 at 12:21
- Changed state: Verified
from log4jdbc-log4j2.
Related Issues (20)
- Improve spring configuration for DataSourceSpy HOT 2
- Improve documentation for log4jdbc.debug.stack.prefix HOT 1
- Unnecessary returnValue.toString() invocation in ResultSetSpy.reportAllReturns() HOT 3
- Exception "could not look up name" when retrieving a column data by the "table.column" name HOT 1
- Enable configuration via dependency injection frameworks HOT 10
- exception with ojdbc14-10.2.0.2.0.jar HOT 1
- Support for XA data sources HOT 4
- StatementSpy.addBatch() does not respect Properties.isStatementUsageWarn() HOT 2
- Batch statements are not logged when dumpSqlFilteringOn HOT 2
- Suggested Enhancement: Expose DumpFullDebugStackTrace to be set dynamically/statically. HOT 4
- Support logging of commit/rollback invocations on connections. HOT 1
- Log the output from SQL print statements HOT 4
- Db2RdbmsSpecifics implementation is not thread-safe HOT 5
- jboss 7 configuration HOT 1
- Disable bind replacement HOT 1
- Dump sql parameters don't work on batch statements HOT 1
- java.lang.ClassNotFoundException HOT 2
- OutOfMemoryError when large tables are logged HOT 5
- Please add all the improvements and bugfixes from clones of original 'log4jdbc' HOT 1
- Typo in DriverSpy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log4jdbc-log4j2.