It's all about the answers!

Ask a question

ProcessEnabledReservationWalkthroug in RTC 2.0


Michele Pegoraro (1.8k14118103) | asked May 06 '09, 9:37 a.m.
Hi, I'm trying to execute this walkthrough (https://jazz.net/wiki/bin/view/Main/ProcessEnabledReservationsWalkthrough) using RTC 2.0 M3. As I import the plugins on my workspace I've find that TeamAreaSelectionDialog is no more used and from M2 it has been sobstitued by ProcessAreaSelectionDialog and so com.example.jazz.reserve.ide.ui does not compile.
I was trying to use new class instead of previous one but I have some problem to get TeamArea. In the old class I've got

ITeamArea teamArea = dialog.getSelectedTeamArea();

How I can use the new API to get teamArea?
Thanks.

2 answers



permanent link
Darin Swanson (3161) | answered May 18 '09, 4:43 p.m.
Use the ProcessAreaSelectionDialog as you did previously with the
TeamAreaSelectionDialog.

Call dialog.getSelectedProcessArea() and cast to ITeamArea.

See ProcessAreaSelectionDialog class comment for more details on what the
dialog will display based on the input.

hth
Darin
Jazz Process Team

"mikyjpeg" <michele> wrote in message
news:gts3rq$u4e$1@localhost.localdomain...
Hi, I'm trying to execute this walkthrough
(https://jazz.net/wiki/bin/view/Main/ProcessEnabledReservationsWalkthrough)
using RTC 2.0 M3. As I import the plugins on my workspace I've find
that TeamAreaSelectionDialog is no more used and from M2 it has been
sobstitued by ProcessAreaSelectionDialog and so
com.example.jazz.reserve.ide.ui does not compile.
I was trying to use new class instead of previous one but I have some
problem to get TeamArea. In the old class I've got

ITeamArea teamArea = dialog.getSelectedTeamArea();

How I can use the new API to get teamArea?
Thanks.

permanent link
Michele Pegoraro (1.8k14118103) | answered May 19 '09, 5:04 a.m.
Thank you very much for your answer. Now I've resolved every compilation problem and I'm trying to complete the walkthrough but when I try to launch JUnit test I've some error. It seems that some package have been uninstalled (?!?!?) and that some of the packages required Java 1.6 instead of 1.5 that is the version with which rtc has been released.


The complete error is:


!SESSION 2009-04-19 10:50:55.687 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223ifx-20090422 (JIT enabled)
J9VM - 20090421_34076_lHdSMr
JIT - 20081112_1511ifx6_r8
GC - 200811_07
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Framework arguments: -version 3 -port 1233 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -classNames com.example.jazz.reserve.client.tests.launches.AllTestsCreateDBWrapper -application org.eclipse.pde.junit.runtime.coretestapplication -testpluginname com.example.jazz.reserve.client.tests
Command-line arguments: -os win32 -ws win32 -arch x86 -version 3 -port 1233 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -classNames com.example.jazz.reserve.client.tests.launches.AllTestsCreateDBWrapper -application org.eclipse.pde.junit.runtime.coretestapplication -data C:\workspaces\development/../junit-workspace -dev file:C:/workspaces/development/.metadata/.plugins/org.eclipse.pde.core/pde-junit/dev.properties -os win32 -ws win32 -arch x86 -testpluginname com.example.jazz.reserve.client.tests

!ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2009-04-19 10:51:02.812
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.equinox.internal.simpleconfigurator.Activator.start() of bundle org.eclipse.equinox.simpleconfigurator.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:247)
at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:201)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:644)
at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:313)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.IllegalStateException: Bundle "reference:file:/C:/Development/jazz/client/eclipse/source/server/eclipse/plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar" has been uninstalled
at org.eclipse.osgi.framework.internal.core.AbstractBundle.checkValid(AbstractBundle.java:1228)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:262)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:317)
at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:86)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:124)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:138)
at org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:48)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
... 21 more
Root exception:
java.lang.IllegalStateException: Bundle "reference:file:/C:/Development/jazz/client/eclipse/source/server/eclipse/plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar" has been uninstalled
at org.eclipse.osgi.framework.internal.core.AbstractBundle.checkValid(AbstractBundle.java:1228)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:262)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:317)
at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:86)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:124)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:138)
at org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:48)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:247)
at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:201)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:644)
at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:313)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

