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

Could not supply the template Asciidoc Slide #600

Open
tkleiber opened this issue Aug 17, 2023 · 6 comments
Open

Could not supply the template Asciidoc Slide #600

tkleiber opened this issue Aug 17, 2023 · 6 comments

Comments

@tkleiber
Copy link

I try to create slides, so I have tried "New template -> Asciidoc Slide (reveal.js)"
Unfortunately I get follwing error in the log, I think this has something to do with proxy here? I did not find any configuration for the proxy.

234620 [] ERROR c.kodedu.component.TemplateSubMenu - Could not supply the template Asciidoc Slide (Reveal.js)
java.net.ConnectException: null
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:896)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
	at com.kodedu.service.TemplateService.download(TemplateService.java:170)
	at com.kodedu.service.TemplateService.provide(TemplateService.java:87)
	at com.kodedu.component.TemplateSubMenu.lambda$templateMenuItemOnClick$4(TemplateSubMenu.java:74)
	at com.kodedu.service.impl.ThreadServiceImpl$1.call(ThreadServiceImpl.java:53)
	at [email protected]/javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.ThreadPerTaskExecutor$ThreadBoundFuture.run(ThreadPerTaskExecutor.java:352)
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:305)
	at java.base/java.lang.VirtualThread$VThreadContinuation.lambda$new$0(VirtualThread.java:177)
	at java.base/jdk.internal.vm.Continuation.enter0(Continuation.java:327)
	at java.base/jdk.internal.vm.Continuation.enter(Continuation.java:320)
Caused by: java.net.ConnectException: null
	at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1053)
	at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:224)
	at java.net.http/jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:259)
	at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$2(PlainHttpConnection.java:235)
	at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934)
	at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.nio.channels.ClosedChannelException: null
	at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:202)
	at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:786)
	at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:874)
	at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:208)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
	at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:210)
	... 9 common frames omitted
@rahmanusta
Copy link
Member

What url do you see in the template config? Did you override the default one?

@tkleiber
Copy link
Author

I did not override it, it is "https://github.com/rahmanusta/Asciidoc-RevealJs-Demo".

@rahmanusta
Copy link
Member

Do you need to setup a proxy to connect github from a running app?

@tkleiber
Copy link
Author

As already mentioned - I did not find configuration options for proxy in AsciidocFX.

@rahmanusta
Copy link
Member

In AsciidocFX installation folder there is a vmproperties.txt file. You should be able to configure the proxy through the vm settings.

These two should resolve proxy settings from the system.

-Djavafx.autoproxy.disable=false
-Djava.net.useSystemProxies=true

Other proxy settings can be seen here https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/doc-files/net-properties.html

@tkleiber
Copy link
Author

Have tried this, but only with partial success.
The log shows now:

DEBUG => Downloading template from: https://github.com/rahmanusta/Asciidoc-RevealJs-Demo
DEBUG => Template provided: https://github.com/rahmanusta/Asciidoc-RevealJs-Demo

But there is no directory or file created for a slide. Similar happens for the other templates.
Have tried the following too without success:

-Djavafx.autoproxy.disable=true
-Dhttp.nonProxyHosts=<my confgiration>
-Dhttp.proxyHost=<my confgiration>
-Dhttp.proxyPort=<my confgiration>
-Dhttps.proxyHost=<my confgiration>
-Dhttps.proxyPort=<my confgiration>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants