HTTP Status 500 – Internal Server Error


Type Exception Report

Message java.io.EOFException: Reading /ias_raid/projects/THREDDS/thredds/cache/cdm/%2Fprojects%2FTHREDDS%2Fthredds%2Fpublic%2FBWW_WRF%2FSDM03%2F2017-08-05_00%2FCOMPLETE at 0 file length = 0

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.io.IOException: java.io.EOFException: Reading /ias_raid/projects/THREDDS/thredds/cache/cdm/%2Fprojects%2FTHREDDS%2Fthredds%2Fpublic%2FBWW_WRF%2FSDM03%2F2017-08-05_00%2FCOMPLETE at 0 file length = 0
	ucar.nc2.NetcdfFiles.open(NetcdfFiles.java:279)
	ucar.nc2.dataset.NetcdfDatasets.openProtocolOrFile(NetcdfDatasets.java:455)
	ucar.nc2.dataset.NetcdfDatasets.openFile(NetcdfDatasets.java:347)
	ucar.nc2.dataset.NetcdfDatasets$StandardFileFactory.open(NetcdfDatasets.java:38)
	ucar.nc2.dataset.NetcdfDatasets$StandardFileFactory.open(NetcdfDatasets.java:35)
	ucar.nc2.util.cache.FileCache.acquire(FileCache.java:267)
	ucar.nc2.dataset.NetcdfDatasets.openOrAcquireFile(NetcdfDatasets.java:409)
	ucar.nc2.dataset.NetcdfDatasets.acquireFile(NetcdfDatasets.java:386)
	ucar.nc2.dataset.NetcdfDatasets.acquireFile(NetcdfDatasets.java:361)
	thredds.core.DatasetManager.openNetcdfFile(DatasetManager.java:250)
	thredds.core.TdsRequestedDataset.openAsNetcdfFile(TdsRequestedDataset.java:166)
	thredds.core.TdsRequestedDataset.getNetcdfFile(TdsRequestedDataset.java:89)
	thredds.server.wms.ThreddsWmsServlet.dispatchWmsRequest(ThreddsWmsServlet.java:87)
	uk.ac.rdg.resc.edal.wms.WmsServlet.doGet(WmsServlet.java:303)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
	thredds.servlet.filter.RequestBracketingLogMessageFilter.doFilter(RequestBracketingLogMessageFilter.java:50)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	thredds.servlet.filter.RequestQueryFilter.doFilter(RequestQueryFilter.java:90)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	thredds.servlet.filter.HttpHeadFilter.doFilter(HttpHeadFilter.java:47)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
	org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)

Root Cause

java.io.EOFException: Reading /ias_raid/projects/THREDDS/thredds/cache/cdm/%2Fprojects%2FTHREDDS%2Fthredds%2Fpublic%2FBWW_WRF%2FSDM03%2F2017-08-05_00%2FCOMPLETE at 0 file length = 0
	ucar.unidata.io.RandomAccessFile.readFully(RandomAccessFile.java:826)
	ucar.unidata.io.RandomAccessFile.readFully(RandomAccessFile.java:805)
	ucar.nc2.stream.NcStreamIosp.readAndTest(NcStreamIosp.java:200)
	ucar.nc2.stream.NcStreamIosp.isValidFile(NcStreamIosp.java:51)
	ucar.nc2.NetcdfFiles.getIosp(NetcdfFiles.java:770)
	ucar.nc2.NetcdfFiles.open(NetcdfFiles.java:736)
	ucar.nc2.NetcdfFiles.open(NetcdfFiles.java:276)
	ucar.nc2.dataset.NetcdfDatasets.openProtocolOrFile(NetcdfDatasets.java:455)
	ucar.nc2.dataset.NetcdfDatasets.openFile(NetcdfDatasets.java:347)
	ucar.nc2.dataset.NetcdfDatasets$StandardFileFactory.open(NetcdfDatasets.java:38)
	ucar.nc2.dataset.NetcdfDatasets$StandardFileFactory.open(NetcdfDatasets.java:35)
	ucar.nc2.util.cache.FileCache.acquire(FileCache.java:267)
	ucar.nc2.dataset.NetcdfDatasets.openOrAcquireFile(NetcdfDatasets.java:409)
	ucar.nc2.dataset.NetcdfDatasets.acquireFile(NetcdfDatasets.java:386)
	ucar.nc2.dataset.NetcdfDatasets.acquireFile(NetcdfDatasets.java:361)
	thredds.core.DatasetManager.openNetcdfFile(DatasetManager.java:250)
	thredds.core.TdsRequestedDataset.openAsNetcdfFile(TdsRequestedDataset.java:166)
	thredds.core.TdsRequestedDataset.getNetcdfFile(TdsRequestedDataset.java:89)
	thredds.server.wms.ThreddsWmsServlet.dispatchWmsRequest(ThreddsWmsServlet.java:87)
	uk.ac.rdg.resc.edal.wms.WmsServlet.doGet(WmsServlet.java:303)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
	thredds.servlet.filter.RequestBracketingLogMessageFilter.doFilter(RequestBracketingLogMessageFilter.java:50)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	thredds.servlet.filter.RequestQueryFilter.doFilter(RequestQueryFilter.java:90)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	thredds.servlet.filter.HttpHeadFilter.doFilter(HttpHeadFilter.java:47)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
	org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/9.0.58 (Ubuntu)