org.osgi.framework.BundleException: Could not resolve module - java

I'm trying to setup my eclipse plugin development target and receive the following error multiple times:
!ENTRY org.eclipse.e4.ui.css.swt 4 0 2015-01-30 15:15:06.879
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.e4.ui.css.swt [955]
Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.css.core; bundle-version="0.9.0"
-> Bundle-SymbolicName: org.eclipse.e4.ui.css.core; bundle-version="0.10.100.v20140424-2042"; singleton:="true"
org.eclipse.e4.ui.css.core [1134]
Unresolved requirement: Require-Bundle: org.apache.batik.css; bundle-version="1.7.0"
-> Bundle-SymbolicName: org.apache.batik.css; bundle-version="1.7.0.v201011041433"
org.apache.batik.css [1177]
Unresolved requirement: Import-Package: org.w3c.dom.events; version="[3.0.0,4.0.0)"
Does this mean that none of these plugins can be resolved, or just not the last one org.w3c.dom.events or is this a result from the mismatch of the bundle versions of org.eclipse.e4.ui.css.core?

for JMC 8 The minimum JDK requirement is version=8, for JMC 8.1 The minimum JDK requirement is version=11
you are facing this issue because you are trying to open JMC 8.1 with JDK 8. Install JMC version 8 then your issue will resolve.

It is just org.w3c.dom.events that can't be resolved.
You should have a org.w3c.dom.events plugin.
If you are setting up a target platform for plugin development the easiest thing to use is everything in the 'Eclipse SDK' download form http://download.eclipse.org/eclipse/downloads/

I faced the same problem. It turned out, I was missing the org.w3c.dom.events plugin in my dependencies in my product file or launch configuration.

I had this issue despite the module being present. I found that it was a caching problem in Windows.
I deleted the contents of: C:/users/UserName/.eclipse
Afterwards, Eclipse started fine.

Related

Error: Eclipse 4.5 MARS NullPointerException (JUnit-Tests)

I do have a problem with Eclipse 4.5 when building a JUnit Test Class.
I can build all tests with the help of ant in its repository.
I think it is a configuration problem in Eclipse.
I already followed a lot of solutions in this forum:
Cleaning the path of eclipse itself
restarting eclipse
try to compile with JUnit3
try to compile with JUnit4
try another JRE
start the project in a different workspace
The reason why I haven't updated my Eclipse is because my company only uses Eclipse 4.5. So I can't accept an answer to update it.
The error log:
!ENTRY org.eclipse.core.jobs 4 2 2019-09-09 17:55:58.495
!MESSAGE An internal error occurred during: "Launching JUnitEntityDBUtility".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:429)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:418)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.addEntry(JUnitLaunchConfigurationDelegate.java:405)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localizeClasspath(JUnitLaunchConfigurationDelegate.java:396)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getClasspath(JUnitLaunchConfigurationDelegate.java:373)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:147)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Delete and recreate your JUnitEntityDBUtility launch configuration.
The stack trace can be found here and here. At the second finding you will find the explanation and a workaround by Moritz Eysholdt for your issue as follows (highlighting by me):
That NPE occurs if you execute a test's launch config in an Eclipse
that does not have the plugin org.eclipse.jdt.junit4.runtime.patch
installed when the launch config was created by an Eclipse that did
actually have org.eclipse.jdt.junit4.runtime.patch installed.
Workaround: Install org.eclipse.jdt.junit4.runtime.patch via the Xpect
update site or delete+recreate your launch configuration.
[...]

Lombok Eclipse issue: "Requesting Java AST from selection"

I have Lombok plugin installed in my Eclipse. It was working fine till now since many days. All of a sudden I am frequently getting a popup in my Eclipse with the following details:
An error has occurred. See error log for more details.
lombok/launch/PatchFixesHider$PatchFixes
An internal error occurred during: "Requesting Java AST from selection".
lombok/launch/PatchFixesHider$PatchFixes
The Eclipse error log has this:
!ENTRY org.eclipse.ui.workbench 4 2 2016-08-29 13:18:38.631
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.LinkageError: lombok/launch/PatchFixesHider$PatchFixes
at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.addUsage(OccurrencesFinder.java)
at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.visit(OccurrencesFinder.java:158)
at org.eclipse.jdt.core.dom.QualifiedName.accept0(QualifiedName.java:168)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
at org.eclipse.jdt.core.dom.PackageDeclaration.accept0(PackageDeclaration.java:225)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
Eclipse version :
Eclipse Java EE IDE for Web Developers.
Version: Neon Release (4.6.0)
Build id: 20160613-1800
This popup is occurring quite frequently and its very annoying.Does anyone knows the solution to fix this?
Removed older jar and updated with latest lombok jar (version 1.16.10).. restarted my system. this fixed this issue. Not sure what was the cause of this issue though.
Had the same issue, restarting Eclipse was sufficient for me.

Eclipse RCP linux unresolved requirement

We have a RCP eclipse plugin based UI console developed in Eclipse Release 4.5.1 (Mars.1) with Java 1.8. We are porting from Windows to Linux x86_64 using Eclipse Release 4.5.2 (Mars.2) with Java 1.8.
When we try to launch the application, the application crashes after display of splash screen with a pop-up saying that a log is created. Please find below a snippet of log file:
!ENTRY org.eclipse.e4.ui.swt.gtk 2 0 2016-06-06 10:28:58.603
!MESSAGE Could not resolve module: org.eclipse.e4.ui.swt.gtk [98]
Unresolved requirement: Fragment-Host: org.eclipse.e4.ui.css.swt.theme; bundle-version="0.10.0"
!ENTRY org.eclipse.core.net.linux.x86_64 2 0 2016-06-06 10:28:58.603
!MESSAGE Could not resolve module: org.eclipse.core.net.linux.x86_64 [100]
Unresolved requirement: Fragment-Host: org.eclipse.core.net; bundle-version="1.1.0"
!ENTRY org.eclipse.swt.gtk.linux.x86_64 2 0 2016-06-06 10:28:58.603
!MESSAGE Could not resolve module: org.eclipse.swt.gtk.linux.x86_64 [99]
Unresolved requirement: Fragment-Host: org.eclipse.swt; bundle-version="[3.0.0,4.0.0)"
!ENTRY org.eclipse.core.filesystem.linux.x86_64 2 0 2016-06-06 10:28:58.603
!MESSAGE Could not resolve module: org.eclipse.core.filesystem.linux.x86_64 [97]
Unresolved requirement: Fragment-Host: org.eclipse.core.filesystem; bundle-version="[1.3.0,2.0.0)"
We're not sure how to proceed as the dates on the plugins show fragments that were created earlier, later, or the same day as the host bundle.
Unresolved requirement: org.eclipse.swt_3.104.2.v20160212-1350.jar
Could not resolve module: org.eclipse.swt.gtk.linux.x86_64_3.104.2.v20160212-1350.jar
Unresolved requirement: org.eclipse.core.net_1.2.300.v20141118-1725.jar
Could not resolve module: org.eclipse.core.net.linux.x86_64_1.1.100.v20140124-2013.jar
Unresolved requirement: org.eclipse.e4.ui.css.swt.theme_0.10.0.v20150422-0725.jar
Could not resolve module: org.eclipse.e4.ui.swt.gtk_1.0.1.v20150708-1529.jar
Unresolved requirement: org.eclipse.core.filesystem_1.5.0.v20150725-1910.jar
Could not resolve module: org.eclipse.core.filesystem.linux.x86_64_1.2.200.v20140124-1940

Anypoint Studio 5.1.1 with empty properties view

I am running the new Version of AnypointStudio for win 64bit-5.1.0-201503171252 on a Windows 8.1 with Java 8.
If I click on a Element in the flow, I will see only:
.
I check the Eclipse Logfile (AnypointStudio\workspace\.metadata\.log) and find this error:
!ENTRY org.eclipse.e4.ui.workbench 4 2 2015-04-09 19:42:58.236
!MESSAGE Problems occurred when invoking code from plug-in: org.eclipse.e4.ui.workbench".
!STACK 0
java.lang.NoClassDefFoundError: org/mule/tooling/apikit/common/metadata/resolver/APIkitRouterInvokerMetadataResolver$1$1
at org.mule.tooling.apikit.common.metadata.resolver.APIkitRouterInvokerMetadataResolver$1.call(APIkitRouterInvokerMetadataResolver.java:65)
at org.mule.tooling.apikit.common.metadata.resolver.APIkitRouterInvokerMetadataResolver$1.call(APIkitRouterInvokerMetadataResolver.java:1)
at org.mule.tooling.utils.SilentRunner.run(SilentRunner.java:16)
I try this on different Workstation with the same error.
I search the missing class and found this file in the plugin folder:
AnypointStudio-for-win-64bit-5.1.0-201503171252\AnypointStudio\plugins\org.mule.tooling.apikit.common_1.6.1.201503121950\org\mule\tooling\apikit\common\metadata\resolver\APIkitRouterInvokerMetadataResolver$1$1.class
have you tried removing the older APIKit plugin and only installing the latest? It could be a conflict between the different versions.
HTH,
Eva

Installation of Fuse IDE 7.1 not working

I have installed Fuse IDE 7.1.60 (http://repo.fusesource.com/ide/) as a plugin to Eclipse Kepler (clean installation).
My OS is Windows 7 (64bit) and I'm having Oracle Java 1.7 JDK installed into a path with no whitespaces and JAVA_HOME set. Eclipse recognizes the JDK.
Unfortunately, in the "File|New" menu there is no "Fuse Project" option and neither in the "Window|Preferences".
I would be very thankful for hints, which could cause this behaviour!
There are only a few messages in the eclipse log:
!ENTRY org.eclipse.ui 2 2 2013-08-30 17:06:33.091
!MESSAGE Invalid preference category path: org.fusesource.ide.branding.preferences.root (bundle: org.fusesource.ide.camel.editor, page: org.fusesource.ide.camel.editor.preferences.FusePreferencePage)
!ENTRY org.eclipse.ui 2 2 2013-08-30 17:06:33.096
!MESSAGE Invalid preference category path: org.fusesource.ide.branding.preferences.root (bundle: org.fusesource.ide.camel.editor, page: org.fusesource.ide.camel.editor.preferences.FuseColorPreferencePage)
!ENTRY org.eclipse.ui 2 2 2013-08-30 17:06:33.097
!MESSAGE Invalid preference category path: org.fusesource.ide.branding.preferences.root (bundle: org.fusesource.ide.deployment, page: org.fusesource.ide.preferences.deployment.page)
!ENTRY org.eclipse.ui 2 2 2013-08-30 17:06:33.097
!MESSAGE Invalid preference category path: org.fusesource.ide.branding.preferences.root (bundle: org.fusesource.ide.jvmmonitor.ui, page: org.fusesource.ide.jvmmonitor.ui.JavaMonitorPreferencePage)
Fuse IDE 7.1. does not work with Eclipse Kepler. It only works with Eclipse 3.x. The Fuse IDE 6.0 (From JBoss) works with Eclipse 4.0. And the upcoming JBoss Fuse IDE 6.1 is likely to work with latest Eclipse 4.x version when its released.
You can see the Fuse IDE 7.1 documentation here: https://access.redhat.com/site/documentation/Fuse_IDE/

Categories

Resources