java.lang.NullPointerException

SpringSource Issue Tracker | Henrique Neves do Nascimento | 5 years ago
  1. 0

    It happens when i have 2 or more import static in my groovy class. The groovy parser does not work, and i can´t open submenus to run grails commands. This problem does not happen eveytime. I will attach the the log file with some code. When i remove one of the 2 import static, the problem just stop. !ENTRY org.eclipse.jdt.core 4 4 2012-02-17 17:03:19.740 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- . . .----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException at org.codehaus.groovy.ast.ClassNode.removeField(ClassNode.java:1536) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.createPropertyNodeForMethodNode(JDTClassNode.java:555) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initializeProperties(JDTClassNode.java:525) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.ensurePropertiesInitialized(JDTClassNode.java:515) at org.codehaus.groovy.ast.ClassNode.getProperties(ClassNode.java:557) at org.codehaus.groovy.control.StaticImportVisitor.hasStaticProperty(StaticImportVisitor.java:542) at org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessor(StaticImportVisitor.java:529) at org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessorGivenArgs(StaticImportVisitor.java:520) at org.codehaus.groovy.control.StaticImportVisitor.findStaticMethodImportFromModule(StaticImportVisitor.java:490) at org.codehaus.groovy.control.StaticImportVisitor.transformMethodCallExpression(StaticImportVisitor.java:249) at org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:84) . . . !ENTRY org.eclipse.jdt.ui 4 2 2012-02-17 17:03:19.740 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui". !STACK 1 Java Model Exception: java.lang.NullPointerException at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody0(CompilationUnitProblemFinder.java:262) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody1$advice(CompilationUnitProblemFinder.java:244) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:1) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:284) at org.codehaus.jdt.groovy.model.GroovyReconcileWorkingCopyOperation.makeConsistent(GroovyReconcileWorkingCopyOperation.java:80) at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:89) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728) at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:788) at org.codehaus.jdt.groovy.model.GroovyCompilationUnit.reconcile(GroovyCompilationUnit.java:410) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:126) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.initialReconcile(JavaReconcilingStrategy.java:178) at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.initialReconcile(CompositeReconcilingStrategy.java:114) at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:136) at org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:105) at org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:406) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:173) Caused by: java.lang.NullPointerException at org.codehaus.groovy.ast.ClassNode.removeField(ClassNode.java:1536) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.createPropertyNodeForMethodNode(JDTClassNode.java:555) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initializeProperties(JDTClassNode.java:525) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.ensurePropertiesInitialized(JDTClassNode.java:515) at org.codehaus.groovy.ast.ClassNode.getProperties(ClassNode.java:557) at org.codehaus.groovy.control.StaticImportVisitor.hasStaticProperty(StaticImportVisitor.java:542) . . .

    SpringSource Issue Tracker | 5 years ago | Henrique Neves do Nascimento
    java.lang.NullPointerException
  2. 0

    It happens when i have 2 or more import static in my groovy class. The groovy parser does not work, and i can´t open submenus to run grails commands. This problem does not happen eveytime. I will attach the the log file with some code. When i remove one of the 2 import static, the problem just stop. !ENTRY org.eclipse.jdt.core 4 4 2012-02-17 17:03:19.740 !MESSAGE Exception occurred during problem detection: ----------------------------------- SOURCE BEGIN ------------------------------------- . . .----------------------------------- SOURCE END ------------------------------------- !STACK 0 java.lang.NullPointerException at org.codehaus.groovy.ast.ClassNode.removeField(ClassNode.java:1536) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.createPropertyNodeForMethodNode(JDTClassNode.java:555) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initializeProperties(JDTClassNode.java:525) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.ensurePropertiesInitialized(JDTClassNode.java:515) at org.codehaus.groovy.ast.ClassNode.getProperties(ClassNode.java:557) at org.codehaus.groovy.control.StaticImportVisitor.hasStaticProperty(StaticImportVisitor.java:542) at org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessor(StaticImportVisitor.java:529) at org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessorGivenArgs(StaticImportVisitor.java:520) at org.codehaus.groovy.control.StaticImportVisitor.findStaticMethodImportFromModule(StaticImportVisitor.java:490) at org.codehaus.groovy.control.StaticImportVisitor.transformMethodCallExpression(StaticImportVisitor.java:249) at org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:84) . . . !ENTRY org.eclipse.jdt.ui 4 2 2012-02-17 17:03:19.740 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui". !STACK 1 Java Model Exception: java.lang.NullPointerException at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody0(CompilationUnitProblemFinder.java:262) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process_aroundBody1$advice(CompilationUnitProblemFinder.java:244) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:1) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:284) at org.codehaus.jdt.groovy.model.GroovyReconcileWorkingCopyOperation.makeConsistent(GroovyReconcileWorkingCopyOperation.java:80) at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:89) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728) at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:788) at org.codehaus.jdt.groovy.model.GroovyCompilationUnit.reconcile(GroovyCompilationUnit.java:410) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:126) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.initialReconcile(JavaReconcilingStrategy.java:178) at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.initialReconcile(CompositeReconcilingStrategy.java:114) at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:136) at org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:105) at org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:406) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:173) Caused by: java.lang.NullPointerException at org.codehaus.groovy.ast.ClassNode.removeField(ClassNode.java:1536) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.createPropertyNodeForMethodNode(JDTClassNode.java:555) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initializeProperties(JDTClassNode.java:525) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.ensurePropertiesInitialized(JDTClassNode.java:515) at org.codehaus.groovy.ast.ClassNode.getProperties(ClassNode.java:557) at org.codehaus.groovy.control.StaticImportVisitor.hasStaticProperty(StaticImportVisitor.java:542) . . .

    SpringSource Issue Tracker | 5 years ago | Henrique Neves do Nascimento
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.codehaus.groovy.ast.ClassNode.removeField()
    2. Groovy
      ClassNode.removeField
      1. org.codehaus.groovy.ast.ClassNode.removeField(ClassNode.java:1536)
      1 frame
    3. Groovy-Eclipse Batch Compiler
      JDTClassNode.ensurePropertiesInitialized
      1. org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.createPropertyNodeForMethodNode(JDTClassNode.java:555)
      2. org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initializeProperties(JDTClassNode.java:525)
      3. org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.ensurePropertiesInitialized(JDTClassNode.java:515)
      3 frames
    4. Groovy
      StaticImportVisitor.transform
      1. org.codehaus.groovy.ast.ClassNode.getProperties(ClassNode.java:557)
      2. org.codehaus.groovy.control.StaticImportVisitor.hasStaticProperty(StaticImportVisitor.java:542)
      3. org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessor(StaticImportVisitor.java:529)
      4. org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessorGivenArgs(StaticImportVisitor.java:520)
      5. org.codehaus.groovy.control.StaticImportVisitor.findStaticMethodImportFromModule(StaticImportVisitor.java:490)
      6. org.codehaus.groovy.control.StaticImportVisitor.transformMethodCallExpression(StaticImportVisitor.java:249)
      7. org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:84)
      7 frames