Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:23 Go to next message
Mike Viens is currently offline Mike ViensFriend
Messages: 6
Registered: June 2020
Junior Member
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 15 times)
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828842 is a reply to message #1828841] Fri, 19 June 2020 18:08 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3749
Registered: July 2009
Senior Member

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.


Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Fri, 19 June 2020 18:11]

Report message to a moderator

Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828847 is a reply to message #1828842] Fri, 19 June 2020 19:43 Go to previous messageGo to next message
Mike Viens is currently offline Mike ViensFriend
Messages: 6
Registered: June 2020
Junior Member
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 20 times)
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1828850 is a reply to message #1828847] Fri, 19 June 2020 21:17 Go to previous messageGo to next message
Mike Viens is currently offline Mike ViensFriend
Messages: 6
Registered: June 2020
Junior Member
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 17:00 Go to previous messageGo to next message
Mike Viens is currently offline Mike ViensFriend
Messages: 6
Registered: June 2020
Junior Member
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 18:21 Go to previous messageGo to next message
Mike Viens is currently offline Mike ViensFriend
Messages: 6
Registered: June 2020
Junior Member
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 19:22 Go to previous messageGo to next message
Павло Дегтярьов is currently offline Павло ДегтярьовFriend
Messages: 1
Registered: June 2020
Junior Member
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 21:01 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3749
Registered: July 2009
Senior Member

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.


Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse 2020-06 - Decoration Calculation has encountered a problem [message #1829070 is a reply to message #1829004] Wed, 24 June 2020 15:41 Go to previous message
Mike Viens is currently offline Mike ViensFriend
Messages: 6
Registered: June 2020
Junior Member
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.
Previous Topic:Which version did I install?
Next Topic:Keybinding conflicts involving jface plug-in
Goto Forum:
  


Current Time: Sun Jul 05 11:54:11 GMT 2020

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

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

Back to the top