Null pointer exception for Clock

26 views
Skip to first unread message

Vikash Chandra Ansh

unread,
Apr 5, 2022, 7:06:45 AM4/5/22
to cas-...@apereo.org
Hi All,

I am using cas version 6.3.7.4.

I am getting below exception during application startup. I am deploying my application on docker.

ERROR [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] <clock>

2022-03-30 14:48:21,909 INFO [stdout] (Log4j2-TF-13-AsyncLoggerConfig-7) java.lang.NullPointerException: clock

2022-03-30 14:48:21,909 INFO 2022-03-30 14:48:21,909 INFO

[stdout] (Log4j2-TF-13-AsyncLoggerConfig-7) [stdout]

at java.util.Objects.requireNonNull(Objects.java:246) -[?:?] (Log4j2-TF-13-AsyncLoggerConfig-7) at java.time.ZonedDateTime.now(ZonedDateTime.java:232) -[?:?]

2022-03-30 14:48:21,910 INFO [stdout] (Log4j2-TF-13-AsyncLoggerConfig-7)

org.apereo.cas.ticket.expiration. TicketGrantingTicketExpiration Policy.isExpired (TicketGrantingTicketExpirationPolicy.java:66) [cas-server-core-tickets-api

6.3.7.4.jar:6.3.7.4]

2022-03-30 14:48:21,910 INFO [stdout] (Log4j2-TF-13-AsyncLoggerConfig-7) at org.apereo.cas.ticket.Abstract Ticket.isExpired (Abstract Ticket.java:144) ~[cas

server-core-tickets-api-6.3.7.4.jar:6.3.7.4]

2022-03-30 14:48:21,910 INFO [stdout] (Log4j2-TF-13-AsyncLoggerConfig-7).

Can somebody help me with this.

Vikash Chandra Ansh

unread,
Apr 5, 2022, 7:09:58 AM4/5/22
to cas-...@apereo.org
Below is my docker file.

environment:

- T2-Europe/London

volumes:

- "/etc/localtime:/etc/localtime"

"/etc/timezone: /etc/timezone"

container_name: cas-service

Thanks & Regards
Vikash Chandra

Vikash Chandra Ansh

unread,
Apr 5, 2022, 7:10:58 AM4/5/22
to cas-...@apereo.org
Please ignore the environment parameter.It is omitted.

Olajuwon Kako

unread,
Apr 5, 2022, 7:25:39 AM4/5/22
to cas-...@apereo.org
Hi,check your server date and time.
Regards

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bdrvxjf7uPShuw0xkX_%3Dg_t9zfiASXoQjD_NvUPr7N%3DpxbVkw%40mail.gmail.com.

Vikash Chandra Ansh

unread,
Apr 5, 2022, 9:11:15 AM4/5/22
to cas-...@apereo.org
Hi Ola,

The server date and time are in sync only.

Reply all
Reply to author
Forward
0 new messages