{"id":7451,"date":"2014-06-19T03:58:41","date_gmt":"2014-06-19T03:58:41","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/application-cannot-start-on-ubuntu-but-starts-on-windows-without-any-trouble-collection-of-common-programming-errors\/"},"modified":"2014-06-19T03:58:41","modified_gmt":"2014-06-19T03:58:41","slug":"application-cannot-start-on-ubuntu-but-starts-on-windows-without-any-trouble-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/application-cannot-start-on-ubuntu-but-starts-on-windows-without-any-trouble-collection-of-common-programming-errors\/","title":{"rendered":"application cannot start on ubuntu but starts on windows without any trouble-Collection of common programming errors"},"content":{"rendered":"<p>My application loads quite a lot data during start up. After restart glassfish started issuing the following warning in the log file after about 15 minutes of application initialization process<\/p>\n<pre><code>WARNING|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=27;_ThreadName=Thread-2;|GRIZZLY0023: Interrupting idle Thread: admin-thread-pool-4848(3).|#]\n<\/code><\/pre>\n<p>after all entire process fails with the errors:<\/p>\n<pre><code>    [#|2012-10-30T16:26:08.404-0400|WARNING|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=27;_ThreadName=Thread-2;|GRIZZLY0023: Interrupting idle Thread: admin-thread-pool-4848(3).|#]\n\n[#|2012-10-30T16:26:08.624-0400|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=61;_ThreadName=Thread-2;|Initializing Mojarra 2.1.12 ( 20120814-1522) for context ''|#]\n\n[#|2012-10-30T16:26:09.126-0400|SEVERE|glassfish3.1.2|javax.faces|_ThreadID=61;_ThreadName=Thread-2;|Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.|#]\n\n[#|2012-10-30T16:26:09.136-0400|SEVERE|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=61;_ThreadName=Thread-2;|Critical error during deployment: \ncom.sun.faces.config.ConfigurationException: Factory 'javax.faces.application.ApplicationFactory' was not configured properly.\n    at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:305)\n    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:219)\n    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:362)\n    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)\n    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750)\n    at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550)\n    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366)\n    at com.sun.enterprise.web.WebModule.start(WebModule.java:498)\n    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)\n    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)\n    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)\n    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2018)\n    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)\n    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)\n    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)\n    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)\n    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)\n    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)\n    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)\n    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)\n    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)\n    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)\n    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)\n    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)\n    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)\n    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)\n    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)\n    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)\n    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)\n    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)\n    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)\n    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)\n    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)\n    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)\n    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)\n    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)\n    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)\n    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)\n    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)\n    at java.lang.Thread.run(Thread.java:722)\nCaused by: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory. \n    at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1011)\n    at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)\n    at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:303)\n    ... 45 more\n|#]\n\n[#|2012-10-30T16:26:09.137-0400|SEVERE|glassfish3.1.2|org.apache.catalina.core.StandardContext|_ThreadID=61;_ThreadName=Thread-2;|PWC1306: Startup of context  failed due to previous errors|#]\n\n[#|2012-10-30T16:26:09.139-0400|SEVERE|glassfish3.1.2|org.apache.catalina.core.StandardContext|_ThreadID=61;_ThreadName=Thread-2;|PWC1305: Exception during cleanup after start failed\norg.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started\n    at org.apache.catalina.session.StandardManager.stop(StandardManager.java:873)\n    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5571)\n    at com.sun.enterprise.web.WebModule.stop(WebModule.java:527)\n    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5384)\n    at com.sun.enterprise.web.WebModule.start(WebModule.java:498)\n    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)\n    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)\n    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)\n    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2018)\n    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)\n    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)\n    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)\n    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)\n    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)\n    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)\n    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)\n    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)\n    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)\n    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)\n    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)\n    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)\n    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)\n    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)\n    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)\n    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)\n    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)\n    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)\n    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)\n    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)\n    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)\n    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)\n    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)\n    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)\n    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)\n    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)\n    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)\n    at java.lang.Thread.run(Thread.java:722)\n|#]\n\n.................................................................\n\n[#|2012-10-30T16:26:10.070-0400|INFO|glassfish3.1.2|org.eclipse.persistence.session.file:\/home\/ayksolutions\/glassfish3\/glassfish\/domains\/domain1\/applications\/ejb-timer-service-app\/WEB-INF\/classes\/___EJB__Timer__App|_ThreadID=61;_ThreadName=Thread-2;|Communication failure detected when attempting to perform read query outside of a transaction. Attempting to retry query. Error was: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception: java.sql.SQLNonTransientConnectionException: Connection closed by unknown interrupt.\nError Code: 40000\nCall: SELECT COUNT(\"TIMERID\") FROM \"EJB__TIMER__TBL\" WHERE (\"APPLICATIONID\" = ?)\n    bind =&gt; [1 parameter bound]\nQuery: ReportQuery(name=\"countTimersByApplication\" referenceClass=TimerState sql=\"SELECT COUNT(\"TIMERID\") FROM \"EJB__TIMER__TBL\" WHERE (\"APPLICATIONID\" = ?)\").|#]\n\n[#|2012-10-30T16:26:10.071-0400|INFO|glassfish3.1.2|org.eclipse.persistence.session.file:\/home\/ayksolutions\/glassfish3\/glassfish\/domains\/domain1\/applications\/ejb-timer-service-app\/WEB-INF\/classes\/___EJB__Timer__App|_ThreadID=61;_ThreadName=Thread-2;|Communication failure detected when attempting to perform read query outside of a transaction. Attempting to retry query. Error was: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception: java.sql.SQLNonTransientConnectionException: No current connection.\nError Code: 40000\nCall: SELECT COUNT(\"TIMERID\") FROM \"EJB__TIMER__TBL\" WHERE (\"APPLICATIONID\" = ?)\n    bind =&gt; [1 parameter bound]\nQuery: ReportQuery(name=\"countTimersByApplication\" referenceClass=TimerState sql=\"SELECT COUNT(\"TIMERID\") FROM \"EJB__TIMER__TBL\" WHERE (\"APPLICATIONID\" = ?)\").|#]\n\n[#|2012-10-30T16:26:10.079-0400|WARNING|glassfish3.1.2|org.eclipse.persistence.session.file:\/home\/ayksolutions\/glassfish3\/glassfish\/domains\/domain1\/applications\/ejb-timer-service-app\/WEB-INF\/classes\/___EJB__Timer__App|_ThreadID=61;_ThreadName=Thread-2;|Local Exception Stack: \nException [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception: java.sql.SQLNonTransientConnectionException: No current connection.\nError Code: 40000\nCall: SELECT COUNT(\"TIMERID\") FROM \"EJB__TIMER__TBL\" WHERE (\"APPLICATIONID\" = ?)\n    bind =&gt; [1 parameter bound]\nQuery: ReportQuery(name=\"countTimersByApplication\" referenceClass=TimerState sql=\"SELECT COUNT(\"TIMERID\") FROM \"EJB__TIMER__TBL\" WHERE (\"APPLICATIONID\" = ?)\")\n    at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:333)\n    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.processExceptionForCommError(DatabaseAccessor.java:1494)\n    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:636)\n    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:535)\n    at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1717)\n    at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:566)\n    at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:207)\n    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)\n    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)\n    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:264)\n    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:646)\n    at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2611)\n    at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2554)\n    at org.eclipse.persistence.queries.ReportQuery.executeDatabaseQuery(ReportQuery.java:846)\n    at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:844)\n    at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1040)\n    at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:392)\n    at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1128)\n    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2871)\n    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1516)\n    at org.eclipse.persistence.internal.sessions.AbstractSession.retryQuery(AbstractSession.java:1586)\n    at org.eclipse.persistence.sessions.server.ClientSession.retryQuery(ClientSession.java:593)\n    at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.retryQuery(UnitOfWorkImpl.java:5464)\n    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1552)\n    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1498)\n    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1463)\n    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:485)\n    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:773)\n    at com.sun.ejb.containers.TimerBean.countTimersByApplication(TimerBean.java:215)\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:601)\n    at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)\n    at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)\n    at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)\n    at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)\n    at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)\n    at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)\n    at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)\n    at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)\n    at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:601)\n    at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)\n    at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)\n    at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)\n    at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)\n    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)\n    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)\n    at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)\n    at $Proxy242.countTimersByApplication(Unknown Source)\n    at com.sun.ejb.containers.EJBTimerService._destroyTimers(EJBTimerService.java:840)\n    at com.sun.ejb.containers.EJBTimerService.destroyAllTimers(EJBTimerService.java:834)\n    at org.glassfish.ejb.startup.EjbDeployer.clean(EjbDeployer.java:378)\n    at org.glassfish.internal.data.EngineInfo.clean(EngineInfo.java:129)\n    at org.glassfish.internal.data.EngineRef.clean(EngineRef.java:175)\n    at com.sun.enterprise.v3.server.ApplicationLifecycle$1.actOn(ApplicationLifecycle.java:303)\n    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:465)\n    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)\n    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)\n    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)\n    at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)\n    at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)\n    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)\n    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)\n    at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)\n    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)\n    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)\n    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)\n    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)\n    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)\n    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)\n    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)\n    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)\n    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)\n    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)\n    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)\n    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)\n    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)\n    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)\n    at java.lang.Thread.run(Thread.java:722)\nCaused by: java.sql.SQLNonTransientConnectionException: No current connection.\n    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)\n    at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)\n    at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)\n    at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)\n    at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source)\n    at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source)\n    at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)\n    at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)\n    at org.apache.derby.iapi.jdbc.BrokeredConnection.prepareStatement(Unknown Source)\n    at com.sun.gjc.spi.base.ConnectionHolder.prepareStatement(ConnectionHolder.java:562)\n    at com.sun.gjc.spi.jdbc40.ConnectionWrapper40.prepareCachedStatement(ConnectionWrapper40.java:255)\n    at com.sun.gjc.spi.jdbc40.ConnectionWrapper40.prepareCachedStatement(ConnectionWrapper40.java:52)\n    at com.sun.gjc.spi.ManagedConnection.prepareCachedStatement(ManagedConnection.java:993)\n    at com.sun.gjc.spi.jdbc40.ConnectionWrapper40.prepareStatement(ConnectionWrapper40.java:173)\n    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1474)\n    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1423)\n    at org.eclipse.persistence.internal.databaseaccess.DatabaseCall.prepareStatement(DatabaseCall.java:697)\n    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:585)\n    ... 84 more\nCaused by: java.sql.SQLException: No current connection.\n    at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)\n    at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)\n    ... 102 more\n|#]\n\n[#|2012-10-30T16:26:10.082-0400|WARNING|glassfish3.1.2|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=61;_ThreadName=Thread-2;|EJB5184:A system exception occurred during an invocation on EJB TimerBean, method: public int com.sun.ejb.containers.TimerBean.countTimersByApplication(long)|#]\n.............\n<\/code><\/pre>\n<p>The error appears on both my *nix based machines however the same application version can normally start with the same data in the DB on my windows based developer machine. It also has no troubles on *.nix based machine if the DB contains less data.<\/p>\n<p>The application is built with maven. It has several modules including three web applications and EJB\/JPA module that uses mysql RDBMS.<\/p>\n<p>server environment (Application fails to start)<\/p>\n<pre><code>OS: ubuntu 11.10 x64\nAS: glassfish 3.2.1\njava: 1.7.0_09-b05(initially it was 1.7.0_03, i've upgrade it with no effect)\n<\/code><\/pre>\n<p>windows based developer machine (Application can start without troubles)<\/p>\n<pre><code>OS: win7 x64\nAS: glassfish 3.2.1\njava: 1.7.0_07-b10\n<\/code><\/pre>\n<p>I have another server with ubuntu x32. With almost the same environment. The application has the same problem as on the described Ubuntu based machine. I use the same Glassfish version and the same script to configure it on all hosts.<\/p>\n<p>Any ideas what could be a reason. Thanks.<\/p>\n<p>PS. I&#8217;m going to try a newer version of GF to see if it solves the problem. Glassfish upgrade to version 3.1.2.2 did not help<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My application loads quite a lot data during start up. After restart glassfish started issuing the following warning in the log file after about 15 minutes of application initialization process WARNING|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=27;_ThreadName=Thread-2;|GRIZZLY0023: Interrupting idle Thread: admin-thread-pool-4848(3).|#] after all entire process fails with the errors: [#|2012-10-30T16:26:08.404-0400|WARNING|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=27;_ThreadName=Thread-2;|GRIZZLY0023: Interrupting idle Thread: admin-thread-pool-4848(3).|#] [#|2012-10-30T16:26:08.624-0400|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=61;_ThreadName=Thread-2;|Initializing Mojarra 2.1.12 ( 20120814-1522) for context [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7451","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7451"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7451\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}