!ENTRY org.eclipse.osgi 4 0 2009-04-19 10:51:02.843
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar/ non attivo.

!ENTRY org.eclipse.osgi 2 0 2009-04-19 10:51:03.000
!MESSAGE Di seguito viene riportato un elenco completo dei bundle non risolti, fare riferimento alla prima voce di log relativa alla causa principale, se esiste:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.000
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/plugins/org.eclipse.jdt.apt.pluggable.core.nl2_1.0.100.v200809240100.jar non risolto.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core.nl2 2 0 2009-04-19 10:51:03.000
!MESSAGE Host org.eclipse.jdt.apt.pluggable.core_ non risolto.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core.nl1 2 0 2009-04-19 10:51:03.000
!MESSAGE Host org.eclipse.jdt.apt.pluggable.core_ non risolto.
!SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2009-04-19 10:51:03.000
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.000
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/plugins/org.eclipse.jdt.apt.pluggable.core_1.0.101.R34x_v20081108-1950.jar non risolto.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.000
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.000
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.000
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.000
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.000
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/source/server/eclipse/plugins/com.ibm.team.repository.service.jdbc4_0.6.1.jar non risolto.
!SUBENTRY 2 com.ibm.team.repository.service.jdbc4 2 0 2009-04-19 10:51:03.000
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.000
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/plugins/org.eclipse.jdt.compiler.apt_1.0.101.R34x_v20090114-1205.jar non risolto.
!SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-04-19 10:51:03.000
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.tool_0.0.0.

!ENTRY org.eclipse.osgi 4 0 2009-04-19 10:51:03.000
!MESSAGE Errore dell'applicazione
!STACK 1
java.lang.IllegalStateException: Impossibile acquisire il servizio dell'applicazione. Assicurarsi che il bundle org.eclipse.core.runtime sia risolto e avviato (vedere config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

!ENTRY org.eclipse.osgi 2 0 2009-04-19 10:51:03.062
!MESSAGE Di seguito viene riportato un elenco completo dei bundle non risolti, fare riferimento alla prima voce di log relativa alla causa principale, se esiste:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.062
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/plugins/org.eclipse.jdt.apt.pluggable.core.nl2_1.0.100.v200809240100.jar non risolto.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core.nl2 2 0 2009-04-19 10:51:03.062
!MESSAGE Host org.eclipse.jdt.apt.pluggable.core_ non risolto.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core.nl1 2 0 2009-04-19 10:51:03.062
!MESSAGE Host org.eclipse.jdt.apt.pluggable.core_ non risolto.
!SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2009-04-19 10:51:03.062
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.062
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/plugins/org.eclipse.jdt.apt.pluggable.core_1.0.101.R34x_v20081108-1950.jar non risolto.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.062
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.062
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.062
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-04-19 10:51:03.062
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.062
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/source/server/eclipse/plugins/com.ibm.team.repository.service.jdbc4_0.6.1.jar non risolto.
!SUBENTRY 2 com.ibm.team.repository.service.jdbc4 2 0 2009-04-19 10:51:03.062
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-04-19 10:51:03.062
!MESSAGE Bundle reference:file:/C:/Development/jazz/client/eclipse/plugins/org.eclipse.jdt.compiler.apt_1.0.101.R34x_v20090114-1205.jar non risolto.
!SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-04-19 10:51:03.062
!MESSAGE Package importato mancante org.eclipse.jdt.internal.compiler.tool_0.0.0.

Your answer


Register or to post your answer.