[
https://issues.apache.org/jira/browse/NETBEANS-6145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Br Tr updated NETBEANS-6145:
----------------------------
Description:
formatting stopped working; there is a nullpointer exception in the logs while
formatting. Restarting IDE does not help with the issue.
Changing source level to 1.8Changing source level to 1.8SEVERE
[org.openide.util.RequestProcessor]: Error in RequestProcessor
org.netbeans.modules.progress.ui.RunOffEDTImpl$1java.lang.NullPointerException
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:587)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCase(Reformatter.java:2938)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCase(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCase.accept(JCTree.java:1258) at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.handleSwitch(Reformatter.java:2889)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitSwitch(Reformatter.java:2790)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitSwitch(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCSwitch.accept(JCTree.java:1229)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitBlock(Reformatter.java:1986)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitBlock(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1032)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitMethod(Reformatter.java:1559)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitMethod(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:1052)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCompilationUnit(Reformatter.java:648)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCompilationUnit(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.reformat(Reformatter.java:514)
at
org.netbeans.modules.java.source.save.Reformatter.reformatImpl(Reformatter.java:228)
at
org.netbeans.modules.java.source.save.Reformatter.reformat(Reformatter.java:101)
at
de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory.formatWithNetBeansFormatter(ExternalFormatterReformatTaskFactory.java:148)
at
de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory.access$000(ExternalFormatterReformatTaskFactory.java:43)
at
de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory$1.reformat(ExternalFormatterReformatTaskFactory.java:67)
at
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:550)
at
org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:309)
at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:349)
at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:129)
at
org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1854)
at
org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333)
at
org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1833)
at org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:146)
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)[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
was:
formatting stopped working; there is a nullpointer exception in the logs while
formatting. Restarting IDE does not work.
Changing source level to 1.8Changing source level to 1.8SEVERE
[org.openide.util.RequestProcessor]: Error in RequestProcessor
org.netbeans.modules.progress.ui.RunOffEDTImpl$1java.lang.NullPointerException
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:587)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCase(Reformatter.java:2938)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCase(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCase.accept(JCTree.java:1258) at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.handleSwitch(Reformatter.java:2889)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitSwitch(Reformatter.java:2790)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitSwitch(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCSwitch.accept(JCTree.java:1229)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitBlock(Reformatter.java:1986)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitBlock(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1032)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitMethod(Reformatter.java:1559)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitMethod(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:1052)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCompilationUnit(Reformatter.java:648)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCompilationUnit(Reformatter.java:397)
at
jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
at
jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
at
org.netbeans.modules.java.source.save.Reformatter$Pretty.reformat(Reformatter.java:514)
at
org.netbeans.modules.java.source.save.Reformatter.reformatImpl(Reformatter.java:228)
at
org.netbeans.modules.java.source.save.Reformatter.reformat(Reformatter.java:101)
at
de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory.formatWithNetBeansFormatter(ExternalFormatterReformatTaskFactory.java:148)
at
de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory.access$000(ExternalFormatterReformatTaskFactory.java:43)
at
de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory$1.reformat(ExternalFormatterReformatTaskFactory.java:67)
at
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:550)
at
org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:309)
at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:349)
at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:129)
at
org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1854)
at
org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333)
at
org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1833)
at org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:146)
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)[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Formatting stopped working
> --------------------------
>
> Key: NETBEANS-6145
> URL: https://issues.apache.org/jira/browse/NETBEANS-6145
> Project: NetBeans
> Issue Type: Bug
> Components: java - Editor
> Affects Versions: 12.5
> Environment: Ubuntu 20.04.3 LTS on windows 10 virtual machine (Oracle
> VM Virtual Box)
> Reporter: Br Tr
> Priority: Major
>
> formatting stopped working; there is a nullpointer exception in the logs
> while formatting. Restarting IDE does not help with the issue.
> Changing source level to 1.8Changing source level to 1.8SEVERE
> [org.openide.util.RequestProcessor]: Error in RequestProcessor
> org.netbeans.modules.progress.ui.RunOffEDTImpl$1java.lang.NullPointerException
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:587)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCase(Reformatter.java:2938)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCase(Reformatter.java:397)
> at
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCase.accept(JCTree.java:1258)
> at
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.handleSwitch(Reformatter.java:2889)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitSwitch(Reformatter.java:2790)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitSwitch(Reformatter.java:397)
> at
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCSwitch.accept(JCTree.java:1229)
> at
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitBlock(Reformatter.java:1986)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitBlock(Reformatter.java:397)
> at
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1032)
> at
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitMethod(Reformatter.java:1559)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitMethod(Reformatter.java:397)
> at
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
> at
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:1052)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitClass(Reformatter.java:397)
> at
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:808)
> at
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.scan(Reformatter.java:601)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCompilationUnit(Reformatter.java:648)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.visitCompilationUnit(Reformatter.java:397)
> at
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:591)
> at
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
> at
> org.netbeans.modules.java.source.save.Reformatter$Pretty.reformat(Reformatter.java:514)
> at
> org.netbeans.modules.java.source.save.Reformatter.reformatImpl(Reformatter.java:228)
> at
> org.netbeans.modules.java.source.save.Reformatter.reformat(Reformatter.java:101)
> at
> de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory.formatWithNetBeansFormatter(ExternalFormatterReformatTaskFactory.java:148)
> at
> de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory.access$000(ExternalFormatterReformatTaskFactory.java:43)
> at
> de.funfried.netbeans.plugins.external.formatter.ui.editor.ExternalFormatterReformatTaskFactory$1.reformat(ExternalFormatterReformatTaskFactory.java:67)
> at
> org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:550)
> at
> org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:309)
> at
> org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:349)
> at
> org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:129)
> at
> org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1854)
> at
> org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333)
> at
> org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1833)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:146)
> 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)[catch] at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
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