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.

Unable to import Java classes: Illegal char<:> at index 4

See original GitHub issue

Describe 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

  1. open https://github.com/kiegroup/kogito-examples/tree/stable/kogito-quarkus-examples/dmn-quarkus-example in VS Code
  2. create Activator class:
package com;

import org.kie.api.project.KieActivator;

@KieActivator
public class Activator {
    
}
  1. create java bean:
package com;

public class Person {
    String firstName;
    public String getFirstName() {
        return firstName;
    }
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
}
  1. Open Traffic Violation.dmn and try to search the Person class
  2. 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:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
KaueReinboldcommented, Oct 25, 2022

Thank you @yesamer ! I am looking forward for the update.

1reaction
yesamercommented, Oct 12, 2022

@KaueReinbold A fix is on its way for the next version (0.25).

Read more comments on GitHub >

github_iconTop 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 >

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