I have an issue using TIBCO Jaspersoft Studio regarding Google maps.
I am using "map" component provided by Jasper Studio, and I have done all necessary configurations as described in User Manual:
To configure a property, click Add to open the Properties dialog, enter the name of the property and the property's value, then click OK. You can configure the following Google Maps APIs properties. See the JasperReports® Library configuration reference for more information on each property: • net.sf.jasperreports.components.map.client.id – Specifies the client ID for Google Maps API for Business. If set, it takes precedence over the API key property. Usually works along with the signature property for signed URLs. • net.sf.jasperreports.components.map.key – Specifies the Google Maps API key. • net.sf.jasperreports.components.map.signature – Specifies the encrypted client signature for signed request URLs. • net.sf.jasperreports.components.map.version – Indicates which version of the Google Maps API should be loaded.
I have added my Google maps API key as stated.
But when I try to run report preview, Jasper Studio freezes, and after some time I received message as in following image:
Should I adjust something in my Google Maps Console or what? This API key is valid, as I use it in my application.
Yesterday I asked our server administrator to send me once more logs from our Jasper server, and I found this:
2019-02-11 14:41:38,353 ERROR ErrorPageHandlerAction,http-nio-8080-exec-8:118 - Error UID 21b6e730-143b-47bb-b792-cde9b48db610
com.jaspersoft.jasperserver.api.JSException: Error filling report
...
Caused by: net.sf.jasperreports.engine.JRException: Invalid coordinates geocoded from address; latitude: latitude; longitude: longitude.
....
I was puzzled how I get "Invalid coordinates geocoded from address; latitude: latitude; longitude: longitude." when it is okay for HTML and not for Java or PDF.
I switched on/off several API's (Geolocation API, Geocoding API) in my Google Cloud Platform. After few minutes, maps started working in every option needed (Java, PDF, HTML)
It has no sense to me, but maps are working now.
APIs that I use are: Maps JavaScript API, Maps Static API