It's all about the answers!

Ask a question

RTC and GNATbench failure


Adam Plevin (111) | asked Jun 17 '11, 8:25 a.m.
Hi, I hope someone has had this issue before and has a solution but for the life of me and many hours surfing I can't find a solution.

Eclipse installed, GNATbench 2.4.1 installed, RTC installed.

If I create a local ADA project it's all good, I can compile build etc. as soon as I put it under source control I loose the ability to build locally and when I go to the project properties page I can't open the GNATbench properties page getting an error of 'unable to accept changes' or something similar.

Please help, we are still evaluating RTC and as much as I want it my bosses won't pay out if I can't get round this problem.

Adam Plevin

Comments
Norman Dignard commented Apr 24 '15, 8:48 a.m.

Hello Adam - I can't answer your question however I'm wondering if/how you setup your integration between Adacore workbench and RTC?

We have a group migating to Linux and are using the Adacore.  They would like to use IBM's Rational Team Concert for task management and version control.  

I don't know Adacore so I'm a little in dark in this aspect.

7 answers



permanent link
Ralph Schoon (60.7k33643) | answered Jun 17 '11, 9:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi, I hope someone has had this issue before and has a solution but for the life of me and many hours surfing I can't find a solution.

Eclipse installed, GNATbench 2.4.1 installed, RTC installed.

If I create a local ADA project it's all good, I can compile build etc. as soon as I put it under source control I loose the ability to build locally and when I go to the project properties page I can't open the GNATbench properties page getting an error of 'unable to accept changes' or something similar.

Please help, we are still evaluating RTC and as much as I want it my bosses won't pay out if I can't get round this problem.

Adam Plevin


Hi Adam,

you can try to theck the logs in the .metadata folder in your workspace. Maybe there is a hint. You can also create a work item here: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.newWorkItem

In addition Information on versions (Eclipse, RTC) or OS would be very valuable to try to help with suggestions.

permanent link
Adam Plevin (111) | answered Jun 20 '11, 5:48 a.m.
Hi, I hope someone has had this issue before and has a solution but for the life of me and many hours surfing I can't find a solution.

Eclipse installed, GNATbench 2.4.1 installed, RTC installed.

If I create a local ADA project it's all good, I can compile build etc. as soon as I put it under source control I loose the ability to build locally and when I go to the project properties page I can't open the GNATbench properties page getting an error of 'unable to accept changes' or something similar.

Please help, we are still evaluating RTC and as much as I want it my bosses won't pay out if I can't get round this problem.

Adam Plevin


Hi Adam,

you can try to theck the logs in the .metadata folder in your workspace. Maybe there is a hint. You can also create a work item here: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.newWorkItem

In addition Information on versions (Eclipse, RTC) or OS would be very valuable to try to help with suggestions.


I will look to create a full help request in due course but for now.

This is the versions of the software we are running,
Workstations are Win XP

Eclipse IDE for C/C++ Developers
Version: Helios Service Release 2
Build id: 20110218-0911

ADAcore GNATbench 2.5.0 20101113

Rational Jazz Team Server
Version: 3.0.1 Beta 3

Currently a project can be created locally and it will work as expected, once it is put into source control it fails to compile locally and when you go to look at the GNATbench properties page within the project properties it gives an error.

The error box title is 'Could Not Accept Changes' and the text within is 'The currently displayed page contains invalid values'

Looking in the .metadata folder in the .log file I see this text generated when the error occurs.
!ENTRY com.adacore.gnatbench.core 4 0 2011-06-20 08:43:33.375

!MESSAGE UnexpectedException
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.runtime.Path.<init>(Path.java:153)
at com.adacore.gnatbench.ui.internal.commands.GNATbenchEvent.computeRawResourceSelection(GNATbenchEvent.java:291)
at com.adacore.gnatbench.ui.internal.commands.GNATbenchEvent.<init>(GNATbenchEvent.java:74)
at com.adacore.gnatbench.ui.internal.commands.AdaMenuContributionItems.secureFill(AdaMenuContributionItems.java:95)
at com.adacore.gnatbench.ui.internal.commands.AbstractGNATbenchMenuContribution.fill(AbstractGNATbenchMenuContribution.java:94)
at org.eclipse.ui.internal.menus.DynamicMenuContributionItem.fill(DynamicMenuContributionItem.java:125)
at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:737)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:818)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:678)
at org.eclipse.ui.internal.menus.WorkbenchMenuService.updateManagers(WorkbenchMenuService.java:330)
at org.eclipse.ui.internal.WorkbenchWindow.liftRestrictions(WorkbenchWindow.java:3074)
at org.eclipse.ui.internal.WorkbenchWindow$28.shellActivated(WorkbenchWindow.java:3112)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:88)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1635)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2114)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4159)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method)
at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:684)
at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:697)
at org.eclipse.swt.widgets.Widget.release(Widget.java:818)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:446)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:447)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:714)
at org.eclipse.jface.window.Window.close(Window.java:335)
at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:979)
at org.eclipse.jface.dialogs.TrayDialog.close(TrayDialog.java:179)
at org.eclipse.jface.preference.PreferenceDialog.close(PreferenceDialog.java:317)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.close(FilteredPreferenceDialog.java:697)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:986)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:447)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

