Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1045 closed defect (fixed)

File list view creates an exception

Reported by: Jari Häkkinen Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.8
Component: web Version: trunk
Keywords: Cc:


When I try to view my files as ordinary user I get the below exception. File listings work as administrator.

Unexpected error
java.lang.NullPointerException on page /base2dev/filemanager/files/list_files.jsp
Version 	BASE 2.8.0pre (build #4311; schema #58)
Web server 	Apache Tomcat/6.0.16
Database Server 	MySQL 5.0.51
Database Dialect 	org.hibernate.dialect.MySQLInnoDBDialect
JDBC Driver 	com.mysql.jdbc.Driver (version 5.1)
Java runtime 	Java(TM) SE Runtime Environment (1.6.0_05-b13-120), Apple Inc.
Operating system 	Mac OS X x86_64 10.5.2
Memory 	Total: 897.9 MB
Free: 450.6 MB
Max: 981.4 MB
Browser 	Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20080404 Firefox/
Error message 	
Stack trace 	

java.lang.NullPointerException net.sf.basedb.clients.web.taglib.table.ColumnDef.doStartTag( org.apache.jsp.filemanager.files.list_005ffiles_jsp._jspService( org.apache.jasper.runtime.HttpJspBase.service( javax.servlet.http.HttpServlet.service( org.apache.jasper.servlet.JspServletWrapper.service( org.apache.jasper.servlet.JspServlet.serviceJspFile( org.apache.jasper.servlet.JspServlet.service( javax.servlet.http.HttpServlet.service( org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( org.apache.catalina.core.ApplicationFilterChain.doFilter( net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter( org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( org.apache.catalina.core.ApplicationFilterChain.doFilter( org.apache.catalina.core.StandardWrapperValve.invoke( org.apache.catalina.core.StandardContextValve.invoke( org.apache.catalina.core.StandardHostValve.invoke( org.apache.catalina.valves.ErrorReportValve.invoke( org.apache.catalina.core.StandardEngineValve.invoke( org.apache.catalina.connector.CoyoteAdapter.service( org.apache.coyote.http11.Http11Processor.process( org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process($

Attachments (1) (303.4 KB ) - added by Jari Häkkinen 16 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Nicklas Nordborg, 16 years ago

Most likely this doesn't have anything to do with which user is logged in. The code fails because there is a filter that has length > 0 but still is null... It seems a bit strange, but the code is checking two different variables. They SHOULD correlate, but obviously they don't.

So, do you have any more information about which filters are active when it fails?

This could be related to #1016 since the line were it fails was added as part of that ticket.

comment:2 by Nicklas Nordborg, 16 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

I have traced this to a possible problem for all enumerated columns that has the possibility of selecting a '-none-' value. The problem is not present in 2.7. It seems like it was introduced by [4302] when adding the "multiple" parameter to the the ColumnDef class.

comment:3 by Nicklas Nordborg, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [4326]) Fixes #1045. References #1016.

comment:4 by Jari Häkkinen, 16 years ago

The ticket is closed but I added the list java file causing the trouble (taken from my tomcat work directory).

by Jari Häkkinen, 16 years ago

Attachment: added
Note: See TracTickets for help on using tickets.