Oracle 11g environment Issue
I have a java stored procedure loaded into Oracle 11g that reads a CLOB type, and getting a null pointer exception in one oracle 11g environment and not in another. Following is the code snippet,
    
    StringBuffer str = new StringBuffer();
    String strng;
    BufferedReader bufferRead = new BufferedReader(clb.getCharacterStream());
    while ((strng=bufferRead .readLine())!=null)
    str.append(strng);
   
I belive it has nothing todo with the code, because same code is not giving any error and working fine. Following is the version of oracle 11g in both the environments

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE	11.1.0.7.0	Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
    
can you please guide where else can i find the root cause of this issue. Is there a way to find the loaded java class versions on the database? 
Oracle 11g environment Issue
===

I have a java stored procedure loaded into Oracle 11g that reads a CLOB type, and getting a null pointer exception in one oracle 11g environment and not in another. Following is the code snippet,
    
    StringBuffer str = new StringBuffer();
    String strng;
    BufferedReader bufferRead = new BufferedReader(clb.getCharacterStream());
    while ((strng=bufferRead .readLine())!=null)
    str.append(strng);
   
I belive it has nothing todo with the code, because same code is not giving any error and working fine. Following is the version of oracle 11g in both the environments

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE	11.1.0.7.0	Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
    
can you please guide where else can i find the root cause of this issue. Is there a way to find the loaded java class versions on the database? 