Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Build - PatternSyntaxException: Illegal/unsupported escape sequence #315

Closed
raamkumarak opened this issue Sep 26, 2023 · 3 comments
Closed
Assignees
Labels
bug Something isn't working os-windows Related to Microsoft Windows

Comments

@raamkumarak
Copy link

Native Build Fails with below error (mvn package -Dnative) .. Attached GraalVM Native Image Error Report.

svm_err_b_20230926T102541.572_pid62.md

java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 27
META-INF/resources/ui\ajax\listener.xhtml
^
at java.base/java.util.regex.Pattern.error(Pattern.java:2028)
at java.base/java.util.regex.Pattern.escape(Pattern.java:2608)
at java.base/java.util.regex.Pattern.atom(Pattern.java:2286)
at java.base/java.util.regex.Pattern.sequence(Pattern.java:2210)
at java.base/java.util.regex.Pattern.expr(Pattern.java:2069)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1783)
at java.base/java.util.regex.Pattern.(Pattern.java:1430)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1069)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature.makeResourcePattern(ResourcesFeature.java:361)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.concurrent.ConcurrentHashMap$KeySpliterator.forEachRemaining(ConcurrentHashMap.java:3573)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature.compilePatterns(ResourcesFeature.java:354)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature.duringAnalysis(ResourcesFeature.java:337)

Environment Details

  1. Microsoft Windows [Version 10.0.22621.2283]
  2. Apache Maven 3.9.3
  3. Java version: 17.0.8
  4. Docker version 23.0.5
  5. Quarkus 3.4.1
@melloware
Copy link
Owner

Let me test this. Native Build was previously working fine.

@melloware melloware added the bug Something isn't working label Sep 26, 2023
@melloware melloware self-assigned this Sep 26, 2023
@melloware
Copy link
Owner

I wonder if its Windows related because I can't reproduce it on Linux.

@melloware melloware added the os-windows Related to Microsoft Windows label Sep 26, 2023
@melloware
Copy link
Owner

ahh open Quarkus issue: quarkusio/quarkus#32272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os-windows Related to Microsoft Windows
Projects
None yet
Development

No branches or pull requests

2 participants