Unable to import Java classes: Illegal char<:> at index 4
See original GitHub issueDescribe the Bug
I am unable to import java classes. When typing the name of the class in the search box, no class appear. In Developer tools I see following error:
dmn-loader.js:2 Error: Illegal char <:> at index 4: file://D:\src\drools\kogito-examples\kogito-quarkus-examples\dmn-quarkus-example\src\main\java\com\mc\Activator.java
at e.callback (DmnEditorEnvelopeApp.js:2:517048)
at e.receive (DmnEditorEnvelopeApp.js:2:518804)
at Object.receive (DmnEditorEnvelopeApp.js:2:514121)
at e.receive (DmnEditorEnvelopeApp.js:2:521333)
at eventListener.eventListener (DmnEditorEnvelopeApp.js:2:520493)
I was following this blog post entry https://blog.kie.org/2022/05/dmn-types-from-java-classes.html. I tried creating my own project and also cloned examples repository. Same issue on both.
Steps to Reproduce
- open https://github.com/kiegroup/kogito-examples/tree/stable/kogito-quarkus-examples/dmn-quarkus-example in VS Code
- create Activator class:
package com;
import org.kie.api.project.KieActivator;
@KieActivator
public class Activator {
}
- create java bean:
package com;
public class Person {
String firstName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
}
- Open Traffic Violation.dmn and try to search the Person class
- In Developer tools Error: Illegal char <:> at index 4: error appears.
Expected Behavior
Plugin should be able to fetch my model classes.
Environment
- OS: Windows
- Visual Studio Code version: 1.71.2
- DMN Editor plugin: 0.23.0
- Language Support for Java™ by Red Hat v1.11.0
Obs: Copy from the bug found in another repository.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
java.nio.file.InvalidPathException: Illegal char <:> at index 2
You are trying to write to a path that looks something like jar:file:/com/stackoverflow/json , which is an invalid Path or File but a...
Read more >Answered - IDEs Support (IntelliJ Platform) | JetBrains
I get the following error when i compile a mave project using JDK 11.0.02 in IDEA Community 2019.2Cannot compile due to error Error:java:......
Read more >Flow fails with InvalidPathException "Illegal char <\n ... - GitHub
An example project which imports vcf-enhanced-dialog and then attempts to extend the VcfEnhancedDialog JavaScript class will cause Vaadin to ...
Read more >Newcomers » Illegal Char <*> error in jar path - Eclipse
For reference (attached), after adding around 72 external jars, the error popped up and clicking on any jars part of the current project...
Read more >(zipfs) ZipFileSystemProvider rejects paths containing spaces
newFileSystem(uri, env) fails for uri with escaped octets ... IllegalArgumentException: Illegal character in path" for ... URL; import java.nio.file.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @yesamer ! I am looking forward for the update.
@KaueReinbold A fix is on its way for the next version (
0.25
).