Service Virtualization

Error starting up Registry

  • 1.  Error starting up Registry

    Posted Dec 31, 2013 04:45 PM
    ______________________________
    From: Gomez, Pedro

    Wow Shibi, it worked smoothly with your solution, thanks a lot!!
    From: Varughese, Shibi


    If I remember correct, adding the following in the vmoptions file resolved this error.

    -Djava.net.preferIPv4Stack=true


    From: <Gomez>, Pedro <Pedro.Gomez@ca.com<mailto:Pedro.Gomez@ca.com>>

    Guys, I’m encountering this error when trying to start up the Lisa Reqistry, have anyone seen it before?

    2013-01-10 12:46:54,213 [main] INFO com.itko.lisa.utils.db.ConnectionPoolManager - Created pool named common
    2013-01-10 12:46:54,224 [main] INFO org.eclipse.persistence - EclipseLink, version: Eclipse Persistence Services - 1.0.2 (Build 20081024)
    2013-01-10 12:47:15,920 [Event Sink Thread Pool Thread 1] INFO com.itko.lisa.coordinator.TestRegistryImpl - Coordinator Servers: 0 Simulator Servers: 0 VSEs: 0 Running vusers: 0 Labs: 1 Memory used 56mb, allocated 111mb, max 227mb (24%) labSims: 0 labVSEs: 0 labCoords: 0 Our cpu usage 0%, system cpu used 84%
    2013-01-10 12:47:23,290 [main] ERROR com.itko.lisa.utils.JpaUtil - Could not configure database persistence for unit: itko
    Local Exception Stack:


    Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.0.2 (Build 20081024)): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Connections could not be acquired from the underlying database!
    Error Code: 0
    at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:298)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:138)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
    at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:164)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:324)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:264)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:407)
    at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:130)
    at org.eclipse.persistence.sessions.server.ExternalConnectionPool.startUp(ExternalConnectionPool.java:110)
    at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:500)
    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:606)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:211)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:246)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:69)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:118)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:112)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:100)
    at com.itko.lisa.utils.JpaUtil.updateCacheExpirationPolicy(JpaUtil.java:1025)
    at com.itko.lisa.utils.JpaUtil.setCacheTimeoutMillis(JpaUtil.java:1021)
    at com.itko.lisa.utils.JpaUtil.<init>(JpaUtil.java:316)
    at com.itko.lisa.utils.JpaUtil.reinitializeConfiguration(JpaUtil.java:235)
    at com.itko.lisa.utils.JpaUtil.<clinit>(JpaUtil.java:168)
    at com.itko.lisa.coordinator.TestRegistryImpl.main(TestRegistryImpl.java:1751)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
    at com.itko.lisa.utils.db.LisaWrappedDataSource.getConnection(LisaWrappedDataSource.java:29)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:133)
    ... 27 more
    Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
    at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
    at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
    at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
    ... 30 more
    2013-01-10 12:47:23,382 [Thread-6] INFO com.itko.lisa.net.ActiveMQFactory - Closing AMQ connections
    2013-01-10 12:47:23,384 [LISA Environment Shutdown Hook] INFO com.itko.lisa.coordinator.TestRegistryImpl - Service Interface stop() method called. We are shutting down.
    2013-01-10 12:47:24,384 [LISA Environment Shutdown Hook] INFO com.itko.lisa.net.ServerRequestHandler - Scheduling removal of tcp://fec0:0:0:c:c814:968d:76ac:cc2e%1:2010/Registry

    It has to have an obvious cause because I was able to use it a couple of weeks ago without an issue.