Jump to content
JasperReports Library 7.0 is now available ×

CyndeeShank

Members
  • Posts

    3
  • Joined

  • Last visited

CyndeeShank's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I've just started using JasperReport 1.3.0, with Windows XP and Tomcat 5.5.20. I setup my template using iReport and it compiles, but when I try to create the report in my code, I get the following error: ------------------------------------------------------ java.lang.IllegalArgumentException: protocol = http host = null at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:146) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:743) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:673) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:917) at java.net.URL.openStream(URL.java:1007) at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:335) at net.sf.jasperreports.engine.JRImageRenderer.getInstance(JRImageRenderer.java:265) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:467) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:426) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:274) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:400) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1273) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:614) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:209) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:109) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:751) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:679) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:517) at com.fares.vector.servlet.CreateReportServlet.action(CreateReportServlet.java:97) at com.fares.vector.servlet.BaseServlet.doPost(BaseServlet.java:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.fares.vector.servlet.AvmRequestServlet.action(AvmRequestServlet.java:116) at com.fares.vector.servlet.BaseServlet.doPost(BaseServlet.java:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.fares.vector.filters.StickyFilter.doFilter(StickyFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) ------------------------------------------------------ I've verified that the .jasper file exists, so I'm confused about where to look for an error. I've attached the .jrxml file, and here is the code from my servlet that is making the call. ------------------------------------------------------ // get the servlet context -- and the path to the pdf and reports directories ServletContext context = this.getServletConfig().getServletContext(); String pdfPath = context.getRealPath("/pdf"); String reportsPath = context.getRealPath("/reports"); // get the report template name and jprint names reportTemplate = reportsPath + "/" + Constant.VECTOR_STANDARD_REPORT + ".jasper"; // prepare the parameter map parameterMap.put("ReportTitle", "Vector Report"); // create the pdf and html filenames String pdfFilename = pdfPath + "/Vector_" + reportId + ".pdf"; String htmlFilename = pdfPath + "/Vector_" + reportId + ".html"; long start = System.currentTimeMillis(); try { // fill the report JasperPrint jasperPrint = JasperFillManager.fillReport(reportTemplate, parameterMap, reportDataSource); logger.debug("Fill Report Time: " + (System.currentTimeMillis() - start) + " ms"); ------------------------------------------------------ Any help will be much appreciated! Thanks! [file name=Vector_Standard_Report.jrxml size=24028]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Vector_Standard_Report.jrxml[/file]
  2. I'm looking for this functionality as well. I have an html file that is already generated that I need to include in the report. I tried using an image and a URL to include the html file, but that didn't seem to work. Thanks for any help that anyone can give.
  3. I'm looking for this functionality as well. I have an html file that is already generated that I need to include in the report. I tried using an image and a URL to include the html file, but that didn't seem to work. Thanks for any help that anyone can give.
×
×
  • Create New...