It's all about the answers!

Ask a question

Getting IReportManager gives an exception


Pawel Dolecinski (26163) | asked Mar 15 '10, 4:00 p.m.
hello,
i want to programmatically retrieve reports. In RTC API i found that IReportmanager will be a good start. So i try to get this object:
IReportManager reports = (IReportManager) repo.getClientLibrary(IReportManager.class);

and i have exception:

Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.team.datawarehouse.common.internal.DatawarehousePackage
at com.ibm.team.reports.client.internal.ReportManager.<init>(ReportManager.java:74)
at com.ibm.team.reports.client.internal.ReportsClientLibraryFactory.createClientLibrary(ReportsClientLibraryFactory.java:18)
at com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)


There is no com.ibm.team.datawarehouse package in API. So how can i do that?

Regards,
Pawel.

4 answers



permanent link
James Moody (3.3k24) | answered Mar 16 '10, 4:59 p.m.
JAZZ DEVELOPER
On 3/15/2010 4:07 PM, dolecinski wrote:
hello,
i want to programmatically retrieve reports. In RTC API i found that
IReportmanager will be a good start. So i try to get this object:
IReportManager reports = (IReportManager)
repo.getClientLibrary(IReportManager.class);

and i have exception:

Exception in thread "main"
java.lang.NoClassDefFoundError:
com.ibm.team.datawarehouse.common.internal.DatawarehousePackage
at
com.ibm.team.reports.client.internal.ReportManager.<init>(ReportManager.java:74)
at
com.ibm.team.reports.client.internal.ReportsClientLibraryFactory.createClientLibrary(ReportsClientLibraryFactory.java:18)
at
com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at
com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)


There is no com.ibm.team.datawarehouse package in API. So how can i do
that?

Regards,
Pawel.


What does your setup look like? The client should include the data
warehouse plug-ins.

james
RTC Reports Team Lead

permanent link
Pawel Dolecinski (26163) | answered Mar 20 '10, 7:39 p.m.

What does your setup look like? The client should include the data
warehouse plug-ins.

james
RTC Reports Team Lead


Hi,
i have just a RTC Plain Java Libs downloaded from jazz.net and i'm writting standalone swing application.
Now i have this data warehouse jars from SDK sources. But in Plain java libs this plug-in isn't on default.

permanent link
James Moody (3.3k24) | answered Mar 26 '10, 11:29 a.m.
JAZZ DEVELOPER
On 3/20/2010 7:52 PM, dolecinski wrote:
jmoodywrote:

What does your setup look like? The client should include the data
warehouse plug-ins.

james
RTC Reports Team Lead

Hi,
i have just a RTC Plain Java Libs downloaded from jazz.net and i'm
writting standalone swing application.
Now i have this data warehouse jars from SDK sources. But in Plain
java libs this plug-in isn't on default.


This looks like a packaging error. If you manually copy the jars to your
plain java libs location, does that help?

james
RTC Reports Team Lead

permanent link
Pawel Dolecinski (26163) | answered May 06 '10, 4:21 a.m.
On 3/20/2010 7:52 PM, dolecinski wrote:
This looks like a packaging error. If you manually copy the jars to your
plain java libs location, does that help?

james
RTC Reports Team Lead


Yes, does help. And in that way everything is OK.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.