netbeans-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Kellerer <sham...@gmx.net>
Subject NPE when refactoring with NB 11
Date Mon, 11 Mar 2019 07:16:46 GMT
Hello, 

with NB 11 I consistently get a NPE when trying to do any refactoring (rename class, constant,
enum) in my Maven based project. 
This happened already with v1 and vc2, but id does NOT happen with NB 10 on the same code
base.

The error message asks me to attach the dump file from the var/log directory. 
However that dump file contains the full source code of the file which I can not make publicly
available.

Should I file an issue nevertheless or will it be closed as I can't provide the dump file?


This is the stacktrace of the NPE: 

SEVERE [org.openide.util.Exceptions]
An error occurred during parsing of '...'. Please report a bug against java/source and attach
dump file '....'.
Caused: java.lang.NullPointerException
	at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4871)
	at com.sun.tools.javac.code.Type$StructuralTypeMapping.visitMethodType(Type.java:282)
	at com.sun.tools.javac.code.Type$StructuralTypeMapping.visitMethodType(Type.java:230)
	at com.sun.tools.javac.code.Type$MethodType.accept(Type.java:1454)
	at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4871)
	at com.sun.tools.javac.code.Types.erasure(Types.java:2350)
	at com.sun.tools.javac.code.Types.erasure(Types.java:2336)
	at org.netbeans.modules.java.source.PostFlowAnalysis.visitMethodDef(PostFlowAnalysis.java:145)
	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:872)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
	at org.netbeans.modules.java.source.PostFlowAnalysis.scan(PostFlowAnalysis.java:103)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
	at com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:118)
	at org.netbeans.modules.java.source.PostFlowAnalysis.visitClassDef(PostFlowAnalysis.java:115)
	at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:778)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
	at org.netbeans.modules.java.source.PostFlowAnalysis.scan(PostFlowAnalysis.java:103)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
	at com.sun.tools.javac.tree.TreeScanner.visitTopLevel(TreeScanner.java:66)
	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:531)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
	at org.netbeans.modules.java.source.PostFlowAnalysis.scan(PostFlowAnalysis.java:103)
	at org.netbeans.modules.java.source.PostFlowAnalysis.analyze(PostFlowAnalysis.java:89)
	at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:634)
	at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:361)
	at org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:84)
	at org.netbeans.api.java.source.WorkingCopy.toPhase(WorkingCopy.java:192)
	at org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.setWorkingCopy(RefactoringVisitor.java:110)
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:425)
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$TransformTask.run(JavaRefactoringPlugin.java:408)
	at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672)
	at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662)
	at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
	at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:166)
	at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:138)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
	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.TaskProcessor.runUserTask(TaskProcessor.java:178)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:83)
	at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
	at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683)
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:317)
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:263)
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:245)
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.createAndAddElements(JavaRefactoringPlugin.java:326)
	at org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin.prepare(RenameRefactoringPlugin.java:626)
[catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:417)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:401)
	at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:212)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:1063)
	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)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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


Mime
View raw message