archiver-appliance / epicsarchiverap

This is an implementation of an archiver for EPICS control systems that aims to archive millions of PVs.
Other
40 stars 39 forks source link

archiver appliance run for a while will give an error #72

Open alonelytree opened 5 years ago

alonelytree commented 5 years ago

Epics archiver appliance run for a while will give an error,As follows:

**Dec 10, 2018 10:41:07 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [BPLServlet] in context with path [/mgmt] threw exception
java.io.IOException: java.io.IOException: java.lang.NullPointerException
        at org.epics.archiverappliance.common.BasicDispatcher.dispatch(BasicDispatcher.java:102)
        at org.epics.archiverappliance.mgmt.BPLServlet.doGet(BPLServlet.java:189)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)**

At the same time installed two,same configuration。The other one is still running normally,this one will report errors at intervals.

slacmshankar commented 5 years ago

BasicDispatcher.java:102 is where we catch an exception; log it and then rethrow it. If you could attach the original NullPointerException from the logs; that would help greatly. logger.error(e.getMessage(), e); throw new IOException(e);