ProfilerIntegration.IgnoreAll equivalent in Java?

19 views
Skip to first unread message

Vineet Bhatia

unread,
Jul 28, 2012, 11:00:28 PM7/28/12
to hibernate...@googlegroups.com
What is the equivalent of ProfilerIntegration.IgnoreAll() in Java?

Oren Eini (Ayende Rahien)

unread,
Jul 29, 2012, 1:45:41 AM7/29/12
to hibernate...@googlegroups.com
No, there isn't.

Vineet Bhatia

unread,
Jul 29, 2012, 10:50:30 AM7/29/12
to hibernate...@googlegroups.com
I have a Spring-Hibernate application running on Websphere 6.1 connecting to MS SQL Server 2005. With Hibernate Profiler I am getting a timeout 

[7/28/12 21:52:24:492 EDT] 00000020 SystemErr     R Caused by: com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException: Connection not available, Timed out waiting for 180261

at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java:1362)

at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:462)

at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:418)

at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)

at $Proxy96.getConnection(Unknown Source)

at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)

at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)


Any help on how to resolve this?

- vineet

Oren Eini (Ayende Rahien)

unread,
Jul 29, 2012, 11:23:19 AM7/29/12
to hibernate...@googlegroups.com
What happen when you disable the profiler? Do you also get this?
Note that we can't see the profiler in the stack trace, which cause me to suspect that it isn't the problem

Vineet Bhatia

unread,
Jul 29, 2012, 3:09:01 PM7/29/12
to hibernate...@googlegroups.com
This does not happen when profiler is disabled. Attached are the Sysout and ffdc.

- vineet


On Sunday, July 29, 2012 11:23:19 AM UTC-4, Ayende Rahien wrote:
What happen when you disable the profiler? Do you also get this?
Note that we can't see the profiler in the stack trace, which cause me to suspect that it isn't the problem

On Sun, Jul 29, 2012 at 5:50 PM, Vineet Bhatia <@gmail.com> wrote:
I have a Spring-Hibernate application running on Websphere 6.1 connecting to MS SQL Server 2005. With Hibernate Profiler I am getting a timeout 

[7/28/12 21:52:24:492 EDT] 00000020 SystemErr     R Caused by: com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException: Connection not available, Timed out waiting for 180261

at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java:1362)

at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:462)

at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:418)

at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)

at $Proxy96.getConnection(Unknown Source)

at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)

at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)


Any help on how to resolve this?

- vineet

On Sunday, July 29, 2012 1:45:41 AM UTC-4, Ayende Rahien wrote:
No, there isn't.
HibernateProfilerConnectionTimeoutSysOut.txt
server1_0000017c_12.07.23_12.50.51_0.txt

Oren Eini (Ayende Rahien)

unread,
Jul 29, 2012, 10:54:06 PM7/29/12
to hibernate...@googlegroups.com
Can you send us a way to reproduce this issue?
Reply all
Reply to author
Forward
0 new messages