Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Getting IReportManager gives an exception

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.

0 votes



4 answers

Permanent link
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

0 votes


Permanent link

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.

0 votes


Permanent link
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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Mar 15 '10, 4:00 p.m.

Question was seen: 6,277 times

Last updated: Mar 15 '10, 4:00 p.m.

Confirmation Cancel Confirm