Failed

Scenario: Executing Job When Device Connected After The Specified Start Date And Time.And I confirm the executed job is finished (from org.eclipse.kapua.integration.service.jobScheduling.RunExecuteOnDeviceConnectI9nTest)

Failing for the past 640 builds (Since #0 )
Took 2.5 sec.

Stacktrace

java.lang.AssertionError

Standard Error

[ActiveMQ NIO Worker 9] INFO org.eclipse.kapua.service.authentication.shiro.AuthenticationServiceShiroImpl - Login for thread '159' - 'ActiveMQ NIO Worker 9' - 'org.apache.shiro.subject.support.DelegatingSubject@23014756'
[pool-13-thread-1] ERROR org.eclipse.kapua.job.engine.commons.operation.AbstractTargetProcessor - ScopeId: 1 - JobId: 7882980888648808211 - JobName: job-AQ-bWX5Wjca9xM - ExecutionId: 1377330166276176641 - Processing item: 4258617176379335397 - Error!
org.eclipse.kapua.service.device.management.exception.DeviceManagementSendException: An error occurred when sending the message: org.eclipse.kapua.service.device.management.command.message.internal.CommandRequestMessage@3d84b53b
	at org.eclipse.kapua.service.device.management.commons.call.DeviceCallExecutor.send(DeviceCallExecutor.java:167)
	at org.eclipse.kapua.service.device.management.command.internal.DeviceCommandManagementServiceImpl.exec(DeviceCommandManagementServiceImpl.java:86)
	at org.eclipse.kapua.service.device.management.command.job.DeviceCommandExecTargetProcessor.lambda$processTarget$0(DeviceCommandExecTargetProcessor.java:57)
	at org.eclipse.kapua.commons.security.KapuaSecurityUtils.doPrivileged(KapuaSecurityUtils.java:110)
	at org.eclipse.kapua.service.device.management.command.job.DeviceCommandExecTargetProcessor.processTarget(DeviceCommandExecTargetProcessor.java:57)
	at org.eclipse.kapua.job.engine.commons.operation.AbstractTargetProcessor.processItem(AbstractTargetProcessor.java:55)
	at com.ibm.jbatch.container.artifact.proxy.ItemProcessorProxy.processItem(ItemProcessorProxy.java:34)
	at com.ibm.jbatch.container.impl.ChunkStepControllerImpl.processItem(ChunkStepControllerImpl.java:410)
	at com.ibm.jbatch.container.impl.ChunkStepControllerImpl.readAndProcess(ChunkStepControllerImpl.java:262)
	at com.ibm.jbatch.container.impl.ChunkStepControllerImpl.invokeChunk(ChunkStepControllerImpl.java:622)
	at com.ibm.jbatch.container.impl.ChunkStepControllerImpl.invokeCoreStep(ChunkStepControllerImpl.java:763)
	at com.ibm.jbatch.container.impl.BaseStepControllerImpl.execute(BaseStepControllerImpl.java:149)
	at com.ibm.jbatch.container.impl.ExecutionTransitioner.doExecutionLoop(ExecutionTransitioner.java:112)
	at com.ibm.jbatch.container.impl.JobThreadRootControllerImpl.originateExecutionOnThread(JobThreadRootControllerImpl.java:110)
	at com.ibm.jbatch.container.util.BatchWorkUnit.run(BatchWorkUnit.java:80)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.kapua.service.device.call.exception.DeviceCallSendException: An error occurred when sending the message: org.eclipse.kapua.service.device.call.message.kura.app.request.KuraRequestMessage@23c8bf1a
	at org.eclipse.kapua.service.device.call.kura.KuraDeviceCallImpl.sendInternal(KuraDeviceCallImpl.java:167)
	at org.eclipse.kapua.service.device.call.kura.KuraDeviceCallImpl.execute(KuraDeviceCallImpl.java:96)
	at org.eclipse.kapua.service.device.call.kura.KuraDeviceCallImpl.execute(KuraDeviceCallImpl.java:56)
	at org.eclipse.kapua.service.device.management.commons.call.DeviceCallExecutor.send(DeviceCallExecutor.java:150)
	... 17 more
Caused by: org.eclipse.kapua.transport.exception.TransportClientGetException: Cannot get an instance of the transport client to connect to host: tcp://192.168.33.10:1883
	at org.eclipse.kapua.transport.mqtt.MqttFacade.<init>(MqttFacade.java:63)
	at org.eclipse.kapua.transport.mqtt.MqttClientFactoryImpl.getFacade(MqttClientFactoryImpl.java:42)
	at org.eclipse.kapua.transport.mqtt.MqttClientFactoryImpl.getFacade(MqttClientFactoryImpl.java:31)
	at org.eclipse.kapua.service.device.call.kura.KuraDeviceCallImpl.borrowClient(KuraDeviceCallImpl.java:206)
	at org.eclipse.kapua.service.device.call.kura.KuraDeviceCallImpl.sendInternal(KuraDeviceCallImpl.java:130)
	... 20 more
Caused by: org.eclipse.kapua.transport.mqtt.exception.MqttClientConnectException: MqttClient KapuaPool-1595242535305-5160190356562665381 cannot connect to {2} with username [Ljava.lang.Object;@46281bb0
	at org.eclipse.kapua.transport.mqtt.MqttClient.connectClient(MqttClient.java:108)
	at org.eclipse.kapua.transport.mqtt.pooling.PooledMqttClientFactory.create(PooledMqttClientFactory.java:80)
	at org.eclipse.kapua.transport.mqtt.pooling.PooledMqttClientFactory.create(PooledMqttClientFactory.java:36)
	at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:60)
	at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)
	at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
	at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
	at org.eclipse.kapua.transport.mqtt.MqttFacade.<init>(MqttFacade.java:61)
	... 24 more
Caused by: MqttException (0) - java.net.SocketTimeoutException: connect timed out
	at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38)
	at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:736)
	... 1 more
Caused by: java.net.SocketTimeoutException: connect timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:74)
	at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:722)
	... 1 more
[pool-13-thread-1] INFO org.eclipse.kapua.job.engine.commons.operation.DefaultTargetReader - ScopeId: 1 - JobId: 7882980888648808211 - JobName: job-AQ-bWX5Wjca9xM - ExecutionId: 1377330166276176641 - Reading item...
[pool-13-thread-1] INFO org.eclipse.kapua.job.engine.commons.operation.DefaultTargetReader - ScopeId: 1 - JobId: 7882980888648808211 - JobName: job-AQ-bWX5Wjca9xM - ExecutionId: 1377330166276176641 - Reading item... DONE!
[pool-13-thread-1] INFO org.eclipse.kapua.job.engine.commons.operation.DefaultTargetWriter - ScopeId: 1 - JobId: 7882980888648808211 - JobName: job-AQ-bWX5Wjca9xM - ExecutionId: 1377330166276176641 - Writing items...
[pool-13-thread-1] INFO org.eclipse.kapua.job.engine.commons.operation.DefaultTargetWriter - ScopeId: 1 - JobId: 7882980888648808211 - JobName: job-AQ-bWX5Wjca9xM - ExecutionId: 1377330166276176641 - Writing items... DONE!
[pool-13-thread-1] INFO org.eclipse.kapua.job.engine.commons.operation.DefaultTargetWriter - ScopeId: 1 - JobId: 7882980888648808211 - JobName: job-AQ-bWX5Wjca9xM - ExecutionId: 1377330166276176641 - Running after job...
[pool-13-thread-1] INFO org.eclipse.kapua.job.engine.commons.operation.DefaultTargetWriter - ScopeId: 1 - JobId: 7882980888648808211 - JobName: job-AQ-bWX5Wjca9xM - ExecutionId: 1377330166276176641 - Running after job... DONE!