please check my code

Discussions

General J2EE: please check my code

  1. please check my code (2 messages)

    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

    Threaded Messages (2)

  2. please check my code[ Go to top ]

    Please post the hole stack trace. The exact class and line where the exception is thrown should be specified there.

    Regards,
    Martin
  3. please check my code[ Go to top ]

    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