Mantis - Resin
Viewing Issue Advanced Details
111 minor always 04-20-05 00:00 03-30-06 14:45
cbraunstein  
ferg  
normal  
closed  
3.0.12 fixed  
none    
none 3.0.18  
0000111: CachedRowSet does not work with JDK 1.5
RSN-102
On JDK 1.4.2 with the rowset 1.0.1 jar the following JSP runs fine:

<%@ page language="java" import="com.sun.rowset.*"%>
<%
    CachedRowSetImpl crs = new CachedRowSetImpl();
%>

Using JDK 1.5 that JSP gives the following error:

java.lang.NullPointerException
    at java.util.Properties$LineReader.readLine(Properties.java:365)
    at java.util.Properties.load(Properties.java:293)
    at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:96)
    at com.sun.rowset.JdbcRowSetResourceBundle.<init>(JdbcRowSetResourceBundle.java:102)
    at com.sun.rowset.JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(JdbcRowSetResourceBundle.java:119)
    at com.sun.rowset.CachedRowSetImpl.<init>(CachedRowSetImpl.java:336)
    at _jsp._test__jsp._jspService(test.jsp:3)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:63)
    at com.caucho.jsp.Page.pageservice(Page.java:570)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:341)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:467)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
    at java.lang.Thread.run(Thread.java:595)
JDK 1.4.2_08 VS JDK 1.5.0_02 on Win 2003

Notes
(0000127)
ferg   
04-20-05 00:00   
At first glance, this looks like a JDK issue (though classloading is possible). That example works on a test.jsp on Unix.
(0000128)
cbraunstein   
04-20-05 00:00   
Any progress on this issue?
(0000129)
cbraunstein   
04-20-05 00:00   
Doesn't work in sun JDK 5_04 either nor in JRockit 5_03
(0000130)
cbraunstein   
04-20-05 00:00   
The problem is JDK install location with spaces in them. Since JDK5 defaults to c:\program files\java - it causes the error. Install in a directory without spaces and it fixes it.
(0000976)
ferg   
03-30-06 14:45   
fixed together with the spaces issues on windows.