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

examples/webserver/streaming fails to start #8477

Closed
barchetta opened this issue Mar 14, 2024 · 1 comment
Closed

examples/webserver/streaming fails to start #8477

barchetta opened this issue Mar 14, 2024 · 1 comment
Assignees
Labels
4.x Version 4.x bug Something isn't working examples P2
Projects

Comments

@barchetta
Copy link
Member

barchetta commented Mar 14, 2024

Environment Details

  • Helidon Version: 4.0.6, 3.2.6, 2.6.6
  • Helidon SE
  • JDK version: java 21.0.2 2024-01-16 LTS

Problem Description

If you build examples/webserver/streaming and run it with java -jar it fails with:

# This is from Helidon 4.0.6 example
$ java -jar target/helidon-examples-webserver-streaming.jar
Exception in thread "main" java.nio.file.FileSystemNotFoundException
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:156)
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:142)
	at java.base/java.nio.file.Path.of(Path.java:209)
	at java.base/java.nio.file.Paths.get(Paths.java:98)
	at io.helidon.examples.webserver.streaming.StreamingService.<init>(StreamingService.java:45)
	at io.helidon.examples.webserver.streaming.Main.routing(Main.java:37)
	at io.helidon.webserver.WebServerConfigSupport$ListenerCustomMethods.routing(WebServerConfigSupport.java:158)
	at io.helidon.webserver.ListenerConfig$BuilderBase.routing(ListenerConfig.java:231)
	at io.helidon.examples.webserver.streaming.Main.main(Main.java:47)

Also, the README for the 4.x example looks wrong as it mentions Subscriber<DataChunk> and Producer<DataChunk>

And I wonder if it makes more sense for the file to come from the filesystem and not a (jar) resource.

@barchetta barchetta added bug Something isn't working examples labels Mar 14, 2024
@github-actions github-actions bot added this to Triage in Backlog Mar 14, 2024
@m0mus m0mus added P2 4.x Version 4.x labels Mar 18, 2024
@m0mus m0mus assigned tomas-langer and barchetta and unassigned tomas-langer Mar 18, 2024
@m0mus m0mus moved this from Triage to Sprint Scope in Backlog Mar 18, 2024
@Captain1653
Copy link
Contributor

PR for this issue was merged 3 weeks ago. The problem was solved. Should this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x bug Something isn't working examples P2
Projects
Backlog
  
Closed
Development

No branches or pull requests

5 participants