facebook

Myeclipse 2017_CI 3 : Keep getting "Building Spring AOP reference model"

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #518061 Reply

    GeorgeMathias
    Participant

    Just upgraded from 2016 CI7 to 2017 CI 3 and I keep getting annoying error message everytime i save a resource. “An internal error occurred during: “Building Spring AOP reference model”.
    java.lang.IllegalArgumentException”.

    I am using spring boot 1.5.2 release and gradle build tool. But the error occurs every time i save a java source.

    The exception in the .log file is :

    !ENTRY org.eclipse.core.jobs 4 2 2017-03-31 21:23:55.325
    !MESSAGE An internal error occurred during: “Building Spring AOP reference model”.
    !STACK 0
    java.lang.IllegalArgumentException
    at org.eclipse.jdt.core.Signature.getTypeErasure(Signature.java:2271)
    at org.eclipse.jdt.core.Signature.getTypeErasure(Signature.java:2291)
    at org.eclipse.jdt.internal.core.BinaryMethod.getErasedParameterTypes(BinaryMethod.java:507)
    at org.eclipse.jdt.internal.core.BinaryMethod.getErasedParameterType(BinaryMethod.java:515)
    at org.eclipse.jdt.internal.core.BinaryMethod.hashCode(BinaryMethod.java:592)
    at java.util.HashMap.hash(HashMap.java:338)
    at java.util.HashMap.get(HashMap.java:556)
    at org.eclipse.jdt.internal.core.JavaModelCache.getInfo(JavaModelCache.java:142)
    at org.eclipse.jdt.internal.core.JavaModelManager.getInfo(JavaModelManager.java:2040)
    at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:314)
    at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302)
    at org.eclipse.jdt.internal.core.JavaElement.exists(JavaElement.java:220)
    at org.eclipse.jdt.internal.core.SourceRefElement.getUnderlyingResource(SourceRefElement.java:225)
    at org.springframework.ide.eclipse.core.model.java.JavaModelSourceLocation.getResource(JavaModelSourceLocation.java:57)
    at org.springframework.ide.eclipse.beans.core.internal.model.Bean.getElementResource(Bean.java:117)
    at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.buildAopReferencesForBeans(AopReferenceModelBuilderJob.java:289)
    at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.buildAopReferencesForBeansConfig(AopReferenceModelBuilderJob.java:313)
    at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.buildAopReferencesForFile(AopReferenceModelBuilderJob.java:367)
    at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.buildAopModel(AopReferenceModelBuilderJob.java:464)
    at org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.run(AopReferenceModelBuilderJob.java:160)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    !ENTRY org.eclipse.ui 4 0 2017-03-31 21:25:19.644
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.IllegalArgumentException
    at org.eclipse.jdt.core.Signature.getTypeErasure(Signature.java:2271)
    at org.eclipse.jdt.core.Signature.getTypeErasure(Signature.java:2291)
    at org.eclipse.jdt.internal.core.BinaryMethod.getErasedParameterTypes(BinaryMethod.java:507)
    at org.eclipse.jdt.internal.core.BinaryMethod.getErasedParameterType(BinaryMethod.java:515)
    at org.eclipse.jdt.internal.core.BinaryMethod.hashCode(BinaryMethod.java:592)
    at java.util.HashMap.hash(HashMap.java:338)
    at java.util.HashMap.get(HashMap.java:556)
    at org.eclipse.jdt.internal.core.JavaModelCache.getInfo(JavaModelCache.java:142)
    at org.eclipse.jdt.internal.core.JavaModelManager.getInfo(JavaModelManager.java:2040)
    at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:314)
    at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302)
    at org.eclipse.jdt.internal.core.JavaElement.exists(JavaElement.java:220)
    at org.eclipse.jdt.internal.core.SourceRefElement.getUnderlyingResource(SourceRefElement.java:225)
    at org.springframework.ide.eclipse.core.model.java.JavaModelSourceLocation.getResource(JavaModelSourceLocation.java:57)
    at org.springframework.ide.eclipse.beans.core.internal.model.Bean.getElementResource(Bean.java:117)
    at org.springframework.ide.eclipse.quickfix.hyperlinks.AutowireHyperlinkDetector.addHyperlinksHelper(AutowireHyperlinkDetector.java:151)
    at org.springframework.ide.eclipse.quickfix.hyperlinks.AutowireHyperlinkDetector.addHyperlinksHelper(AutowireHyperlinkDetector.java:117)
    at org.springframework.ide.eclipse.quickfix.hyperlinks.AutowireHyperlinkDetector.addHyperlinksHelper(AutowireHyperlinkDetector.java:94)
    at org.springframework.ide.eclipse.quickfix.hyperlinks.AutowireHyperlinkDetector.addHyperlinks(AutowireHyperlinkDetector.java:60)
    at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.detectHyperlinks(JavaElementHyperlinkDetector.java:115)
    at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:78)
    at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:287)
    at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:259)
    at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:455)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5219)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4553)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4143)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

    #518065 Reply

    GeorgeMathias
    Participant

    OK. I saw this reply on another post “Thanks for the trace – this is an error in the core of the JDT, very unusual.

    Do you have the right Java compiler settings locally? For instance, are the right Java versions configured in the Java Compiler properties page, and does the project have the right JRE assigned to it?

    You should be able to prevent the AOP builder from running by going to Project properties > Project Facets > Spring and then choose the “General Project Configuration” tab. You can deselect the “AOP Reference Model Builder” here. Alternatively, you could turn this off globally at the preferences level too. Note that this will disable some of the cross-cutting information displayed in the Spring Explorer and some hyperlink based navigation in Spring configuration files, so ideally, it would be good to get the project settings corrected to prevent this error.”

    And I turned off the setting and i don’t get that error any longer.

    #518387 Reply

    support-swapna
    Moderator

    George,

    Glad that the workaround helped. Thank you for getting back to us.
    Please let us know if you see any issues.

    –Swapna
    MyEclipse Support

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Myeclipse 2017_CI 3 : Keep getting "Building Spring AOP reference model"

You must be logged in to post in the forum log in