Spatial Maps not loading after applying IFIX
Maximo Spatial maps were not loading after applying a recent Maximo Spatial IFIX 7.6.0.5-TIV-MAMST-IF015
The below exception was being generated in the logs
[4/22/21 1:42:17:765 GST] 00000109 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception was thrown by one of the service methods of the servlet [/webclient/components/mxmap/map.jsp] in application [MAXIMOSTG]. Exception created : [java.lang.NullPointerException at psdi.pluss.app.plussgis.SpatialConfHelper.getExpressionQuery(SpatialConfHelper.java:363) at psdi.pluss.app.plussgis.SpatialConfHelper.hasSigotion(SpatialConfHelper.java:230) at psdi.pluss.app.plussgis.SpatialConfHelper.getMapServicesArray(SpatialConfHelper.java:162) at psdi.pluss.app.plussgis.SpatialConfHelper.getSpatialMapConf(SpatialConfHelper.java:460) at psdi.pluss.app.plussgis.PlusSGISService.getSpatialMapConf(PlusSGISService.java:140) at com.ibm.tivoli.maximo.map.MapControl.getSpatialMapConfiguration(MapControl.java:1241) at com.ibm.tivoli.maximo.map.MapControl.getMapConfiguration(MapControl.java:406) at com.ibm._jsp._map._jspService(_map.java:466) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
.....
....
...
After analysis it was found that the psdi.pluss.app.plussgis.SpatialConfHelper class file was trying to run an invalid condition query statement due to a bug.
The solution was to run below SQL update which adds conditionnum TRUE which is a condition expression that always returns true e.g. 1=1, to the applicationauth table.
Replace the group MAXADMIN with all the groups that have access to maps and option name with the list of all the spatial layers in your system.
Please remember to modify the query with clause relevant to your system.
update applicationauth set conditionnum='TRUE' where app='MPMAN' and groupname in ( 'MAXADMIN' ) and optionname like 'LAYERS%';
After this update the Map layers were loading successfully.
Comments
Post a Comment