Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Exception: Unable to create this part due to an internal error. Reason for the failure: Editor could
Exception: Unable to create this part due to an internal error. Reason for the failure: Editor could [message #592830] Sun, 02 April 2006 11:53
Eclipse User
Originally posted by: thf20022003.yahoo.com

Hi,
Following the exercise1 from EclipseCon2006, I got the following exception
when I try to re-open the Answer.aj:

Java.lang.AbstractMethodError:
org.eclipse.ajdt.parserbridge.AJCompilationUnitStructureRequ estor.acceptImpo
rt(II[CZI)V
at
org.eclipse.ajdt.parserbridge.AJSourceElementParser.notifySo urceElementReque
stor(AJSourceElementParser.java:1052)
at
org.eclipse.ajdt.parserbridge.AJSourceElementParser.notifySo urceElementReque
stor(AJSourceElementParser.java:710)
at
org.eclipse.ajdt.parserbridge.AJSourceElementParser.parseCom pilationUnit(AJS
ourceElementParser.java:1273)
at
org.eclipse.ajdt.core.javaelements.AJCompilationUnit.buildSt ructure(AJCompil
ationUnit.java:231)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl e.java:229)
at
org.eclipse.ajdt.core.javaelements.AJCompilationUnit.generat eInfos(AJCompila
tionUnit.java:179)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav aElement.java:50
3)
at
org.eclipse.jdt.internal.core.BecomeWorkingCopyOperation.exe cuteOperation(Be
comeWorkingCopyOperation.java:38)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java
:720)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOpera
tion.java:779)
at
org.eclipse.jdt.internal.core.CompilationUnit.becomeWorkingC opy(CompilationU
nit.java:68)
at
org.eclipse.ajdt.internal.ui.editor.AspectJEditor.doSetInput (AspectJEditor.j
ava:377)
at
org.eclipse.ui.texteditor.AbstractTextEditor$17.run(Abstract TextEditor.java:
2397)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
a:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:763)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:760)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2262)
at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor
..java:2415)
at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:24
42)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:839)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.jav
a:583)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:372)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReferenc
e.java:557)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:214)

It sounds like the cause of the exception is from the "import figures.*;"
within the following source:

package answers;

import figures.*;

public aspect Answer {
declare error
: get(java.io.PrintStream System.out)
&& within(figures..*)
: "illegal access to System.out";

}

I am using Eclipse 3.2M5+ajdt_1.4.0(2006-03-30)+WindowsXP

Regards,
Tong
Previous Topic:Cross Project reference
Next Topic:Status and future plans for AspectJ/AJDT? (mustang support in particular)
Goto Forum:
  


Current Time: Mon Jul 28 10:41:18 EDT 2014

Powered by FUDForum. Page generated in 0.01754 seconds