> When i try to authenticate (accessing Services Management application) I get > the following exception...
We've not seen constraint errors using Inspektr to log audit data to Oracle. > Debugging the server shows that the method resolveFromInternal(final > JoinPoint joinPoint) of class > org.jasig.cas.audit.spi.TicketOrCredentialBasedAuditablePrincipalResolver > returns the following values to be set into AUD_USER column: > 1st pass: arg1 is Credentials, return is arg1.toString(); > 2nd pass: arg1 is TGT, return is > TGT.getAuthentication().getPrincipal().getId(); > 3rd pass: arg1 is ST, call on line 50 of > TicketOrCredentialBasedAuditablePrincipalResolver returns null and hence the > method returns an empty string. The methods annotated with @Auditable on CentralAuthenticationServiceImpl will all cause TicketOrCredentialBasedAuditablePrincipalResolver to fire. It's pretty easy to imagine a case where the given string is not a valid ticket, causing an emtpy string to be returned. But that shouldn't cause a NULL to be inserted into your DB under normal circumstances. Having said that I believe there is a Hibernate setting somewhere to the effect of "treat empty string as null" that you might look to disable and see if that helps. M -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
