NullPointerException when registering libraries
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
Stacktrace is displayed when "Register" is clicked:
Error: java.lang.NullPointerException at net.sf.basedb.reggie.servlet.LibPrepServlet.doPost(LibPrepServlet.java:816) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ....
Investigations of actual data files shows that the names in the "Library name" column in the Qubit file doesn't match the library names in the Caliper Well table file. The reason for the mismatch in this case is that the Qubit file was saved with UTF-7 codec which messed up some underscore characters in the names of external samples (the underscore was replaced with
The name mismatch caused the registration wizard to not find the error messages for missing Qubit concentration. Instead it proceeded with the calculations with a
NullPointerException as the result.
The problem was fixed by converting the Qubit file to UTF-8 format, but the wizard should also be updated to display a more meaningful error message.