Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Staff
Posts: 8
Registered: ‎01-04-2019
Accepted Solution

Apollo WMS Service not displaying in M.app

Hi,

 

I have created a browser based app with "Map View" only.

 

I am using following WMS service (created using Apollo Server) in Map view with EPSG 3857.

 

http://14.98.67.235/erdas-apollo/vector/States?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0

 

When i run my App, i am getting following errors in browser console..

 

rest.js: The main module has moved, please switch your configuration to use 'rest/browser' as the main module for browser applications. app.f191a13e5ea90f9f.js:396:28001
rest.js: rest/interceptor/entity is deprecated, please use response.entity() instead app.f191a13e5ea90f9f.js:401:17380
Item doesn't have security information
app.f191a13e5ea90f9f.js:397:29254
rest.js: The main module has moved, please switch your configuration to use 'rest/browser' as the main module for browser applications. app.f6e576c7fb5ff114.js:2982:19930
rest.js: rest/interceptor/entity is deprecated, please use response.entity() instead app.f6e576c7fb5ff114.js:3021:16490
Arguments { 0: (1) […], … }
app.f6e576c7fb5ff114.js:3121:8
uncaught exception: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

<title>404 - File or directory not found.</title>

<style type="text/css">

<!--

body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}

fieldset{padding:0 15px 10px 15px;}

h1{font-size:2.4em;margin:0;color:#FFF;}

h2{font-size:1.7em;margin:0;color:#CC0000;}

h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}

#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;

background-color:#555555;}

#content{margin:0 0 0 2%;position:relative;}

.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}

-->

</style>

</head>

<body>

<div id="header"><h1>Server Error</h1></div>

<div id="content">

 <div class="content-container"><fieldset>

  <h2>404 - File or directory not found.</h2>

  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>

 </fieldset></div>

</div>

</body>

</html>

onerrorLogger: {"e":"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/>\r\n<title>404 - File or directory not found.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;} \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n <div class=\"content-container\"><fieldset>\r\n  <h2>404 - File or directory not found.</h2>\r\n  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>\r\n </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n","logData":{"msg":"Uncaught Exception","errorMsg":"uncaught exception: <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/>\r\n<title>404 - File or directory not found.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;} \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n <div class=\"content-container\"><fieldset>\r\n  <h2>404 - File or directory not found.</h2>\r\n  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>\r\n </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n","url":"","line number":0,"column":0}} app.f6e576c7fb5ff114.js:2982:11706
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
CRSManager: One of the CRS providers returned rejected promise or thrown an exception app.f6e576c7fb5ff114.js:2982:11786
CRSManager: {} app.f6e576c7fb5ff114.js:2982:11786
Potentially unhandled rejection [973] a</i.prototype.__iterateProviders@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:3041:15498
e/<@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:3041:13132
a</i.prototype.__iterateProviders/</<@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:3041:15844
V@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2972:31694
O@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2972:31328
S.prototype.when@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2973:3608
w.prototype.run@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2973:2434
e.prototype._drain@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2973:5689
e/this.drain@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2973:5341
t@https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2972:19144
app.f6e576c7fb5ff114.js:2972:28208
c<
https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2972:28208
o
https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2972:27810
u
https://14.98.67.233/MapViewer/app.f6e576c7fb5ff114.js:2972:28091

 

Thanks,

Nitin

Technical Evangelist
Posts: 152
Registered: ‎03-03-2016

Re: Apollo WMS Service not displaying in M.app

Can you access the GetCapabilities URL without an error?

Unfortunately I can't have a look myself ... The URL is blocked by our firewall.

Staff
Posts: 8
Registered: ‎01-04-2019

Re: Apollo WMS Service not displaying in M.app

Hi Paul,

 

Yes, I am able to access GetCapabilities URL without an error.

 

Attached is the capability document for your reference.

 

 

Thanks,

Nitin

Technical Evangelist
Posts: 982
Registered: ‎09-11-2015

Re: Apollo WMS Service not displaying in M.app

There seems to be some problem with the WMS as the standard GetMap call returns an error:

http://14.98.67.235/erdas-apollo/vector/States?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=state...

 

<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" version="1.3.0">
  <ServiceException>
  map
