It's all about the answers!

Ask a question

A problem about set up feed query maximum entries


Dan Xia (3172) | asked Jan 29 '10, 2:23 a.m.
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

4 answers



permanent link
Eric Jodet (6.3k5111120) | answered Feb 02 '10, 6:23 a.m.
JAZZ DEVELOPER
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

permanent link
Dan Xia (3172) | answered Feb 03 '10, 4:26 a.m.
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

permanent link
Eric Jodet (6.3k5111120) | answered Feb 04 '10, 4:53 a.m.
JAZZ DEVELOPER
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

permanent link
Dan Xia (3172) | answered Feb 05 '10, 3:17 a.m.
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.

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.