Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse 2020-06 - Decoration Calculation has encountered a problem(An internal error occurred during Decoration Calculation)
Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828841] Fri, 19 June 2020 13:23 Go to next message
Eclipse UserFriend
I am using a completely new installation of Eclipse 2020-06. I installed the plug-ins for Subclipse, JBoss Tools, and Spring Tools 4.

I created a new directory, checked out the source code, and imported as existing Maven project. I have gotten many errors, with the most common being attributable to:

java.lang.NoSuchMethodError: org.eclipse.core.internal.content.Activator.getFactory()Ljavax/xml/parsers/SAXParserFactory;


I am using JBoss' OpenJDK 1.8.0_252.

With Eclipse 2020-03, I was not seeing these errors. I have attached the Eclipse .log file. I have checked for, and installed, all available Eclipse updates.

  • Attachment: .log
    (Size: 26.35KB, Downloaded 241 times)
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828842 is a reply to message #1828841] Fri, 19 June 2020 14:08 Go to previous messageGo to next message
Eclipse UserFriend
Sounds like it something was relying on internal API and didn't test with 2020-06: https://issues.redhat.com/browse/FUSETOOLS-3343.

Your log also says "java.vendor=Oracle Corporation" and "java.version=1.8.0_201", so while unrelated, it's something you should get cleared up.

[Updated on: Fri, 19 June 2020 14:11] by Moderator

Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828847 is a reply to message #1828842] Fri, 19 June 2020 15:43 Go to previous messageGo to next message
Eclipse UserFriend
Thanks. I updated the eclipse.ini to point tot the correct JDK. While it still says "Oracle Corpoation", the version number is now the same as the OpenJDK I have installed.

I deleted the Eclipse .log file and then launched Eclipse again. There are a lot more errors in the log file than last time. I still get the error in Eclipse IDE but I am able to dismiss it without further errors. I have attached the new .log file, if that helps anyone.
  • Attachment: .log
    (Size: 26.45KB, Downloaded 233 times)
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828850 is a reply to message #1828847] Fri, 19 June 2020 17:17 Go to previous messageGo to next message
Eclipse UserFriend
After trying to actually _use_ Eclipse, I have discovered many things just do not work. They are come from the java.lang.NoSuchMethodError: org.eclipse.core.internal.content.Activator.getFactory()Ljavax/xml/parsers/SAXParserFactory.

I am going back to Eclipse 2020-03.
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828941 is a reply to message #1828850] Mon, 22 June 2020 13:00 Go to previous messageGo to next message
Eclipse UserFriend
I moved back to Eclipse 2020-03, ran "Check for Updates" and installed whatever updates were available. When restarting Eclipse the same issue with "org.eclipse.core.internal.content.Activator.getFactory()Ljavax/xml/parsers/SAXParserFactory;" came back.

I installed a clean copy of Eclipse 2020-03, installed the plug-ins and imported my project. Everything ran fine. When I ran the "Check for Updates" again and restarted, again the error returned.

I can confidently state that the issue is neither with Eclipse 2020-03 or 2020-06. I grabbed a screenshot of the updates that were to be applied to Eclipse 2020-03 in the hopes are helping someone here figure out which plug-in or update is causing this issue. See attached pic.
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828943 is a reply to message #1828941] Mon, 22 June 2020 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Nitin -

I have figured out the problem, and it has nothing to do with Fuse!

Extracting a refresh copy of Eclipse 2020-03 comes with org.eclipse.core.contenttype_3.7.600.v20200127-1609.jar file.

Running "Check for Updates" on that version will download org.eclipse.core.contenttype_3.7.700v20200517-1644.jar file.

Using FernFlower to decompile the Activator class clearly shows that SaxParserFactory was removed from the later version. I have attached the two decompiled source files.

Many other things are depending on this class to provide the Sax factory. I get errors from many other plug-ins (Maven, JBoss, SVN) referring to this same class file missing expected methods.

This issue is completely within the Eclipse code itself. Eclipse 2020-06 comes with the newer org.eclipse.core.contenttype_3.7.700v20200517-1644.jar file, which is why it does not work on that version of Eclipse.
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828999 is a reply to message #1828943] Tue, 23 June 2020 15:22 Go to previous messageGo to next message
Eclipse UserFriend
I pulled Activator.class out of the org.eclipse.core.contenttype_3.7.600.v20200127-1609.jar library and placed it in the org.eclipse.core.contenttype_3.7.700v20200517-1644.jar library. I have the impression that this error has disappeared.
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1829004 is a reply to message #1828943] Tue, 23 June 2020 17:01 Go to previous messageGo to next message
Eclipse UserFriend
I pointed to Fuse because your log contained:

java.lang.NoSuchMethodError: org.eclipse.core.internal.content.Activator.getFactory()Ljavax/xml/parsers/SAXParserFactory;
at org.fusesource.ide.foundation.core.xml.namespace.FindNamespaceHandlerSupport.parseContents(FindNamespaceHandlerSupport.java:67)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.fillContentProperties(NamespaceXmlContentDescriberSupport.java:106)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.checkCriteria(NamespaceXmlContentDescriberSupport.java:45)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.describe(NamespaceXmlContentDescriberSupport.java:77)
at org.fusesource.ide.foundation.core.xml.namespace.NamespaceXmlContentDescriberSupport.describe(NamespaceXmlContentDescriberSupport.java:64)

...which shows Fuse code accessing a method on a class that is not public API. Internal classes are free to change however they like. It appears properly fixed through FUSETOOLS-3318, the compile-time version of the problem.
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1829070 is a reply to message #1829004] Wed, 24 June 2020 11:41 Go to previous messageGo to next message
Eclipse UserFriend
That same root cause *java.lang.NoSuchMethodError: org.eclipse.core.internal.content.Activator.getFactory()Ljavax/xml/parsers/SAXParserFactory;" is happening on more classes than just Fuse. I can get an error in Eclipse doing a number of things, none of them related to Fuse. For example, I tried to build with Maven and got the error. I try to run a server and get the error. The stacktrace always contains the same reference to the missing getFactory() method. The log file I sent just happened to be caused by the Decorator, which lead to Fuse.

The workaround in the message from Павло is not viable for an organization to do, and would be overwritten anytime there is a future update. I have spent way too much time on the error already. My solution is using Eclipse 2020-03 and NEVER update it. Hopefully, someone somewhere will finally figure this out and fix things.
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1829947 is a reply to message #1829070] Tue, 14 July 2020 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Is there a fix for this yet? I'm still snagging on this error and thinking of rolling back to the previous version.
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1829952 is a reply to message #1829947] Tue, 14 July 2020 13:17 Go to previous messageGo to next message
Eclipse UserFriend
It needs to be fixed by the clients that are using internal classes that are not API. Surely this was never the best nor proper way to get a SAX factory when javax.xml.parsers.SAXParserFactory.newInstance() will do the trick properly...
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1832130 is a reply to message #1829070] Wed, 09 September 2020 13:58 Go to previous message
Eclipse UserFriend
Hopefully you're opening bug reports for those other stack traces on their components.
Previous Topic:HANA Studio - Provide login details for download.eclipse.org while installing Software
Next Topic:Debug pydev debugger: unable to find translation for:
Goto Forum:
  


Current Time: Sat May 31 20:35:28 EDT 2025

Powered by FUDForum. Page generated in 0.08830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top