Re: RE: Re: RE: Re: Re: RMI SybTimestamp Exception
"Guillaume Sauthier (OW2)" <[email protected]> Mon, 25 Jul 2011 16:12:54 +0200
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <CAG1yf3M-HafYphHBpMUAeNkg5bWONCUsywwLN26VgcBdeFpKYQ@mail.gmail.com> |
Hmmm, not sure this is something he can do: he already import java.sql.Timestamp, not the sybase's Timestamp. AFAI, the SybTimestamp class extends Timestamp and is assigned using setAccessDate(). Maybe converting the sybase's Timestamp into a standard Timestamp could do the trick: SybTimestamp st = ... Timestamp timestamp = new Timestamp(st.getTime()); timestamp.setNanos(st.getNanos()); --G 2011/7/25 <[email protected]> > So the problem comes from the timestamp object (see accessDate field in > TestBean class) which embeds a > 'com.sybase.jdbc3.tds.SybTimestamp' object. > > you might try to put a standard object in setAccessDate() method rather > than the driver specific one. > > Regards; > -- > > ---------------------------------------------------------------- > Benoit Pelletier * > **http://jonas.ow2.org* <http://jonas.ow2.org/> > Bull, Architect of an Open World TM * > **http://www.bull.com* <http://www.bull.com/> > > > > > De : <[email protected]> > A : [email protected] > Date : 07/25/2011 15:01 > Objet : [jonas] Re: RE: Re: Re: RMI SybTimestamp Exception > ------------------------------ > > > > > Find below 'getCreatedAdminUser()' Method signature. > public ArrayList<TestBean> getCreatedAdminUser(String language, String > sort, > String direction){ > > The method getCreatedAdminUser() is returning an "ArrayList<TestBean>" > where > inside the TestBean Class : > > > import java.sql.Timestamp; > > public Timestamp getAccessDate() { > return accessDate; > } > > public void setAccessDate(Timestamp accessDate) { > this. accessDate = accessDate; > } > > Note that we are running the same application using Sybase jconn2.jar JDBC > driver and we aren't facing the reported exception! > > Best Regards > >