guigui94 Posted April 12, 2013 Share Posted April 12, 2013 dear all,I wonder if instead of the default map component i can use a WMS url to define an image source in iReport ?here is an example of WMS that show an image as jpeg file :http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv?request=getmap&service=wms&BBOX=-90,30,5,65&srs=EPSG:4326&format=image/jpeg&layers=gebco_08_grid&width=900&height=600&version=1.1.1I did try serveral options i failed. the error i got :Error filling print... net.sf.jasperreports.engine.JRException: Error opening input stream from URL : http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv?request=getmap&service=wms&BBOX=-90,30,5,65&srs=EPSG:4326&format=image/jpeg&layers=gebco_08_grid&width=300&height=150&version=1.1.1net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL : http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv?request=getmap&service=wms&BBOX=-90,30,5,65&srs=EPSG:4326&format=image/jpeg&layers=gebco_08_grid&width=300&height=150&version=1.1.1 ...Caused by: net.sf.jasperreports.engine.JRException: Error opening input stream from URL : http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv?request=getmap&service=wms&BBOX=-90,30,5,65&srs=EPSG:4326&format=image/jpeg&layers=gebco_08_grid&width=300&height=150&version=1.1.1 at net.sf.jasperreports.engine.util.JRLoader.getInputStream(JRLoader.java:317)... Caused by: java.net.ConnectException: Connection timed out: connect but in firefox the URL is loaded very fastly si the URL is OK anyone can help me ? thanks Guillaume Link to comment Share on other sites More sharing options...
guigui94 Posted April 12, 2013 Author Share Posted April 12, 2013 Now that it's WE here i realize that my proxy setting was not set ... WMS works fine as image source. Link to comment Share on other sites More sharing options...
ismails Posted April 30, 2013 Share Posted April 30, 2013 Hi, I searched for hours but not found even a clue except yours. Can you explain briefly how did you achive to change google map server to your wms server. Thanks in advance Link to comment Share on other sites More sharing options...
guigui94 Posted April 30, 2013 Author Share Posted April 30, 2013 juste use a classic image component instead of the google map one. Link to comment Share on other sites More sharing options...
jonay.santana Posted May 15, 2015 Share Posted May 15, 2015 You can use also a WMS server as the source for your map image. But alas, it seems to crash the Jasper Reports environment. 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