[Installation, Configuration & Deployment] - Connection Pooling issues
by akarthi80
During the process of starting the JBoss server, if Database server is not available or not reachable, the server continuously pools for Database connection (does not even pool for number of attempts) and does not start the server.
and the stack is
10:41:12,876 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
10:41:12,876 ERROR [JDBCExceptionReporter] Cannot create PoolableConnectionFactory (Io exception: Unknown host specified )
10:41:12,886 WARN [SettingsFactory] Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io exception: Unknown host specified )
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at org.springframework.orm.hibernate.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:76)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1172)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:803)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:543)
at
pl help me out 2 fig out this problem
Thanks
Karthik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979473#3979473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979473
19 years, 8 months
[JBossCache] - Re: statistics not refreshing
by JerryGauth
I suppose it's possible that PojoCache isn't using TreeCache under some circumstances. I haven't looked at the PojoCache code to see if this is the case.
I did try a quick test using the TomcatClusteringCache service and I didn't note any problems there. It uses TreeCacheAop rather than PojoCache though. TreeCacheAop is a legacy wrapper around PojoCache so it should exhibit the same behavior.
I started the "all" server and then accessed the mbean for service=TomcatClusteringCache. The underlying implelementation here is org.jboss.cache.aop.TreeCacheAop so that should be similar to what you're using. I issued some put (String, Object, Object) and get(String, Object) operations using the mbean. I then accessed the service=TomcatClusteringCache,treecache-interceptor=CacheMgmtInterceptor
mbean and found the statistics were correct. Hits, misses stores and the hit/miss ratio correctly reflected the put and get operations that I executed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979454#3979454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979454
19 years, 8 months