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

The Bundle X is invalid

Hi
I did these steps:
- created plugin that extends datawarehouse
- moved the plugin in repotools folder
- changed confing.ini of repotools in configuration folder
- opened command line and wrote "repotools -createTables"

But the result is:
The bundle X with the id 45 is invalid, it is not RESOLVED.

someone have some idea?

Thanks

0 votes



11 answers

Permanent link
A bundle that is unable to have its Import-Package and Require-Bundle constraints satisfied will fail to be RESOLVED and will revert to INSTALLED. To find out exactly what is wrong, use the console's diag command, for example:

osgi> diag 45

This will tell you which constraints have not been satisfied. You should probably uninstall the bundle before fixing the problem and re-installing it:

osgi> uninstall 45

Please report back with your findings and I'll strive to help you further.

Good luck,

Simon

0 votes


Permanent link
I forgot to mention that to get the "osgi>" prompt, add the following parameters to the end of the repotools command line:

-console -noexit

It is very important that these parameters appear after any other parameters, since these are commands that are not interpreted by repotools itself, but rather are passed to the OSGi framework, Equinox, on which repotools is built.

0 votes


Permanent link
A bundle that is unable to have its Import-Package and Require-Bundle constraints satisfied will fail to be RESOLVED and will revert to INSTALLED. To find out exactly what is wrong, use the console's diag command, for example:
osgi> diag 45
This will tell you which constraints have not been satisfied. You should probably uninstall the bundle before fixing the problem and re-installing it:
osgi> uninstall 45
Please report back with your findings and I'll strive to help you further.
Good luck,
Simon


I did:

osgi> ss

and the result was: 45 INSTALLED X

and then I did:

osgi> diag 45

and the result was:

initial@reference:file:../../../workspace/X/
Missing required bundle x
Missing required bundle y
Missing required bundle z
Missing required bundle t
Missing required bundle u

I copied this file in my project folder but the result is always "Missing required bundle.....".

0 votes


Permanent link
The diag command is telling you the bundles that your bundle X requires, but that are missing, so you must make sure that they are installed too.

When you build an extension to repotools or the Jazz server you are really only building an OSGi bundle, so you must make sure that you are following all the rules that OSGi enforces. Please review your bundle and ensure that when you install it that all bundles and packages that it requires are already present.

Maybe you can tell me more about your bundle x, y, z, t, u? I'm rather skeptical regarding these names, especially since you seem to have both a bundle X and a bundle x.

The more information you can share regarding this problem the better. Good luck.

0 votes


Permanent link
The diag command is telling you the bundles that your bundle X requires, but that are missing, so you must make sure that they are installed too.

When you build an extension to repotools or the Jazz server you are really only building an OSGi bundle, so you must make sure that you are following all the rules that OSGi enforces. Please review your bundle and ensure that when you install it that all bundles and packages that it requires are already present.

Maybe you can tell me more about your bundle x, y, z, t, u? I'm rather skeptical regarding these names, especially since you seem to have both a bundle X and a bundle x.

The more information you can share regarding this problem the better. Good luck.


This is the result on console

osgi> diag 1909
initial@reference:file:../../../workspace/com.ibm.team.datawarehouse.service.X/
Missing required bundle com.ibm.team.datawarehouse.service_0.0.0.
Missing required bundle com.ibm.team.repository.service_0.0.0.
Missing required bundle com.ibm.team.workitem.service_0.0.0.
Missing required bundle com.ibm.team.repotools.rcp_0.0.0.
Missing required bundle com.ibm.team.datawarehouse.service.workitems_0.0.0.

0 votes


Permanent link
OK, so now the next step is to check that these required bundles are installed and that their bundle state is at least RESOLVED. Use the ss command to get a "short status" of the install bundles. The repotools application would already have reported these bundles as not being RESOLVED, if that was the case, so my guess is that they're not installed at all, and they clearly need to be.

If in doubt, just post the entire output of the ss command.

0 votes


Permanent link
OK, so now the next step is to check that these required bundles are installed and that their bundle state is at least RESOLVED. Use the ss command to get a "short status" of the install bundles. The repotools application would already have reported these bundles as not being RESOLVED, if that was the case, so my guess is that they're not installed at all, and they clearly need to be.

If in doubt, just post the entire output of the ss command.


I did:
In TeamConcert
Window -> Preferences -> Plugin Development -> Target Platform
insert right location -> Reload -> select all

The result was:
5937 ACTIVE com.ibm.team.datawarehouse.service.odc_1.0.0 (This is my plugin)

Now, I copied the bundles required in repotools folder (/repotools/eclipse/plugin), I changed config.ini (/repotools/eclipse/configuration), I deleted everything (except config.ini) in this folder .
I opened command line and I wrote "repotools -createTable"
and the result is:

Repo Tools, Version 0.6.0.I20080411-1100
Provisioning using "./profile.ini".
Loading configuration from "file:teamserver.properties".
Service failed to activate.
... with more error:
Caused by:
java.lang.VerifyError: final method overridden (class: com/ibm/team/datawarehouse/service/workitems/internal/WorkItemsSnapshotTask method: run()V) at pc:

0 votes


Permanent link
From the repotools console output, it looks like you are using a
non-1.0 version of RTC. Are you using 1.0 for both your development
environment and target environment? Mixing plugin from different
versions might lead to problems like you are seeing below if API was
changing between the versions.

cceliberti wrote:
sarcherwrote:
OK, so now the next step is to check that these required bundles are
installed and that their bundle state is at least RESOLVED. Use the
ss command to get a "short status" of the install bundles.
The repotools application would already have reported these bundles
as not being RESOLVED, if that was the case, so my guess is that
they're not installed at all, and they clearly need to be.
If in doubt, just post the entire output of the ss command.

I did:
In TeamConcert
Window -> Preferences -> Plugin Development -> Target
Platform
insert right location -> Reload -> select all

The result was:
5937 ACTIVE com.ibm.team.datawarehouse.service.odc_1.0.0 (This is
my plugin)

Now, I copied the bundles required in repotools folder
(/repotools/eclipse/plugin), I changed config.ini
(/repotools/eclipse/configuration), I deleted everything
(except config.ini) in this folder .
I opened command line and I wrote "repotools -createTable"
and the result is:

Repo Tools, Version 0.6.0.I20080411-1100
Provisioning using "./profile.ini".
Loading configuration from "file:teamserver.properties".
Service failed to activate.
.. with more error:
Caused by:
java.lang.VerifyError: final method overridden (class:
com/ibm/team/datawarehouse/service/workitems/internal/WorkItemsSnapshotTask
method: run()V) at pc:

0 votes


Permanent link
From the repotools console output, it looks like you are using a
non-1.0 version of RTC. Are you using 1.0 for both your development
environment and target environment? Mixing plugin from different
versions might lead to problems like you are seeing below if API was
changing between the versions.


cceliberti wrote:
sarcherwrote:
OK, so now the next step is to check that these required bundles are
installed and that their bundle state is at least RESOLVED. Use the
ss command to get a "short status" of the install bundles.
The repotools application would already have reported these bundles
as not being RESOLVED, if that was the case, so my guess is that
they're not installed at all, and they clearly need to be.
If in doubt, just post the entire output of the ss command.

I did:
In TeamConcert
Window -> Preferences -> Plugin Development -> Target
Platform
insert right location -> Reload -> select all

The result was:
5937 ACTIVE com.ibm.team.datawarehouse.service.odc_1.0.0 (This is
my plugin)

Now, I copied the bundles required in repotools folder
(/repotools/eclipse/plugin), I changed config.ini
(/repotools/eclipse/configuration), I deleted everything
(except config.ini) in this folder .
I opened command line and I wrote "repotools -createTable"
and the result is:

Repo Tools, Version 0.6.0.I20080411-1100
Provisioning using "./profile.ini".
Loading configuration from "file:teamserver.properties".
Service failed to activate.
.. with more error:
Caused by:
java.lang.VerifyError: final method overridden (class:
com/ibm/team/datawarehouse/service/workitems/internal/WorkItemsSnapshotTask
method: run()V) at pc:

0 votes


Permanent link
From the repotools console output, it looks like you are using a
non-1.0 version of RTC. Are you using 1.0 for both your development
environment and target environment? Mixing plugin from different
versions might lead to problems like you are seeing below if API was
changing between the versions.


I'm using m6a version for client and server, but now install RTC1 version for both.

0 votes

1–15 items
page 1of 1 pagesof 2 pages

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: Jul 31 '08, 11:13 a.m.

Question was seen: 12,381 times

Last updated: Jul 31 '08, 11:13 a.m.

Confirmation Cancel Confirm