incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Nalley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-1015) [UNIT TEST] failure
Date Fri, 18 Jan 2013 20:00:14 GMT
David Nalley created CLOUDSTACK-1015:
----------------------------------------

             Summary: [UNIT TEST] failure 
                 Key: CLOUDSTACK-1015
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1015
             Project: CloudStack
          Issue Type: Bug
          Components: Test
            Reporter: David Nalley
            Priority: Blocker


Unit test failing. It appears that this depends on mysql - which by default sounds like it
isn't a unit test IMO 

com.cloud.utils.exception.CloudRuntimeException: DB Exception on: null
	at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:410)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.CGLIB$searchIncludingRemoved$54(<generated>)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031$$FastClassByCGLIB$$25a19157.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.searchIncludingRemoved(<generated>)
	at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:345)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.CGLIB$searchIncludingRemoved$53(<generated>)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031$$FastClassByCGLIB$$25a19157.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.searchIncludingRemoved(<generated>)
	at com.cloud.utils.db.GenericDaoBase.listIncludingRemovedBy(GenericDaoBase.java:897)
	at com.cloud.utils.db.GenericDaoBase.listIncludingRemovedBy(GenericDaoBase.java:902)
	at com.cloud.configuration.dao.ConfigurationDaoImpl.getConfiguration(ConfigurationDaoImpl.java:71)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.CGLIB$getConfiguration$4(<generated>)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031$$FastClassByCGLIB$$25a19157.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.getConfiguration(<generated>)
	at com.cloud.configuration.dao.ConfigurationDaoImpl.getConfiguration(ConfigurationDaoImpl.java:99)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.CGLIB$getConfiguration$5(<generated>)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031$$FastClassByCGLIB$$25a19157.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
	at com.cloud.configuration.dao.ConfigurationDaoImpl$$EnhancerByCGLIB$$a8916031.getConfiguration(<generated>)
	at com.cloud.network.vpn.RemoteAccessVpnManagerImpl.configure(RemoteAccessVpnManagerImpl.java:590)
	at com.cloud.network.vpn.RemoteAccessVpnTest.testInjected(RemoteAccessVpnTest.java:102)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not
received any packets from the server.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1117)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:350)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2393)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2430)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2215)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)
	at java.sql.DriverManager.getConnection(DriverManager.java:582)
	at java.sql.DriverManager.getConnection(DriverManager.java:185)
	at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
	at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
	at com.cloud.utils.db.Transaction.getConnection(Transaction.java:542)
	at com.cloud.utils.db.Transaction.prepareStatement(Transaction.java:453)
	at com.cloud.utils.db.Transaction.prepareAutoCloseStatement(Transaction.java:446)
	at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:383)
	... 58 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
	... 80 more
Standard Output

2013-01-18 19:53:12,324 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.user.dao.AccountDao in com.cloud.user.dao.AccountDaoImpl - AccountDao
2013-01-18 19:53:12,325 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.dao.VpnUserDao in com.cloud.network.dao.VpnUserDaoImpl - VpnUserDao
2013-01-18 19:53:12,326 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.dao.FirewallRulesDao in com.cloud.network.dao.FirewallRulesDaoImpl - FirewallRulesDao
2013-01-18 19:53:12,326 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.dao.IPAddressDao in com.cloud.network.dao.IPAddressDaoImpl - IPAddressDao
2013-01-18 19:53:12,326 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.domain.dao.DomainDao in com.cloud.domain.dao.DomainDaoImpl - DomainDao
2013-01-18 19:53:12,327 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.event.dao.UsageEventDao in com.cloud.event.dao.UsageEventDaoImpl - UsageEventDao
2013-01-18 19:53:12,327 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.dao.RemoteAccessVpnDao in com.cloud.network.dao.RemoteAccessVpnDaoImpl -
RemoteAccessVpnDao
2013-01-18 19:53:12,327 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.configuration.dao.ConfigurationDao in com.cloud.configuration.dao.ConfigurationDaoImpl
- ConfigurationDao
2013-01-18 19:53:12,328 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.user.AccountManager in com.cloud.user.MockAccountManagerImpl - AccountManager
2013-01-18 19:53:12,328 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.user.AccountService in com.cloud.user.MockAccountManagerImpl - AccountManager
2013-01-18 19:53:12,328 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.user.DomainManager in com.cloud.user.MockDomainManagerImpl - DomainManager
2013-01-18 19:53:12,328 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.user.DomainService in com.cloud.user.MockDomainManagerImpl - DomainManager
2013-01-18 19:53:12,328 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.NetworkManager in com.cloud.network.MockNetworkManagerImpl - NetworkManager
2013-01-18 19:53:12,328 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.NetworkService in com.cloud.network.MockNetworkManagerImpl - NetworkManager
2013-01-18 19:53:12,328 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.NetworkModel in com.cloud.network.MockNetworkModelImpl - NetworkModel
2013-01-18 19:53:12,329 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.rules.RulesManager in com.cloud.network.MockRulesManagerImpl - RulesManager
2013-01-18 19:53:12,329 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.rules.RulesService in com.cloud.network.MockRulesManagerImpl - RulesManager
2013-01-18 19:53:12,330 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.rules.FirewallManager in com.cloud.network.MockFirewallManagerImpl - FirewallManager
2013-01-18 19:53:12,331 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.firewall.FirewallService in com.cloud.network.MockFirewallManagerImpl -
FirewallManager
2013-01-18 19:53:12,331 INFO  [network.vpn.RemoteAccessVpnTest] (main:) Finished setUp
2013-01-18 19:53:12,332 INFO  [utils.component.ComponentLocator] (main:) Found component:
com.cloud.network.element.RemoteAccessVPNServiceProvider in com.cloud.network.vpn.MockRemoteAccessVPNServiceProvider
- RemoteAccessVPNServiceProvider
2013-01-18 19:53:12,332 INFO  [network.vpn.RemoteAccessVpnTest] (main:) Finished add adapter
2013-01-18 19:53:12,344 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: AccountDao
2013-01-18 19:53:12,359 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: VpnUserDao
2013-01-18 19:53:12,407 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: FirewallRulesDao
2013-01-18 19:53:12,464 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: IPAddressDao
2013-01-18 19:53:12,475 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: DomainDao
2013-01-18 19:53:12,485 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: UsageEventDao
2013-01-18 19:53:12,500 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: RemoteAccessVpnDao
2013-01-18 19:53:12,510 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
DAO: ConfigurationDao
2013-01-18 19:53:12,516 INFO  [utils.component.ComponentLocator] (main:) Instantiating Adapter:
RemoteAccessVPNServiceProvider
2013-01-18 19:53:12,517 INFO  [utils.component.ComponentLocator] (main:) Instantiating Manager:
AccountManager
2013-01-18 19:53:12,519 INFO  [utils.component.ComponentLocator] (main:) Instantiating Manager:
DomainManager
2013-01-18 19:53:12,520 INFO  [utils.component.ComponentLocator] (main:) Instantiating Manager:
NetworkManager
2013-01-18 19:53:12,522 INFO  [utils.component.ComponentLocator] (main:) Instantiating Manager:
NetworkModel
2013-01-18 19:53:12,524 INFO  [utils.component.ComponentLocator] (main:) Instantiating Manager:
RulesManager
2013-01-18 19:53:12,527 INFO  [utils.component.ComponentLocator] (main:) Instantiating Manager:
FirewallManager
2013-01-18 19:53:12,529 DEBUG [utils.component.ComponentLocator] (main:) Injecting singleton
Manager: AccountManager
2013-01-18 19:53:12,529 DEBUG [utils.component.ComponentLocator] (main:) Injecting singleton
Manager: DomainManager
2013-01-18 19:53:12,529 DEBUG [utils.component.ComponentLocator] (main:) Injecting singleton
Manager: NetworkManager
2013-01-18 19:53:12,529 DEBUG [utils.component.ComponentLocator] (main:) Injecting singleton
Manager: NetworkModel
2013-01-18 19:53:12,529 DEBUG [utils.component.ComponentLocator] (main:) Injecting singleton
Manager: RulesManager
2013-01-18 19:53:12,530 DEBUG [utils.component.ComponentLocator] (main:) Injecting singleton
Manager: FirewallManager
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Configuring singleton
Manager: AccountManager
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Configuring singleton
Manager: DomainManager
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Configuring singleton
Manager: NetworkManager
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Configuring singleton
Manager: NetworkModel
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Configuring singleton
Manager: RulesManager
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Configuring singleton
Manager: FirewallManager
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Injecting singleton
Adapter: RemoteAccessVPNServiceProvider
2013-01-18 19:53:12,530 INFO  [utils.component.ComponentLocator] (main:) Configuring singleton
Adapter: RemoteAccessVPNServiceProvider
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
Manager: AccountManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Started Manager:
AccountManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
Manager: DomainManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Started Manager:
DomainManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
Manager: NetworkManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Started Manager:
NetworkManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
Manager: NetworkModel
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Started Manager:
NetworkModel
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
Manager: RulesManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Started Manager:
RulesManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
Manager: FirewallManager
2013-01-18 19:53:12,531 INFO  [utils.component.ComponentLocator] (main:) Started Manager:
FirewallManager
2013-01-18 19:53:12,532 INFO  [utils.component.ComponentLocator] (main:) Starting singleton
Adapter: RemoteAccessVPNServiceProvider
2013-01-18 19:53:12,532 INFO  [utils.component.ComponentLocator] (main:) Started Adapter:
MockRemoteAccessVPNServiceProvider
2013-01-18 19:53:12,532 INFO  [network.vpn.RemoteAccessVpnTest] (main:) Finished make active
2013-01-18 19:53:12,538 INFO  [network.vpn.RemoteAccessVpnTest] (main:) Finished inject

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message