For NetBeans running on JDK 11, I could find out about at least one problem:
In org.netbeans.api.java.source.TreeUtilities, there's a reference to
Kind.RECORD (line 112), which exists only as of JDK 16. So, when running
on JDK 11 this leads to an error.
Kind regards,
Peter
PS: Full stack trace:
Sourcepath:
/tmp/tests-peter/org.netbeans.examples.hellotojavahints.JOptionPaneHintTest/testWarningProduced/src
java.lang.NoSuchFieldError: RECORD
at
org.netbeans.api.java.source.TreeUtilities.<clinit>(TreeUtilities.java:112)
at
org.netbeans.modules.java.source.indexing.CompileWorker.computeFQNs(CompileWorker.java:62)
at
org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:207)
at
org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:359)
at
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:273)
at
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2748)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.lambda$index$0(RepositoryUpdater.java:2625)
at
org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2624)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.lambda$scanFiles$4(RepositoryUpdater.java:3344)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.lambda$runInContext$4(RepositoryUpdater.java:2118)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2116)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2097)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1400(RepositoryUpdater.java:134)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:3302)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:3844)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3464)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6209)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$3400(RepositoryUpdater.java:5867)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.lambda$call$0(RepositoryUpdater.java:6128)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
at
org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6128)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6124)
at
org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
at
org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
at
org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
at
org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
at
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6124)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
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)
Am 21.02.22 um 08:59 schrieb Geertjan Wielenga:
You're always going to get the same response -- no one can help if you
don't make your code available, put it on GitHub, and put a link here.
Gj
On Sun, Feb 20, 2022 at 8:21 PM Peter Nabbefeld <[email protected]>
wrote:
Don't know, if this might be related, but I also get error messages
related to NB 12.4 update center:
org.xml.sax.SAXParseException; systemId:
https://netbeans.apache.org/nb/updates/12.4/updates.xml.gz?unique=
<unique-id
removed>; lineNumber: 26; columnNumber: 2; Markup im Dokument nach dem
Root-Element muss ordnungsgemäß formatiert sein.
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at
org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:175)
Caused: java.io.IOException: Failed to parse
https://netbeans.apache.org/nb/updates/12.4/updates.xml.gz?unique=
<unique-id
removed>
at
org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:177)
at
org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateItems(AutoupdateCatalogProvider.java:120)
[catch] at
org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:150)
The first message ("Markup im Dokument nach dem Root-Element muss
ordnungsgemäß formatiert sein.") means sth. like: "Document markup after
root element must be well-formatted."
Kind regards,
Peter
Am 20.02.22 um 18:37 schrieb Peter Nabbefeld:
Hello,
in the mean time, I've tried creating a Java hint following the
tutorials using different versions of NB (12.4, 12.6) on different OS
(Linux, Windows) without success, so I give up.
However, when trying to use Ant, I'm not able to build the module
project, either:
warning: No processor claimed any of these annotations:
org.netbeans.spi.java.hints.Hint,org.netbeans.spi.java.hints.TriggerPattern
/home/peter/NetBeansProjects/Geertjan/HintDemoWithAnt/src/org/nb/hintdemo/JOptionPaneHint.java:31:
error: cannot access TreePath
return ErrorDescriptionFactory.forName(ctx, ctx.getPath(),
Bundle.ERR_JOptionPaneHint());
class file for com.sun.source.util.TreePath not found
1 error
1 warning
Can anybody help me?
Kind regards,
Peter
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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