It's all about the answers!

Ask a question

Upgrade to M2?


Benjamin Silverman (4.1k610) | asked Aug 24 '07, 2:58 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi All,

I was using M1 with DB2/Tomcat and downloaded M2. I then modified my team.properties file for use with DB2 with the same exact info as my team.properties file for M1 contained. I am using the same DB2 database as I had in M1, and the same DB2 username/password. The server starts without any problems. I launched the client, and specified the same workspace as I was using in M1, and I get this error:

Logging into repositories
Error with login
Should not be caching a partial item

When I try to launch my project from the web UI, I get this:

"Error invoking service; message: Should not be caching a partial item.". After clicking OK to this error, I then get:

Error invoking service; message: Failing query -> WorkItemQueryModel r = WorkItemQueryModel.ROOT; AstQuery q = (AstQuery) IDataQuery.FACTORY.newInstance(r); q.select(q.countDistinct(r.id())); q.filter(r.workItemType()._notEq(q.newStringArg())._and(r.target()._eq(q.newItemHandleArg()))._and(r.category()._in(q.newItemHandleArg()))._and(r.internalState()._in(q.newStringArg(), q.newStringArg(), q.newStringarg(), q.newStringArg(), q.newStringArg())));

After clicking OK to this error, the web UI is "Loading..." endlessly. Has anyone encountered this attempting to use their existing DB2 database created in M1, with M2? Do I have to use repotools to do anything to the database if I want to use the same one I already had from M1? Thanks all!

7 answers



permanent link
Benjamin Silverman (4.1k610) | answered Aug 24 '07, 3:00 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Additionally, when I create a new workspace, and try to create a new repository connection, I get the same error upon creating a new repository connection:

Connect to project areas: Problems occurred attempting to log in: Should not be caching a partial item.

permanent link
Darin Swanson (3161) | answered Aug 24 '07, 4:41 p.m.
The format of data in the Jazz repository changed between M1 and M2.

You will need to migrate your database...see
https://jazz.net/learn/LearnItem.jsp?href=content/docs/repo-migration/MigrateData0.6M2.html

HTH
Darins

"bsilverm" <bsilverm@us.ibm-dot-com.no-spam.invalid> wrote in message
news:fanaab$9cm$1@localhost.localdomain...
Hi All,

I was using M1 with DB2/Tomcat and downloaded M2. I then modified my
team.properties file for use with DB2 with the same exact info as my
team.properties file for M1 contained. I am using the same DB2
database as I had in M1, and the same DB2 username/password. The
server starts without any problems. I launched the client, and
specified the same workspace as I was using in M1, and I get this
error:

Logging into repositories
Error with login
Should not be caching a partial item

When I try to launch my project from the web UI, I get this:

"Error invoking service; message: Should not be caching a partial
item.". After clicking OK to this error, I then get:

Error invoking service; message: Failing query -
WorkItemQueryModel r = WorkItemQueryModel.ROOT; AstQuery q =
(AstQuery) IDataQuery.FACTORY.newInstance(r);
q.select(q.countDistinct(r.id()));
q.filter(r.workItemType()._notEq(q.newStringArg())._and(r.target()._eq(q.newItemHandleArg()))._and(r.category()._in(q.newItemHandleArg()))._and(r.internalState()._in(q.newStringArg(),
q.newStringArg(), q.newStringarg(), q.newStringArg(),
q.newStringArg())));

After clicking OK to this error, the web UI is "Loading..."
endlessly. Has anyone encountered this attempting to use their
existing DB2 database created in M1, with M2? Do I have to use
repotools to do anything to the database if I want to use the same
one I already had from M1? Thanks all!

permanent link
Benjamin Silverman (4.1k610) | answered Aug 24 '07, 5:10 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Thank you, that does help. I was thinking about doing an export/import via repotools, but then I thought...wouldn't that be the same as just backing up the database, and restoring it to another? But I suppose repotools export/import is actually upgrading the database schema, does that sound accurate? Thanks again for the reply!

permanent link
Balaji Krish (1.8k12) | answered Aug 25 '07, 7:54 p.m.
JAZZ DEVELOPER
Yes, repotools export/import upgrades the db schemas and migrates the old
data into the new schema.

---- Balaji

"bsilverm" <bsilverm@us.ibm-dot-com.no-spam.invalid> wrote in message
news:fanhu2$cm5$1@localhost.localdomain...
Thank you, that does help. I was thinking about doing an
export/import via repotools, but then I thought...wouldn't that be
the same as just backing up the database, and restoring it to
another? But I suppose repotools export/import is actually upgrading
the database schema, does that sound accurate? Thanks again for the
reply!

permanent link
Dmitry Karasik (1.8k11) | answered Aug 28 '07, 9:46 a.m.
JAZZ DEVELOPER
Connect to project areas: Problems occurred attempting to log in:
Should not be caching a partial item.

This happens when you try to use a newer server with an older DB.

The model has been changed and some fields were added, so when it
demarshalls the blob from the DB those new fields are left uninitialized.
That item is then passed to the cache which throws this exception because
not all fields are set.

permanent link
Kai-Uwe Maetzel (85611) | answered Aug 28 '07, 1:43 p.m.
JAZZ DEVELOPER
This is an interesting case. Could you please file a work item with category
== Process with concrete steps to reproduce the problem. We will investigate
it and move it on to where it belongs.

Thanks, Kai


"bsilverm" <bsilverm@us.ibm-dot-com.no-spam.invalid> wrote in message
news:fanaab$9cm$2@localhost.localdomain...
Additionally, when I create a new workspace, and try to create a new
repository connection, I get the same error upon creating a new
repository connection:

Connect to project areas: Problems occurred attempting to log in:
Should not be caching a partial item.

permanent link
Benjamin Silverman (4.1k610) | answered Aug 28 '07, 5:32 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Created Work Item 29909 for this. Thanks,

- Ben

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.