Spring Integration +Jms +ActiveMQ - activemq
In our application we are using Spring Integration with ActiveMQ. We are facing one problem
like whenever ActiveMQ server is down application is throwing:
Caused by: javax.jms.JMSException : Could not connect to broker URL: tcp://localhost:61616?wireFormat.maxInactivityDuration=300000. Reason: java.net.ConnectException: Connection refused: connect
org.apache.activemq.util.JMSExceptionSupport!create!JMSExceptionSupport.java!35
org.apache.activemq.ActiveMQConnectionFactory!createActiveMQConnection!ActiveMQConnectionFactory.java!293
org.apache.activemq.ActiveMQConnectionFactory!createActiveMQConnection!ActiveMQConnectionFactory.java!238
org.apache.activemq.ActiveMQConnectionFactory!createConnection!ActiveMQConnectionFactory.java!184
org.apache.activemq.pool.PooledConnectionFactory!createConnection!PooledConnectionFactory.java!247
org.apache.activemq.pool.PooledConnectionFactory$1!makeObject!PooledConnectionFactory.java!131
org.apache.activemq.pool.PooledConnectionFactory$1!makeObject!PooledConnectionFactory.java!111
org.apache.commons.pool.impl.GenericKeyedObjectPool!borrowObject!GenericKeyedObjectPool.java!1220
org.apache.activemq.pool.PooledConnectionFactory!createConnection!PooledConnectionFactory.java!224
org.apache.activemq.pool.PooledConnectionFactory!createConnection!PooledConnectionFactory.java!195
org.springframework.jms.support.JmsAccessor!createConnection!JmsAccessor.java!184
org.springframework.jms.core.JmsTemplate!execute!JmsTemplate.java!456
org.springframework.jms.core.JmsTemplate!send!JmsTemplate.java!534
org.springframework.jms.core.JmsTemplate!convertAndSend!JmsTemplate.java!641
org.springframework.integration.jms.JmsSendingMessageHandler!send!JmsSendingMessageHandler.java!139
org.springframework.integration.jms.JmsSendingMessageHandler!handleMessageInternal!JmsSendingMessageHandler.java!112
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!128
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!128
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!306
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!299
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.handler.MessageHandlerChain$1!send!MessageHandlerChain.java!154
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.handler.MessageHandlerChain!handleMessageInternal!MessageHandlerChain.java!137
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.channel.interceptor.WireTap!preSend!WireTap.java!121
org.springframework.integration.channel.AbstractMessageChannel$ChannelInterceptorList!preSend!AbstractMessageChannel.java!227
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!152
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!306
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!299
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.handler.MessageHandlerChain$1!send!MessageHandlerChain.java!154
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.handler.MessageHandlerChain!handleMessageInternal!MessageHandlerChain.java!137
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!128
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!doSendAndReceive!MessagingTemplate.java!318
org.springframework.integration.core.MessagingTemplate!sendAndReceive!MessagingTemplate.java!239
org.springframework.integration.core.MessagingTemplate!convertSendAndReceive!MessagingTemplate.java!274
org.springframework.integration.gateway.MessagingGatewaySupport!doSendAndReceive!MessagingGatewaySupport.java!224
org.springframework.integration.gateway.MessagingGatewaySupport!sendAndReceive!MessagingGatewaySupport.java!203
org.springframework.integration.gateway.GatewayProxyFactoryBean!invokeGatewayMethod!GatewayProxyFactoryBean.java!306
org.springframework.integration.gateway.GatewayProxyFactoryBean!doInvoke!GatewayProxyFactoryBean.java!269
org.springframework.integration.gateway.GatewayProxyFactoryBean!invoke!GatewayProxyFactoryBean.java!260
org.springframework.aop.framework.ReflectiveMethodInvocation!proceed!ReflectiveMethodInvocation.java!172
org.springframework.aop.framework.JdkDynamicAopProxy!invoke!JdkDynamicAopProxy.java!202
com.sun.proxy.$Proxy50!getLocationDetails!null!-1
sun.reflect.NativeMethodAccessorImpl!invoke0!NativeMethodAccessorImpl.java!-2
sun.reflect.NativeMethodAccessorImpl!invoke!NativeMethodAccessorImpl.java!39
sun.reflect.DelegatingMethodAccessorImpl!invoke!DelegatingMethodAccessorImpl.java!25
java.lang.reflect.Method!invoke!Method.java!597
org.apache.cxf.service.invoker.AbstractInvoker!performInvocation!AbstractInvoker.java!180
org.apache.cxf.service.invoker.AbstractInvoker!invoke!AbstractInvoker.java!96
org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker!invoke!AbstractJAXWSMethodInvoker.java!178
org.apache.cxf.jaxws.JAXWSMethodInvoker!invoke!JAXWSMethodInvoker.java!66
org.apache.cxf.service.invoker.AbstractInvoker!invoke!AbstractInvoker.java!75
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1!run!ServiceInvokerInterceptor.java!58
java.util.concurrent.Executors$RunnableAdapter!call!Executors.java!439
java.util.concurrent.FutureTask$Sync!innerRun!FutureTask.java!303
java.util.concurrent.FutureTask!run!FutureTask.java!138
org.apache.cxf.workqueue.SynchronousExecutor!execute!SynchronousExecutor.java!37
org.apache.cxf.interceptor.ServiceInvokerInterceptor!handleMessage!ServiceInvokerInterceptor.java!107
org.apache.cxf.phase.PhaseInterceptorChain!doIntercept!PhaseInterceptorChain.java!262
org.apache.cxf.transport.ChainInitiationObserver!onMessage!ChainInitiationObserver.java!121
org.apache.cxf.transport.http.AbstractHTTPDestination!invoke!AbstractHTTPDestination.java!237
org.apache.cxf.transport.servlet.ServletController!invokeDestination!ServletController.java!209
org.apache.cxf.transport.servlet.ServletController!invoke!ServletController.java!189
org.apache.cxf.transport.servlet.CXFNonSpringServlet!invoke!CXFNonSpringServlet.java!130
org.apache.cxf.transport.servlet.AbstractHTTPServlet!handleRequest!AbstractHTTPServlet.java!225
org.apache.cxf.transport.servlet.AbstractHTTPServlet!doPost!AbstractHTTPServlet.java!145
javax.servlet.http.HttpServlet!service!HttpServlet.java!647
org.apache.cxf.transport.servlet.AbstractHTTPServlet!service!AbstractHTTPServlet.java!201
org.apache.catalina.core.ApplicationFilterChain!internalDoFilter!ApplicationFilterChain.java!305
org.apache.catalina.core.ApplicationFilterChain!doFilter!ApplicationFilterChain.java!210
org.apache.catalina.core.StandardWrapperValve!invoke!StandardWrapperValve.java!222
org.apache.catalina.core.StandardContextValve!invoke!StandardContextValve.java!123
org.apache.catalina.authenticator.AuthenticatorBase!invoke!AuthenticatorBase.java!502
org.apache.catalina.core.StandardHostValve!invoke!StandardHostValve.java!171
org.apache.catalina.valves.ErrorReportValve!invoke!ErrorReportValve.java!100
org.apache.catalina.valves.AccessLogValve!invoke!AccessLogValve.java!953
org.apache.catalina.core.StandardEngineValve!invoke!StandardEngineValve.java!118
org.apache.catalina.connector.CoyoteAdapter!service!CoyoteAdapter.java!408
org.apache.coyote.http11.AbstractHttp11Processor!process!AbstractHttp11Processor.java!1041
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler!process!AbstractProtocol.java!603
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor!doRun!AprEndpoint.java!2430
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor!run!AprEndpoint.java!2419
java.util.concurrent.ThreadPoolExecutor$Worker!runTask!ThreadPoolExecutor.java!895
java.util.concurrent.ThreadPoolExecutor$Worker!run!ThreadPoolExecutor.java!918
java.lang.Thread!run!Thread.java!662
Caused by: java.net.ConnectException : Connection refused: connect
java.net.PlainSocketImpl!socketConnect!PlainSocketImpl.java!-2
java.net.PlainSocketImpl!doConnect!PlainSocketImpl.java!351
java.net.PlainSocketImpl!connectToAddress!PlainSocketImpl.java!213
java.net.PlainSocketImpl!connect!PlainSocketImpl.java!200
java.net.SocksSocketImpl!connect!SocksSocketImpl.java!366
java.net.Socket!connect!Socket.java!529
org.apache.activemq.transport.tcp.TcpTransport!connect!TcpTransport.java!496
org.apache.activemq.transport.tcp.TcpTransport!doStart!TcpTransport.java!459
org.apache.activemq.util.ServiceSupport!start!ServiceSupport.java!55
org.apache.activemq.transport.AbstractInactivityMonitor!start!AbstractInactivityMonitor.java!140
org.apache.activemq.transport.TransportFilter!start!TransportFilter.java!58
org.apache.activemq.transport.WireFormatNegotiator!start!WireFormatNegotiator.java!72
org.apache.activemq.transport.TransportFilter!start!TransportFilter.java!58
org.apache.activemq.transport.TransportFilter!start!TransportFilter.java!58
org.apache.activemq.ActiveMQConnectionFactory!createActiveMQConnection!ActiveMQConnectionFactory.java!273
org.apache.activemq.ActiveMQConnectionFactory!createActiveMQConnection!ActiveMQConnectionFactory.java!238
org.apache.activemq.ActiveMQConnectionFactory!createConnection!ActiveMQConnectionFactory.java!184
org.apache.activemq.pool.PooledConnectionFactory!createConnection!PooledConnectionFactory.java!247
org.apache.activemq.pool.PooledConnectionFactory$1!makeObject!PooledConnectionFactory.java!131
org.apache.activemq.pool.PooledConnectionFactory$1!makeObject!PooledConnectionFactory.java!111
org.apache.commons.pool.impl.GenericKeyedObjectPool!borrowObject!GenericKeyedObjectPool.java!1220
org.apache.activemq.pool.PooledConnectionFactory!createConnection!PooledConnectionFactory.java!224
org.apache.activemq.pool.PooledConnectionFactory!createConnection!PooledConnectionFactory.java!195
org.springframework.jms.support.JmsAccessor!createConnection!JmsAccessor.java!184
org.springframework.jms.core.JmsTemplate!execute!JmsTemplate.java!456
org.springframework.jms.core.JmsTemplate!send!JmsTemplate.java!534
org.springframework.jms.core.JmsTemplate!convertAndSend!JmsTemplate.java!641
org.springframework.integration.jms.JmsSendingMessageHandler!send!JmsSendingMessageHandler.java!139
org.springframework.integration.jms.JmsSendingMessageHandler!handleMessageInternal!JmsSendingMessageHandler.java!112
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!128
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!128
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!306
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!299
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.handler.MessageHandlerChain$1!send!MessageHandlerChain.java!154
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.handler.MessageHandlerChain!handleMessageInternal!MessageHandlerChain.java!137
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
org.springframework.integration.dispatcher.UnicastingDispatcher!dispatch!UnicastingDispatcher.java!102
org.springframework.integration.channel.AbstractSubscribableChannel!doSend!AbstractSubscribableChannel.java!77
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!157
org.springframework.integration.channel.interceptor.WireTap!preSend!WireTap.java!121
org.springframework.integration.channel.AbstractMessageChannel$ChannelInterceptorList!preSend!AbstractMessageChannel.java!227
org.springframework.integration.channel.AbstractMessageChannel!send!AbstractMessageChannel.java!152
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!306
org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel!send!MessageHandlerChain.java!299
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendMessage!AbstractReplyProducingMessageHandler.java!216
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!sendReplyMessage!AbstractReplyProducingMessageHandler.java!200
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.handler.AbstractMessageHandler!handleMessage!AbstractMessageHandler.java!73
org.springframework.integration.handler.MessageHandlerChain$1!send!MessageHandlerChain.java!154
org.springframework.integration.core.MessagingTemplate!doSend!MessagingTemplate.java!288
org.springframework.integration.core.MessagingTemplate!send!MessagingTemplate.java!149
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!produceReply!AbstractReplyProducingMessageHandler.java!165
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleResult!AbstractReplyProducingMessageHandler.java!159
org.springframework.integration.handler.AbstractReplyProducingMessageHandler!handleMessageInternal!AbstractReplyProducingMessageHandler.java!141
org.springframework.integration.dispatcher.UnicastingDispatcher!doDispatch!UnicastingDispatcher.java!115
Can you please suggest how to make my app running even ActiveMQ is down
Please find ActiveMQ config below:
<!-- ======================================== -->
<!-- JMS CONFIG. -->
<!-- ======================================== -->
<!-- a pooling based JMS provider -->
<bean id="jmsFactory" class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop">
<property name="connectionFactory" ref="connectionFactory" />
</bean>
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL">
<value>${messagecentral.broker.url}</value>
</property>
</bean>
<!-- JMS Queue from accounts PBB -->
<bean id="messageCentralAccountsQueue" class="org.apache.activemq.command.ActiveMQQueue">
<!-- name of the queue in ActiveMQ -->
<constructor-arg value="messagecentral.accountspbb" />
</bean>
<bean id="messageCentralCardsQueue" class="org.apache.activemq.command.ActiveMQQueue">
<!-- name of the queue in ActiveMQ -->
<constructor-arg value="messagecentral.cardspbb" />
</bean>
Show, please, in addition the Spring Integration config for that JMS stuff. And more StackTrace would be great, too.
I mean maybe there it will be just enough to mark your adapters with auto-startup="false" and your application will start well.
You can also use failover property to connect to other activemq server when one is down.You can also use this link.Master-slave servers can be used
http://activemq.apache.org/failover-transport-reference.html
Related
Duplicate class Found using coroutines and room database android
I'm using Coroutine and Room Database Library in my project, gradle build is running successful but when I run project it gives me Duplicate Class Error , So what is the proper way to get rid of such problems... Build Gradle: // Room architecture component dependencies def room_version = "2.2.0-rc01" //2.2.5 implementation "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" implementation "androidx.room:room-ktx:$room_version" //JetBrains implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.5' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.5' // def room_version = "2.2.6" /* implementation("androidx.room:room-ktx:$room_version",{ exclude group: 'org.jetbrains.kotlinx', module:'kotlinx-coroutines-core-jvm' })*/ // implementation "androidx.room:room-coroutines:2.1.0-alpha04" // testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.4.0' StackStrace Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:kaptDevDebugKotlin'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:208) at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:206) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:187) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150) Caused by: java.lang.RuntimeException: Duplicate class kotlinx.coroutines.debug.AgentPremain found in modules jetified-kotlinx-coroutines-core-jvm-1.4.1 (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.1) and jetified-kotlinx-coroutines-debug-1.3.5 (org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.3.5) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:372) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:359) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:352) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:338) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution at org.gradle.workers.internal.DefaultWorkerExecutor$WorkItemExecution.waitForCompletion(DefaultWorkerExecutor.java:336) at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:142) at org.gradle.internal.work.DefaultAsyncWorkTracker.access$000(DefaultAsyncWorkTracker.java:34) at org.gradle.internal.work.DefaultAsyncWorkTracker$1.run(DefaultAsyncWorkTracker.java:106) at org.gradle.internal.Factories$1.create(Factories.java:26) at org.gradle.internal.work.DefaultWorkerLeaseService.withoutLocks(DefaultWorkerLeaseService.java:251) at org.gradle.internal.work.DefaultWorkerLeaseService.withoutProjectLock(DefaultWorkerLeaseService.java:162) at org.gradle.internal.work.DefaultWorkerLeaseService.withoutProjectLock(DefaultWorkerLeaseService.java:156) at org.gradle.internal.work.StopShieldingWorkerLeaseService.withoutProjectLock(StopShieldingWorkerLeaseService.java:95) at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:102) at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForAll(DefaultAsyncWorkTracker.java:80) at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForCompletion(DefaultAsyncWorkTracker.java:68) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:578) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:84) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:555) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:538) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:109) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:279) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:268) at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32) at java.base/java.util.Optional.map(Optional.java:258) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26) at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:67) at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:36) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34) at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43) at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73) at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54) at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34) at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44) at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54) at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38) at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49) at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:159) at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:72) at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:43) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24) at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92) at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85) at java.base/java.util.Optional.map(Optional.java:258) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53) at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78) at java.base/java.util.Optional.orElseGet(Optional.java:362) Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39) at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40) at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28) at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:195) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:187) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:372) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:359) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:352) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:338) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.jetbrains.kotlin.gradle.internal.KaptExecution.run(KaptWithoutKotlincTask.kt:158) at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:57) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:67) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:63) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:63) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36) at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:60) at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:200) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:215) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ... 6 more Caused by: org.jetbrains.kotlin.kapt3.base.util.KaptBaseError: Error while annotation processing at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:126) at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:35) at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45) ... 35 more
kaptGenerateStubsKotlin, CreateProcess error=206
When running Gradle with Kotlin and kapt I get the following error message. Execution failed for task ':kaptGenerateStubsKotlin'. > java.io.IOException: Cannot run program "C:\openjdk\jdk-13\bin\java": CreateProcess error=206, The filename or extension is too long Entire stack trace below: > Task :kaptGenerateStubsKotlin FAILED Compilation with Kotlin compile daemon was not successful java.rmi.ServerError: Error occurred in server thread; nested exception is: java.lang.AssertionError: Could not delete caches dir C:\Users\User\Documents\backend\build\kotlin\kaptGenerateStubsKotlin at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:388) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) at java.base/java.security.AccessController.doPrivileged(AccessController.java:691) at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196) at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:830) at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283) at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260) at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161) at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:209) at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:161) at com.sun.proxy.$Proxy83.compile(Unknown Source) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.incrementalCompilationWithDaemon(GradleKotlinCompilerWork.kt:282) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemon(GradleKotlinCompilerWork.kt:195) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemonOrFallbackImpl(GradleKotlinCompilerWork.kt:134) at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.run(GradleKotlinCompilerWork.kt:117) at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runCompilerAsync(GradleKotlinCompilerRunner.kt:148) at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runCompilerAsync(GradleKotlinCompilerRunner.kt:143) at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompilerAsync(GradleKotlinCompilerRunner.kt:83) at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompilerAsync$kotlin_gradle_plugin(Tasks.kt:422) at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompilerAsync$kotlin_gradle_plugin(Tasks.kt:345) at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.executeImpl(Tasks.kt:306) at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:277) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104) at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:47) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42) at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:539) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:524) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:507) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:109) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:258) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:247) at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32) at java.base/java.util.Optional.map(Optional.java:258) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26) at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:63) at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34) at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43) at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73) at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54) at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34) at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44) at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54) at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38) at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:153) at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:67) at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:41) at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24) at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92) at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85) at java.base/java.util.Optional.map(Optional.java:258) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53) at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78) at java.base/java.util.Optional.orElseGet(Optional.java:362) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39) at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40) at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28) at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:174) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:166) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:374) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:361) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:354) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:340) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) at java.base/java.lang.Thread.run(Thread.java:830) Caused by: java.lang.AssertionError: Could not delete caches dir C:\Users\User\Documents\backend\build\kotlin\kaptGenerateStubsKotlin Caused by: java.lang.AssertionError: Could not delete caches dir C:\Users\User\Documents\backend\build\kotlin\kaptGenerateStubsKotlin at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.clearLocalStateOnRebuild(IncrementalCompilerRunner.kt:128) at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.access$clearLocalStateOnRebuild(IncrementalCompilerRunner.kt:37) at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner$compile$2.invoke(IncrementalCompilerRunner.kt:73) at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:101) at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:606) at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:99) at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1645) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) at java.base/java.security.AccessController.doPrivileged(AccessController.java:691) at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196) at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ... 1 more Could not connect to kotlin daemon. Using fallback strategy. Execution failed for task ':kaptGenerateStubsKotlin'. > java.io.IOException: Cannot run program "C:\openjdk\jdk-13\bin\java": CreateProcess error=206, The filename or extension is too long However, when I manually close IntelliJ delete the build folder re-open IntelliJ then the build works fine. At some point the problem arises again and I have to repeat the three steps. Anyone have an idea how to fix this? Edit: After some more playing around with this - after closing IntelliJ I sometimes need to kill an OpenJDK Process in the Task Manager before I can delete the build directory. It seems as if a zombie process stays around sometimes.
Ignite server seems try to connect some outter server with public IP out of my cluster?
I have on ignite server running on the server on Ali cloud ECS server(same as the Amazon AWS), when I checking the log, I found some warnning and it seems the server try to connect some other node with outter IP (the outter ip seems also a Ali cloud server) But my server is configured with static IP discovery: <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. --> <property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="ipFinder"> <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. --> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">--> <property name="addresses"> <list> <!-- In distributed environment, replace with actual host IP address. --> <value>172.24.113.216:47500..47509</value> </list> </property> </bean> </property> </bean> </property> And the warnning log like: [01:21:09,355][WARNING][grid-nio-worker-tcp-rest-1-#35][GridTcpRestProtocol] Closing NIO session because of unhandled exception [cls=class o.a.i.i.util.nio.GridNioException, msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=1, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-1, igniteInstanceName=null, finished=false, hashCode=407415574, interrupted=false, runner=grid-nio-worker-tcp-rest-1-#35]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/120.55.13.109:40648, createTime=1527787269297, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527787269297, lastSndTime=1527787269297, lastRcvTime=1527787269348, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5#306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]] [01:21:09,356][WARNING][grid-nio-worker-tcp-rest-1-#35][GridTcpRestProtocol] Closed client session due to exception [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=1, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-1, igniteInstanceName=null, finished=false, hashCode=407415574, interrupted=false, runner=grid-nio-worker-tcp-rest-1-#35]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/120.55.13.109:40648, createTime=1527787269297, closeTime=1527787269348, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527787269297, lastSndTime=1527787269297, lastRcvTime=1527787269348, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5#306c3eeb], routerClient=false], directMode=false]], accepted=true]], msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=1, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-1, igniteInstanceName=null, finished=false, hashCode=407415574, interrupted=false, runner=grid-nio-worker-tcp-rest-1-#35]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/120.55.13.109:40648, createTime=1527787269297, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527787269297, lastSndTime=1527787269297, lastRcvTime=1527787269348, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5#306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]] [01:21:31,096][INFO][grid-timeout-worker-#23][IgniteKernal] Metrics for local node (to disable set 'metricsLogFrequency' to 0) [01:08:24,828][WARNING][grid-nio-worker-tcp-rest-0-#34][GridTcpRestProtocol] Closing NIO session because of unhandled exception [cls=class o.a.i.i.util.nio.GridNioException, msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-0, igniteInstanceName=null, finished=false, hashCode=1820163947, interrupted=false, runner=grid-nio-worker-tcp-rest-0-#34]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/119.23.174.205:56168, createTime=1527786504794, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527786504794, lastSndTime=1527786504794, lastRcvTime=1527786504815, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5#306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]] [01:08:24,831][WARNING][grid-nio-worker-tcp-rest-0-#34][GridTcpRestProtocol] Closed client session due to exception [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-0, igniteInstanceName=null, finished=false, hashCode=1820163947, interrupted=false, runner=grid-nio-worker-tcp-rest-0-#34]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/119.23.174.205:56168, createTime=1527786504794, closeTime=1527786504825, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527786504794, lastSndTime=1527786504794, lastRcvTime=1527786504815, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5#306c3eeb], routerClient=false], directMode=false]], accepted=true]], msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-0, igniteInstanceName=null, finished=false, hashCode=1820163947, interrupted=false, runner=grid-nio-worker-tcp-rest-0-#34]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/119.23.174.205:56168, createTime=1527786504794, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527786504794, lastSndTime=1527786504794, lastRcvTime=1527786504815, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5#306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]] [01:08:31,046][INFO][grid-timeout-worker-#23][IgniteKernal] 172.24.113.216 is my private subnet ip, but in the above log, the rmtAddr=/120.55.13.109:40648 and rmtAddr=/119.23.174.205:56168 is not the IP owned by myself, it's two public IP of the Ali ECS cloud(I don't know if these two node is in the save private net with me, because it's not owned by myself), so, why the warinng occurs, and what's the warning stand for, doesn't it mean my node try to connect other node even I configured with static discovery, and it seems i have the risk of losing my cache data?
172.24.113.216:11211 is a server side port used for Memcached [1] and Redis [2] protocol implementations. So it's other way around - something from 120.55.13.109 tries connect to one of your nodes. [1] https://apacheignite.readme.io/docs/memcached-support [2] https://apacheignite.readme.io/docs/redis
C3P0ProxyConnection Class Not Found Error in Mule
I am working on a Mule flow which receives xml over a JMS queue and stores that xml as a clob value in an Oracle table. I am using C3P0 ComboPoolDataSource to manage connection pooling. I am getting a java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/C3P0ProxyConnection error when I try to set the clob using below method call getLobHandler().getLobCreator().setCloBAsString(pstmt,8,"Test Message"); I have checked the mule logs and it does say that it loaded the c3p0-0.9.1.2.jar INFO 2013-10-31 19:29:06,054 [WrapperListener_start_runner] org.mule.module.launcher.MuleApplicationClassLoader: [TestWorkflow] Loading the following jar s: ============================= file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/activemq-core-5.5.0.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/c3p0-0.9.1.2.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/geronimo-jms_1.1_spec-1.1.1.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/jdom2-2.0.5.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/log4j-1.2.16.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/mchange-commons-0.2.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/ojdbc14.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/slf4j-api-1.5.11.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/slf4j-nop-1.5.11.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/spring.jar file:/C:/Test_mule/mule-standalone-3.4.0/apps/TestWorkflow/lib/test-notifier.jar Below is my spring application context configuration. <?xml version="1.0" encoding="UTF-8"?> -<beans xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd" xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"> -<bean class="com.zanaco.mule.workflow.NotificationListener" name="notifcationListener" id="notifcationListener"> <property name="oracleDAO" ref="oracleDAO"/> </bean> <!-- Configurer that replaces ${...} placeholders with values from properties files --> <!-- (in this case, mail and JDBC related properties) --> <!-- <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>classpath:jdbc.properties</value> </list> </property> </bean> --> <!-- c3p0 data source added to manage Connection pooling and to handle deadlock scenario and bad performance of Apache DBCP --> -<bean class="com.mchange.v2.c3p0.ComboPooledDataSource" id="dataSource" scope="singleton" destroy-method="close"> <property name="driverClass" value="oracle.jdbc.driver.OracleDriver"/> <property name="jdbcUrl" value="jdbc:oracle:thin:#xxxx:1521:fcdb"/> <property name="user" value="XXXXX"/> <property name="password" value="xxxxx"/> <property name="maxIdleTime" value="1000000"/> <!-- <property name="debugUnreturnedConnectionStackTraces" value="${debugUnreturnedConnectionStackTraces}" /> <property name="unreturnedConnectionTimeout" value="${unreturnedConnectionTimeout}" /> --> </bean> <!-- LobHandler for well-behaved JDBC drivers --> <!-- (simply delegating to corresponding PreparedStatement and ResultSet methods) --> <bean class="org.springframework.jdbc.support.lob.DefaultLobHandler" id="defaultLobHandler" lazy-init="false"/> <!-- LobHandler for Oracle JDBC drivers --> <!-- (refers to the NativeJdbcExtractor above to get access to native OracleConnections) --> -<bean class="org.springframework.jdbc.support.lob.OracleLobHandler" id="oracleLobHandler" lazy-init="false"> <property name="nativeJdbcExtractor" ref="nativeJdbcExtractor"/> </bean> <!-- NativeJdbcExtractor for the C3P0 connection pool above --> <!-- (just needed for oracleLobHandler) --> <bean class="org.springframework.jdbc.support.nativejdbc.C3P0NativeJdbcExtractor" id="nativeJdbcExtractor" lazy-init="false"/> -<bean class="com.zanaco.db.OracleDAO" name="oracleDAO" id="oracleDAO"> -<property name="dataSource"> <ref bean="dataSource"/> </property> -<property name="lobHandler"> <ref bean="oracleLobHandler"/> </property> </bean> </beans> and below is the log trace: ERROR [[TestWorkflow].ReceiveObject.stage1.02] (DispatchingLogger.java:341) - Work caused exception on 'workCompleted'. Work being executed was: org.mule. processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker#22b429 Exception in thread "[TestWorkflow].ReceiveObject.stage1.02" org.mule.api.MuleRuntimeException: An exception occurred while invoking message processor "De faultMessageProcessorChain '(inner iterating chain) of 'ReceiveObject' processor chain' [ DefaultJavaComponent{ReceiveObject.component.7097325}, DefaultOutboundEndpoint{endpointUri=smtp://test-abc:<password>#mail.abc.com, connector=SmtpConnector { name=smtpConnector lifecycle=start this=fc6af5 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[smtp] serviceOverrides=<none> } , name='endpoint.smtp.test.abc.abc.com.25', mep=ONE_WAY, properties={}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, tim eout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=50000, endpointEncoding=UTF-8, disableTransportTransformer=false}, org.mule.routing.requestreply.AsyncReplyToPropertyRequestReplyReplier ]" for asynchronously. at org.mule.processor.AsyncWorkListener.handleWorkException(AsyncWorkListener.java:74) at org.mule.processor.AsyncWorkListener.workCompleted(AsyncWorkListener.java:50) at org.mule.work.WorkerContext.run(WorkerContext.java:338) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/C3P0ProxyConnection at org.springframework.jdbc.support.nativejdbc.C3P0NativeJdbcExtractor.doGetNativeConnection(C3P0NativeJdbcExtractor.java:97) at org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter.getNativeConnection(NativeJdbcExtractorAdapter.java:99) at org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter.getNativeConnectionFromStatement(NativeJdbcExtractorAdapter.java:135) at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.getOracleConnection(OracleLobHandler.java:533) at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.createLob(OracleLobHandler.java:493) at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.setClobAsString(OracleLobHandler.java:420) at com.test.db.OracleDAO.saveTransaction(OracleDAO.java:51) at com.test.mule.workflow.NotificationListener.onCall(NotificationListener.java:53) at org.mule.model.resolvers.CallableEntryPointResolver.invoke(CallableEntryPointResolver.java:50) at org.mule.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:39) at org.mule.component.DefaultComponentLifecycleAdapter.invoke(DefaultComponentLifecycleAdapter.java:343) at org.mule.component.AbstractJavaComponent.invokeComponentInstance(AbstractJavaComponent.java:86) at org.mule.component.AbstractJavaComponent.doInvoke(AbstractJavaComponent.java:77) at org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:126) at org.mule.component.AbstractComponent.access$000(AbstractComponent.java:61) at org.mule.component.AbstractComponent$1$1.process(AbstractComponent.java:242) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:61) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:47) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:95) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:70) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:54) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:70) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.access$001(InterceptingChainLifecycleWrapper.java:26) at org.mule.processor.chain.InterceptingChainLifecycleWrapper$1.process(InterceptingChainLifecycleWrapper.java:70) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:61) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:47) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:65) at org.mule.component.AbstractComponent.process(AbstractComponent.java:160) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:61) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:47) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:95) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:70) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:47) at org.mule.processor.AbstractInterceptingMessageProcessorBase.processNext(AbstractInterceptingMessageProcessorBase.java:106) at org.mule.interceptor.AbstractEnvelopeInterceptor.process(AbstractEnvelopeInterceptor.java:55) at org.mule.processor.AsyncInterceptingMessageProcessor.processNextTimed(AsyncInterceptingMessageProcessor.java:122) at org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker$1.process(AsyncInterceptingMessageProcessor.java:192) at org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker$1.process(AsyncInterceptingMessageProcessor.java:185) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:20) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:34) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:18) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:58) at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:48) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:54) at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:44) at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:44) at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:52) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:32) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:17) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:113) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:34) at org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker.doRun(AsyncInterceptingMessageProcessor.java:184) at org.mule.work.AbstractMuleEventWork.run(AbstractMuleEventWork.java:43) at org.mule.work.WorkerContext.run(WorkerContext.java:311) ... 3 more Caused by: java.lang.ClassNotFoundException: com.mchange.v2.c3p0.C3P0ProxyConnection at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 61 more
It's as if the classloader into which com.test.db.OracleDAO.saveTransaction() executes is not the classloader of the TestWorkflow application. Do you have several applications? If not, can you try adding c3p0-0.9.1.2.jar to $MULE_HOME/lib/user to see if it helps.
Broken connection reason
I'm testing my Spring MVC web-app with Apache JMeter,but I have some troubles with h2db pool connection. My test consists on 5 threads and 100 loops. I test registration flow on glassfish server. Firstly as a database connection class I used org.springframework.jdbc.datasource.DriverManagerDataSource, but my connections was suspended in the middle of test. Now, I use DBCP with following parameters: <property name="initialSize" value="1"/> <property name="maxActive" value="100"/> <property name="maxIdle" value="10"/> Unfortunately tests are still suspended. I'm getting: org.h2.jdbc.JdbcSQLException: Broken connection: "session closed" Connection is broken: "session closed" [90067-164] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:169) at org.h2.message.DbException.get(DbException.java:146) at org.h2.engine.SessionRemote.checkClosed(SessionRemote.java:500) at org.h2.engine.SessionRemote.removeServer(SessionRemote.java:431) at org.h2.command.CommandRemote.prepare(CommandRemote.java:80) at org.h2.command.CommandRemote.<init>(CommandRemote.java:46) at org.h2.engine.SessionRemote.prepareCommand(SessionRemote.java:437) at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1125) at org.h2.jdbc.JdbcConnection.rollbackInternal(JdbcConnection.java:1427) at org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:467) at org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnection.java:368) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.rollback(PoolingDataSource.java:323) at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:213) at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:192) at org.springframework.orm.hibernate3.HibernateTransactionManager.doRollback(HibernateTransactionManager.java:597) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:845) at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:822) at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:411) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:114) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy137.save(Unknown Source) at com.car.rental.controllers.user.RegisterFormController.processSubmit(RegisterFormController.java:95) 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.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) It shows that there's some troubles with transaction rollback. My register form params contain one image file (34,7 kB). Shouldn't such files be used during performance tests? Anyone knows the reason or solution?
It seems to be database system error/bug. When I started the same application with MySQL everything is OK.