| 
| Exception: Unable to create this part due to an internal error. Reason for the failure: Editor could [message #63398] | 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
 |  |  |  | 
|  | 
|  | 
| 
| Re: Exception: Unable to create this part due to an internal error. Reason for t [message #63536 is a reply to message #63490] | Sun, 02 April 2006 15:09  |  | 
| Eclipse User  |  |  |  |  | Tong wrote: > Eclipse SDK
 > Version: 3.2.0
 > Build id: N20060325-0010
 
 Aha, that's the problem. That's a recent nightly build, not 3.2M5a. AJDT
 is sensitive to eclipse versions - we always try to support the latest
 milestone build. So you can either get 3.2M5a, or alternatively get
 yesterday's 3.2M6 and then wait for an AJDT for it - should only be a day
 or two.
 
 Regards,
 
 Matt.
 |  |  |  | 
| 
| Re: Exception: Unable to create this part due to an internal error. Reason for t [message #592869 is a reply to message #63398] | Sun, 02 April 2006 13:19  |  | 
| Eclipse User  |  |  |  |  | I can't reproduce this. Can you double-check your eclipse + ajdt version (it might be picking up an old version for example)? Go to Help > About
 and note the Eclipse build id, then click on the AJ icon and note the AJDT
 build id, and the full AspectJ version.
 
 Thanks,
 
 Matt.
 
 Tong wrote:
 > 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
 |  |  |  | 
| 
| Re: Exception: Unable to create this part due to an internal error. Reason for t [message #592896 is a reply to message #63446] | Sun, 02 April 2006 13:54  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: thf20022003.yahoo.com 
 Here is the info:
 
 Eclipse SDK
 
 
 Version: 3.2.0
 
 Build id: N20060325-0010
 
 org.aspectj.ajde (1.5.0.20060330094817) "AspectJ"
 org.aspectj.runtime (1.5.0.20060330094817) "AspectJ Runtime"
 org.aspectj.tutorial.exercises (1.0.1) "AspectJ Tutorial Exercises"
 
 org.aspectj.weaver (1.5.0.20060330094817) "AspectJ Weaver"
 org.eclipse.ajdt.core (1.4.0.20060330094817) "AspectJ Development Tools
 Core"
 org.eclipse.ajdt.examples (1.4.0.20060330094817) "AspectJ Examples"
 
 org.eclipse.ajdt.source (1.4.0.20060330094817) "AspectJ Development Tools
 SDK"
 org.eclipse.ajdt.ui (1.4.0.20060330094817) "AspectJ Development Tools UI"
 
 org.eclipse.ant.core (3.1.100.N20060325-0010) "Ant Build Tool Core"
 [Resolved]
 org.eclipse.ant.ui (3.2.0.N20060325-0010) "Ant UI" [Resolved]
 org.eclipse.aspectj (1.4.0.20060330094817) "AspectJ Development Tools"
 [Resolved]
 
 The steps that I got exception:
 
 1. Create a package called "answers" and a class "Answer" as described in
 hand-on.
 
 2. Type in the code as described in hand-on:
 package answers;
 import figures.*;
 
 public aspect Answer {
 declare error
 : get(java.io.PrintStream System.out)
 && within(figures..*)
 : "illegal access to System.out";
 
 }
 3. Save & Close the file
 4. Re-open the file "Answer.aj" from "answers" package
 ==> Got Exception
 
 Regards,
 Tong
 
 "Matt Chapman" <mpchapman@gmail.com> wrote in message
 news:c85fe5dba7db7d09c8625d5fad551b29$1@www.eclipse.org...
 > I can't reproduce this. Can you double-check your eclipse + ajdt version
 > (it might be picking up an old version for example)? Go to Help > About
 > and note the Eclipse build id, then click on the AJ icon and note the AJDT
 > build id, and the full AspectJ version.
 >
 > Thanks,
 >
 > Matt.
 >
 > Tong wrote:
 > > 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
 >
 |  |  |  | 
|  | 
Powered by 
FUDForum. Page generated in 0.53652 seconds