please check my code


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
    private String s;
    private CachedRowSetImpl rowset;

    public RowSetAdaptor()

    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();
    RowSetAdaptor rs = null;
    rs = new RowSetAdaptor();

    the first time after start jboss,I get error:
    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 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.

  3. please check my code[ Go to top ]

    please check this link

    its a bug in Sun's implementation,

    hope this helps,