StackOverflowError in PAC processing
Posted: 04 Nov 2025, 06:56
Nice to meet you.
We are planning to migrate a system that currently runs under Java Web Start (Oracle JRE 8) to Open Web Start.
While verifying whether the system functions correctly with Open Web Start, we encountered the error described below, so I am contacting you for assistance.
In our environment, the proxy configuration is set to use a PAC-based proxy. When launching the JNLP file from the browser and Open Web Start starts, the following error message is displayed.
Fatal: Initialization Error: Could not initialize application. The application has not been initialized
Upon reviewing the logs captured at the time of the failure, the output shown below was generated.
--------------------------------------------------------------------------------
[com.openwebstart.proxy.pac.PacFileEvaluator] Open PAC url 'http://[xxx.xxx.xxx.xxx]/pac/Proxy_hq.pac'
[com.openwebstart.proxy.pac.PacBasedProxyProvider] PAC Proxies found for 'socket://[xxx.xxx.xxx.xxx]:80' : [DIRECT]
[net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer] failed to determine best URL: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
[net.adoptopenjdk.icedteaweb.resources.initializer.UnversionedResourceInitializer] Failed to determine best URL for [l=https://[FQDN]/[Application]/jnlp/Extention.jnlp v=nul s=I] will try all of [https://[FQDN]/[Application]/jnlp/Extention.jnlp]
[net.adoptopenjdk.icedteaweb.resources.downloader.BaseResourceDownloader] Will download in background: https://[FQDN]/[Application]/jnlp/Extention.jnlp
[net.adoptopenjdk.icedteaweb.resources.downloader.BaseResourceDownloader] downloadFrom exception: null
[net.adoptopenjdk.icedteaweb.resources.downloader.BaseResourceDownloader] Could not download resource [l=https://[FQDN]/[Application]/jnlp/Extention.jnlp v=nul s=I] from any of theses urls [https://[FQDN]/[Application]/jnlp/Extention.jnlp] caused byExecutionException: java.lang.StackOverflowError caused by StackOverflowError: nul
[net.adoptopenjdk.icedteaweb.resources.ResourceTracker] Download done. Shutting down executor
[net.adoptopenjdk.icedteaweb.resources.ResourceTracker] Error flag set for resource 'https://[FQDN]/[Application]/jnlp/Extention.jnlp'. Can not return a local file for the resource
[net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader]
Exception while initializing extension 'https://[FQDN]/[Application]/jnlp/Extention.jnlp'
java.io.IOException: Error fetching file from https://[FQDN]/[Application]/jnlp/Extention.jnlp
----------------------------------------------------------------------------------
From the logs, it appears that a StackOverflowError is thrown during the process that consults the PAC file; this is the immediate cause of the failure.
The problem does not occur whenever a PAC-based proxy is selected; rather, it appears to manifest only under specific conditions within the PAC file.
the environment in which the issue reproduces is as follows:
OpenWebStart 1.12.0
Amazon Corretto 1.8.0_472
I would appreciate any guidance on how to diagnose or resolve this issue, including whether there are known limitations in Open Web Start’s PAC processing or recommended workarounds.
Thank you for your time and assistance.
Sincerely,
We are planning to migrate a system that currently runs under Java Web Start (Oracle JRE 8) to Open Web Start.
While verifying whether the system functions correctly with Open Web Start, we encountered the error described below, so I am contacting you for assistance.
In our environment, the proxy configuration is set to use a PAC-based proxy. When launching the JNLP file from the browser and Open Web Start starts, the following error message is displayed.
Fatal: Initialization Error: Could not initialize application. The application has not been initialized
Upon reviewing the logs captured at the time of the failure, the output shown below was generated.
--------------------------------------------------------------------------------
[com.openwebstart.proxy.pac.PacFileEvaluator] Open PAC url 'http://[xxx.xxx.xxx.xxx]/pac/Proxy_hq.pac'
[com.openwebstart.proxy.pac.PacBasedProxyProvider] PAC Proxies found for 'socket://[xxx.xxx.xxx.xxx]:80' : [DIRECT]
[net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer] failed to determine best URL: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
[net.adoptopenjdk.icedteaweb.resources.initializer.UnversionedResourceInitializer] Failed to determine best URL for [l=https://[FQDN]/[Application]/jnlp/Extention.jnlp v=nul s=I] will try all of [https://[FQDN]/[Application]/jnlp/Extention.jnlp]
[net.adoptopenjdk.icedteaweb.resources.downloader.BaseResourceDownloader] Will download in background: https://[FQDN]/[Application]/jnlp/Extention.jnlp
[net.adoptopenjdk.icedteaweb.resources.downloader.BaseResourceDownloader] downloadFrom exception: null
[net.adoptopenjdk.icedteaweb.resources.downloader.BaseResourceDownloader] Could not download resource [l=https://[FQDN]/[Application]/jnlp/Extention.jnlp v=nul s=I] from any of theses urls [https://[FQDN]/[Application]/jnlp/Extention.jnlp] caused byExecutionException: java.lang.StackOverflowError caused by StackOverflowError: nul
[net.adoptopenjdk.icedteaweb.resources.ResourceTracker] Download done. Shutting down executor
[net.adoptopenjdk.icedteaweb.resources.ResourceTracker] Error flag set for resource 'https://[FQDN]/[Application]/jnlp/Extention.jnlp'. Can not return a local file for the resource
[net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader]
Exception while initializing extension 'https://[FQDN]/[Application]/jnlp/Extention.jnlp'
java.io.IOException: Error fetching file from https://[FQDN]/[Application]/jnlp/Extention.jnlp
----------------------------------------------------------------------------------
From the logs, it appears that a StackOverflowError is thrown during the process that consults the PAC file; this is the immediate cause of the failure.
The problem does not occur whenever a PAC-based proxy is selected; rather, it appears to manifest only under specific conditions within the PAC file.
the environment in which the issue reproduces is as follows:
OpenWebStart 1.12.0
Amazon Corretto 1.8.0_472
I would appreciate any guidance on how to diagnose or resolve this issue, including whether there are known limitations in Open Web Start’s PAC processing or recommended workarounds.
Thank you for your time and assistance.
Sincerely,