com.ionicsoft.api.wms.WMSException: com.ionicsoft.api.wfs.WFSException: org.postgresql.util.PSQLException: ERROR: Relate Operation called with a LWGEOMCOLLECTION type.  This is unsupported.
  Hint: Change argument 1: 'GEOMETRYCOLLECTION(POLYGON((8708229.45879348 3102987.65298415,8708229.4360241...'
com.ionicsoft.api.wms.WMSException: com.ionicsoft.api.wfs.WFSException: org.postgresql.util.PSQLException: ERROR: Relate Operation called with a LWGEOMCOLLECTION type.  This is unsupported.
  Hint: Change argument 1: 'GEOMETRYCOLLECTION(POLYGON((8708229.45879348 3102987.65298415,8708229.4360241...'
	at com.ionicsoft.wfs.rendererimpl.FeatureRenderer.translate(FeatureRenderer.java:1947)
	at com.ionicsoft.wfs.server.PortrayBlock.doTranslation(PortrayBlock.java:832)
	at com.ionicsoft.wfs.server.PortrayBlock.translateCollection(PortrayBlock.java:791)
	at com.ionicsoft.wfs.server.ITranslateCollectionAdapter.translateCollection(ITranslateCollectionAdapter.java:115)
	at com.ionicsoft.wfs.server.FeatureGenerator.serializeCollection(FeatureGenerator.java:1802)
	at com.ionicsoft.wfs.server.FeatureGenerator.serializeCollection(FeatureGenerator.java:1761)
	at com.ionicsoft.wfs.server.GetFeatureProcessor.performComputation(GetFeatureProcessor.java:699)
	at com.ionicsoft.wfs.server.GetFeatureProcessor.process(GetFeatureProcessor.java:619)
	at com.ionicsoft.wfs.server.BaseFeatureProcessor.computeResponse(BaseFeatureProcessor.java:66)
	at com.ionicsoft.servlet.MethodServlet.doGetPost(MethodServlet.java:533)
	at com.ionicsoft.servlet.MethodServlet.doGet(MethodServlet.java:335)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:636)
	at com.ionicsoft.servlet.BaseServlet.service(BaseServlet.java:911)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:207)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connect
Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Technical Evangelist
Posts: 152
Registered: ‎03-03-2016

Re: Apollo WMS Service not displaying in M.app

GeometryCollections are not supported for a spatial relate operation in PostGIS database. If you change it to MultiGeometries (what ever type) it should work.

Staff
Posts: 8
Registered: ‎01-04-2019

Re: Apollo WMS Service not displaying in M.app

Hi Jan and Paul,

 

Thanks for pointing the issue.

 

I have created another service with point data...

 

 

http://14.98.67.235/erdas-apollo/vector/Capitals?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0

 

Still facing same issue.

 

I have done following steps in M.App Enterprise..

 

  1. In Content, under Geoservices, added above WMS service with layer name: "statecapital", format: "image/png" and CRS: "EPSG:3857".
  2. In Browser, under Legends, created one legend using above added geoservice.
  3. In Browser, under Map Views, created one map view using above created legend, EPSG:3857 and bouding box.
  4. Created one role and user with this role. 
  5. In Browser, under M.Apps, created one app with above created role and opened this app in editor and assigned above created map view to this app.
  6. Now when i am trying to access this app, i am getting errors in browser console. (Errors mentioned in my first post)

 

Thanks,

Nitin

Technical Evangelist
Posts: 152
Registered: ‎03-03-2016

Re: Apollo WMS Service not displaying in M.app

I'll try it as soon as I can connect to another network...

Technical Evangelist
Posts: 982
Registered: ‎09-11-2015

Re: Apollo WMS Service not displaying in M.app

It works fine for me on my testing installation with version 16.5 Update 1:

1.png

 

Please check the developer tools > Network tab for any failed request.

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Staff
Posts: 8
Registered: ‎01-04-2019

Re: Apollo WMS Service not displaying in M.app

Hi Jan,

 

Json files were blocked and due to that map conents were not loading.

I have added MIME Type for this.

File Name Extension = .json

MIME Type = application/json

 

Now everything is working for me.

 

 

 

Regards,

Nitin

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.