swapnil1484 Posted May 26, 2019 Share Posted May 26, 2019 Exporting PDF (using iText) to file... C:Usersprda2OneDriveDesktopUp WorkBackupreport4.pdf! Error exporting print... net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL : http://maps.google.com/maps/api/staticmap?center=37.775,-122.4183&size=490x160&zoom=8&maptype=roadmap&format=png&scale=1&sensor=false&language=enjava.lang.RuntimeException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL : http://maps.google.com/maps/api/staticmap?center=37.775,-122.4183&size=490x160&zoom=8&maptype=roadmap&format=png&scale=1&sensor=false&language=en at net.sf.jasperreports.components.map.MapElementPdfHandler.exportElement(MapElementPdfHandler.java:56) at net.sf.jasperreports.engine.export.JRPdfExporter.exportGenericElement(JRPdfExporter.java:2790) at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:958) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:909) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:786) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:513) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:1174) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Link to comment Share on other sites More sharing options...
C-Box Posted May 27, 2019 Share Posted May 27, 2019 Does it work in "normal" Mode??? Preview? Print? As the URL requires a Google-API key is this present at your javva-application at runtime? I'm not sure whether the "old" iReport already supports the "newer" limititations of using google API keys for map-componenent. In JasperSoft Studio is somewhere a panel where you can enter the key for using google maps in reports - that I know for sure.... just look here: So perhaps you must also update to JasperSoft Studio to get it work.regardsC-Box Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now