java.sql.SQLException

Error in allocating a connection. Cause: Connection could not be allocated because: Communications link failure Last packet sent to the server was 0 ms ago.Error Code: 0

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web18446

  • via Oracle Community by 807581, 11 months ago
    Error in allocating a connection. Cause: Connection could not be allocated because: Communications link failure Last packet sent to the server was 0 ms ago.Error Code: 0
  • Error in allocating a connection. Cause: Connection could not be allocated because: Communications link failure Last packet sent to the server was 0 ms ago.Error Code: 0
  • via Oracle Community by sol1001, 11 months ago
    Error in allocating a connection. Cause: Connection could not be allocated because: Communications link failure Last packet sent to the server was 0 ms ago.
  • Stack trace

    • java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Communications link failure Last packet sent to the server was 0 ms ago.Error Code: 0 at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:289) at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:135) at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:170) at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:537) at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180) at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230) at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78) at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:113) at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84) at com.sun.enterprise.util.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:166) at com.sun.enterprise.util.EntityManagerWrapper.createQuery(EntityManagerWrapper.java:271) at com.ixisoft.test.CustomerManagerBean.getMyCustomer(CustomerManagerBean.java:47) 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:585) at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050) at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.