hi, java.sql.SQLException: Connections could not be acquired from the underlying database!
that means something is either wrong with your hibernate.cfg.xml or the database server does not accept a connection from that or to that host/user/pass/db Sebastian 2010/3/9 phamvinhduy <[email protected]> > My OS is Centos 5.4 > > My Openmeetings package is openmeetings_1_1_r3087.zip > > I unziped this package to /usr/local. When I run : sh red5.sh, it > shows following: > > [WARN] [main] > org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid > JavaBean property 'enableRmiAdapter' being accessed! Ambiguous write > methods found next to actually used [public void > org.red5.server.jmx.JMXAgent.setEnableRmiAdapter(java.lang.String)]: > [public void > org.red5.server.jmx.JMXAgent.setEnableRmiAdapter(boolean)] > [WARN] [main] > org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid > JavaBean property 'enableSsl' being accessed! Ambiguous write methods > found next to actually used [public void > org.red5.server.jmx.JMXAgent.setEnableSsl(java.lang.String)]: [public > void org.red5.server.jmx.JMXAgent.setEnableSsl(boolean)] > [WARN] [main] > org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid > JavaBean property 'enableMinaMonitor' being accessed! Ambiguous write > methods found next to actually used [public void > org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(java.lang.String)]: > [public void > org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(boolean)] > > java.io.IOException: Cannot bind to URL [rmi://:9999/red5]: > javax.naming.ServiceUnavailableException [Root exception is > java.rmi.ConnectException: Connection refused to host: 208.67.219.132; > nested exception is: > java.net.ConnectException: Connection timed > out] > at > > javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java: > 804) [na: > 1.6.0_18] > at > > javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java: > 417) [na: > 1.6.0_18] > at org.red5.server.jmx.JMXAgent.init(JMXAgent.java:364) > [red5.jar:na] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [na: > 1.6.0_18] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 39) [na: > 1.6.0_18] > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > 25) [na: > 1.6.0_18] > at java.lang.reflect.Method.invoke(Method.java:597) [na: > 1.6.0_18] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java: > 1529) [spring-beans-3.0.0.jar:3.0.0.RELEASE] > > java.io.IOException: Cannot bind to URL [rmi://:9999/red5]: > javax.naming.ServiceUnavailableException [Root exception is > java.rmi.ConnectException: Connection refused to host: 208.67.219.132; > nested exception is: > java.net.ConnectException: Connection timed > out] > at > > javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java: > 804) [na: > 1.6.0_18] > at > > javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java: > 417) [na: > 1.6.0_18] > at org.red5.server.jmx.JMXAgent.init(JMXAgent.java:364) > [red5.jar:na] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [na: > 1.6.0_18] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 39) [na: > 1.6.0_18] > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > 25) [na: > 1.6.0_18] > at java.lang.reflect.Method.invoke(Method.java:597) [na: > 1.6.0_18] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java: > 1529) [spring-beans-3.0.0.jar:3.0.0.RELEASE] > > > [WARN] [Launcher:/openmeetings] > org.hibernate.connection.C3P0ConnectionProvider - Both hibernate-style > property 'hibernate.c3p0.max_size' and c3p0-style property > 'c3p0.max_size' have been set in hibernate.properties. Hibernate-style > property 'hibernate.c3p0.max_size' will be used and c3p0-style > property 'c3p0.max_size' will be ignored! > [WARN] [Launcher:/openmeetings] > org.hibernate.connection.C3P0ConnectionProvider - Both hibernate-style > property 'hibernate.c3p0.min_size' and c3p0-style property > 'c3p0.min_size' have been set in hibernate.properties. Hibernate-style > property 'hibernate.c3p0.min_size' will be used and c3p0-style > property 'c3p0.min_size' will be ignored! > [WARN] [Launcher:/openmeetings] > org.hibernate.connection.C3P0ConnectionProvider - Both hibernate-style > property 'hibernate.c3p0.timeout' and c3p0-style property > 'c3p0.timeout' have been set in hibernate.properties. Hibernate-style > property 'hibernate.c3p0.timeout' will be used and c3p0-style property > 'c3p0.timeout' will be ignored! > [WARN] [Launcher:/openmeetings] > org.hibernate.connection.C3P0ConnectionProvider - Both hibernate-style > property 'hibernate.c3p0.idle_test_period' and c3p0-style property > 'c3p0.idle_test_period' have been set in hibernate.properties. > Hibernate-style property 'hibernate.c3p0.idle_test_period' will be > used and c3p0-style property 'c3p0.idle_test_period' will be ignored! > [WARN] [Launcher:/openmeetings] > org.hibernate.connection.C3P0ConnectionProvider - Both hibernate-style > property 'hibernate.c3p0.max_statements' and c3p0-style property > 'c3p0.max_statements' have been set in hibernate.properties. Hibernate- > style property 'hibernate.c3p0.max_statements' will be used and c3p0- > style property 'c3p0.max_statements' will be ignored! > DEBUG 03-09 22:34:24.103 EmoticonsManager.java 49097 53 > org.openmeetings.app.remote.red5.EmoticonsManager [Launcher:/ > openmeetings] - ##### loadEmot completed > > > When I filled out information in http://x.x.x.x:5080/openmeetings/install, > it shows below line: > > DEBUG 03-09 22:59:13.980 ImportInitvalues.java 185336 507 > org.openmeetings.app.installation.ImportInitvalues > [http-0.0.0.0-5080-2] - Countries > ADDED > DEBUG 03-09 22:59:13.986 ImportInitvalues.java 185342 576 > org.openmeetings.app.installation.ImportInitvalues > [http-0.0.0.0-5080-2] - loadInitLanguages lang: {id=1, name=english, > rtl=false} > loadInitLanguages rtl from xml: false > > com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: > Could not create connection to database server. Attempted reconnect 3 > times. Giving up. > > ... 17 common frames > omitted > [WARN] [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- > #1] com.mchange.v2.resourcepool.BasicResourcePool - > com.mchange.v2.resourcepool.basicresourcepool$acquiret...@41ff8506 -- > Acquisition Attempt Failed!!! Clearing pending acquires. While trying > to acquire a needed new resource, we failed to succeed more than the > maximum number of allowed acquisition attempts (30). Last acquisition > attempt > exception: > com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: > Could not create connection to database server. Attempted reconnect 3 > times. Giving up. > > Caused by: java.net.ConnectException: Connection refused > > java.sql.SQLException: Connections could not be acquired from the > underlying database! > > > -- > You received this message because you are subscribed to the Google Groups > "OpenMeetings User" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<openmeetings-user%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/openmeetings-user?hl=en. > > -- Sebastian Wagner http://www.webbase-design.de http://openmeetings.googlecode.com http://www.laszlo-forum.de [email protected] -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/openmeetings-user?hl=en.
