Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Problems with inter type declaration aspects on the Aspect Path
Problems with inter type declaration aspects on the Aspect Path [message #599646] Fri, 20 February 2009 13:21
Filip Croes is currently offline Filip Croes
Messages: 14
Registered: July 2009
Junior Member
Hi,

I have several problems using inter type declaration with AJDT :(

After I got that ugly SIOOB Exception of yesterday, I tried to reproduce
this error in an isolated environment, but instead I got some more
errors... S

And my inter type is not working either, whereas it does in the project
where the Aspect is defined... :s

Please download and test my example here:
http://www.2shared.com/file/4921023/91eb4dc1/aspects-example .html
(It's Maven-ready, except for the Aspect Path: I configured this manually
in Eclipse.)

List of my errors:

java.lang.NullPointerException
at java.lang.String.<init>(String.java:176)
at
org.eclipse.ajdt.core.codeconversion.AspectsConvertingParser .getInterTypeDecls(AspectsConvertingParser.java:611)
at
org.eclipse.ajdt.core.codeconversion.AspectsConvertingParser .convert(AspectsConvertingParser.java:387)
at
org.eclipse.ajdt.internal.core.contentassist.ContentAssistPr ovider$MockCompilationUnit.initContents(ContentAssistProvide r.java:59)
at
org.eclipse.ajdt.internal.core.contentassist.ContentAssistPr ovider$MockCompilationUnit. <init>(ContentAssistProvider.java:53)
at
org.eclipse.ajdt.internal.core.contentassist.ContentAssistPr ovider.doContentAssist(ContentAssistProvider.java:101)
at
org.eclipse.contribution.jdt.itdawareness.ITDAwarenessAspect .ajc$around$org_eclipse_contribution_jdt_itdawareness_ITDAwa renessAspect$5$a811c9a4(ITDAwarenessAspect.aj:243)
at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable .java:105)
at
org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(C ompilationUnit.java:344)
at
org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(C ompilationUnit.java:337)
at
org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposal Computer.internalComputeCompletionProposals(JavaCompletionPr oposalComputer.java:190)
at
org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposal Computer.computeCompletionProposals(JavaCompletionProposalCo mputer.java:156)
at
org.eclipse.jdt.internal.ui.text.java.JavaTypeCompletionProp osalComputer.computeCompletionProposals(JavaTypeCompletionPr oposalComputer.java:58)
at
org.eclipse.mylyn.internal.java.ui.editor.FocusedJavaTypePro posalComputer.computeCompletionProposals(FocusedJavaTypeProp osalComputer.java:35)
at
org.eclipse.jdt.internal.ui.text.java.CompletionProposalComp uterDescriptor.computeCompletionProposals(CompletionProposal ComputerDescriptor.java:316)
at
org.eclipse.jdt.internal.ui.text.java.CompletionProposalCate gory.computeCompletionProposals(CompletionProposalCategory.j ava:264)
at
org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor .collectProposals(ContentAssistProcessor.java:285)
at
org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor .computeCompletionProposals(ContentAssistProcessor.java:245)
at
org.eclipse.jface.text.contentassist.ContentAssistant.comput eCompletionProposals(ContentAssistant.java:1836)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .computeProposals(CompletionProposalPopup.java:553)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$16(CompletionProposalPopup.java:550)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup $2.run(CompletionProposalPopup.java:485)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.jface.text.contentassist.CompletionProposalPopup .showProposals(CompletionProposalPopup.java:479)
at
org.eclipse.jface.text.contentassist.ContentAssistant$2.run( ContentAssistant.java:377)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)


java.lang.NullPointerException
at
org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.re solve(HierarchyResolver.java:582)
at
org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder.bui ldSupertypes(HierarchyBuilder.java:115)
at
org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyB uilder.build(IndexBasedHierarchyBuilder.java:135)
at
org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.comput e(TypeHierarchy.java:300)
at
org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.refres h(TypeHierarchy.java:1241)
at
org.eclipse.jdt.internal.core.CreateTypeHierarchyOperation.e xecuteOperation(CreateTypeHierarchyOperation.java:90)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:709)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:770)
at
org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarc hy(SourceType.java:704)
at
org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarc hy(SourceType.java:656)
at
org.eclipse.jdt.internal.corext.util.SuperTypeHierarchyCache .getTypeHierarchy(SuperTypeHierarchyCache.java:120)
at
org.eclipse.jdt.internal.corext.util.SuperTypeHierarchyCache .getTypeHierarchy(SuperTypeHierarchyCache.java:80)
at
org.eclipse.jdt.internal.corext.util.SuperTypeHierarchyCache .getMethodOverrideTester(SuperTypeHierarchyCache.java:89)
at
org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.getOverri deIndicators(OverrideIndicatorLabelDecorator.java:168)
at
org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.computeAd ornmentFlags(OverrideIndicatorLabelDecorator.java:133)
at
org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.decorate( OverrideIndicatorLabelDecorator.java:269)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin ition.decorate(LightweightDecoratorDefinition.java:269)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManag er$LightweightRunnable.run(LightweightDecoratorManager.java: 72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.decorate(LightweightDecoratorManager.java:356)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.getDecorations(LightweightDecoratorManager.java:338)
at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens ureResultCached(DecorationScheduler.java:374)
at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run (DecorationScheduler.java:334)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)



