exception while calling PDL Object

<[email protected]> Wed, 17 Aug 2005 21:16:27 +0100
Newsgroups gmane.linux.redhat.ccm.general
Message-ID <[email protected]>

hi ,

I have made one servlet in binder Application..
following are code..

public class testServlet extends HttpServlet {
public void doGet(HttpServletRequest req,
HttpServletResponse res) throws ServletException,
IOException {
PrintWriter out =3D res.getWriter();

try=20
{
TransactionContext t =3D SessionManager.getSession().getTransactionContex=
t();
t.beginTxn();

DataCollection pub =3D SessionManager.getSession().retrieve
("com.example.binder.Binder");
out.println("chandra :->"+pub.size());
while (pub.next()) {
System.out.println(pub.get("binder_id"));
}

t.commitTxn();

}
catch (PersistenceException ss) {
out.println(ss.getMessage());

}
out.close();
When i run the servlet .it return total record 2 but when i try to print =
it using=20
while loop it give exception

this is output ....
---------------------------------
chandra :->2 null (root cause: cursor does not fetch path: binder_id)=20
----------------------------------------------------------

please help me to rectify this issue..

Thanks=20
chandra





=20


--=20
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/