Coder Social home page Coder Social logo

pharmeasyengg / lampo Goto Github PK

View Code? Open in Web Editor NEW
45.0 5.0 7.0 11 MB

Lampo is developed to run appium mobile automation scripts on mobile devices connected to remote machines. It also aims at allowing users to interact with remotely connected devices for manual testing.

License: Other

Java 95.18% HTML 2.62% Shell 0.30% CSS 0.32% JavaScript 1.58%
appium device-lab manual-testing mobile-automation android-automation ios-automation xcui-testing uiautomation uiautomator2

lampo's People

Contributors

nishantkashyap18 avatar sarathpharmeasy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lampo's Issues

com.lampo.master.RemoteDeviceManagerTest > initializationError FAILED

Getting failure in server startup. not sure why the path reference is missing rabbitmq folders under /var/folders/tq/1tppl1d52910j4tmg7dc85q00000gq/T/. I have my rabbitmq installed and it is up and running. how to resolve this

rabbitMQ version running in my system:

Asking node rabbit@localhost for its RabbitMQ version...
3.8.11

Debug Logs

2021-02-17T10:34:57.434+0530 [DEBUG] [TestEventLogger]
2021-02-17T10:34:57.434+0530 [DEBUG] [TestEventLogger] com.lampo.master.RemoteDeviceManagerTest > initializationError STARTED
2021-02-17T10:34:57.457+0530 [DEBUG] [TestEventLogger]
2021-02-17T10:34:57.457+0530 [DEBUG] [TestEventLogger] com.lampo.master.RemoteDeviceManagerTest > initializationError FAILED
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]     org.opentest4j.MultipleFailuresError: Multiple Failures (2 failures)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]          java.lang.IllegalArgumentException: The given command could not be found using the path: /var/folders/tq/1tppl1d52910j4tmg7dc85q00000gq/T/rabbitmq_server-3.8.0/sbin/rabbitmq-plugins
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]          java.lang.NullPointerException: <no message>
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.TestRun.getStoredResultOrSuccessful(TestRun.java:179)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.RunListenerAdapter.fireExecutionFinished(RunListenerAdapter.java:211)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.RunListenerAdapter.testRunFinished(RunListenerAdapter.java:90)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:40)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:71)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/java.lang.reflect.Method.invoke(Method.java:567)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at com.sun.proxy.$Proxy5.stop(Unknown Source)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:132)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.lang.reflect.Method.invoke(Method.java:567)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:412)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.lang.Thread.run(Thread.java:830)
2021-02-17T10:34:57.462+0530 [DEBUG] [TestEventLogger]
2021-02-17T10:34:57.462+0530 [DEBUG] [TestEventLogger] com.lampo.master.RemoteDeviceManagerTest FAILED
2021-02-17T10:34:57.486+0530 [DEBUG] [TestEventLogger]

Compilation Error

Implementaion of addPhoto(photo) missing in service class PhoneImageService. Please look into this below snippet from controller call PhoneImageController

@PostMapping("/add")
public String addPhoto(@RequestParam("name") String name, @RequestParam("file") MultipartFile file)
throws IOException {

	Collection<Photo> _photo = getPhotoByName(name);
	Photo photo = null;
	if (_photo.isEmpty()) {
		photo = new Photo();
		photo.setName(name);
		photo.setImage(new Binary(BsonBinarySubType.BINARY, file.getBytes()));
		photo = service.addPhoto(photo);
	} else {
		photo = _photo.stream().findAny().get();
	}
	return photo.getId();
}

@GetMapping
public Collection<Photo> getPhotoByName(@RequestParam String name) {
	return service.getPhotoByName(name);
}

Getting 400 Bad Request in Allocate device API.

Description

After starting the device manager and slave instance, I am able to see running simulators but when I use allocate end-point to start Appium session, I get 400 - Bad Request Error even when using same request sample given in README.

Following are the details about the request and response:

Request

