Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-2165

topology-openshift doesn't work since THORN-1647

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2.2.0.Final
    • 2.2.1.Final
    • None
    • None

    Description

      When using topology-openshift fraction and deploying into OpenShift, this error shows up:

      2018-09-12 14:06:00,952 ERROR [stderr] (main) java.lang.RuntimeException: org.jboss.msc.service.StartException in service "swarm.topology.openshift".service-watcher: Failed to start service
      2018-09-12 14:06:00,952 ERROR [stderr] (main) 	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
      2018-09-12 14:06:00,952 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:113)
      2018-09-12 14:06:00,952 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.start(Swarm.java:398)
      2018-09-12 14:06:00,952 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.main(Swarm.java:742)
      2018-09-12 14:06:00,952 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2018-09-12 14:06:00,952 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2018-09-12 14:06:00,953 ERROR [stderr] (main) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2018-09-12 14:06:00,953 ERROR [stderr] (main) 	at java.lang.reflect.Method.invoke(Method.java:498)
      2018-09-12 14:06:00,953 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
      2018-09-12 14:06:00,953 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
      2018-09-12 14:06:00,953 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
      2018-09-12 14:06:00,960 ERROR [stderr] (main) Caused by: org.jboss.msc.service.StartException in service "swarm.topology.openshift".service-watcher: Failed to start service
      2018-09-12 14:06:00,960 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
      2018-09-12 14:06:00,960 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      2018-09-12 14:06:00,960 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      2018-09-12 14:06:00,960 ERROR [stderr] (main) 	at java.lang.Thread.run(Thread.java:748)
      2018-09-12 14:06:00,960 ERROR [stderr] (main) Caused by: java.lang.NoSuchMethodError: okhttp3.internal.Internal.setCallWebSocket(Lokhttp3/Call;)V
      2018-09-12 14:06:00,960 ERROR [stderr] (main) 	at okhttp3.ws.WebSocketCall.enqueue(WebSocketCall.java:108)
      2018-09-12 14:06:00,960 ERROR [stderr] (main) 	at com.openshift.internal.restclient.okhttp.WatchClient.watch(WatchClient.java:103)
      2018-09-12 14:06:00,960 ERROR [stderr] (main) 	at com.openshift.internal.restclient.DefaultClient.watch(DefaultClient.java:108)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.openshift.runtime.ServiceWatcher.startWatcher(ServiceWatcher.java:84)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.openshift.runtime.ServiceWatcher.start(ServiceWatcher.java:66)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	... 3 more
      2018-09-12 14:06:00,961 ERROR [stderr] (main) java.lang.RuntimeException: org.jboss.msc.service.StartException in service "swarm.topology.openshift".service-watcher: Failed to start service
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:113)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.start(Swarm.java:398)
      2018-09-12 14:06:00,961 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.main(Swarm.java:742)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at java.lang.reflect.Method.invoke(Method.java:498)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) Caused by: org.jboss.msc.service.StartException in service "swarm.topology.openshift".service-watcher: Failed to start service
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
      2018-09-12 14:06:00,962 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      2018-09-12 14:06:00,963 ERROR [stderr] (main) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      2018-09-12 14:06:00,969 ERROR [stderr] (main) 	at java.lang.Thread.run(Thread.java:748)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) Caused by: java.lang.NoSuchMethodError: okhttp3.internal.Internal.setCallWebSocket(Lokhttp3/Call;)V
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	at okhttp3.ws.WebSocketCall.enqueue(WebSocketCall.java:108)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	at com.openshift.internal.restclient.okhttp.WatchClient.watch(WatchClient.java:103)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	at com.openshift.internal.restclient.DefaultClient.watch(DefaultClient.java:108)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.openshift.runtime.ServiceWatcher.startWatcher(ServiceWatcher.java:84)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	at org.wildfly.swarm.topology.openshift.runtime.ServiceWatcher.start(ServiceWatcher.java:66)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      2018-09-12 14:06:00,970 ERROR [stderr] (main) 	... 3 more
      

      It turns out that THORN-1647 upgraded okhttp, but, as okhttp-ws doesn't have a newer version since 3.4.x, there are some API discrepancies when okhttp-ws invokes okhttp.

      Attachments

        Issue Links

          Activity

            People

              juagonza-1 Juan Gonzalez (Inactive)
              juagonza-1 Juan Gonzalez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: