It's all about the answers!

Ask a question

Lots of errorlogs about RESOURCE0.RESOURCE not available

Morten Mikkelsen (136156) | asked Dec 07 '09, 6:50 a.m.
I see a lot of these in our jazz.log:
2009-xx-xx xx:xx:xx,xxx ERROR ository.service.internal.RdbRepositoryDataMediator - Failing ast query
ResourceQueryModel r = ResourceQueryModel.ROOT;
AstQuery q = (AstQuery) IItemQuery.FACTORY.newInstance(r);
IDynamicQueryModel d = ItemUtil.itemTypeFor(&quot;Resource&quot;, &quot;;).getQueryModel();
IItemQuery q = IItemQuery.FACTORY.newInstance((IDynamicItemQueryModel) d);
q.filter(((IStringField) d.getReference(&quot;uri&quot;))._eq(q.newStringArg()));
parm 1: storage/net.jazz.ajax.theming
select t1.ITEM_ID, t1.STATE_ID, t1.JZ_DISCRIMINATOR from RESOURCE0.RESOURCE t1 where (t1.URI = ?)
2009-xx-xx xx:xx:xx,xxx ERROR ository.service.internal.RdbRepositoryDataMediator - InternalRepositoryException processing query CRJAZ0368I Error executing query
stmt = select t1.ITEM_ID, t1.STATE_ID, t1.JZ_DISCRIMINATOR from RESOURCE0.RESOURCE t1 where (t1.URI = ?)


The error code means that the table of view requested does not exist. However, everything seems to work just fine..

I didn't install the server myself, but I know it is a new installation, i.e. not an old database that's been 're-used', so I am confident that the database has not been touched by human hand.

Does anyone know what the messages mean - and how I can get rid of them?


5 answers

permanent link
Chris Cawthorne (962719) | answered Dec 08 '09, 12:06 p.m.
This normally happens when you migrate a repository from RTC 2.0. to RTC and forget to add the new tables. You probably need to stop the server and run: -clean -addTables

permanent link
Morten Mikkelsen (136156) | answered Dec 08 '09, 3:10 p.m. -clean -addTables

I was actually under the impression that it was a 2.0 installation, but the status summary page shows, so I think you may have hit the spot.

Just curious, what does the -clean option do?
I don't find it mentioned on
(and I wouldn't want to wipe anything too clean)


permanent link
Sunil Kumar Perla (71143) | answered Feb 23 '10, 9:55 a.m.
Not sure if this step about adding tables is mentioned anywhere. We migrated from 2.0 to and see the same error.

Any information on what tables are being added with this command as well as a pointer to some documentation that talks about steps involved in upgrading from 2.0 to later versions will be much appreciated.


permanent link
Guowei Jim Hu (1.0k610253) | answered Feb 23 '10, 12:44 p.m.
This is mentioned in the release notes except the part about the -clean option:

Must run &quot;repotools -addTables&quot; after deployment
If you are upgrading a server you must run &quot;repotools -addTables&quot; after deploying the milestone but before running the server for the first time. This operation will add new tables that are required by changes in the Reports and the Source Control components. If you fail to do this you may see errors when the server attempts to create snapshots for the data warehouse or if you attempt to use symbolic links. If you are unable to perform this operation immediately after deploying this milestone, you can still perform the operation later without compromising the integrity of any component metadata. NOTE: If you performed this operation as it was required for RC1, do you not have to repeat the operation if you are upgrading from RC1 or RC2.

permanent link
Walter Mansur (6363017) | answered Mar 12 '10, 2:11 p.m.
We ran into a similar issue when we upgraded from RTC Client for Visual Studio v2.0.0.1 (and v2.0) last week. The &quot;repotools -addTables&quot; command did not help us. We ended up working with IBM Rational RTC Support and found out that some Visual Studio web configuration files had been updated (maybe because of some .NET Framework and/or Windows Updates). You will want to look at defect 107836 for how we resolved the issue we had.

Your answer

Register or to post your answer.