You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by darshanajr <da...@gmail.com> on 2017/06/29 04:36:53 UTC

web app work in windows but fails in linux due to activmq issue

we have have web application that can successfully deploy in tomcat server in
a windows machine. but when I try to deploy same war file in Linux tomcat
server, deployment fails. 
Linux machine is CentOS. ActiveMQ is version 5.5.0

anyone have experience this issue please help

WARN 28 Jun 2017 19:53:47,438:[taskExecutor-1:BasicResourcePool][]
com.mchange.v2.resourcepool.BasicResourcePool@226f5133 -- an attempt to
checkout a resource was interrupted, and the pool is still live: some other
thread must have either interrupted the Thread attempting checkout!
java.lang.InterruptedException at java.lang.Object.wait(Native Method) at
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
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)
at
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:58)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:444)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:427)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:374)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:265)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493) at
com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(BrokerServiceStarter.java:44)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
WARN 28 Jun 2017 19:53:47,455:[taskExecutor-1:JDBCPersistenceAdapter][]
Could not get JDBC connection: An SQLException was provoked by the following
failure: java.lang.InterruptedException java.sql.SQLException: An
SQLException was provoked by the following failure:
java.lang.InterruptedException at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62) at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
at
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:58)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:444)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:427)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:374)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:265)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493) at
com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(BrokerServiceStarter.java:44)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745) Caused by:
java.lang.InterruptedException at java.lang.Object.wait(Native Method) at
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
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)
... 11 more
ERROR 28 Jun 2017 19:53:47,462:[taskExecutor-1:BrokerService][] Failed to
start ActiveMQ JMS Message Broker. Reason: java.io.IOException: An
SQLException was provoked by the following failure:
java.lang.InterruptedException java.io.IOException: An SQLException was
provoked by the following failure: java.lang.InterruptedException at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:45)
at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:65)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:444)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:427)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:374)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:265)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493) at
com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(BrokerServiceStarter.java:44)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745) Caused by: java.sql.SQLException:
An SQLException was provoked by the following failure:
java.lang.InterruptedException at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62) at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
at
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:58)
... 9 more Caused by: java.lang.InterruptedException at
java.lang.Object.wait(Native Method) at
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
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)
... 11 more
ERROR 28 Jun 2017 19:53:47,470:[taskExecutor-1:BrokerServiceStarter][] Error
while init ... java.io.IOException: An SQLException was provoked by the
following failure: java.lang.InterruptedException at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:45)
at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:65)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:444)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:427)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:374)
at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:265)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493) at
com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(BrokerServiceStarter.java:44)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745) Caused by: java.sql.SQLException:
An SQLException was provoked by the following failure:
java.lang.InterruptedException at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at
com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62) at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
at
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:58)
... 9 more Caused by: java.lang.InterruptedException at
java.lang.Object.wait(Native Method) at
com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1315)
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)
... 11 more



--
View this message in context: http://activemq.2283324.n4.nabble.com/web-app-work-in-windows-but-fails-in-linux-due-to-activmq-issue-tp4728047.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: web app work in windows but fails in linux due to activmq issue

Posted by darshanajr <da...@gmail.com>.
Hi,

As you mentioned, problem is not with activemq.
There was some spring file loading issue.
Maybe in windows system spring file was get picked without an issue.

Thanks for the help





--
View this message in context: http://activemq.2283324.n4.nabble.com/web-app-work-in-windows-but-fails-in-linux-due-to-activmq-issue-tp4728047p4728186.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: web app work in windows but fails in linux due to activmq issue

Posted by Tim Bain <tb...@alumni.duke.edu>.
It looks like your connection pool (C3P0) is getting closed prematurely.
Since I haven't heard of other JDBC users experiencing the same problem, I
suspect that either there's something you're doing wrong in your code or
some quirk specific to C3P0 that's not present in other connection pools
such as HikariCP.

I'd recommend you search your code for anywhere that you might be closing
the pool when you shouldn't be. You could also try setting a breakpoint in
the pool's close() method to see if it's being called unexpectedly (and
why).

Tim

On Jun 29, 2017 8:13 AM, "darshanajr" <da...@gmail.com> wrote:

> we have have web application that can successfully deploy in tomcat server
> in
> a windows machine. but when I try to deploy same war file in Linux tomcat
> server, deployment fails.
> Linux machine is CentOS. ActiveMQ is version 5.5.0
>
> anyone have experience this issue please help
>
> WARN 28 Jun 2017 19:53:47,438:[taskExecutor-1:BasicResourcePool][]
> com.mchange.v2.resourcepool.BasicResourcePool@226f5133 -- an attempt to
> checkout a resource was interrupted, and the pool is still live: some other
> thread must have either interrupted the Thread attempting checkout!
> java.lang.InterruptedException at java.lang.Object.wait(Native Method) at
> com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(
> BasicResourcePool.java:1315)
> 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)
> at
> com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(
> AbstractPoolBackedDataSource.java:128)
> at
> org.apache.activemq.store.jdbc.TransactionContext.getConnection(
> TransactionContext.java:58)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(
> JDBCPersistenceAdapter.java:444)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(
> JDBCPersistenceAdapter.java:427)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(
> JDBCPersistenceAdapter.java:374)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.
> start(JDBCPersistenceAdapter.java:265)
> at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493)
> at
> com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(
> BrokerServiceStarter.java:44)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> WARN 28 Jun 2017 19:53:47,455:[taskExecutor-1:JDBCPersistenceAdapter][]
> Could not get JDBC connection: An SQLException was provoked by the
> following
> failure: java.lang.InterruptedException java.sql.SQLException: An
> SQLException was provoked by the following failure:
> java.lang.InterruptedException at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62) at
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.
> checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
> at
> com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(
> AbstractPoolBackedDataSource.java:128)
> at
> org.apache.activemq.store.jdbc.TransactionContext.getConnection(
> TransactionContext.java:58)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(
> JDBCPersistenceAdapter.java:444)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(
> JDBCPersistenceAdapter.java:427)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(
> JDBCPersistenceAdapter.java:374)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.
> start(JDBCPersistenceAdapter.java:265)
> at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493)
> at
> com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(
> BrokerServiceStarter.java:44)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745) Caused by:
> java.lang.InterruptedException at java.lang.Object.wait(Native Method) at
> com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(
> BasicResourcePool.java:1315)
> 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)
> ... 11 more
> ERROR 28 Jun 2017 19:53:47,462:[taskExecutor-1:BrokerService][] Failed to
> start ActiveMQ JMS Message Broker. Reason: java.io.IOException: An
> SQLException was provoked by the following failure:
> java.lang.InterruptedException java.io.IOException: An SQLException was
> provoked by the following failure: java.lang.InterruptedException at
> org.apache.activemq.util.IOExceptionSupport.create(
> IOExceptionSupport.java:45)
> at
> org.apache.activemq.store.jdbc.TransactionContext.getConnection(
> TransactionContext.java:65)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(
> JDBCPersistenceAdapter.java:444)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(
> JDBCPersistenceAdapter.java:427)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(
> JDBCPersistenceAdapter.java:374)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.
> start(JDBCPersistenceAdapter.java:265)
> at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493)
> at
> com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(
> BrokerServiceStarter.java:44)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745) Caused by: java.sql.SQLException:
> An SQLException was provoked by the following failure:
> java.lang.InterruptedException at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62) at
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.
> checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
> at
> com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(
> AbstractPoolBackedDataSource.java:128)
> at
> org.apache.activemq.store.jdbc.TransactionContext.getConnection(
> TransactionContext.java:58)
> ... 9 more Caused by: java.lang.InterruptedException at
> java.lang.Object.wait(Native Method) at
> com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(
> BasicResourcePool.java:1315)
> 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)
> ... 11 more
> ERROR 28 Jun 2017 19:53:47,470:[taskExecutor-1:BrokerServiceStarter][]
> Error
> while init ... java.io.IOException: An SQLException was provoked by the
> following failure: java.lang.InterruptedException at
> org.apache.activemq.util.IOExceptionSupport.create(
> IOExceptionSupport.java:45)
> at
> org.apache.activemq.store.jdbc.TransactionContext.getConnection(
> TransactionContext.java:65)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(
> JDBCPersistenceAdapter.java:444)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(
> JDBCPersistenceAdapter.java:427)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(
> JDBCPersistenceAdapter.java:374)
> at
> org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.
> start(JDBCPersistenceAdapter.java:265)
> at org.apache.activemq.broker.BrokerService.start(BrokerService.java:493)
> at
> com.aaa.bbb.jms.service.BrokerServiceStarter$1.run(
> BrokerServiceStarter.java:44)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745) Caused by: java.sql.SQLException:
> An SQLException was provoked by the following failure:
> java.lang.InterruptedException at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at
> com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62) at
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.
> checkoutPooledConnection(C3P0PooledConnectionPool.java:531)
> at
> com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(
> AbstractPoolBackedDataSource.java:128)
> at
> org.apache.activemq.store.jdbc.TransactionContext.getConnection(
> TransactionContext.java:58)
> ... 9 more Caused by: java.lang.InterruptedException at
> java.lang.Object.wait(Native Method) at
> com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(
> BasicResourcePool.java:1315)
> 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)
> ... 11 more
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/web-app-work-in-windows-but-fails-in-linux-
> due-to-activmq-issue-tp4728047.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>