Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Add support for new Eclipse targets
Add support for new Eclipse targets [message #1865010] Tue, 23 April 2024 16:48
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 344
Registered: August 2013
Senior Member
Hi

I'm trying to add support for new Eclipse versions.

Our modeling tool is based on Eclipse 2022-06 because we are temporarily locked to Java 11. So I added a 2022-06 target platform for Gendoc and migrated it to Java 11: https://gitlab.eclipse.org/eclipse/gendoc/org.eclipse.gendoc/-/merge_requests/1

But I have two problems:

1) The build of one project org.eclipse.gendoc.services.xlsx.tests is failed with the error "The package org.w3c.dom is accessible from more than one module: , java.xml".

To reproduce it just run:

mvn clean verify -DskipTests


2) Tests are failed. To reproduce it run:

mvn clean verify


The error is "Workbench has not been created yet":

Running org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.108 s <<< FAILURE! - in org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest
simpleTest(org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest)  Time elapsed: 7.067 s  <<< ERROR!
java.lang.NoClassDefFoundError: org/eclipse/papyrus/infra/ui/emf/databinding/EMFObservableList
        at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.papyrus.infra.ui.emf (452).
        at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.papyrus.infra.ui.internal.emf.Activator.start() of bundle org.eclipse.papyrus.infra.ui.emf.
        at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: java.lang.ExceptionInInitializerError
        at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)
Caused by: java.lang.IllegalStateException: Workbench has not been created yet.
        at org.eclipse.gendoc.services.pptx.tests.PptxSimpleTest.simpleTest(PptxSimpleTest.java:20)


Could you please help to fix it?

I hope after that it will not be a big deal to add a 2024-03 target platform or a newer one.
Previous Topic:XLSXParser::layoutCells() performance issue
Goto Forum:
  


Current Time: Sat May 04 23:38:43 GMT 2024

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

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

Back to the top