Closed Sharofiddin closed 8 months ago
This is happened when I add quarkus-kubernetes to pom file.
Could you share your project please
Yes of course. quarkus-test.tar.gz check this out
Is this issue going to be fixed?
@angelozerr Angelo, is this issue going to be fixed? Or should I close this issue and uninstall eclipse quarkus plugin?
Have you again this problem with last version of JBoss Tools Quarkus?
Yes, in 4.28 this problem still exists.
On Thu, Aug 3, 2023 at 2:18 PM Angelo @.***> wrote:
Have you again this problem with last version of JBoss Tools Quarkus?
— Reply to this email directly, view it on GitHub https://github.com/jbosstools/jbosstools-quarkus/issues/213#issuecomment-1663606105, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWROOGIHJG44NVLWDSZKWTXTNUGNANCNFSM6AAAAAAW3RCIGA . You are receiving this because you authored the thread.Message ID: @.***>
Your stack trace comes from the language server of MicroProfile LS https://github.com/eclipse/lsp4mp
We use this language server on vscode and Intellij and I tested your project quarkus-test and it works great.
I suggest that you wait for @sbouchet back to understand what it happens with your project.
Have you the same problem with another quarkus project?
Yes, after adding Kubernetes dependency to pom file, all projects are producing this error. It will compile, build, but when I write something in application.properties it starts showing error until I stop typing.
Your quarkus-test.tar.gz reproduce the error no?
Your quarkus-test.tar.gz reproduce the error no?
Yes, it is reproducing the same error logs:
Aug 04, 2023 3:10:54 PM org.eclipse.lsp4mp.jdt.core.PropertiesManager getMicroProfileProjectInfo
INFO: End computing MicroProfile properties for '/home/sharofiddin/Downloads/quarkus-test' project in 46966ms.
Aug 04, 2023 3:10:54 PM org.eclipse.lsp4mp.jdt.core.PropertiesManager getMicroProfileProjectInfo
INFO: End computing MicroProfile properties for '/home/sharofiddin/Downloads/quarkus-test' project in 10611ms.
Aug 04, 2023 3:10:54 PM org.eclipse.lsp4mp.ls.properties.MicroProfileProjectInfoCache lambda$getProjectInfo$0
WARNING: Error while getting MicroProfileProjectInfo (classpath) for 'file:///home/sharofiddin/Downloads/quarkus-test/src/main/resources/application.properties'
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "org.eclipse.lsp4mp.commons.MicroProfileProjectInfo.getProjectURI()" because "delegate" is null
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:212)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
at org.eclipse.lsp4mp.ls.commons.ParentProcessWatcher.lambda$apply$0(ParentProcessWatcher.java:148)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
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.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NullPointerException: Cannot invoke "org.eclipse.lsp4mp.commons.MicroProfileProjectInfo.getProjectURI()" because "delegate" is null
at org.eclipse.lsp4mp.extensions.ExtendedMicroProfileProjectInfo.<init>(ExtendedMicroProfileProjectInfo.java:78)
at org.eclipse.lsp4mp.ls.properties.MicroProfileProjectInfoCache.lambda$getProjectInfoFromCache$1(MicroProfileProjectInfoCache.java:77)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
I have no time to try and debug your project on JBoss Tools since it is working well on vscode and IJ.
We need to wait for @sbouchet back to investigate more your problem.
hi @Sharofiddin , taking back this issue just now. i can reproduce the error by uncommenting the kubernetes dependency, and i have this stack :
java.lang.NoClassDefFoundError: Could not initialize class org.jboss.tools.quarkus.lsp4e.internal.ls.JavaDoc2MarkdownConverter
at org.jboss.tools.quarkus.lsp4e.internal.ls.JDTJavadocContentAccess.getMarkdownContentReader(JDTJavadocContentAccess.java:49)
at org.jboss.tools.quarkus.lsp4e.internal.ls.JDTUtilsImpl.getJavadoc(JDTUtilsImpl.java:107)
at com.redhat.microprofile.jdt.internal.quarkus.kubernetes.properties.QuarkusKubernetesProvider.collectProperties(QuarkusKubernetesProvider.java:153)
at com.redhat.microprofile.jdt.internal.quarkus.kubernetes.properties.QuarkusKubernetesProvider.processClass(QuarkusKubernetesProvider.java:110)
at org.eclipse.lsp4mp.jdt.core.AbstractTypeDeclarationPropertiesProvider.collectProperties(AbstractTypeDeclarationPropertiesProvider.java:58)
at org.eclipse.lsp4mp.jdt.core.PropertiesManager.collectProperties(PropertiesManager.java:261)
at org.eclipse.lsp4mp.jdt.core.PropertiesManager$1.acceptSearchMatch(PropertiesManager.java:237)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.report(MatchLocator.java:2196)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:3158)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:2877)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.process(MatchLocator.java:2048)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1364)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1401)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1520)
at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:135)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:251)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:602)
at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:670)
at org.eclipse.lsp4mp.jdt.core.PropertiesManager.scanJavaClasses(PropertiesManager.java:221)
at org.eclipse.lsp4mp.jdt.core.PropertiesManager.getMicroProfileProjectInfo(PropertiesManager.java:145)
at org.eclipse.lsp4mp.jdt.core.PropertiesManager.getMicroProfileProjectInfo(PropertiesManager.java:113)
at org.eclipse.lsp4mp.jdt.core.PropertiesManager.getMicroProfileProjectInfo(PropertiesManager.java:104)
at org.jboss.tools.quarkus.lsp4e.QuarkusLanguageClient.lambda$2(QuarkusLanguageClient.java:81)
at org.eclipse.core.runtime.jobs.Job$2.run(Job.java:187)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: org/jsoup/safety/Whitelist [in thread "Worker-14: MicroProfile properties collector"]
at com.overzealous.remark.Remark.<init>(Remark.java:83)
at org.jboss.tools.quarkus.lsp4e.internal.ls.JavaDoc2MarkdownConverter.<clinit>(JavaDoc2MarkdownConverter.java:42)
... 25 more
looking at it.
This issue appeared again, and not completely solved
With eclipse 4.27 and plugin version 4.27 on Ubuntu 22.04 when trying autocomplete application.properties firstly I am getting
Then :
continuously Here is log: