#353 Internal Server Error - NHaystack on Niagara 3.5

Balazs Horanyi Tue 15 Dec 2015

I've installed NHaystack 1.2.5 on a Niagara 3.5 system. Through the station I can query points just fine. tHowever when I try o post an HTTP request to <server>/haystack, the platform application director gives:

ERROR [10:35:49 15-Dec-15 PST][web] Internal Server Error
java.lang.NullPointerException
at com.tridium.web.LoginServlet.doPost(LoginServlet.java:254)
at com.tridium.web.LoginServlet.service(LoginServlet.java:57)
at com.tridium.web.SysServlet.serviceSpecial(SysServlet.java:142)
at com.tridium.web.WebProcess.service(WebProcess.java:66)
at com.tridium.web.SysServlet.service(SysServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at com.tridium.httpd.ServiceThread.handleRequest(ServiceThread.java:283)
at com.tridium.httpd.ServiceThread.run(ServiceThread.java:85)

Am I missing any steps on the installation process for NHaystack?

Mike Jarmy Tue 15 Dec 2015

What happens if you do /haystack/ops or /haystack/about? There could be a problem with redirects not working with /haystack.

Balazs Horanyi Tue 15 Dec 2015

/haystack/ops gives

ver:"2.0"
name,summary
"about","Summary information for server"
"ops","Operations supported by this server"
"formats","Grid data formats supported by this server"
"read","Read entity records in database"
"nav","Navigate record tree"
"watchSub","Watch subscription"
"watchUnsub","Watch unsubscription"
"watchPoll","Watch poll cov or refresh"
"pointWrite","Read/write writable point priority array"
"hisRead","Read time series from historian"
"hisWrite","Write time series data to historian"
"invokeAction","Invoke action on target entity"
"extendedRead","Extended Read"
"extended","Extended Functions"

and /haystack/about gives

ver:"2.0"

productName,moduleName,productVersion,serverTime,tz,moduleUri,serverName,productUri,serverBootTime,haystackVersion,moduleVersion "Niagara AX","nhaystack","3.5.25.1",2015-12-15T11:24:22.460-08:00 Los_Angeles,"Los_Angeles",`https://bitbucket.org/jasondbriggs/nhaystack`,"Leavitt_MS",`http://www.tridium.com/`,2015-12-15T10:32:48.056-08:00 Los_Angeles,"2.0","1.2.5"

So that seems to be working ok.

Mike Jarmy Tue 15 Dec 2015

I think you are fine then. This is probably some kind of bug with redirect handling in the servlet -- I'll look into it. It should be pretty benign though.

Login or Signup to reply.