I have seen this a fair amount from searching. Though no clear resolution. Seems this happens under a variety of conditions. Not just my building from source in insane ways :)
I have
META-INF/namedservices/URLStreamHandler/nbresloc/java.net.URLStreamHandler
META-INF/namedservices/URLStreamHandler/nbres/java.net.URLStreamHandler
But seems those are not being used or something is off. Those exist
in other jars exactly like that. But I am adding that manually for now.
It is not coming from the NamedServiceProcessorfor some reason.
I assume it should based on folder name, namedservices.
The other does generate service files, ServiceProviderProcessor
Here is the useful parts of the exception stack trace, but removed replaced
with ...
WARNING [org.netbeans.core.projects.cache]
org.xml.sax.SAXException: java.net.MalformedURLException: unknown protocol:
nbres
at
org.netbeans.core.startup.layers.ParsingLayerCacheManager.startElement(ParsingLayerCacheManager.java:210)
at
java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at
java.xml/com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:746)
....
Caused: java.lang.IllegalStateException: Can't overwrite cause with
org.xml.sax.SAXException: java.net.MalformedURLException: unknown protocol:
nbres
at java.base/java.lang.Throwable.initCause(Throwable.java:462)
at
org.netbeans.core.startup.layers.ParsingLayerCacheManager.createRoot(ParsingLayerCacheManager.java:159)
Caused: java.io.IOException
at
org.netbeans.core.startup.layers.ParsingLayerCacheManager.createRoot(ParsingLayerCacheManager.java:169)
at
org.netbeans.core.startup.layers.ParsingLayerCacheManager.store(ParsingLayerCacheManager.java:106)
[catch] at
org.netbeans.core.startup.layers.LayerCacheManager$1Updater.run(LayerCacheManager.java:146)
--
William L. Thomson Jr.
pgp_cSf4fXbRI.pgp
Description: OpenPGP digital signature
