Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

clob variable: java.lang.NullPointerException

 
Romeo Ranjan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

I get java.lang.NullPointerException at of my code snippet. I really dont understand because name is not null and I tried printing out. Doing some google I found this "Have you closed the result set, statement, or db connection? Don't close and then call next(), premature closing will get you that exception" The answer is "no" I am not closing any statement before the next statement. The weird thing is I used the same code for uploading another table it just worked fine. I am not sure what could be wrong..can someone please help me.

 
Fatih Keles
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Romeo,

I recall String operations for larger than 32k string in clob fails for some drivers. You can try streams for clob.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!