> curl -L -iX POST "http://localhost:5353/remote-device-manager/appium/allocate?timeout=120" \
 --header "content-type: application/json" \
 --header "x-device-request-id: bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b" \
 --header "x-request-user: Wasiq" \
 --header "x-forwarded-for: localhost" \
 --data '{
     "is_android": "false",
     "is_real_device": "",
     "brand": "",
     "version": "",
     "device_name": "iPhone 12 Pro",
     "clear_user_data": false,
     "app_package": null
 }'

Response

HTTP/1.1 400 
Content-Type: application/json
Transfer-Encoding: chunked
Date: Tue, 26 Jan 2021 11:42:26 GMT
Connection: close

{"error":"request id 'bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b' for user 'Wasiq' from 'localhost' ::: unable to allocate device for request 'DeviceRequest(isAndroid=false, isRealDevice=, brand=, version=, deviceName=iPhone 12 Pro, clearUserData=false, appPackage=null)' even after '120 seconds'"}% 

Device Manager Logs

2021-01-26 17:10:25.992  INFO 43172 --- [remote-master-1] c.l.master.service.AllocationService     : request id 'bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b' for user 'Wasiq' from 'localhost' ::: device allocate request 'DeviceRequest(isAndroid=false, isRealDevice=, brand=, version=, deviceName=iPhone 12 Pro, clearUserData=false, appPackage=null)' with timeout of 120 seconds
2021-01-26 17:12:26.011 ERROR 43172 --- [nio-5353-exec-6] c.l.m.s.DeviceManagerExceptionHandler    : request id 'bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b' for user 'Wasiq' from 'localhost' ::: unable to allocate device for request 'DeviceRequest(isAndroid=false, isRealDevice=, brand=, version=, deviceName=iPhone 12 Pro, clearUserData=false, appPackage=null)' even after '120 seconds'

Slave Logs

2021-01-26 17:10:26.196  INFO 45226 --- [nio-5252-exec-4] c.l.slave.service.AppiumSessionService   : creating appium session for request 'AppiumSessionRequest(deviceId=E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB, cleanUserData=false, appPackage=)' with request id 'bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b'
2021-01-26 17:10:26.205  INFO 45226 --- [nio-5252-exec-4] c.l.slave.service.AppiumSessionService   : starting appium session for request => {device_id=E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB, is_android=false, request-id=bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b}
2021-01-26 17:10:27.348  INFO 45226 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder   : ********* bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b ::: stopping appium process of device 'E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB' *********
2021-01-26 17:10:29.494  INFO 45226 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder   : ********* bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b ::: stopping appium process of device 'E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB' *********
2021-01-26 17:10:30.498  INFO 45226 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder   : ********* bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b ::: starting appium process for device 'E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB' *********
2021-01-26 17:10:31.186  INFO 45226 --- [   scheduling-1] c.l.slave.service.DeviceSyncProcessor    : ***** 1185 ms taken to send data DeviceUpdateRequest(ip=192.168.0.102, androidRealDevices=[], androidEmulators=[], iosRealDevices=[], iosSimulators=[IOSDeviceProperty(deviceId=E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB, sdkVersion=14.1, manufacturer=Apple, isAndroid=false, isRealDevice=false)]) *****
2021-01-26 17:10:31.597  INFO 45226 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder   : starting appium session
2021-01-26 17:10:46.202  INFO 45226 --- [   scheduling-1] c.l.slave.service.DeviceSyncProcessor    : ***** 1197 ms taken to send data DeviceUpdateRequest(ip=192.168.0.102, androidRealDevices=[], androidEmulators=[], iosRealDevices=[], iosSimulators=[IOSDeviceProperty(deviceId=E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB, sdkVersion=14.1, manufacturer=Apple, isAndroid=false, isRealDevice=false)]) *****
2021-01-26 17:11:01.334  INFO 45226 --- [   scheduling-1] c.l.slave.service.DeviceSyncProcessor    : ***** 1211 ms taken to send data DeviceUpdateRequest(ip=192.168.0.102, androidRealDevices=[], androidEmulators=[], iosRealDevices=[], iosSimulators=[IOSDeviceProperty(deviceId=E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB, sdkVersion=14.1, manufacturer=Apple, isAndroid=false, isRealDevice=false)]) *****
2021-01-26 17:11:16.179  INFO 45226 --- [   scheduling-1] c.l.slave.service.DeviceSyncProcessor    : ***** 1178 ms taken to send data DeviceUpdateRequest(ip=192.168.0.102, androidRealDevices=[], androidEmulators=[], iosRealDevices=[], iosSimulators=[IOSDeviceProperty(deviceId=E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB, sdkVersion=14.1, manufacturer=Apple, isAndroid=false, isRealDevice=false)]) *****
2021-01-26 17:11:31.182  INFO 45226 --- [   scheduling-1] c.l.slave.service.DeviceSyncProcessor    : ***** 1181 ms taken to send data DeviceUpdateRequest(ip=192.168.0.102, androidRealDevices=[], androidEmulators=[], iosRealDevices=[], iosSimulators=[IOSDeviceProperty(deviceId=E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB, sdkVersion=14.1, manufacturer=Apple, isAndroid=false, isRealDevice=false)]) *****
2021-01-26 17:11:31.806 ERROR 45226 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder   : listening on port '4736' timed out after '60 seconds'
2021-01-26 17:11:32.809 ERROR 45226 --- [nio-5252-exec-4] c.l.s.utils.AppiumLocalService$Builder   : ********* bc530bf2-aafb-4e5f-a3bf-20db63cf2e6b ::: unable to start appium process for device 'E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB' *********
com.lampo.slave.model.DeviceManagerException: unable to start appium service for device 'E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB'
	at com.lampo.slave.service.AppiumSessionService.createAppiumSession(AppiumSessionService.java:142)
	at com.lampo.slave.controller.AppiumController.createAppiumSession(AppiumController.java:85)
	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.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	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.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:832)
