eclipse groovy error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

eclipse groovy error

fachhoch
I get this compilation error


Description Resource Path Location Type
Internal compiler error: java.lang.NullPointerException at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639) PDReturnedDocumentsEmail.groovy /Audit.gov/audit.jar/src/main/resources/gov/hhs/acf/util/mail/groovy line 0 Java Problem


here one error out of lot errors   from eclipse error log


Java Model Exception: java.lang.NullPointerException
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:241)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
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:431)
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.reconcile(JavaReconcilingStrategy.java:151)
at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
Caused by: java.lang.NullPointerException
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
at org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
... 16 more
Caused by: java.lang.NullPointerException
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
at org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
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:431)
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.reconcile(JavaReconcilingStrategy.java:151)
at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)


please help me resolve this.



Reply | Threaded
Open this post in threaded view
|

Re: eclipse groovy error

Andy Clement
What version of groovy eclipse are you on?

Can you include a snippet of code that causes the failure, I imagine
it will be related to the use of inner classes given the exception.

Andy

On 12 May 2010 09:10, tubin gen <[hidden email]> wrote:

> I get this compilation error
>
> Description Resource Path Location Type
> Internal compiler error: java.lang.NullPointerException at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> PDReturnedDocumentsEmail.groovy
> /Audit.gov/audit.jar/src/main/resources/gov/hhs/acf/util/mail/groovy line 0
> Java Problem
>
> here one error out of lot errors   from eclipse error log
>
> Java Model Exception: java.lang.NullPointerException
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:241)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
> at
> org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
> 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:431)
> 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.reconcile(JavaReconcilingStrategy.java:151)
> at
> org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
> at
> org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
> at
> org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
> at
> org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
> at
> org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
> at
> org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
> at
> org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
> ... 16 more
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
> at
> org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
> at
> org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
> at
> org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
> at
> org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
> 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:431)
> 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.reconcile(JavaReconcilingStrategy.java:151)
> at
> org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
> at
> org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
> at
> org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
> at
> org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
>
> please help me resolve this.
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: eclipse groovy error

fachhoch
I just updated my eclipse with   http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/

no it is not becasue of inner classs

it is is just a simple .groovy file


package gov.hhs.acf.util.mail.groovy

import gov.hhs.acf.util.mail.dto.MailDTO;
import java.text.MessageFormat;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;

import gov.hhs.acf.stg.model.StgAuditGeneral;
import gov.hhs.acf.util.SpringApplicationContext;
import gov.hhs.acf.util.mail.dto.MailDTO;
import  gov.hhs.acf.util.notification.service.EmailNotificationService;
import gov.hhs.acf.comments.model.Comment;
import gov.hhs.acf.ea.model.EaAuditProgram 
import gov.hhs.acf.osworkflow.model.CommentVariable;
import gov.hhs.acf.osworkflow.model.WFAuditProgramEntity;
import gov.hhs.acf.osworkflow.model.WFAuditProgramNotificationEntity;
import  gov.hhs.acf.osworkflow.model.WFEntity;


public class PDReturnedDocumentsEmail  extends  LeadAnlystReturnedAssignmentEmail{
@Override
public CommentVariable getCommentVariable() {
return CommentVariable.GO_COMMENTS_FOR_DOCUMENTS_REWORK;
}
@Override
public  String getSubject() {
return "Program Director  returned  Documents";
}
}



On Wed, May 12, 2010 at 12:48 PM, Andy Clement <[hidden email]> wrote:
What version of groovy eclipse are you on?

Can you include a snippet of code that causes the failure, I imagine
it will be related to the use of inner classes given the exception.

Andy

On 12 May 2010 09:10, tubin gen <[hidden email]> wrote:
> I get this compilation error
>
> Description Resource Path Location Type
> Internal compiler error: java.lang.NullPointerException at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> PDReturnedDocumentsEmail.groovy
> /Audit.gov/audit.jar/src/main/resources/gov/hhs/acf/util/mail/groovy line 0
> Java Problem
>
> here one error out of lot errors   from eclipse error log
>
> Java Model Exception: java.lang.NullPointerException
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:241)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
> at
> org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
> 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:431)
> 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.reconcile(JavaReconcilingStrategy.java:151)
> at
> org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
> at
> org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
> at
> org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
> at
> org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
> at
> org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
> at
> org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
> at
> org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
> ... 16 more
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
> at
> org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
> at
> org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
> at
> org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
> at
> org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
> 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:431)
> 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.reconcile(JavaReconcilingStrategy.java:151)
> at
> org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
> at
> org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
> at
> org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
> at
> org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
>
> please help me resolve this.
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: eclipse groovy error

fachhoch
Surprisingly it vanished now.I donot know what is the difference ,but I donot get that error any more 

On Wed, May 12, 2010 at 1:17 PM, tubin gen <[hidden email]> wrote:
I just updated my eclipse with   http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/

no it is not becasue of inner classs

it is is just a simple .groovy file


package gov.hhs.acf.util.mail.groovy

import gov.hhs.acf.util.mail.dto.MailDTO;
import java.text.MessageFormat;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;

import gov.hhs.acf.stg.model.StgAuditGeneral;
import gov.hhs.acf.util.SpringApplicationContext;
import gov.hhs.acf.util.mail.dto.MailDTO;
import  gov.hhs.acf.util.notification.service.EmailNotificationService;
import gov.hhs.acf.comments.model.Comment;
import gov.hhs.acf.ea.model.EaAuditProgram 
import gov.hhs.acf.osworkflow.model.CommentVariable;
import gov.hhs.acf.osworkflow.model.WFAuditProgramEntity;
import gov.hhs.acf.osworkflow.model.WFAuditProgramNotificationEntity;
import  gov.hhs.acf.osworkflow.model.WFEntity;


public class PDReturnedDocumentsEmail  extends  LeadAnlystReturnedAssignmentEmail{
@Override
public CommentVariable getCommentVariable() {
return CommentVariable.GO_COMMENTS_FOR_DOCUMENTS_REWORK;
}
@Override
public  String getSubject() {
return "Program Director  returned  Documents";
}
}



On Wed, May 12, 2010 at 12:48 PM, Andy Clement <[hidden email]> wrote:
What version of groovy eclipse are you on?

Can you include a snippet of code that causes the failure, I imagine
it will be related to the use of inner classes given the exception.

Andy

On 12 May 2010 09:10, tubin gen <[hidden email]> wrote:
> I get this compilation error
>
> Description Resource Path Location Type
> Internal compiler error: java.lang.NullPointerException at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> PDReturnedDocumentsEmail.groovy
> /Audit.gov/audit.jar/src/main/resources/gov/hhs/acf/util/mail/groovy line 0
> Java Problem
>
> here one error out of lot errors   from eclipse error log
>
> Java Model Exception: java.lang.NullPointerException
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:241)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
> at
> org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
> 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:431)
> 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.reconcile(JavaReconcilingStrategy.java:151)
> at
> org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
> at
> org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
> at
> org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
> at
> org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
> at
> org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
> at
> org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
> at
> org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
> ... 16 more
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
> at
> org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
> at
> org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
> at
> org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
> at
> org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
> at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
> at
> org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
> at
> org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
> 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:431)
> 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.reconcile(JavaReconcilingStrategy.java:151)
> at
> org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
> at
> org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
> at
> org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
> at
> org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
>
> please help me resolve this.
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Reply | Threaded
Open this post in threaded view
|

Re: eclipse groovy error

Andy Clement
interesting.

You may not have thought it was inner class related but the line that
failed was in the midst of inner class processing so there was an
inner type from 'somewhere' involved.

I can't try to recreate your problem because that code you included in
the previous message isn't standalone, it has too many dependencies
that prevent it from compiling and getting to the real issue.

If it happens again, please raise a Jira, you will get a faster/better
response on Jira than by posting stack traces to the mailing list.

cheers,
Andy

On 12 May 2010 10:44, tubin gen <[hidden email]> wrote:

> Surprisingly it vanished now.I donot know what is the difference ,but I
> donot get that error any more
>
> On Wed, May 12, 2010 at 1:17 PM, tubin gen <[hidden email]> wrote:
>>
>> I just updated my eclipse with
>>   http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/
>> no it is not becasue of inner classs
>> it is is just a simple .groovy file
>>
>> package gov.hhs.acf.util.mail.groovy
>> import gov.hhs.acf.util.mail.dto.MailDTO;
>> import java.text.MessageFormat;
>> import java.util.List;
>> import java.util.Map;
>> import org.apache.commons.lang.StringUtils;
>> import gov.hhs.acf.stg.model.StgAuditGeneral;
>> import gov.hhs.acf.util.SpringApplicationContext;
>> import gov.hhs.acf.util.mail.dto.MailDTO;
>> import  gov.hhs.acf.util.notification.service.EmailNotificationService;
>> import gov.hhs.acf.comments.model.Comment;
>> import gov.hhs.acf.ea.model.EaAuditProgram
>> import gov.hhs.acf.osworkflow.model.CommentVariable;
>> import gov.hhs.acf.osworkflow.model.WFAuditProgramEntity;
>> import gov.hhs.acf.osworkflow.model.WFAuditProgramNotificationEntity;
>> import  gov.hhs.acf.osworkflow.model.WFEntity;
>>
>> public class PDReturnedDocumentsEmail  extends
>>  LeadAnlystReturnedAssignmentEmail{
>> @Override
>> public CommentVariable getCommentVariable() {
>> return CommentVariable.GO_COMMENTS_FOR_DOCUMENTS_REWORK;
>> }
>> @Override
>> public  String getSubject() {
>> return "Program Director  returned  Documents";
>> }
>> }
>>
>>
>> On Wed, May 12, 2010 at 12:48 PM, Andy Clement <[hidden email]>
>> wrote:
>>>
>>> What version of groovy eclipse are you on?
>>>
>>> Can you include a snippet of code that causes the failure, I imagine
>>> it will be related to the use of inner classes given the exception.
>>>
>>> Andy
>>>
>>> On 12 May 2010 09:10, tubin gen <[hidden email]> wrote:
>>> > I get this compilation error
>>> >
>>> > Description Resource Path Location Type
>>> > Internal compiler error: java.lang.NullPointerException at
>>> >
>>> > org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
>>> > PDReturnedDocumentsEmail.groovy
>>> > /Audit.gov/audit.jar/src/main/resources/gov/hhs/acf/util/mail/groovy
>>> > line 0
>>> > Java Problem
>>> >
>>> > here one error out of lot errors   from eclipse error log
>>> >
>>> > Java Model Exception: java.lang.NullPointerException
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:241)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
>>> > 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:431)
>>> > 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.reconcile(JavaReconcilingStrategy.java:151)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
>>> > at
>>> >
>>> > org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
>>> > at
>>> >
>>> > org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
>>> > Caused by: java.lang.NullPointerException
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
>>> > at
>>> > org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
>>> > at
>>> > org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
>>> > ... 16 more
>>> > Caused by: java.lang.NullPointerException
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:639)
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:225)
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:261)
>>> > at
>>> >
>>> > org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:787)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:407)
>>> > at
>>> > org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:940)
>>> > at
>>> > org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:1006)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:201)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:262)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
>>> > 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:431)
>>> > 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.reconcile(JavaReconcilingStrategy.java:151)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
>>> > at
>>> >
>>> > org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
>>> > at
>>> >
>>> > org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
>>> > at
>>> >
>>> > org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
>>> >
>>> > please help me resolve this.
>>> >
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>    http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email