java.lang.NullPointerException
at
org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.re solve(HierarchyResolver.java:582)
at
org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder.bui ldSupertypes(HierarchyBuilder.java:115)
at
org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyB uilder.build(IndexBasedHierarchyBuilder.java:135)
at
org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.comput e(TypeHierarchy.java:300)
at
org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.refres h(TypeHierarchy.java:1241)
at
org.eclipse.jdt.internal.core.CreateTypeHierarchyOperation.e xecuteOperation(CreateTypeHierarchyOperation.java:90)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:709)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:770)
at
org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarc hy(SourceType.java:704)
at
org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarc hy(SourceType.java:656)
at
org.eclipse.jdt.internal.corext.util.SuperTypeHierarchyCache .getTypeHierarchy(SuperTypeHierarchyCache.java:120)
at
org.eclipse.jdt.internal.corext.util.SuperTypeHierarchyCache .getTypeHierarchy(SuperTypeHierarchyCache.java:80)
at
org.eclipse.jdt.internal.corext.util.SuperTypeHierarchyCache .getMethodOverrideTester(SuperTypeHierarchyCache.java:89)
at
org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.getOverri deIndicators(OverrideIndicatorLabelDecorator.java:168)
at
org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.computeAd ornmentFlags(OverrideIndicatorLabelDecorator.java:133)
at
org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.decorate( OverrideIndicatorLabelDecorator.java:269)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin ition.decorate(LightweightDecoratorDefinition.java:269)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManag er$LightweightRunnable.run(LightweightDecoratorManager.java: 72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.decorate(LightweightDecoratorManager.java:356)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.getDecorations(LightweightDecoratorManager.java:338)
at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens ureResultCached(DecorationScheduler.java:374)
at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run (DecorationScheduler.java:334)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

org.eclipse.core.runtime.OperationCanceledException
at
org.eclipse.jdt.internal.core.CancelableProblemFactory.creat eProblem(CancelableProblemFactory.java:36)
at
org.eclipse.jdt.internal.compiler.problem.ProblemHandler.cre ateProblem(ProblemHandler.java:91)
at
org.eclipse.jdt.internal.compiler.problem.ProblemHandler.han dle(ProblemHandler.java:135)
at
org.eclipse.jdt.internal.compiler.problem.ProblemHandler.han dle(ProblemHandler.java:179)
at
org.eclipse.jdt.internal.compiler.problem.ProblemReporter.ha ndle(ProblemReporter.java:1830)
at
org.eclipse.jdt.internal.compiler.problem.ProblemReporter.pa rseErrorInsertToComplete(ProblemReporter.java:5610)
at
org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnosePa rser.reportPrimaryError(DiagnoseParser.java:2318)
at
org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnosePa rser.reportError(DiagnoseParser.java:2135)
at
org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnosePa rser.primaryDiagnosis(DiagnoseParser.java:1023)
at
org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnosePa rser.primaryPhase(DiagnoseParser.java:704)
at
org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnosePa rser.errorRecovery(DiagnoseParser.java:519)
at
org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnosePa rser.diagnoseParse(DiagnoseParser.java:377)
at
org.eclipse.jdt.internal.compiler.parser.Parser.reportSyntax Errors(Parser.java:10235)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:9315)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:9500)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser .java:9457)
at
org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCo mpile(Compiler.java:694)
at
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Co mpiler.java:376)
at
org.eclipse.ajdt.core.parserbridge.AJCompilationUnitProblemF inder.beginToCompile(AJCompilationUnitProblemFinder.java:134 )
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler. java:838)
at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler. java:904)
at
org.eclipse.ajdt.core.parserbridge.AJCompilationUnitProblemF inder.processAJ(AJCompilationUnitProblemFinder.java:219)
at
org.eclipse.ajdt.core.AspectJPlugin$1.problemFind(AspectJPlu gin.java:184)
at
org.eclipse.contribution.jdt.itdawareness.ITDAwarenessAspect .ajc$around$org_eclipse_contribution_jdt_itdawareness_ITDAwa renessAspect$4$8b05d765(ITDAwarenessAspect.aj:205)
at
org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.p rocess(CompilationUnitProblemFinder.java:153)
at
org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.p rocess(CompilationUnitProblemFinder.java:243)
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(JavaMod elOperation.java:709)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:770)
at
org.eclipse.jdt.internal.core.CompilationUnit.reconcile(Comp ilationUnit.java:1224)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y.reconcile(JavaReconcilingStrategy.java:124)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y.access$0(JavaReconcilingStrategy.java:108)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y$1.run(JavaReconcilingStrategy.java:89)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y.reconcile(JavaReconcilingStrategy.java:87)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y.reconcile(JavaReconcilingStrategy.java:149)
at
org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrateg y.reconcile(CompositeReconcilingStrategy.java:86)
at
org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStr ategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
at
org.eclipse.jface.text.reconciler.MonoReconciler.process(Mon oReconciler.java:77)
at
org.eclipse.jface.text.reconciler.AbstractReconciler$Backgro undThread.run(AbstractReconciler.java:206)

version info:
eclipse.buildId=M20080911-1700
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
Eclipse AspectJ Development Tools
Version: 1.6.3.20090122141228
AspectJ version: 1.6.4.20090106083800
Previous Topic:An internal error occurred during: "Delete and update AspectJ markers ..."
Next Topic:Problems with inter type declaration aspects on the Aspect Path
Goto Forum:
  


Current Time: Tue Jul 29 04:51:58 EDT 2014

Powered by FUDForum. Page generated in 0.04957 seconds