question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE on xsd datatype autocompletion in binary mode

See original GitHub issue

Hi there,

we’re having an issue on several computers running version 0.19.1, both Linux and Windows, while trying to autocomplete an XSD document. Find below the stacktrace.

[Info  - 17:42:04] Mar 22, 2022 05:42:04 org.eclipse.lemminx.XMLLanguageServer initialize() Message: Initializing XML Language server LemMinX Server info:  - Version : 0.19.1  - Native Image  - VM Version : 11.0.9  - Git [Branch 6059965ad91cd67cba1c91f4b82714c57dc64fa5] 6059965 - [maven-release-plugin] prepare release 0.19.1 [Error - 17:42:10] Mar 22, 2022 05:42:10 org.eclipse.lemminx.services.XMLCompletions collectAttributeValueSuggestions() Message: While performing ICompletionParticipant#onAttributeValue for participant 'org.eclipse.lemminx.extensions.xsd.participants.XSDCompletionParticipant'. java.lang.NullPointerException     at org.eclipse.lemminx.extensions.xsd.DataType.getDataTypes(DataType.java:46)     at org.eclipse.lemminx.extensions.xsd.participants.XSDCompletionParticipant.onAttributeValue(XSDCompletionParticipant.java:79)     at org.eclipse.lemminx.services.XMLCompletions.collectAttributeValueSuggestions(XMLCompletions.java:919)     at org.eclipse.lemminx.services.XMLCompletions.doComplete(XMLCompletions.java:153)     at org.eclipse.lemminx.services.XMLLanguageService.doComplete(XMLLanguageService.java:151)     at org.eclipse.lemminx.XMLTextDocumentService.lambda$completion$1(XMLTextDocumentService.java:223)     at java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1236)     at java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1205)     at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)     at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)     at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)     at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)     at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)

Thanks in advance 🙇‍♂️

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
angelozerrcommented, Mar 26, 2022

@jagui I created the PR https://github.com/eclipse/lemminx/pull/1190 which should fix the problem in binary mode(in Java mode it works).

0reactions
angelozerrcommented, Mar 26, 2022

@jagui I can reproduce your problem and the problem is with binary (with Java it works pretty well).

I need to understand the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lemminx/CHANGELOG.md at main · eclipse/lemminx - GitHub
XML format for bad processing instruction removes following element. See #675. ... NPE on xsd datatype autocompletion in binary mode.
Read more >
XML Schema Part 2: Datatypes Second Edition - W3C
It defines facilities for defining datatypes to be used in XML Schemas as well as other XML specifications. The datatype language, which is ......
Read more >
XML Schema Definition (XSD) data type support
Learn how Excel handles XSD data types when you import XML data ; gMonthDay. Custom d-mmm ; anytype anyURI base64Binary duration. ENTITIES ENTITY...
Read more >
XSD data types - IBM
Purpose. Registry Services data types are based on XML Schema Part 2: Datatypes Second Edition. The page contains all data types format specification....
Read more >
XML Schema Miscellaneous Datatypes - W3Schools
Other miscellaneous data types are boolean, base64Binary, hexBinary, float, double, anyURI, QName, and NOTATION. Boolean Data Type. The boolean data type is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found