Trying to run a JWS application from the provided url, javaws fails indicating it couldn't read or download the file. Same thing happens whether I give it the downloaded jnlp file or just the url. Reproducible: Always Steps to Reproduce: javaws ContestAppletProd.jnlp (after downloading) or javaws https://www.topcoder.com/contest/arena/ContestAppletProd.jnlp Actual Results: (will attach) Expected Results: Launch the application Tried with several JREs, currently openjdk-bin-8 is selected # emerge --info Portage 3.0.56 (python 3.10.13-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.37-r7, 5.15.41-gentoo x86_64) ================================================================= System uname: Linux-5.15.41-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-glibc2.37 KiB Mem: 32742020 total, 1345508 free KiB Swap: 33554428 total, 33551844 free Timestamp of repository gentoo: Thu, 07 Dec 2023 22:30:01 +0000 Head commit of repository gentoo: 60975f5f4bdc9f9c5002ac8cfaf32e0a2095b770 Timestamp of repository fol4: Mon, 15 Jan 2024 16:18:31 +0000 Head commit of repository fol4: 4d85897bd36c49fadbe4cc9d685932d85789f56f Timestamp of repository guru: Thu, 25 Jan 2024 11:03:08 +0000 Head commit of repository guru: 84e38e8f6f32e9ea1279195ff011c16e90cae1a8 sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p7) 2.40.0 distcc 3.4 x86_64-pc-linux-gnu [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 2.7.18_p15::gentoo, 3.8.18::gentoo, 3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.71.1::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.69-r5::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r9::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 14.0.4::gentoo, 15.0.7-r1::gentoo sys-devel/gcc: 9.4.0::gentoo, 11.3.0::gentoo, 12.2.1_p20230428-r1::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 14.0.4::gentoo sys-devel/llvm: 14.0.4::gentoo, 15.0.7::gentoo, 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 3 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: aditsu location: /usr/local/portage masters: gentoo volatile: True fol4 location: /var/db/repos/fol4 sync-type: git sync-uri: https://github.com/gentoo-mirror/fol4.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE google-chrome AdobeFlash-11.x RAR TeamViewer Spotify Skype-TOS Canon-UFR-II MSttfEULA linux-firmware" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.aditsu.net http://ftp.jaist.ac.jp/pub/Linux/Gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/zsh" USE="X a52 aac acl acpi activities alsa amd64 bittorrent bluetooth branding bzip2 cairo cdda cdr cjk cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif fat ffmpeg fftw flac fortran gdbm gif gimp gpm gtk gui iconv icu ipv6 jack jpeg kde kwallet ladspa lcms libnotify libtirpc mad mdadm mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ntfs ogg opengl openmp opus pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline samba screencast sdl seccomp sound source spell split-usr ssl startup-notification svg symlink test-rust theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau vnc vorbis vpx vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xml xv xvid xvmc zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 f16c" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US zh-HK zh-TW ro" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres9_4 postgres12" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python2_7 python3_10 python3_12" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 883165 [details] javaws output
Root cause may be this (from the output): java.net.SocketException: Connection refused (Connection refused) But I have no idea why it fails to connect.
I just noticed now: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:435) SocksSocket??? Is it trying to use a SOCKS proxy? I have a SOCKS proxy set in firefox, but nowhere else. It's not even my main browser, and I'm not using it at the moment. Is java/icedtea-web blindly following the proxy settings from firefox?! That would be HORRIBLY wrong.
Finally I discovered that icedtea-web has an itweb-settings command for configuration. In the network section it was set to use browser settings. It makes absolutely NO SENSE that it took the settings from firefox rather than chromium (which is my default browser). Anyway, after changing to "direct connection", the application is loading. So there are 2 problems here: 1. icedtea-web is following the proxy settings from the WRONG browser 2. When it fails to connect, it doesn't provide a clear explanation