2021-01-26 17:11:32.814 ERROR 45226 --- [nio-5252-exec-4] c.l.s.s.DeviceManagerExceptionHandler    : unable to start appium service for device 'E2F4CE15-CBAF-4F6E-9510-7CC6265B5ABB'

Remote slave run time exception

Hi,

I could start the remote slave server but I am seeing this error. Any ideas?

java.lang.ExceptionInInitializerError: null
at com.lampo.slave.service.DeviceSyncProcessor.updateDeviceInfoToMaster(DeviceSyncProcessor.java:95) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) ~[spring-context-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]
Caused by: java.lang.NullPointerException: null
at com.lampo.slave.utils.ADBUtilities.getAndroidHome(ADBUtilities.java:111) ~[classes!/:na]
at com.lampo.slave.utils.ADBUtilities.(ADBUtilities.java:83) ~[classes!/:na]
... 14 common frames omitted

2021-08-03 14:33:30.065 ERROR 64503 --- [ scheduling-1] c.l.s.utils.STFServiceBuilder$Builder : STF service is not running
2021-08-03 14:33:30.066 INFO 64503 --- [ scheduling-1] c.l.s.utils.STFServiceBuilder$Builder : stopping STF service
2021-08-03 14:33:30.128 INFO 64503 --- [ scheduling-1] c.l.s.utils.STFServiceBuilder$Builder : starting STF service
2021-08-03 14:33:30.129 ERROR 64503 --- [ scheduling-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task

java.lang.NoClassDefFoundError: Could not initialize class com.lampo.slave.utils.ADBUtilities
at com.lampo.slave.service.DeviceSyncProcessor.updateDeviceInfoToMaster(DeviceSyncProcessor.java:95) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]
at org.springframework.scheduling.supp

Getting error while launching the master application

Below is the master.log, we have kept both RabbitMq and Mongodb started, but facing issues with the master startup. We are able to have the slave running with STF, and also the slave application is running successfully, but facing issue with the server.

@sarathpharmeasy please help to have a look.

13:58:38.953 [main] INFO c.l.d.master.MasterApplication - Starting MasterApplication using Java 1.8.0_351 on Automations-MacBook-Pro.local with PID 39258 (/Users/automation/lampo/master/build/libs/master-1.0.0-RELEASE.jar started by automation in /Users/automation/lampo/master)
13:58:38.956 [main] INFO c.l.d.master.MasterApplication - No active profile set, falling back to default profiles: default
13:58:39.852 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
13:58:40.073 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 215 ms. Found 5 MongoDB repository interfaces.
13:58:40.728 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8087 (http)
13:58:40.740 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8087"]
13:58:40.740 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
13:58:40.740 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.56]
13:58:40.800 [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
13:58:40.800 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1776 ms
13:58:41.250 [main] INFO o.s.a.r.c.CachingConnectionFactory - Attempting to connect to: [localhost:5672]
13:58:41.317 [main] INFO o.s.a.r.c.CachingConnectionFactory - Created new connection: rabbitConnectionFactory#1fb700ee:0/SimpleConnection@306cf3ea [delegate=amqp://[email protected]:5672/, localPort= 53242]
13:58:41.475 [main] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms'}
13:58:41.591 [cluster-ClusterId{value='6448e0b9f711ef480761252e', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:1, serverValue:62}] to localhost:27017
13:58:41.591 [cluster-rtt-ClusterId{value='6448e0b9f711ef480761252e', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:2, serverValue:61}] to localhost:27017
13:58:41.592 [cluster-ClusterId{value='6448e0b9f711ef480761252e', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=17, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=60970914}
13:58:42.229 [main] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:3, serverValue:63}] to localhost:27017
13:58:57.339 [main] INFO c.l.d.master.grid.GridSetupService - --------- starting selenium grid server with args '-role hub -port 4444 -matcher com.lampo.device_lab.master.grid.CustomGridNodeCapabilityMatcher -log /Users/automation/lampo/master/logs/selenium-server.txt -registry com.lampo.device_lab.master.grid.CustomGridRegistry -newSessionWaitTimeout 5000 -browserTimeout 180 -cleanUpCycle 180000 -throwOnCapabilityNotPresent false -timeout 180' ---------
13:58:57.396 [main] INFO o.o.grid.selenium.GridLauncherV3 - Selenium server version: unknown, revision: unknown
13:58:57.470 [main] INFO o.o.grid.selenium.GridLauncherV3 - Launching Selenium Grid hub on port 4444
13:58:57.805 [main] INFO org.seleniumhq.jetty9.util.log - Logging initialized @20244ms to org.seleniumhq.jetty9.util.log.Slf4jLog
13:58:57.892 [main] INFO org.seleniumhq.jetty9.server.Server - jetty-9.4.12.v20180830; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94a92186989f695db2d7b21ebc51; jvm 1.8.0_351-b10
13:58:57.930 [main] INFO org.seleniumhq.jetty9.server.session - DefaultSessionIdManager workerName=node0
13:58:57.930 [main] INFO org.seleniumhq.jetty9.server.session - No SessionScavenger set, using defaults
13:58:57.933 [main] INFO org.seleniumhq.jetty9.server.session - node0 Scavenging every 600000ms
13:58:57.946 [main] INFO o.s.j.server.handler.ContextHandler - Started o.s.j.s.ServletContextHandler@4278284b{/,null,AVAILABLE}
13:58:57.954 [Matcher thread] INFO o.o.g.internal.DefaultGridRegistry - Shutting down registry.
13:58:57.963 [main] INFO o.s.jetty9.server.AbstractConnector - Stopped ServerConnector@6c0d7c83{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
13:58:57.963 [main] INFO org.seleniumhq.jetty9.server.session - node0 Stopped scavenging
13:58:57.966 [main] INFO o.s.j.server.handler.ContextHandler - Stopped o.s.j.s.ServletContextHandler@4278284b{/,null,UNAVAILABLE}
13:58:57.967 [main] ERROR org.openqa.grid.web.Hub - Port 4444 is busy, please choose a free port for the hub and specify it using -port option
13:58:58.009 [main] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms'}
13:58:58.053 [cluster-ClusterId{value='6448e0caf711ef480761252f', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:4, serverValue:64}] to localhost:27017
13:58:58.053 [cluster-ClusterId{value='6448e0caf711ef480761252f', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=17, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=42206900}
13:58:58.055 [cluster-rtt-ClusterId{value='6448e0caf711ef480761252f', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:5, serverValue:65}] to localhost:27017
13:58:58.465 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
13:58:58.488 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
13:58:58.488 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
13:58:58.489 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
13:58:58.490 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

13:58:58.490 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
13:58:58.491 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
13:58:58.491 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@7502291e
13:58:58.893 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8087"]
13:58:58.906 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8087 (http) with context path ''
13:58:58.927 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] WARN o.s.a.r.l.BlockingQueueConsumer - Failed to declare queue: stf-devices
13:58:58.930 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] WARN o.s.a.r.l.BlockingQueueConsumer - Queue declaration failed; retries left=3
org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[stf-devices]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:743)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:620)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:607)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.initialize(SimpleMessageListenerContainer.java:1350)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1195)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.io.IOException: null
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:129)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:125)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:147)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:1012)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1157)
at com.sun.proxy.$Proxy61.queueDeclarePassive(Unknown Source)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:721)
... 5 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:502)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:293)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:141)
... 14 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:517)
at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:341)
at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:182)
at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:114)
at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:739)
at com.rabbitmq.client.impl.AMQConnection.access$300(AMQConnection.java:47)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:666)
... 1 common frames omitted
13:59:03.955 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] WARN o.s.a.r.l.BlockingQueueConsumer - Failed to declare queue: stf-devices
13:59:03.956 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] WARN o.s.a.r.l.BlockingQueueConsumer - Queue declaration failed; retries left=2
org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[stf-devices]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:743)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:620)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:607)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.initialize(SimpleMessageListenerContainer.java:1350)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1195)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.io.IOException: null
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:129)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:125)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:147)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:1012)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1157)
at com.sun.proxy.$Proxy61.queueDeclarePassive(Unknown Source)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:721)
... 5 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:502)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:293)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:141)
... 14 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:517)
at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:341)
at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:182)
at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:114)
at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:739)
at com.rabbitmq.client.impl.AMQConnection.access$300(AMQConnection.java:47)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:666)
... 1 common frames omitted
13:59:08.961 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] WARN o.s.a.r.l.BlockingQueueConsumer - Failed to declare queue: stf-devices
13:59:08.962 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] WARN o.s.a.r.l.BlockingQueueConsumer - Queue declaration failed; retries left=1
org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[stf-devices]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:743)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:620)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:607)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.initialize(SimpleMessageListenerContainer.java:1350)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1195)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.io.IOException: null
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:129)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:125)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:147)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:1012)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1157)
at com.sun.proxy.$Proxy61.queueDeclarePassive(Unknown Source)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:721)
... 5 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:502)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:293)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:141)
... 14 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:517)
at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:341)
at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:182)
at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:114)
at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:739)
at com.rabbitmq.client.impl.AMQConnection.access$300(AMQConnection.java:47)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:666)
... 1 common frames omitted
13:59:13.969 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] WARN o.s.a.r.l.BlockingQueueConsumer - Failed to declare queue: stf-devices
13:59:13.970 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] ERROR o.s.a.r.l.SimpleMessageListenerContainer - Consumer threw missing queues exception, fatal=true
org.springframework.amqp.rabbit.listener.QueuesNotAvailableException: Cannot prepare queue for listener. Either the queue doesn't exist or the broker will not allow us to use it.
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.handleDeclarationException(BlockingQueueConsumer.java:693)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:627)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:607)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.initialize(SimpleMessageListenerContainer.java:1350)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1195)
at java.lang.Thread.run(Thread.java:750)
Caused by: org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[stf-devices]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:743)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:620)
... 4 common frames omitted
Caused by: java.io.IOException: null
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:129)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:125)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:147)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:1012)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1157)
at com.sun.proxy.$Proxy61.queueDeclarePassive(Unknown Source)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:721)
... 5 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:502)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:293)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:141)
... 14 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:517)
at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:341)
at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:182)
at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:114)
at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:739)
at com.rabbitmq.client.impl.AMQConnection.access$300(AMQConnection.java:47)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:666)
... 1 common frames omitted
13:59:13.974 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.amqp.rabbit.config.internalRabbitListenerEndpointRegistry'; nested exception is org.springframework.amqp.AmqpIllegalStateException: Fatal exception on listener startup
13:59:13.976 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] ERROR o.s.a.r.l.SimpleMessageListenerContainer - Stopping container from aborted consumer
13:59:13.977 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] INFO o.s.a.r.l.SimpleMessageListenerContainer - Waiting for workers to finish.
13:59:13.977 [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] INFO o.s.a.r.l.SimpleMessageListenerContainer - Successfully waited for workers to finish.
13:59:13.996 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Shutting down Quartz Scheduler
13:59:13.997 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$NON_CLUSTERED shutting down.
13:59:13.997 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler
$NON_CLUSTERED paused.
13:59:13.997 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler
$_NON_CLUSTERED shutdown complete.
13:59:14.021 [main] INFO o.a.coyote.http11.Http11NioProtocol - Pausing ProtocolHandler ["http-nio-8087"]
13:59:14.022 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
13:59:14.028 [main] INFO o.a.coyote.http11.Http11NioProtocol - Stopping ProtocolHandler ["http-nio-8087"]
13:59:14.031 [main] INFO o.a.coyote.http11.Http11NioProtocol - Destroying ProtocolHandler ["http-nio-8087"]
13:59:14.040 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
13:59:14.073 [main] ERROR o.s.boot.SpringApplication - Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.amqp.rabbit.config.internalRabbitListenerEndpointRegistry'; nested exception is org.springframework.amqp.AmqpIllegalStateException: Fatal exception on listener startup
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:181)
at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:414)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292)
at com.lampo.device_lab.master.MasterApplication.main(MasterApplication.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: org.springframework.amqp.AmqpIllegalStateException: Fatal exception on listener startup
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.waitForConsumersToStart(SimpleMessageListenerContainer.java:601)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doStart(SimpleMessageListenerContainer.java:561)
at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.start(AbstractMessageListenerContainer.java:1387)
at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.startIfNecessary(RabbitListenerEndpointRegistry.java:289)
at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.start(RabbitListenerEndpointRegistry.java:239)
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
... 22 common frames omitted
Caused by: org.springframework.amqp.rabbit.listener.QueuesNotAvailableException: Cannot prepare queue for listener. Either the queue doesn't exist or the broker will not allow us to use it.
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.handleDeclarationException(BlockingQueueConsumer.java:693)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:627)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:607)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.initialize(SimpleMessageListenerContainer.java:1350)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1195)
at java.lang.Thread.run(Thread.java:750)
Caused by: org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[stf-devices]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:743)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:620)
... 4 common frames omitted
Caused by: java.io.IOException: null
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:129)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:125)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:147)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:1012)
at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1157)
at com.sun.proxy.$Proxy61.queueDeclarePassive(Unknown Source)
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:721)
... 5 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:502)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:293)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:141)
... 14 common frames omitted
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'stf-devices' in vhost '/', class-id=50, method-id=10)
at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:517)
at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:341)
at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:182)
at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:114)
at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:739)
at com.rabbitmq.client.impl.AMQConnection.access$300(AMQConnection.java:47)
at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:666)
... 1 common frames omitted

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.