Skip to content

[BUG] [Singleton Service bundle/s3 lite] NullPointerException occurs in scheduled task #346

@nannany00

Description

@nannany00

Describe the bug
In Singleton Service lite s3 version, to start the build, no error/impact for API request, but NullPointerException occurs in console.

To Reproduce
Steps to reproduce the behavior:

  1. Start Singleton Service lite s3 build
  2. Go to the console, the error will occur as below:
2019-12-23 11:12:00,627 [VIP] [i18nManager] [ERROR] [scheduling-1]  org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler.handleError(TaskUtils.java:96) - Unexpected error occurred in scheduled task.
java.lang.NullPointerException: null
        at com.vmware.vip.common.cache.TranslationCache3.getKeys(TranslationCache3.java:115) ~[vip-common-0.1.0.jar!/:?]
        at com.vmware.vip.core.messages.service.mt.SourceToLatestCron.syncBkSourceToRemote(SourceToLatestCron.java:51) ~[md-service-i18n-l3-0.1.0.jar!/:0.1.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231]
        at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
        at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) [spring-context-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_231]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_231]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]

Expected behavior
No Exception happened,

Screenshots
NA

Desktop (please complete the following information):
NA

Additional context
NA

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions