I'm using jboss3.2.3
I defined a class:
import com.sun.rowset.*;
import java.sql.*;
public class RowSetAdaptor extends java.lang.Object implements java.io.Serializable
{
private String s;
private CachedRowSetImpl rowset;
public RowSetAdaptor()
{
try{
rowset = new CachedRowSetImpl();
}catch(Exception e){System.out.println("constructor:"+e);}
}
I put this class file in a jar and put this jar in the C:\jboss-3.2.3\server\default\lib
in my code,I use this class:
RowSetAdaptor rs = new RowSetAdaptor();
or
RowSetAdaptor rs = null;
rs = new RowSetAdaptor();
the first time after start jboss,I get error:
constructor:java.lang.NullPointerException
but this only happen on first time,if I run it again,no errors,why?looks like something not been populate in the memory for the first time.by the com.sun.rowset.* classes are in th rowset.jar which is also in C:\jboss-3.2.3\server\default\lib folder
-
please check my code (2 messages)
- Posted by: zhang zhang
- Posted on: June 04 2004 15:17 EDT
Threaded Messages (2)
- please check my code by Martin Straus on June 27 2004 23:33 EDT
- please check my code by parthi subramaniam on August 12 2004 05:34 EDT
-
please check my code[ Go to top ]
- Posted by: Martin Straus
- Posted on: June 27 2004 23:33 EDT
- in response to zhang zhang
Please post the hole stack trace. The exact class and line where the exception is thrown should be specified there.
Regards,
Martin -
please check my code[ Go to top ]
- Posted by: parthi subramaniam
- Posted on: August 12 2004 05:34 EDT
- in response to Martin Straus
please check this link
http://forums.java.sun.com/thread.jsp?thread=444943&forum=48&message=2622751
its a bug in Sun's implementation,
hope this helps,
cheers,
parthi