Exception i Bitbucket Linky

Issue #56 resolved
Zbigniew P. Szczęsny created an issue

PHP STORM 2018.3.1

java.lang.IllegalStateException: ServiceManager.getService(T::class.java) must not be null at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketServerProbe$probe$2.invokeSuspend(probe-server.kt:95) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketServerProbe$probe$2.invoke(probe-server.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:84) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:162) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketServerProbe.probe(probe-server.kt:71) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketServerProbe.probeBitbucketServer(probe-server.kt:38) at com.atlassian.bitbucket.linky.discovery.ServerBitbucketRepositoryDiscoverer$discoverServerHosting$2.invokeSuspend(project-hosting.kt:187) at com.atlassian.bitbucket.linky.discovery.ServerBitbucketRepositoryDiscoverer$discoverServerHosting$2.invoke(project-hosting.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:84) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:162) at com.atlassian.bitbucket.linky.discovery.ServerBitbucketRepositoryDiscoverer.discoverServerHosting(project-hosting.kt:184) at com.atlassian.bitbucket.linky.discovery.ServerBitbucketRepositoryDiscoverer$discover$2.invokeSuspend(project-hosting.kt:154) at com.atlassian.bitbucket.linky.discovery.ServerBitbucketRepositoryDiscoverer$discover$2.invoke(project-hosting.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:84) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:162) at com.atlassian.bitbucket.linky.discovery.ServerBitbucketRepositoryDiscoverer.discover(project-hosting.kt:148) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketRepositoriesDiscoveryService$discoverBitbucketRepositories$2.invokeSuspend(project-hosting.kt:66) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketRepositoriesDiscoveryService$discoverBitbucketRepositories$2.invoke(project-hosting.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:84) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:162) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketRepositoriesDiscoveryService.discoverBitbucketRepositories(project-hosting.kt:56) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketRepositoriesService$discoveryTask$1$1.invokeSuspend(project-repositories.kt:44) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32) at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:236) at kotlinx.coroutines.EventLoopBase.processNextEvent(EventLoop.kt:123) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:69) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:45) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:35) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketRepositoriesService$discoveryTask$1.invoke(project-repositories.kt:43) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketRepositoriesService$discoveryTask$1.invoke(project-repositories.kt:30) at com.atlassian.bitbucket.linky.discovery.DefaultBitbucketRepositoriesService$sam$java_lang_Runnable$0.run(project-repositories.kt) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Comments (3)

  1. Daniil Penkin staff

    Hi @Ziggizag,

    Thanks for reporting this. Seems to be something I overlooked. I will release a fix for this soon.

    Cheers, Daniil

  2. Log in to comment