Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
Trailing space in WMS-based map gives error after upgrade to Spotfire 10.x
Solution:
When opening dxp analysis files in the Web player that contain map charts with Web Map Server (WMS)-based maps, you encounter errors similar to the one below after upgrading from Spotfire version 7.x to 10.x:
ERROR;2019-03-19T06:52:35,980-05:00;2019-03-19 11:52:35,980;f9a3e2dc-8d2c-4e33-ada7-9a681c9d88ac;16023111fdvIWi;13;00118171@tibco.com;Spotfire.Dxp.Web.AnalysisImageHandler;"Error when generating image for session '7e4474c1cb046eef384ba5d703d12986', analysis 'asdkKgOGMk2UUotsb3zjB-16023111fdvIWi', nodeId '', seedId '' and arguments 'WmsPlotImage,0-0,66b7389a-0bbb-4f4b-8c06-5ae5b00c9ff7,service%3DWMS%26version%3D1.1.1%26request%3DGetMap%26layers%3D29%26styles%3D%26bbox%3D-11271098.442818937%2C5948635.289265544%2C-10958012.374962855%2C6261721.357121626%26format%3Dimage%2Fpng%26SRS%3DEPSG%3A3857%26transparent%3Dtrue%26width%3D256%26height%3D256'."
System.Net.WebException: The remote server returned an error: (404) Not Found .
at Spotfire.Dxp.Application.WebView.Plots.MapChartWebView.GetWmsImage(MapChart snapshotNode, Guid layerId, String url)
at Spotfire.Dxp.Application.WebView.Plots.MapChartWebView.GetWmsImage(MapChart mapChart, String[] keys)
at Spotfire.Dxp.Application.WebView.WebView`1.<>c__DisplayClass68_0.<GetImageData>b__0(TModel node)
at Spotfire.Dxp.Framework.DocumentModel.Snapshot`1.<>c__DisplayClass16_0.<ReadWithLimitationTarget>b__0()
at Spotfire.Dxp.Framework.DocumentModel.ThreadTransactionInfo.EvaluateWithLimitationTarget(ILimitationTarget limitationTarget, Executor executor)
at Spotfire.Dxp.Framework.DocumentModel.Snapshot`1.ReadWithLimitationTarget(ILimitationTarget limitationTarget, Action`1 action)
at Spotfire.Dxp.Framework.DocumentModel.Snapshot`1.ReadWithGenerationSpan(Action`1 action, Action`1 invalidPropertyReadCallback)
at Spotfire.Dxp.Application.WebView.WebView`1.SnapshotReadWithProgress(String progressTitle, ReadContext context, Action`1 reader)
at Spotfire.Dxp.Application.WebView.WebView`1.GetImageData(String key)
at Spotfire.Dxp.Web.WebAnalysis.GetImage(Guid webViewId, String args)
at Spotfire.Dxp.Web.AnalysisImageHandler.GenerateImage(Handle webAnalysisHandle, String sessionId, String webViewIdValue, String waid, String nodeId, String arguments, String seedId, IsConnected isConnected, Func`1 hasStopwatchExpired)
DEBUG;2019-03-19T06:52:35,995-05:00;2019-03-19 11:52:35,995;f9a3e2dc-8d2c-4e33-ada7-9a681c9d88ac;16023111fdvIWi;13;00118171@tibco.com;Spotfire.Dxp.Web.WebApplicationThread;"Unhandled worker thread exception."
System.Net.WebException: The remote server returned an error: (404) Not Found .
at Spotfire.Dxp.Application.WebView.Plots.MapChartWebView.GetWmsImage(MapChart snapshotNode, Guid layerId, String url)
at Spotfire.Dxp.Application.WebView.Plots.MapChartWebView.GetWmsImage(MapChart mapChart, String[] keys)
at Spotfire.Dxp.Application.WebView.WebView`1.<>c__DisplayClass68_0.<GetImageData>b__0(TModel node)
at Spotfire.Dxp.Framework.DocumentModel.Snapshot`1.<>c__DisplayClass16_0.<ReadWithLimitationTarget>b__0()
at Spotfire.Dxp.Framework.DocumentModel.ThreadTransactionInfo.EvaluateWithLimitationTarget(ILimitationTarget limitationTarget, Executor executor)
at Spotfire.Dxp.Framework.DocumentModel.Snapshot`1.ReadWithLimitationTarget(ILimitationTarget limitationTarget, Action`1 action)
at Spotfire.Dxp.Framework.DocumentModel.Snapshot`1.ReadWithGenerationSpan(Action`1 action, Action`1 invalidPropertyReadCallback)
at Spotfire.Dxp.Application.WebView.WebView`1.SnapshotReadWithProgress(String progressTitle, ReadContext context, Action`1 reader)
at Spotfire.Dxp.Application.WebView.WebView`1.GetImageData(String key)
at Spotfire.Dxp.Web.WebAnalysis.GetImage(Guid webViewId, String args)
at Spotfire.Dxp.Web.AnalysisImageHandler.GenerateImage(Handle webAnalysisHandle, String sessionId, String webViewIdValue, String waid, String nodeId, String arguments, String seedId, IsConnected isConnected, Func`1 hasStopwatchExpired)
This can be due to a trailing space (a space after the URL) in the WMS URL that is used in the map chart. Removing the trailing space and saving the analysis file will resolve this issue.
Comments
0 comments
Article is closed for comments.