Hi Misael,
1. Is the concurrent request handling on?
2. Have you tried using setReadTimeout() ?
Cheers,
Bogdan
On 15 Jun 2013, at 21:42, Misael Bustamante Arenas wrote:
> hi!
>
> I hope someone can help with the following problem:
>
> I have a function that return the url of a directAction, which i use to build
> a url for a birt report,
> the direcAction returns an xml for Birt obtain information and saw that the
> url built works in the browser,
> but when trying to use this url to connect using the URL and URLConnection
> classes
> not perform any action and it appears that my application is cycled, because
> after calling the function that makes this action,
> the application does not respond.
>
> function with which built the url of birt and try to connect to get the
> information from the report it generated:
>
> public InputStream inputStreamReportFromXML() throws IOException {
> String birtViewerURLString =
> Parametros.parametros().urlBirtViewer();
> try {
> birtViewerURLString += "run?"
> + "__report="
> + URLEncoder.encode(("file:///"
> +
> application().birtReportsPath() + "cbbDesign.rptdesign"), "UTF-8")
> +
> "&__format="+"pdf"+"&colorFondo="+usuarioPlataforma.color()+"&cancelCBB="+true
>
> +"&pathCancelImage="+URLEncoder.encode((application().birtReportsPath()),
> "UTF-8") + "cancel.png"
> +"&datasource="
> +
> URLEncoder.encode((urlPeticionRegistro()), "UTF-8");//urlPeticionRegistro()->
> function that returns the url of direcAction of where you get the xml
>
> URL birtViewerURL = new URL(birtViewerURLString);
> URLConnection birtViewerConnection =
> birtViewerURL.openConnection();
> birtViewerConnection.setUseCaches(false);
> birtViewerConnection.setDoInput(true);
> birtViewerConnection.connect();
> InputStream in =
> birtViewerConnection.getInputStream();//here problem
> return in;
> } catch (UnsupportedEncodingException e) {
> e.printStackTrace();
> }
> return null;
> }
>
> Note: if I comment the line where I call the function that builds the url of
> directAction of where you get the xml, the problem does not happen
>
>
>
> _______________________________
> Misael Bustamante Arenas
> Ingeniero de Desarrollo
> Tel: +52 (33) 3367 1892
> Cel: (045)3757566183
> E-mail: [email protected]
> www.toracom.net
>
> Antes de imprimir, piense en el Medio Ambiente. Before printing think about
> the Environment. Avant d'imprimer, pensez à l'Environnement
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/bogdan.zlatanov%40gmail.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]