permanent link
Ralph Schoon (60.7k33643) | answered Jun 20 '11, 12:02 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER


I will look to create a full help request in due course but for now.

This is the versions of the software we are running,
Workstations are Win XP

Eclipse IDE for C/C++ Developers
Version: Helios Service Release 2
Build id: 20110218-0911

ADAcore GNATbench 2.5.0 20101113

Rational Jazz Team Server
Version: 3.0.1 Beta 3

Currently a project can be created locally and it will work as expected, once it is put into source control it fails to compile locally and when you go to look at the GNATbench properties page within the project properties it gives an error.

The error box title is 'Could Not Accept Changes' and the text within is 'The currently displayed page contains invalid values'

Looking in the .metadata folder in the .log file I see this text generated when the error occurs.
!ENTRY com.adacore.gnatbench.core 4 0 2011-06-20 08:43:33.375

!MESSAGE UnexpectedException
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.runtime.Path.<init>(Path.java:153)
at com.adacore.gnatbench.ui.internal.commands.GNATbenchEvent.computeRawResourceSelection(GNATbenchEvent.java:291)
at com.adacore.gnatbench.ui.internal.commands.GNATbenchEvent.<init>(GNATbenchEvent.java:74)
at com.adacore.gnatbench.ui.internal.commands.AdaMenuContributionItems.secureFill(AdaMenuContributionItems.java:95)
at com.adacore.gnatbench.ui.internal.commands.AbstractGNATbenchMenuContribution.fill(AbstractGNATbenchMenuContribution.java:94)
at org.eclipse.ui.internal.menus.DynamicMenuContributionItem.fill(DynamicMenuContributionItem.java:125)
at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:737)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:818)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:678)
at org.eclipse.ui.internal.menus.WorkbenchMenuService.updateManagers(WorkbenchMenuService.java:330)
at org.eclipse.ui.internal.WorkbenchWindow.liftRestrictions(WorkbenchWindow.java:3074)
at org.eclipse.ui.internal.WorkbenchWindow$28.shellActivated(WorkbenchWindow.java:3112)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:88)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1635)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2114)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4159)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method)
at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:684)
at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:697)
at org.eclipse.swt.widgets.Widget.release(Widget.java:818)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:446)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:447)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:714)
at org.eclipse.jface.window.Window.close(Window.java:335)
at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:979)
at org.eclipse.jface.dialogs.TrayDialog.close(TrayDialog.java:179)
at org.eclipse.jface.preference.PreferenceDialog.close(PreferenceDialog.java:317)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.close(FilteredPreferenceDialog.java:697)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:986)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:447)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)


Hmm, this rather looks like the other tool does fail on some resource. Not sure why that could happen. Is there another less recent issue in the log, that really is from an RTC component?

permanent link
Adam Plevin (111) | answered Jun 21 '11, 1:50 p.m.
Here's a bunch of files that may or may not help in your diagnosis, ADAcore are also looking into this issue from their end.

http://dl.dropbox.com/u/23357474/project_files.zip

permanent link
Ralph Schoon (60.7k33643) | answered Jun 21 '11, 2:07 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Here's a bunch of files that may or may not help in your diagnosis, ADAcore are also looking into this issue from their end.

http://dl.dropbox.com/u/23357474/project_files.zip


I'd bet you have an issue with Xerces and EMF. Create a work item and attach the files there.

permanent link
Ralph Schoon (60.7k33643) | answered Jun 21 '11, 2:13 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Here's a bunch of files that may or may not help in your diagnosis, ADAcore are also looking into this issue from their end.

http://dl.dropbox.com/u/23357474/project_files.zip


I'd bet you have an issue with Xerces and EMF. Create a work item and attach the files there.

What you could try is to replace the Xerces with a newer version. Just a guess. The java.net.MalformedURLException in the log points there however.

We had issues where the Xerces libraries had a collusion with EMF in Eclipse 3.4 about 1.5 years ago. I could fix that for standalone Java programs with a newer Xerces library. You might want to try looking for Xerces and EMF in the internet. Not sure where Xerces is in your Application.

permanent link
Mark Roberts (1205338) | answered Aug 26 '11, 6:19 a.m.
JAZZ DEVELOPER
Further error message test from Adam Plevin which may be useful :

!MESSAGE UnexpectedException
!STACK 0
java.lang.MalformedURLException:Unknown Protocol:Source Control



Here's a bunch of files that may or may not help in your diagnosis, ADAcore are also looking into this issue from their end.

http://dl.dropbox.com/u/23357474/project_files.zip


I'd bet you have an issue with Xerces and EMF. Create a work item and attach the files there.

What you could try is to replace the Xerces with a newer version. Just a guess. The java.net.MalformedURLException in the log points there however.

We had issues where the Xerces libraries had a collusion with EMF in Eclipse 3.4 about 1.5 years ago. I could fix that for standalone Java programs with a newer Xerces library. You might want to try looking for Xerces and EMF in the internet. Not sure where Xerces is in your Application.

Your answer


Register or to post your answer.