Opened 9 years ago

Closed 9 years ago

#788 closed defect (fixed)

NullPointerException when registering libraries

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: Reggie v3.4
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

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 +AF8-).

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.

Change History (2)

comment:1 by Nicklas Nordborg, 9 years ago

(In [3362]) References #788: NullPointerException when registering libraries

This fixes the NullPointerException problem. The wizard should now display an error message similar to File 'LibPlateXXX-qubit.csv': Could not find line with data for library '4409008.1.l.r.m3.c.lib' already in the file selection step.

It seems like Java has no support for UTF-7, so it would not help selecting/auto-detecting a different encoding when uploading the file.

comment:2 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.