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

Internal server error 500 when calling service

I created a model and a query model to store information in the database. I use the call below to query these items and when I try to make a call to it through the browser I get a 500 internal server error.


IRepositoryItemService repoService = getService(IRepositoryItemService.class);
IQueryService queryService = getService(IQueryService.class);

PersistentVoteItemQueryModel queryModel = BasePersistentVoteItemQueryModel.PersistentVoteItemQueryModel.ROOT;
IItemQuery itemQuery = IItemQuery.FACTORY.newInstance(queryModel);

//itemQuery.filter(queryModel.WorkitemID()._eq(UUID.valueOf(uuid)));

IItemQueryPage itemQueryPage = queryService.queryItems(itemQuery,
IQueryService.EMPTY_PARAMETERS,
IQueryService.ITEM_QUERY_MAX_PAGE_SIZE);

IItem[] items = repoService.fetchItems(itemQueryPage
.handlesAsArray(), null);
ArrayList<PersistentVoteItem> voteItems = new ArrayList<PersistentVoteItem>();
for (IItem item : items){
if (item instanceof PersistentVoteItem)
voteItems.add((PersistentVoteItem)item);
}

return (PersistentVoteItem) voteItems.get(0);


The model is simple, it inherits auditable. Contains a string field (that isn't queryable) and a UUID field that is queryable. Is there a common reason why this would throw an internal server error? Also I checked the server logs and didn't see an error. Is there a way I can get the server to tell me what this 500 error is? Thanks in advance.

0 votes


Be the first one to answer this question!

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 23 '11, 3:42 a.m.

Question was seen: 3,947 times

Last updated: Mar 23 '11, 3:42 a.m.

Confirmation Cancel Confirm