errael opened a new issue, #4652:
URL: https://github.com/apache/netbeans/issues/4652

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   NetBeans crash after declining to import settings
   
   ### How to reproduce
   
   - staring with clean .nb/15 (some -J-D added to netbeans.conf)
   - execute script: ./runme which contains something like
       bash /ref/nb/NetBeans/NetBeans-15/netbeans/bin/netbeans      \
           --jdkhome /ref/openjdk/java_home                         \
           --userdir /home/err/.nb/15/userdir                       \
           --cachedir /home/err/.nb/15/cachedir                     \
           &> /junk/Caches/nb/15/LOG &
   - no to import
   - OBSERVE: startup/netbeans crashes: ~/bugs/nb/startup-stop/log-1
   
   The first exception is from following the instructions above. I also 
occasionally see the 2nd exception when starting up netbeans; try again, and 
maybe again, and it works.
   
   ```
   WARNING: package com.apple.eio not in java.desktop
   java.lang.NullPointerException
        at 
java.base/java.net.URLConnection$1.getContentTypeFor(URLConnection.java:313)
        at 
java.base/java.net.URLConnection.guessContentTypeFromName(URLConnection.java:1464)
        at 
java.base/sun.net.www.protocol.jar.JarURLConnection.getContentType(JarURLConnection.java:223)
        at 
java.base/java.net.URLConnection.getContentHandler(URLConnection.java:1277)
        at java.base/java.net.URLConnection.getContent(URLConnection.java:778)
        at java.base/java.net.URL.getContent(URL.java:1150)
        at 
org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:293)
        at 
org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:132)
        at 
org.openide.util.lookup.MetaInfServicesLookup.beforeLookupResult(MetaInfServicesLookup.java:111)
        at 
org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:458)
        at 
org.openide.util.lookup.ProxyLookup$R.lookupChange(ProxyLookup.java:519)
        at org.openide.util.lookup.ProxyLookup.setData(ProxyLookup.java:372)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:211)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:184)
        at 
org.netbeans.core.startup.MainLookup.changeLookups(MainLookup.java:193)
        at 
org.netbeans.core.startup.MainLookup.moduleClassLoadersUp(MainLookup.java:107)
        at 
org.netbeans.core.startup.MainLookup.systemClassLoaderChanged(MainLookup.java:95)
        at org.netbeans.core.startup.ModuleSystem.init(ModuleSystem.java:98)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:162)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:142)
        at org.netbeans.core.startup.Main.start(Main.java:299)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
        at java.base/java.lang.Thread.run(Thread.java:834)
   ```
   Following from normal starup, not clean userdir.
   ```
   java.lang.NullPointerException
        at 
java.base/java.net.URLConnection$1.getContentTypeFor(URLConnection.java:313)
        at 
java.base/java.net.URLConnection.guessContentTypeFromName(URLConnection.java:1464)
        at 
java.base/sun.net.www.protocol.jar.JarURLConnection.getContentType(JarURLConnection.java:223)
        at 
java.base/java.net.URLConnection.getContentHandler(URLConnection.java:1277)
        at java.base/java.net.URLConnection.getContent(URLConnection.java:778)
        at java.base/java.net.URL.getContent(URL.java:1150)
        at 
org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:293)
        at 
org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:132)
        at 
org.openide.util.lookup.MetaInfServicesLookup.beforeLookupResult(MetaInfServicesLookup.java:111)
        at 
org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:458)
        at 
org.openide.util.lookup.ProxyLookup$R.initResults(ProxyLookup.java:449)
        at 
org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:736)
        at 
org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:612)
        at org.openide.util.lookup.ProxyLookup$R.allItems(ProxyLookup.java:596)
        at org.openide.util.lookup.ProxyLookup$R.collImpl(ProxyLookup.java:699)
        at 
org.openide.util.lookup.ProxyLookup$R.collectFires(ProxyLookup.java:645)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:228)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:184)
        at 
org.netbeans.core.startup.MainLookup.changeLookups(MainLookup.java:193)
        at 
org.netbeans.core.startup.MainLookup.doInitializeLookup(MainLookup.java:183)
        at 
org.netbeans.core.startup.MainLookup.modulesClassPathInitialized(MainLookup.java:134)
        at 
org.netbeans.core.startup.MainLookup.modulesClassPathInitialized(MainLookup.java:127)
        at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:360)
        at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
        at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
        at org.openide.filesystems.FileUtil$2.run(FileUtil.java:418)
        at 
org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:102)
        at 
org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:494)
        at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:402)
        at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:422)
        at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:319)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1457)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1254)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:316)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:252)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:173)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:142)
        at org.netbeans.core.startup.Main.start(Main.java:299)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
        at java.base/java.lang.Thread.run(Thread.java:834)
   ```
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Linux harmony 5.19.0-76051900-generic #202207312230~1660780566~22.04~9d60db1
   
   ### JDK
   
   OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to