WPS execute process ends in 
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException if return 
value containes base64 encoded zip file
---------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: GEOT-2769
                 URL: http://jira.codehaus.org/browse/GEOT-2769
             Project: GeoTools
          Issue Type: Bug
         Environment: GeoTools Trunk
            Reporter: Matthias Lendholt


WPS execute request ends in:

org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: 
index=0, size=0
        at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512)
        at org.geotools.data.wps.WPSUtils.createResultMap(WPSUtils.java:380)
        at org.geotools.data.wps.WPSProcess.execute(WPSProcess.java:143)
        at 

I guess (no proof) this result parameter containing a base64 encoded and zipped 
shapefile could be the reason:
  <Output>
 
<ows:Identifier>IdentifiedAffectedAreasFeatureCollection</ows:Identifier>
         <ows:Title>The resulting feature collection that contains the 
Identified Affected Areas (returned as a zipped shapefile)</ows:Title>
         <ComplexOutput>
           <Default>
             <Format>
               <MimeType>application/zip</MimeType>

               <Encoding>base64</Encoding>
             </Format>
           </Default>
           <Supported>
             <Format>
               <MimeType>application/zip</MimeType>
               <Encoding>base64</Encoding>

             </Format>
           </Supported>
         </ComplexOutput>
       </Output>

A solution could be not to inline the result but to advice the WPS to return 
only the URL for the result/resource. Currently setting 'asReference="true"' 
for response parameters is not possible. 

<wps:Execute>
...
   <wps:DataInputs>
... input parameters here
   </wps:DataInputs>
<wps:ResponseForm>
     <wps:ResponseDocument>
       <wps:Output asReference="true">
<ows:Identifier>IdentifiedAffectedAreasFeatureCollection</ows:Identifier>
       </wps:Output>
       <wps:Output>
         <ows:Identifier>NumberOfIdentifiedAffectedAreas</ows:Identifier>
       </wps:Output>
       <wps:Output>
         <ows:Identifier>TotalProcessExecutionTime</ows:Identifier>
       </wps:Output>    
     </wps:ResponseDocument>
   </wps:ResponseForm>
</wps:Execute>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to