Asset search+download time out when maxResults is set
![]()
Hello,
I am facing a time-out when downloading assets using the "download" ANT task - the problem occurs only when I set the attribute "maxResults" in the asset search expression. Note, I have to set the attribute "maxResults" to a large number (say 500-1000) because otherwise the number of assets returned by the query is limited to 100 and I do expect more search results. Here is the exception trace: BUILD FAILED Another problem with the ANT download task is that if download of any asset fails the script aborts without attempting download of the next asset in search results. Can anyone please point out if I am missing anything? What is the most robust way to download a large number of assets from RAM? Thanks, Debdoot |
2 answers
![]()
Hello,
I faced same issue today with RAM Java API (7.2.0.2) int maxResult = 700; query.setMaxResults(maxResult); SearchResult searchResult = session.getAssets(query); last step above getting error as : com.ibm.ram.common.data.exception.RAMRuntimeException: ; nested exception is: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity. help appreciated.. Thanks PS : I do not have timeout issue, as I have set up my timeout period around 6 mins (and m getting error in 2 mins itself). Hello, BUILD FAILED Another problem with the ANT download task is that if download of any asset fails the script aborts without attempting download of the next asset in search results. Can anyone please point out if I am missing anything? What is the most robust way to download a large number of assets from RAM? Thanks, Debdoot |
![]()
have you tried to increase the session timeout:
|
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.