Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-6538

Kogito with Quarkus Dev Mode unable to serve static resources (such as JSON Schema files)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.17.0.Final
    • None
    • Core Engine
    • None
    • 3
    • False
    • False
    • Workaround Exists
    • Hide

      Add quarkus-undertow dependency to the application project.

              <dependency>
                  <groupId>io.quarkus</groupId>
                  <artifactId>quarkus-undertow</artifactId>
              </dependency>
      
      Show
      Add quarkus-undertow dependency to the application project. <dependency> <groupId> io.quarkus </groupId> <artifactId> quarkus-undertow </artifactId> </dependency>
    • 2022 Week 02-04 (from Jan 10), 2022 Week 05-07 (from Jan 31)

      Example stacktrace

      2022-01-13 12:59:46,518 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-17) HTTP Request to /SimpleScorecard.json failed, error id: c32ede76-35f4-4eef-b1e8-e8986d829b0c-3: io.vertx.core.VertxException: Unable to unpack file at path 'quarkus:META-INF/resources/SimpleScorecard.json'
      	at io.vertx.core.file.impl.FileResolverImpl.unpackFromFileURL(FileResolverImpl.java:254)
      	at io.vertx.core.file.impl.FileResolverImpl.unpackFromFileURL(FileResolverImpl.java:265)
      	at io.vertx.core.file.impl.FileResolverImpl.unpackUrlResource(FileResolverImpl.java:232)
      	at io.vertx.core.file.impl.FileResolverImpl.resolveFile(FileResolverImpl.java:157)
      	at io.vertx.core.impl.VertxImpl.resolveFile(VertxImpl.java:770)
      	at io.vertx.core.file.impl.FileSystemImpl$20.perform(FileSystemImpl.java:1136)
      	at io.vertx.core.file.impl.FileSystemImpl$20.perform(FileSystemImpl.java:1134)
      	at io.vertx.core.file.impl.FileSystemImpl$BlockingAction.handle(FileSystemImpl.java:1175)
      	at io.vertx.core.file.impl.FileSystemImpl$BlockingAction.handle(FileSystemImpl.java:1157)
      	at io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:159)
      	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:100)
      	at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$1(ContextImpl.java:157)
      	at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:76)
      	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
      	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
      	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
      	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.nio.file.NoSuchFileException: META-INF/resources/SimpleScorecard.json
      	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      	at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:548)
      	at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258)
      	at java.base/java.nio.file.Files.copy(Files.java:1305)
      	at io.vertx.core.file.impl.FileCache.cacheFile(FileCache.java:184)
      	at io.vertx.core.file.impl.FileResolverImpl.unpackFromFileURL(FileResolverImpl.java:252)
      	... 19 more
      

      Example problem using several tools, cannot access static resource:

      Despite:

      This is a problem for DMN, PMML and potentially any other static resource serving

              rhn-support-tkobayas Toshiya Kobayashi
              mmortari@redhat.com Matteo Mortari
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: