• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problem direction and Birt
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem direction and Birt


  • Subject: problem direction and Birt
  • From: Misael Bustamante Arenas <email@hidden>
  • Date: Sat, 15 Jun 2013 14:42:31 -0500

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@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: problem direction and Birt
      • From: Bogdan Zlatanov <email@hidden>
  • Prev by Date: Re: WOWODC working groups and open labs -
  • Next by Date: ssl from iOS error? OT?
  • Previous by thread: Re: WOWODC working groups and open labs -
  • Next by thread: Re: problem direction and Birt
  • Index(es):
    • Date
    • Thread