File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cached RowSet in java Null Pointer Exception

 
syam ganna
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I used CachedRowSet by downloading rowset.jar from sun's site. when i instantiated CachedRowSet like
CachedRowSet cachedRowSet = new CachedRowSetImpl();
i am getting null pointer exception at there, control is not going after. its moving catch block and printing the exception as null.
please suggest me..
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there ant printStackTrace available
 
syam ganna
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shailesh,
Here i am sending the PrintStackTrace...

java.lang.NullPointerException

void java.io.Reader.<init>(java.lang.Object)

Reader.java:64

void java.io.InputStreamReader.<init>(java.io.InputStream, sun.io.ByteToCharConverter)

InputStreamReader.java:89

void java.io.InputStreamReader.<init>(java.io.InputStream, java.lang.String)

InputStreamReader.java:78

void java.util.Properties.load(java.io.InputStream)

Properties.java:189

void java.util.PropertyResourceBundle.<init>(java.io.InputStream)

PropertyResourceBundle.java:98

void com.sun.rowset.JdbcRowSetResourceBundle.<init>()

com.sun.rowset.JdbcRowSetResourceBundle com.sun.rowset.JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle()

void com.sun.rowset.CachedRowSetImpl.<init>()

void _CachedRS._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

CachedRS.jsp:61

void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)

HttpJsp.java:139

void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)

JspPageTable.java:317

void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

JspServlet.java:465

void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

JspServlet.java:379

void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)

HttpServlet.java:853

void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)

ServletRequestDispatcher.java:721

void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)

ServletRequestDispatcher.java:306

boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)

HttpRequestHandler.java:767

void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)

HttpRequestHandler.java:259

void com.evermind.server.http.HttpRequestHandler.run()

HttpRequestHandler.java:106

void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()

PooledExecutor.java:803

void java.lang.Thread.run()

Thread.java:484
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On one website, I have seen same errror and it was suggested to rename the property file of resource bundle inside the rowset.jar

eg: you have
RowSetResourceBundle.properties
rename it to RowSetResourceBundle_IN.properties


use winrar to open your jar files (Just because I like it )
[ November 04, 2004: Message edited by: Shailesh Chandra ]
 
syam ganna
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shailesh,
Still getting the same problem, even after renaming ResourceBundle.properties file also.
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems there is some problem with rowset.jar or something is missing in implementation.

I am still using old rowset.jar taht was I think first release

even now package structure is changed
I use to import sun.jdbc.rowset.CachedRowSet


any way visit the URL here might be you get anything


thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic