Profiler/log4jdbc/Oracle not working but working fine with H2 setup

52 views
Skip to first unread message

chitech

unread,
Aug 8, 2011, 5:57:56 AM8/8/11
to Hibernate Profiler
Alo

Setup:
- Hibernate-profiler 905
- Hibernate-core 3.5.6-final

<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</
prop>
<prop
key="hibernate.connection.driver_class">net.sf.log4jdbc.hibernateprofiler.jdbc4.DriverSpy</
prop>
<prop key="hibernate.connection.url">jdbc:log4jdbc:oracle:thin:....</
prop>
</props>
</property>
<hprof:profiler />

Error:
java.lang.NoSuchMethodError:
org.hibernate.cfg.Settings.getSqlStatementLogger()Lorg/hibernate/jdbc/
util/SQLStatementLogger;
at
hibernatingrhinos.hibernate.profiler.jdbc.SpyBatchingBatcher.logSql(SpyBatchingBatcher.java:
163)
at
hibernatingrhinos.hibernate.profiler.jdbc.SpyBatchingBatcher.closeStatement(SpyBatchingBatcher.java:
131)
at
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:
285)
at
org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:
212)
at org.hibernate.loader.Loader.doQuery(Loader.java:726)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:
236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:
94)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:
305)

In my tests I am using H2 and here it's working fine where all query
parameters is shown

Ayende Rahien

unread,
Aug 8, 2011, 6:07:39 AM8/8/11
to hibernate...@googlegroups.com
Is it possible that you are getting this because of some version mismatch? 
Reply all
Reply to author
Forward
0 new messages