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

A problem about set up feed query maximum entries

Hi All,

I'm new to RTC. I would like to do some feed entity queries using IFeedService. I have tried to change the feed query maximum entities value in jazz/admin concole, but can't save successfully. Got an error below:
persistUrl must not be null when persisting changesHide Details
java.lang.IllegalArgumentException
com.ibm.team.repository.common.transport.internal.registry.ServiceConfigurationUpdate.(ServiceConfigurationUpdate.java:69)
com.ibm.team.repository.common.transport.internal.registry.OsgiServicesManager.createConfigurationUpdate(OsgiServicesManager.java:149)
com.ibm.team.repository.service.internal.ServerConfigurationRestService.postConfigurationUpdates(ServerConfigurationRestService.java:224)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:618)
org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
$Proxy32.postConfigurationUpdates(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:618)


I think this problem is caused by i did not specify the com.ibm.team.server.configURL, so I added a vm arguments 'com.ibm.team.server.configURL' in server launch configuration and after that it can save successfully. But the settings seems not work. The number of retrieved feed entities exceeds the maximum value set in server feed settings. How can I set up feed query maximum entities correctly?

I use RTC2.0 as development tool. Any suggestions will be appreciated. Thanks in advance!

Dan

0 votes



4 answers

Permanent link
Hello,
not sure if it's really your use case, but please have a look to:
http://www-01.ibm.com/support/docview.wss?rs=3488&uid=swg21409960

Hope it will help.

Eric.

xiadan a crit :
Hi All,

I'm new to RTC. I would like to do some feed entity queries using
IFeedService. I have tried to change the feed query maximum entities
value in jazz/admin concole, but can't save successfully. Got an
error below:
persistUrl must not be null when persisting changesHide Details
java.lang.IllegalArgumentException

com.ibm.team.repository.common.transport.internal.registry.ServiceConfigurationUpdate.(ServiceConfigurationUpdate.java:69)
com.ibm.team.repository.common.transport.internal.registry.OsgiServicesManager.createConfigurationUpdate(OsgiServicesManager.java:149)
com.ibm.team.repository.service.internal.ServerConfigurationRestService.postConfigurationUpdates(ServerConfigurationRestService.java:224)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:618)

org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
$Proxy32.postConfigurationUpdates(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:618)


I think this problem is caused by i did not specify the
com.ibm.team.server.configURL, so I added a vm arguments
'com.ibm.team.server.configURL' in server launch configuration and
after that it can save successfully. But the settings seems not work.
The number of retrieved feed entities exceeds the maximum value set in
server feed settings. How can I set up feed query maximum entities
correctly?

I use RTC2.0 as development tool. Any suggestions will be appreciated.
Thanks in advance!

Dan

0 votes


Permanent link
Hi,

Thanks for sharing and the link is helpful.
I set Feed Query Maximum Entries = 10 (default)
Running feed without option:
https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService returns more than 10 entities.
if I running feed like this:
https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService?maxResults=20 returns up to 10 entities.
It seems if I do not add maxResults param, the Maximun setting will not work. I'm not sure whether it is a defect.

Thanks

0 votes


Permanent link
Hello,
agree - this might be confusing - hence we technoted this :-)
"I set Feed Query Maximum Entries = 10"
--> It is the maximum number of entries that can be returned if
specified in the feed

https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService
returns more than 10 entities.
--> no max set in the feed, so rule does not apply


https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService?maxResults=20
returns up to 10 entities.
--> rule applies - max = 10


Sounds correct to you?

Thanks.
Eric.

xiadan a crit :
Hi,

Thanks for sharing and the link is helpful.
I set Feed Query Maximum Entries = 10 (default)
Running feed without option:
https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService
returns more than 10 entities.
if I running feed like this:
https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService?maxResults=20
returns up to 10 entities.
It seems if I do not add maxResults param, the Maximun setting will
not work. I'm not sure whether it is a defect.

Thanks

0 votes


Permanent link
Hi Eric,

Yes, that's what I want to express. :wink:

Thanks
Dan

Hello,
agree - this might be confusing - hence we technoted this :-)
"I set Feed Query Maximum Entries = 10"
--> It is the maximum number of entries that can be returned if
specified in the feed

https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService
returns more than 10 entities.
--> no max set in the feed, so rule does not apply


https://<host>:9443/jazz/service/com.ibm.team.repository.common.internal.IFeedService?maxResults=20
returns up to 10 entities.
--> rule applies - max = 10


Sounds correct to you?

Thanks.
Eric.

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

Question asked: Jan 29 '10, 2:23 a.m.

Question was seen: 6,859 times

Last updated: Jan 29 '10, 2:23 a.m.

Confirmation Cancel Confirm