microsoft / azure-tools-for-java

Azure tools for Java, including Azure Toolkits for Eclipse, IntelliJ and related projects.
Other
238 stars 158 forks source link

[IntelliJ] Uncaught Exception java.lang.Throwable: com.microsoft.azure.toolkit.intellij.common.auth.IntelliJSecureStore$LazyHolder <clinit> requests com.intellij.ide.passwordSafe.PasswordSafe instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead. #8480

Closed Alexrai123 closed 1 month ago

Alexrai123 commented 1 month ago

IntelliJ build version: 2024.2 Beta IC-242.20224.38 OS: Windows 10 JDK: JetBrains s.r.o. 21.0.3 Plugin version: 3.90.0-2024.2 Additional Info: None Parent component:

com.intellij.openapi.wm.impl.IdeRootPane[,8,8,1920x1050,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]

Error message:


IdeaLoggingEvent[message=null, throwable=java.lang.Throwable: com.microsoft.azure.toolkit.intellij.common.auth.IntelliJSecureStore$LazyHolder <clinit> requests com.intellij.ide.passwordSafe.PasswordSafe instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
    at com.microsoft.azure.toolkit.intellij.common.auth.IntelliJSecureStore.<init>(IntelliJSecureStore.java:31)
    at com.microsoft.azure.toolkit.intellij.common.auth.IntelliJSecureStore$LazyHolder.<clinit>(IntelliJSecureStore.java:20)
    at com.microsoft.azure.toolkit.intellij.common.auth.IntelliJSecureStore.getInstance(IntelliJSecureSt
wangmingliang-ms commented 1 month ago

Duplicate of #8473