Thank you for getting back to me. The profiler "Details" tab is showing the SQL statement (eg select ... from ... where code=?) but the "Session factory Statistics" and "Param Value" panel on the right are both empty.
I tried adding jdbc:log4jdbc:oracle:thin:@ldap://xx but it generated the following error
Caused by: java.sql.SQLException: No suitable driver found for jdbc:log4jdbc:oracle:thin:@ldap://xx
...
HibernateProfilerTrace:: DEBUG ::: SocketProfileGateway ::: initialize ::: 127.0.0.1 22897
Error accessing statistics
org.hibernate.impl.SessionFactoryObjectFactory
java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryObjectFactory
...
at java.lang.Class.forName(Class.java:186)
at hibernatingrhinos.hibernate.profiler.appender.HibernateStatisticsProvider.initialize(HibernateStatisticsProvider.java:37)
at hibernatingrhinos.hibernate.profiler.appender.HibernateStatisticsProvider.<init>(HibernateStatisticsProvider.java:31)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.initializeAppenderOnBackground(HibernateProfilerAppender.java:202)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.access$000(HibernateProfilerAppender.java:33)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender$1.run(HibernateProfilerAppender.java:175)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
ERROR ::: ApplicationNameHelper ::: Error accessing request Application Name
null
java.lang.NullPointerException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at hibernatingrhinos.hibernate.profiler.appender.ApplicationNameHelper.getApplicationName(ApplicationNameHelper.java:53)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfiler.initialize(HibernateProfiler.java:141)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfiler.initialize(HibernateProfiler.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
at org.springframework.beans.factory.config.MethodInvokingFactoryBean.doInvoke(MethodInvokingFactoryBean.java:162)
at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:152)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1355)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:710)
at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:519)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:319)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:298)
at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:142)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:526)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:495)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:656)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:629)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:150)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:103)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)
at org.springframework.test.context.support.DelegatingSmartContextLoader.loadContext(DelegatingSmartContextLoader.java:228)
at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:290)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Error accessing statistics
org.hibernate.impl.SessionFactoryObjectFactory
java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryObjectFactory
...
at java.lang.Class.forName(Class.java:186)
at hibernatingrhinos.hibernate.profiler.appender.HibernateStatisticsProvider.initialize(HibernateStatisticsProvider.java:37)
at hibernatingrhinos.hibernate.profiler.appender.HibernateStatisticsProvider.getStatistics(HibernateStatisticsProvider.java:82)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.sendStatisticInformation(HibernateProfilerAppender.java:255)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.sendMessagesToProfiler(HibernateProfilerAppender.java:272)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.access$100(HibernateProfilerAppender.java:33)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender$2.run(HibernateProfilerAppender.java:208)
at java.lang.Thread.run(Thread.java:722)
HibernateProfilerTrace:: DEBUG ::: SocketProfilerGateway ::: Writing message to socket ::: hibernatingrhinos.hibernate.profiler.messages.ApplicationAttached@22016455
Hibernate: select ... from ... where CODE=?
Error accessing statistics
org.hibernate.impl.SessionFactoryObjectFactory
java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryObjectFactory
...
at java.lang.Class.forName(Class.java:186)
at hibernatingrhinos.hibernate.profiler.appender.HibernateStatisticsProvider.initialize(HibernateStatisticsProvider.java:37)
at hibernatingrhinos.hibernate.profiler.appender.HibernateStatisticsProvider.getStatistics(HibernateStatisticsProvider.java:82)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.sendStatisticInformation(HibernateProfilerAppender.java:255)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.sendMessagesToProfiler(HibernateProfilerAppender.java:272)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender.access$100(HibernateProfilerAppender.java:33)
at hibernatingrhinos.hibernate.profiler.appender.HibernateProfilerAppender$2.run(HibernateProfilerAppender.java:208)
at java.lang.Thread.run(Thread.java:722)
HibernateProfilerTrace:: DEBUG ::: SocketProfilerGateway ::: Writing message to socket ::: <LoggingEventInfo><Message><![CDATA[Fetching entity: [ ...