Error 500 generating lyr file for a service

818
11
11-11-2010 12:25 PM
SergioGalindo
New Contributor
I'm getting this error whenever I hit the "ArcMap" link on the top of the service rest page:

Unable to create layer file for map service 'Fundamentaldata/BaseMap'


Code: 500


The other links (Explorer, JavaScript, Google Earth) are working fine.

Any idea??????

ArcGIS Server Java 9.3.1 +SP1
Windows 2008 server

Thanks in advance.
0 Kudos
11 Replies
RaviNarayanan
Esri Contributor
Can you verify if the MapService is configured with an output directory?
0 Kudos
SergioGalindo
New Contributor
Hi ravi,

Yes, the services are configured with a valid output directory (also input, jobs and cache dirs). They all work as expected except for this particular issue. I can even generate the lyr file from an ArcCatalog GIS Server connection (right click --> save lyr file).
0 Kudos
RaviNarayanan
Esri Contributor
Sergio, Are there any error messages in the tomcat log or the arcgis server logs when this failure occurs?
0 Kudos
SergioGalindo
New Contributor
tomcat log:

- El Servlet.service() para servlet catalog lanzó una excepción
com.esri.rest.HttpException: Unable to create layer file for map service 'FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500'
at com.esri.rest.mapserver.MapServerServlet.getLayerFile(Unknown Source)
at com.esri.rest.mapserver.MapServerServlet.a(Unknown Source)
at com.esri.rest.mapserver.MapServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:359)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.esri.rest.catalog.CatalogServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:359)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.esri.rest.DispatchServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.rest.security.SecurityFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.rest.filters.JSONFormatterFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.rest.filters.CacheFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.rest.filters.GZipFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.rest.filters.ErrorFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.rest.filters.TraceFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.rest.filters.CharEncodingFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
0 Kudos
SergioGalindo
New Contributor
ags log (doesn't seem to be a problem here):

<Msg time='2010-11-23T15:11:55' type='INFO3' code='4006' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' machine='bogesaagmdp' thread='6156' elapsed='0,00000'>Server Context created.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='10006' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.get_DefaultMapName' machine='bogesaagmdp' process='6900' thread='5400'>get_DefaultMapName has started.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO3' code='10007' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.get_DefaultMapName' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,00001'>get_DefaultMapName has completed.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100001' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServerInfo' machine='bogesaagmdp' process='6900' thread='5400'>String request received. Request size is 316 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='10008' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServerInfo' machine='bogesaagmdp' process='6900' thread='5400'>GetServerInfo has started.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO3' code='10009' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServerInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,01262'>GetServerInfo has completed.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100002' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServerInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,02022'>String request succesfully processed. Response size is 20610 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100001' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServiceConfigurationInfo' machine='bogesaagmdp' process='6900' thread='5400'>String request received. Request size is 286 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='10068' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServiceConfigurationInfo' machine='bogesaagmdp' process='6900' thread='5400'>GetServiceConfigurationInfo has started.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO3' code='10069' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServiceConfigurationInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,00109'>GetServiceConfigurationInfo has completed.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100002' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetServiceConfigurationInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,00193'>String request succesfully processed. Response size is 1275 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100001' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetCacheDescriptionInfo' machine='bogesaagmdp' process='6900' thread='5400'>String request received. Request size is 336 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='10064' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetCacheDescriptionInfo' machine='bogesaagmdp' process='6900' thread='5400'>GetCacheDescriptionInfo has started.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO3' code='10065' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetCacheDescriptionInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,00004'>GetCacheDescriptionInfo has completed.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100002' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetCacheDescriptionInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,00085'>String request succesfully processed. Response size is 398 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100001' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetDocumentInfo' machine='bogesaagmdp' process='6900' thread='5400'>String request received. Request size is 274 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='10000' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetDocumentInfo' machine='bogesaagmdp' process='6900' thread='5400'>GetDocumentInfo has started.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO3' code='10001' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetDocumentInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,00011'>GetDocumentInfo has completed.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO2' code='100002' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' methodName='MapServer.GetDocumentInfo' machine='bogesaagmdp' process='6900' thread='5400' elapsed='0,00097'>String request succesfully processed. Response size is 1335 characters.</Msg>
<Msg time='2010-11-23T15:11:55' type='INFO3' code='4007' target='FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500.MapServer' machine='bogesaagmdp' thread='2368' elapsed='0,15600'>Server Context released.</Msg>
<Msg time='2010-11-23T15:11:57' type='INFO3' code='4000' target='Engine.Engine' thread='5692'>Container 5972 is successfully created on machine bogesaagmdp.</Msg>
<Msg time='2010-11-23T15:11:57' type='INFO3' code='4001' target='Engine.Engine' thread='5692'>Thread 6176 is successfully created on container 5972 of machine bogesaagmdp.</Msg>
<Msg time='2010-11-23T15:11:57' type='INFO3' code='4004' target='Engine.Engine' machine='bogesaagmdp' thread='5692' elapsed='0,29700'>Server Object instance is successfully created on machine bogesaagmdp.</Msg>
<Msg time='2010-11-23T15:11:57' type='INFO3' code='4006' target='Engine.Engine' machine='bogesaagmdp' thread='5692' elapsed='0,29700'>Server Context created.</Msg>
<Msg time='2010-11-23T15:11:57' type='INFO3' code='4007' target='Engine.Engine' machine='bogesaagmdp' thread='3892' elapsed='0,07800'>Server Context released.</Msg>
<Msg time='2010-11-23T15:11:57' type='INFO3' code='4002' target='Engine.Engine' thread='3892'>Container 5972 of machine bogesaagmdp is removed.</Msg>
<Msg time='2010-11-23T15:11:57' type='INFO3' code='4003' target='Engine.Engine' thread='3892'>Thread 6176 removed from process 5972 of machine bogesaagmdp.</Msg>

Thanks,
0 Kudos
RaviNarayanan
Esri Contributor
By any chance, is there a space in the service name?
'FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF0 0500'
0 Kudos
SergioGalindo
New Contributor
Well, that's weird. The service name actually doesn't have any blank spaces:

FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500

And this is actual the url behind the "ArcMap":

http://bogesaagmdp:8399/arcgis/rest/services/FUNDAMENTALDATA/GovermentInstitution.Institution_Instit...

Although, as you pointed, they appear with that blank space in the logs. I have no idea.
0 Kudos
SergioGalindo
New Contributor
Well, it's weird but that happened when I pasted the log contents here.

In the actual log files it appears correctly (i mean without the space):

FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500

Thanks,
0 Kudos
SergioGalindo
New Contributor
FUNDAMENTALDATA/GovermentInstitution.Institution_Institucion_ECPF00500


hehe,

it just happened again
0 Kudos