Anupam,
I dont know the code enough to see errors there.
I do know the logging was way to low to get anything useful.
You should configure the Polciy Server to
components: AgentFunc, Server, IsProtected, Login_Logout, IsAuthorized, Tunnel_Service, JavaAPI, Directory_Access, ODBC, LDAP, IdentityMinder, TXM, Fed_Server, DLP
data: Date, PreciseTime, ExecutionTime, Pid, Tid, SrcFile, Function, TransactionID, AgentName, Resource, User, Group, Realm, Domain, Directory, Policy, AgentType, Rule, ErrorValue, ReturnValue, ErrorString, IPAddr, IPPort, Result, Returns, CallDetail, SearchKey, Query, Expression, ObjectClass, DomainOID, ObjectOID, Property, AuthStatus, AuthReason, AuthScheme, CertSerial, SubjectDN, IssuerDN, SessionSpec, SessionID, CertDistPt, UserDN, Action, RealmOID, State, ClusterID, HandleCount, FreeHandleCount, BusyHandleCount, ResponseTime, Throughput, MaxThroughput, MinThroughput, Threshold, TransactionName, HexadecimalData, ActiveExpr, RequestIPAddr, CacheHits, CacheSize, RefCount, Message, Data
version: 1.1
unless you know something can be removed.
The refrences I gave you should enable that, as should an xls in the SM forum
You neeed to capture in the logs. if hte logs are configured right it will tell you the issue.