Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
9.0, 10.0, 11.0
-
None
-
Windows + VPN
Description
Immediately upon starting Apache Netbeans 10 on Windows, I get the following NullPointerException only when I am connected to the internet using VPN. This seems benign, because I can continue using Netbeans with no problems, but the red notification upon every startup is distracting.
java.lang.NullPointerException
at org.netbeans.core.network.utils.LocalAddressUtils.isSoftwareVirtualAdapter(LocalAddressUtils.java:524)
at org.netbeans.core.network.utils.LocalAddressUtils.getLocalNetworkInterfaceAddr(LocalAddressUtils.java:463)
at org.netbeans.core.network.utils.LocalAddressUtils.access$000(LocalAddressUtils.java:79)
at org.netbeans.core.network.utils.LocalAddressUtils$3.call(LocalAddressUtils.java:123)
at org.netbeans.core.network.utils.LocalAddressUtils$3.call(LocalAddressUtils.java:120)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused: java.lang.RuntimeException
at org.netbeans.core.network.utils.LocalAddressUtils.getPrioritizedLocalHostAddresses(LocalAddressUtils.java:281)
at org.netbeans.core.network.utils.LocalAddressUtils.getMostLikelyLocalInetAddresses(LocalAddressUtils.java:338)
at org.netbeans.core.network.utils.LocalAddressUtils.getMostLikelyLocalInetAddress(LocalAddressUtils.java:391)
at org.netbeans.core.network.proxy.pac.impl.NbPacHelperMethods.myIpAddress(NbPacHelperMethods.java:126)
at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$5$538$^eval_.myIpAddress(<eval>:26)
at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$4$^eval_.FindProxyForURL(<eval>:2)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:659)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:527)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:202)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:393)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:197)
at org.netbeans.core.network.proxy.pac.impl.NbPacScriptEvaluator$PacScriptEngine.findProxyForURL(NbPacScriptEvaluator.java:527)
[catch] at org.netbeans.core.network.proxy.pac.impl.NbPacScriptEvaluator.findProxyForURL(NbPacScriptEvaluator.java:227)
at org.netbeans.core.network.proxy.ProxyAutoConfig.findProxyForURL(ProxyAutoConfig.java:140)
at org.netbeans.core.network.proxy.NetworkProxyReloader.reloadNetworkProxy(NetworkProxyReloader.java:90)
at org.netbeans.core.network.proxy.NbProxySelector.<init>(NbProxySelector.java:59)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.lang.Class.newInstance(Class.java:584)
at org.openide.util.lookup.implspi.SharedClassObjectBridge.newInstance(SharedClassObjectBridge.java:41)
at org.openide.util.lookup.MetaInfServicesLookup$Item.getInstance(MetaInfServicesLookup.java:489)
at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:397)
at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:197)
at org.netbeans.core.CoreBridgeImpl.doRegisterPropertyEditors(CoreBridgeImpl.java:185)
at org.netbeans.core.CoreBridgeImpl.registerPropertyEditors(CoreBridgeImpl.java:148)
at org.netbeans.core.startup.Main.start(Main.java:285)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
at java.base/java.lang.Thread.run(Thread.java:834)
Attachments
Issue Links
- is related to
-
NETBEANS-2764 NoClassDefFoundError upon Netbeans 11.1-beta2 startup while network is connected with proxy
- Closed
-
NETBEANS-96 New PAC Script evaluator
- Closed
- links to