I'm trying to develop an plugin for SAP Design Studio using the SDK (which uses eclipse...) and set it up like the documentation says.
When I try to run the plugin via eclipse, I get the following error:
!ENTRY org.eclipse.osgi 2 0 2013-10-23 14:18:48.915 !MESSAGE One or
more bundles are not resolved because the following root constraints
are ot >resolved: !SUBENTRY 1 org.eclipse.osgi 2 0 2013-10-23
14:18:48.915 !MESSAGE Bundle
initial#reference:file:D:/workspace/com.sap.sample.coloredbox/
was not resolved. !SUBENTRY 2 com.sap.sample.coloredbox 2 0 2013-10-23
14:18:48.915 !MESSAGE Missing required bundle
com.sap.ip.bi.zen.rt.components.sdk_0.0.0.
So something the bundle "com.sap.ip.bi.zen.rt.components.sdk_0.0.0" seems to be missing - but I don't know where it should come from...
A few weeks ago I've installed the SDK on another machine, and there it's running fine.
I've noticed that in Eclipse (with the sample plugin selected) under "Project->Propertires->Run/Debug Settings", then edit a Launch Configuration, under the fieldset "Program to run" the point "Run a product" is grayed out and has an attention mark which has following hint text:
"A product with thus name cannot be found in any required bundle. This
launch may fail to start as expceted unless there is an avaialable
IProductProvider that can supply this product".
On the other machine where the SDK is running, the point is not grayed out and the product "com-sap.ip.bi.zen" is selected.
So the problems seems to be very clear - I only don't know how to resolve it... :/
Thanks for any help!
ensure that your plug in design studio target path is valid (preferences -> plug-in development -> target platform).
In my case (win 7 32 bit) I needed to fix the design studio path IMMEDIATELY after pulling in the sdk reference (preferences -> XML -> XML Catalog). Once eclipse has resolved this it apparently will not do so again if corrections are made.
Finally I could solve the problem with creating a new workspace.
Related
My ant build stopped working sometime recently. I don't know exactly when, since I only do ant builds occasionally in this project. I get the following popup:
The error is only for this project. I can run a build from another project no problem.
The build.xml file can be extremely simple, and still cause the error:
<project basedir=".">
<target name="init">
</target>
</project>
I checked Eclipse's log and I get this error:
!SESSION 2020-10-15 04:24:23.311 -----------------------------------------------
eclipse.buildId=4.17.0.I20200902-1800
java.version=13.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.jface 2 0 2020-10-15 04:24:25.323
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2020-10-15 04:24:25.323
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
Open a type in a Java editor,
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler#5f67181f,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+T,
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
,
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler#1169fdfd,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
!ENTRY org.eclipse.e4.ui.workbench 4 0 2020-10-15 04:24:27.543
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.recommenders.news.rcp/org.eclipse.recommenders.internal.news.rcp.toolbar.NewsToolControl
!ENTRY org.eclipse.egit.ui 2 0 2020-10-15 04:24:28.090
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Joshua'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.ant.launching 4 120 2020-10-15 04:24:37.887
!MESSAGE Error logged from Ant UI:
!STACK 0
java.net.SocketException: Socket closed
at java.base/sun.nio.ch.NioSocketImpl.endAccept(NioSocketImpl.java:689)
at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:762)
at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:662)
at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:628)
at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:604)
at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:561)
at java.base/java.net.ServerSocket.accept(ServerSocket.java:518)
at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:91)
!ENTRY org.eclipse.core.jobs 4 2 2020-10-15 04:24:37.888
!MESSAGE An internal error occurred during: "Launching Hypnos build.xml".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getBootpathExt(AbstractJavaLaunchConfigurationDelegate.java:364)
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getVMSpecificAttributesMap(AbstractJavaLaunchConfigurationDelegate.java:679)
at org.eclipse.jdt.launching.JavaLaunchDelegate.getVMRunnerConfiguration(JavaLaunchDelegate.java:92)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:160)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:580)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:251)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:807)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:718)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
I was using Eclipse 2020-06. I tried upgrading to Eclipse 2020-09 to fix the problem, but no luck.
JVM according to eclipse is eclipse.vm=C:\java\jdk-13.0.1\bin\server\jvm.dll
The release file in that java folder says:
BUILD_TYPE="commercial"
IMPLEMENTOR="Oracle Corporation"
JAVA_VERSION="13.0.1"
JAVA_VERSION_DATE="2019-10-15"
MODULES="java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.vm.ci jdk.management jdk.unsupported jdk.internal.vm.compiler jdk.aot jdk.internal.jvmstat jdk.attach jdk.charsets jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.crypto.mscapi jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.internal.le jdk.internal.opt jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.pack jdk.rmic jdk.scripting.nashorn jdk.scripting.nashorn.shell jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported.desktop jdk.xml.dom jdk.zipfs"
OS_ARCH="x86_64"
OS_NAME="Windows"
SOURCE=".:hg:b06ae01c3eea open:hg:8d03d066c4e8"
Any idea how to address this?
This seems to be related to the Java used to run the Ant script.
In the run configuration, in the JRE tab, make sure a JRE/JDK is selected (for an existing Ant run configuration it can happen that the previously selected JRE/JDK is lost due to changes in the preferences Java > Installed JREs or when updating Java). If a JRE/JDK is already selected, try another JRE/JDK setting here (if there are VM arguments specify, try it without them, since they might be illegal for the chosen VM).
I got a similar error after upgrading Eclipse to 2022-03. Ant would not run but showed no errors. Then I noticed the java.net.SocketException: Socket closed error in the workspace logs.
Changing the JRE as suggested by the other answer fixed only if I used a recent Java version but I needed to use JDK 1.8. Since I could not fix the issue I simply downgraded Eclipse to 2021-12.
Apparently at least Java 11 will be needed to run Ant in future releases: https://bugs.eclipse.org/bugs/show_bug.cgi?id=579317
I'm trying to use OProfile on Eclipse (3.8). The Juno version of oprofile didn't work, so I installed the Luna one. This one at least starts up, but can never find the libraries.
Here is the error:
ns3-dev-lena-profiling-debug: error while loading shared libraries: libns3-dev-lte- debug.so: cannot open shared object file: No such file or directory
profiled app exited with the following status: 127
I know that that means I need to add the library path. So I went to Profiling Tools Configurations, and specified the path under environmental variables as:
name: LD_LIBRARY_PATH
value: {workspace_loc:ns3dev2}/build (appended)
I manually checked and the library is located in the build folder. Furthermore, this library path works fine if I debug the same project instead (or run it...).
I've deleted the configuration and remade it, but it's the same error.
I also tried adding the same path to PATH instead of LD_LIBRARY_PATH, but that doesn't make any difference. (Just tried it for the hell of it).
Any thoughts?
Edit, I get the same problem on Eclipse 4.4 (Luna). I found the logs for the errors and the error is:
!ENTRY org.eclipse.linuxtools.oprofile.core 4 0 2014-10-27 12:33:07.200
!MESSAGE opreport process error output: warning: /no-vmlinux could not be found.
I have troubles trying to import an already existing Symfony 2.3 project into my Eclipse (standard 4.3.1) workspace using dubture's plugin.
I use the Eclipse wizard for importing, but when I click on 'Finish' a popup window shows:
An error ocurred during import. Please see the workspace logs for details.
The log file gives me a bunch of messages like this one:
!ENTRY org.eclipse.dltk.core 2 0 2014-02-18 18:08:35.104
!MESSAGE Error receiving file: /Symfony/app/cache/dev/twig/d1/4c/d23835735a18dbf9b98dd75484f6.php content: retrying(1)
!STACK 1 org.eclipse.core.internal.resources.ResourceException: Resource /Symfony/app/cache/dev/twig/d1/4c/d23835735a18dbf9b98dd75484f6.php' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:341)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:215)
at org.eclipse.core.internal.resources.File.getContents(File.java:287)
at org.eclipse.dltk.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:534)
at org.eclipse.dltk.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:491)
at org.eclipse.dltk.internal.core.SourceModule.getBufferContent(SourceModule.java:405)
at org.eclipse.dltk.internal.core.AbstractSourceModule.getSourceAsCharArray(AbstractSourceModule.java:314)
at org.eclipse.dltk.internal.core.AbstractSourceModule.getContentsAsCharArray(AbstractSourceModule.java:335)
at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:41)
at org.eclipse.php.internal.core.compiler.ast.parser.PHPSourceParserFactory.parse(PHPSourceParserFactory.java:41)
at com.dubture.twig.core.parser.TwigSourceParserFactory.parse(TwigSourceParserFactory.java:36)
at org.eclipse.dltk.core.SourceParserUtil.parse(SourceParserUtil.java:135)
at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:171)
at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:166)
at org.eclipse.php.internal.core.index.PhpIndexingParser.parseSourceModule(PhpIndexingParser.java:27)
at org.eclipse.dltk.core.index2.AbstractIndexer.indexDocument(AbstractIndexer.java:45)
at org.eclipse.dltk.internal.core.index.sql.SqlIndexer.indexDocument(SqlIndexer.java:147)
at org.eclipse.dltk.internal.core.index2.SourceModulesRequest.run(SourceModulesRequest.java:78)
at org.eclipse.dltk.core.search.indexing.AbstractJob.execute(AbstractJob.java:76)
at org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:467)
at java.lang.Thread.run(Unknown Source)
!SUBENTRY 1 org.eclipse.core.resources 4 368 2014-02-18 18:08:35.104
!MESSAGE Resource '/Symfony/app/cache/dev/twig/d1/4c/d23835735a18dbf9b98dd75484f6.php' does not exist.
I checked if the specified files exist and they do, so I don't understand these messages. Anyone had the same problem and can point me in the right direction?
You have to make sure youre vendors are installed correctly and also make sure you have a php executable running.
In eclipse menu :
window -> preferences -> Php -> php executables.
If you have nothing there :
Click add -> browse the executable (normaly /usr/bin/php5).
use zend debugger and check the "use defaults php.ini" box.
I'm continually getting the following error under Eclipse Galileo while trying to install the WTP Web Page Editor plugin:
java.lang.IllegalStateException: Error while loading manipulator.
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:54)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.getConfigData(LazyManipulator.java:108)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction.installBundle(InstallBundleAction.java:76)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction.execute(InstallBundleAction.java:29)
at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:35)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mainPerform(Phase.java:129)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:72)
at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)
at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:54)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.performProvisioningPlan(ProvisioningUtil.java:389)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProfileModificationOperation.doExecute(ProfileModificationOperation.java:61)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningOperation.execute(ProvisioningOperation.java:37)
at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningOperationRunner$1.run(ProvisioningOperationRunner.java:94)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
One blog said Eclipse Galileo doesn't play well with Java 1.6 (what??), so I've tried running Eclipse with Java 1.5 but that hasn't helped. Has anyone else had this problem and been able to get around it?
Edit BTW, below the error in the error log it also says
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]javax.mail 1.4.0.v200905040518, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
You can try to follow the various suggestions mentioned in the bug 277242
Also check your eclipse.ini:
More generally, the error you're seeing can happen when we cannot read "-startup" since we use this to position the install.area.
As suggested by Jelle van Geuns in the comments (and confirmed by Halfstop):
I found that one MacOS there are two folders (MacOS and Eclipse) with two separate sets of configuration files.
Each had an 'org.eclipse.equinox.launcher' startup jar in the plugins sub-folder, but with slightly different versions.
The Eclipse executable resides in the MacOS folder.
But the eclipse.ini there was set up to look for the startup jar under Eclipse/plugins, but with the wrong version.
Solution that worked for me was to copy both versions of the startup.jar to both the plugins sub-folders.
Halfstop confirms:
I copied all of the what was in Eclipse to the MacOS directory and this solved it.
I just ran into this problem today. The answer provided by VonC et al helped to locate the problem but didn't quite fix it.
In my case, the location specified in -startup within the MacOS/eclipse.ini was incorrectly looking in the ../Eclipse/plugins folder rather than the ../MacOS/plugins folder.
I corrected the path and the error went away.
try to chown -R your_user_name:your_user_name /path/to/eclipe
Try edit
Eclipse/configuration/config.ini.
Make sure osgi.instance.area.default= value is right workspace. This works for me.
I'm not sure if the above answers adequately resolve this issue. I've found that, with a number of our eclipse derivative RCP products, that on some linux machines plugins will fail with log entries like this one:
!ENTRY org.eclipse.equinox.p2.engine 4 4 2017-02-23 12:00:49.492
!MESSAGE An error occurred while installing the items
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2017-02-23 12:00:49.492
!MESSAGE session context was:(profile=TIBCOBusinessStudio-4.0, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.tibco.eclipse.p2.installer 1.1.3.20161130, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2017-02-23 12:00:49.492
!MESSAGE Error while loading manipulator.
!STACK 0
java.lang.IllegalStateException: Error while loading manipulator.
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:59)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.getConfigData(LazyManipulator.java:108)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction.installBundle(InstallBundleAction.java:75)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction.execute(InstallBundleAction.java:32)
at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:38)
at org.eclipse.equinox.internal.p2.engine.Phase.mainPerform(Phase.java:183)
at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:95)
at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
at org.eclipse.equinox.p2.operations.ProvisioningSession.performProvisioningPlan(ProvisioningSession.java:159)
at org.eclipse.equinox.p2.operations.ProfileModificationJob.runModal(ProfileModificationJob.java:79)
at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob.java:177)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
The reason this happens (I suspect) is that the actual file name of the config file is compared with the absolute name by the lazyloader. In my case the home dir is a symlink, so the two names don't match. The resolution was to edit the eclipse.ini (or whatever yours is called) and ensure that all the paths referencing the eclipse home dir are fully qualified and do not rely on symlinks.
I developed one plugin(RMP) in eclipse 3.3.2 where i am creating menu items dynamically. I ran the application and it is working fine and am able to see the menu items created dynamically.
Now I exported this plugin(RMP). I added this in plugin folder of eclipse 3.4 installation. Now I launched eclipse and I am able to see all the functionalities implemented in my plugin(RMP) but the menu items created dynamically are invisible. When i click on menu, nothing is coming.
Pls find the error log below for more information. I took this log from my workspace -> .metadata folder.
Log:
!ENTRY org.eclipse.ui.workbench 2 0 2009-03-30 11:59:23.266
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2009-03-30 11:59:23.267
!MESSAGE Conflict for 'AUTODCTOOL':
HandlerActivation(commandId=AUTODCTOOL,
handler=ActionDelegateHandlerProxy(null,com.ericsson.eadt.apstoolsintegrator.actions.APSToolAction),
expression=AndExpression(ActionSetExpression(APSToolsIntegrator.APSSystemFullSet,org.eclipse.ui.internal.WorkbenchWindow#166c114),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow#166c114)),sourcePriority=16640)
HandlerActivation(commandId=AUTODCTOOL,
handler=ActionDelegateHandlerProxy(null,com.ericsson.eadt.apstoolsintegrator.actions.APSToolAction),
expression=AndExpression(ActionSetExpression(APSToolsIntegrator.APSSystemFullSet,org.eclipse.ui.internal.WorkbenchWindow#166c114),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow#166c114)),sourcePriority=16640)
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2009-03-30 11:59:23.267
!MESSAGE Conflict for 'BTIDRIVER':
HandlerActivation(commandId=BTIDRIVER,
handler=ActionDelegateHandlerProxy(null,com.ericsson.eadt.apstoolsintegrator.actions.APSToolAction),
expression=AndExpression(ActionSetExpression(APSToolsIntegrator.APSSystemFullSet,org.eclipse.ui.internal.WorkbenchWindow#166c114),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow#166c114)),sourcePriority=16640)
HandlerActivation(commandId=BTIDRIVER,
handler=ActionDelegateHandlerProxy(null,com.ericsson.eadt.apstoolsintegrator.actions.APSToolAction),
expression=AndExpression(ActionSetExpression(APSToolsIntegrator.APSSystemFullSet,org.eclipse.ui.internal.WorkbenchWindow#166c114),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow#166c114)),sourcePriority=16640)
Requesting help in this regard,
Thanks in advance.
Snehal.
Try launching your eclipse3.4 with the -clean option.
If a -clean is not enough, the problem lies in the definition of com.ericsson.eadt.apstoolsintegrator.actions.APSToolAction.
If it is an action set, check its definition: a keybinding used might be in conflict with legacy eclipse3.4 keys definition.