[cas-user] DefaultTicketRegistryCleaner - NullPointerException

102 views
Skip to first unread message

Adam Stradtner

unread,
Oct 20, 2011, 5:03:05 PM10/20/11
to cas-...@lists.jasig.org
I've been looking at this issue for a while now, and can't seem to figure out what is causing it. I have a JPATicketRegistry set up, using an Oracle 11g database. That seems to be working just fine, but the tickets aren't being cleaned out. I get this error in the catalina log, am I missing something?
 
2011-10-20 16:00:20,278 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <73 tickets found to be removed.>
2011-10-20 16:00:20,286 ERROR [org.quartz.core.JobRunShell] - <Job DEFAULT.ticketRegistryCleanerJobDetail threw an unhandled Exception: >
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'clean' on target class [class org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] failed; nested exception is java.lang.NullPointerException
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.lang.NullPointerException
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:117)
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire_aroundBody6(TicketGrantingTicketImpl.java:131)
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire_aroundBody7$advice(TicketGrantingTicketImpl.java:44)
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire(TicketGrantingTicketImpl.java:1)
        at org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner.clean_aroundBody0(DefaultTicketRegistryCleaner.java:92)
        at org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner.clean_aroundBody1$advice(DefaultTicketRegistryCleaner.java:44)
        at org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner.clean(DefaultTicketRegistryCleaner.java:1)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:264)
        ... 3 more
2011-10-20 16:00:20,290 ERROR [org.quartz.core.ErrorLogger] - <Job (DEFAULT.ticketRegistryCleanerJobDetail threw an exception.>
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'clean' on target class [class org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] failed; nested exception is java.lang.NullPointerException]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'clean' on target class [class org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] failed; nested exception is java.lang.NullPointerException
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        ... 1 more
Caused by: java.lang.NullPointerException
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:117)
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire_aroundBody6(TicketGrantingTicketImpl.java:131)
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire_aroundBody7$advice(TicketGrantingTicketImpl.java:44)
        at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire(TicketGrantingTicketImpl.java:1)
        at org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner.clean_aroundBody0(DefaultTicketRegistryCleaner.java:92)
        at org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner.clean_aroundBody1$advice(DefaultTicketRegistryCleaner.java:44)
        at org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner.clean(DefaultTicketRegistryCleaner.java:1)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
        at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:264)
        ... 3 more
-- 
You are currently subscribed to cas-...@lists.jasig.org as: jasig-cas-user...@googlegroups.com
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

Marvin Addison

unread,
Oct 21, 2011, 9:11:49 AM10/21/11
to cas-...@lists.jasig.org
Here's the root cause:

> Caused by: java.lang.NullPointerException
>         at
> org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:117)

I would imagine this is a Spring wiring problem. Can you indicate the
exact version of CAS so I can correlate source line numbers?

M

Adam Stradtner

unread,
Oct 21, 2011, 1:22:39 PM10/21/11
to cas-...@lists.jasig.org
It's 3.4.10.
 
Adam

>>> Marvin Addison <marvin....@gmail.com> 10/21/2011 8:11 AM >>>

Here's the root cause:

> Caused by: java.lang.NullPointerException
>         at
> org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:117)

I would imagine this is a Spring wiring problem.  Can you indicate the
exact version of CAS so I can correlate source line numbers?

M

--
You are currently subscribed to cas-...@lists.jasig.org as: ast...@pnc.edu

To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

Scott Battaglia

unread,
Oct 21, 2011, 10:28:33 PM10/21/11
to cas-...@lists.jasig.org
It looks like that map might not be de-serialized correctly from the database. Its supposed to be stored in the DB as a LOB.


On Fri, Oct 21, 2011 at 1:22 PM, Adam Stradtner <ast...@pnc.edu> wrote:
It's 3.4.10.
 
Adam

>>> Marvin Addison <marvin....@gmail.com> 10/21/2011 8:11 AM >>>

Here's the root cause:

> Caused by: java.lang.NullPointerException
>         at
> org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:117)

I would imagine this is a Spring wiring problem.  Can you indicate the
exact version of CAS so I can correlate source line numbers?

M

--
You are currently subscribed to cas-...@lists.jasig.org as: ast...@pnc.edu

To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to cas-...@lists.jasig.org as: scott.b...@gmail.com

To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
Reply all
Reply to author
Forward
0 new messages