This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201305232300) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b33, Java(TM) SE Runtime Environment, 1.8.0-ea-b91 OS: Windows 7 User Comments: sreimers: Starting NetBeans withuser dir from last build Stacktrace: java.lang.NullPointerException at org.netbeans.core.network.proxy.ProxyAutoConfig.evalPAC(ProxyAutoConfig.java:203) at org.netbeans.core.network.proxy.ProxyAutoConfig.initEngine(ProxyAutoConfig.java:131) at org.netbeans.core.network.proxy.ProxyAutoConfig.access$000(ProxyAutoConfig.java:65) at org.netbeans.core.network.proxy.ProxyAutoConfig$1.run(ProxyAutoConfig.java:104) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Created attachment 134891 [details] stacktrace
Can I ask you to attach full IDE log? http://wiki.netbeans.org/FaqLogMessagesFile Thanks
It's caused by Java 8 bug. On supported Java 7 it works fine.
It's not problem of Java 8 but of NetBeans. But also it isn't problem of proxy (core.main) but probably of nashorn (libs.nashorn). The ScriptEngineManager.getEngineByName() method returns null for "JavaScript".
Jarda, reassigning to you. ScriptEngineManager.getEngineByName() returns null on Java 8, when ide cluster is enabled (due to nashorn).
Created attachment 135008 [details] Test diff Possible test. Must be run from command line: ant -f core.network/build.xml -Dtest.includes=org/netbeans/core/network/proxy/ProxyAutoConfigTest.java -Dtest.type=unit -Dcontinue.after.failing.tests=true test-single -Dpermit.jdk8.builds=true JAVA_HOME must be set up to JDK 8.
Have not we discussed the solution already? Was not it proposed to change libs.nashorn to remove META-INF/services/javax.script.ScriptEngine registration?
(In reply to comment #7) > Have not we discussed the solution already? Was not it proposed to change > libs.nashorn to remove META-INF/services/javax.script.ScriptEngine > registration? We did it but it didn't help.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200911
Created attachment 135990 [details] stacktrace initial start up of new install. Install was from .zip file
Created attachment 136041 [details] stacktrace this is showing up at IDE startup. It displays before the splash screen goes away.
I don't see the exception, I see: [exec] INFO [org.netbeans.core.network.proxy.kde.KdeNetworkProxy]: KDE system proxy resolver: manual (proxy type: 1) [exec] INFO [org.netbeans.core.network.proxy.kde.KdeNetworkProxy]: KDE system proxy resolver: http proxy (http://www-proxy 80) [exec] INFO [org.netbeans.core.network.proxy.kde.KdeNetworkProxy]: KDE system proxy resolver: https proxy (http://www-proxy 80) [exec] INFO [org.netbeans.core.network.proxy.kde.KdeNetworkProxy]: KDE system proxy resolver: socks proxy (http://www-proxy 80) [exec] INFO [org.netbeans.core.network.proxy.kde.KdeNetworkProxy]: KDE system proxy resolver: no proxy (localhost,127.0.0.1) [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded. [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: manual [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - http host: http://www-proxy [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - http port: 80 [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - https host: http://www-proxy [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - https port: 80 [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - socks host: http://www-proxy [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - socks port: 80 [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - no prohy hosts: localhost|127.0.0.1 [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy TEST - http host: http://www-proxy [exec] INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy TEST - http port: 80
Got the exception by switching to autoconfig.
If I remove META-INF/services from libs.nashorn, NbInstaller.shouldDelegateClasspathResource still finds that libs.nashorn module masks jdk.nashorn.** packages and refuses to delegate to boot classpath. Probably simplest solution is to repackage NetBeans copy of nashorn until we can rely on JDK one.
When we keep our current version (rev. 02f810c26ff9, am I right?) of patched nashorn, the failure happens when StructureLoader.java:81 tries to load jdk/nashorn/internal/objects/Global.clazz resource and cannot find it. Is not our copy of nashorn patched too much?
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200911
(In reply to Exceptions Reporter from comment #16) > This bug already has 10 duplicates > see http://statistics.netbeans.org/exceptions/detail.do?id=200911 It will block using proxies in IDE for many users who are running on JDK 8 => I guess it should be tracked as P2 at least.
Should be fixed web-main 117cc9fa61bb. Please verify.