Skip to content

NullPointerException #708

@shauyon

Description

@shauyon

java.lang.NullPointerException: Cannot invoke "java.net.PasswordAuthentication.getUserName()" because "authentication" is null
at com.shuzijun.leetcode.plugin.utils.HttpRequestUtils$MyExecutorHttp.lambda$getProxyAuthenticator$0(HttpRequestUtils.java:203)
at okhttp3.internal.connection.RealConnection.createTunnelRequest(RealConnection.kt:519)
at okhttp3.internal.connection.RealConnection.connectTunnel(RealConnection.kt:258)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:201)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at com.shuzijun.lc.http.DefaultExecutoHttp.lambda$executePost$2(DefaultExecutoHttp.java:115)
at com.shuzijun.lc.http.InterceptorChain.proceed(InterceptorChain.java:36)
at com.shuzijun.lc.http.DefaultExecutoHttp.executePost(DefaultExecutoHttp.java:124)
at com.shuzijun.leetcode.plugin.utils.HttpRequestUtils.lambda$executePost$2(HttpRequestUtils.java:98)
at com.shuzijun.leetcode.plugin.utils.HttpRequestUtils$CacheProcessor.processor(HttpRequestUtils.java:160)
at com.shuzijun.leetcode.plugin.utils.HttpRequestUtils.executePost(HttpRequestUtils.java:90)
at com.shuzijun.leetcode.plugin.model.HttpRequest$HttpRequestBuilder.request(HttpRequest.java:165)
at com.shuzijun.leetcode.plugin.model.Graphql$GraphqlBuilder.request(Graphql.java:136)
at com.shuzijun.leetcode.plugin.manager.QuestionManager.getUser(QuestionManager.java:299)
at com.shuzijun.leetcode.plugin.window.NavigatorTabsPanel.getUser(NavigatorTabsPanel.java:176)
at com.shuzijun.leetcode.plugin.manager.QuestionManager.getQuestionAllService(QuestionManager.java:66)
at com.shuzijun.leetcode.plugin.manager.CodeTopManager.loadServiceData(CodeTopManager.java:24)
at com.shuzijun.leetcode.plugin.manager.CodeTopManager.loadServiceData(CodeTopManager.java:20)
at com.shuzijun.leetcode.plugin.window.navigator.TopNavigatorPanel$3.findClear(TopNavigatorPanel.java:117)
at com.shuzijun.leetcode.plugin.actions.toolbar.RefreshAction.actionPerformed(RefreshAction.java:20)
at com.shuzijun.leetcode.plugin.actions.AbstractAction$1.run(AbstractAction.java:44)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:434)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:132)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$5(CoreProgressManager.java:484)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:248)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:73)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:192)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:685)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:641)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:609)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:78)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:179)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:73)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:248)
at com.intellij.openapi.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:498)
at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:81)
at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:81)
at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:86)
at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:81)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:464)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:840)

Software versions

  • Product: IntelliJ IDEA 2023.3.6 (Ultimate Edition)
  • Runtime version: 17.0.10+1-b1087.23 amd64
  • VM:OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • OS:Windows 10

Activity

zhatlas

zhatlas commented on Apr 11, 2024

@zhatlas

Having the same problem

shuzijun

shuzijun commented on Apr 11, 2024

@shuzijun
Owner
image

"Proxy authentication" was selected but the authentication information was not filled in?

zhatlas

zhatlas commented on Apr 11, 2024

@zhatlas

I'm sure I've checked Proxy authentication and entered my username and password and tested google access using Check connection and it's accessible!

Qiliqing

Qiliqing commented on Apr 25, 2024

@Qiliqing

Having the same problem

rcj60560

rcj60560 commented on May 6, 2024

@rcj60560

@shuzijun
我也是这个问题。。。

hejianzhong

hejianzhong commented on May 13, 2024

@hejianzhong

我也是这个问题呀 QAQ @shuzijun

sjjok00

sjjok00 commented on May 15, 2024

@sjjok00

Try uncheck "Proxy authentication"

image "Proxy authentication" was selected but the authentication information was not filled in?
added a commit that references this issue on May 15, 2024
6f950d4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rcj60560@shauyon@sjjok00@shuzijun@Qiliqing

        Issue actions

          NullPointerException · Issue #708 · shuzijun/leetcode-editor