• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Cached RowSet in java Null Pointer Exception

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there ant printStackTrace available
 
syam ganna
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shailesh,
Still getting the same problem, even after renaming ResourceBundle.properties file also.
 
Shailesh Chandra
Ranch Hand
Posts: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic