java.lang.NullPointerException: null

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Apache syncope demo
    via by Jesal Dosa,
  • Apache syncope demo
    via by Jesal Dosa,
  • Apache syncope demo
    via by Unknown author,
  • To reproduce: Call the following proxied method: {code} @Caching public void someMethod(final String argument) { .... } {code} This will cause the following exception: {code} java.lang.NullPointerException: null at java.util.ArrayList.addAll(ArrayList.java:577) ~[na:1.8.0_20] at org.springframework.cache.annotation.SpringCacheAnnotationParser.parseCacheAnnotations(SpringCacheAnnotationParser.java:89) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.SpringCacheAnnotationParser.parseCacheAnnotations(SpringCacheAnnotationParser.java:58) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.AnnotationCacheOperationSource$2.getCacheOperations(AnnotationCacheOperationSource.java:124) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.AnnotationCacheOperationSource.determineCacheOperations(AnnotationCacheOperationSource.java:142) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.AnnotationCacheOperationSource.findCacheOperations(AnnotationCacheOperationSource.java:121) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.interceptor.AbstractFallbackCacheOperationSource.computeCacheOperations(AbstractFallbackCacheOperationSource.java:136) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.interceptor.AbstractFallbackCacheOperationSource.getCacheOperations(AbstractFallbackCacheOperationSource.java:97) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.interceptor.CacheOperationSourcePointcut.matches(CacheOperationSourcePointcut.java:39) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.aop.support.MethodMatchers.matches(MethodMatchers.java:94) ~[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE] {code} Although you may be thinking that including an empty @Caching annotation is a corner-case, in our particular use-case, it's required, as we're calling a custom implementation of org.springframework.cache.interceptor.CacheInterceptor. We are doing this because the @CacheEvict funtionality does not allow use to easily purge individual keys based on method args, etc...
    via by Lev Bornovalov,
  • To reproduce: Call the following proxied method: {code} @Caching public void someMethod(final String argument) { .... } {code} This will cause the following exception: {code} java.lang.NullPointerException: null at java.util.ArrayList.addAll(ArrayList.java:577) ~[na:1.8.0_20] at org.springframework.cache.annotation.SpringCacheAnnotationParser.parseCacheAnnotations(SpringCacheAnnotationParser.java:89) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.SpringCacheAnnotationParser.parseCacheAnnotations(SpringCacheAnnotationParser.java:58) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.AnnotationCacheOperationSource$2.getCacheOperations(AnnotationCacheOperationSource.java:124) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.AnnotationCacheOperationSource.determineCacheOperations(AnnotationCacheOperationSource.java:142) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.annotation.AnnotationCacheOperationSource.findCacheOperations(AnnotationCacheOperationSource.java:121) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.interceptor.AbstractFallbackCacheOperationSource.computeCacheOperations(AbstractFallbackCacheOperationSource.java:136) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.interceptor.AbstractFallbackCacheOperationSource.getCacheOperations(AbstractFallbackCacheOperationSource.java:97) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.cache.interceptor.CacheOperationSourcePointcut.matches(CacheOperationSourcePointcut.java:39) ~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.aop.support.MethodMatchers.matches(MethodMatchers.java:94) ~[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE] {code} Although you may be thinking that including an empty @Caching annotation is a corner-case, in our particular use-case, it's required, as we're calling a custom implementation of org.springframework.cache.interceptor.CacheInterceptor. We are doing this because the @CacheEvict funtionality does not allow use to easily purge individual keys based on method args, etc...
    via by Lev Bornovalov,
  • GitHub comment 1089#272332159
    via GitHub by anandsit
    ,
    • java.lang.NullPointerException: null at java.util.ArrayList.addAll(ArrayList.java:472)[na:1.6.0_26] at org.apache.syncope.console.pages.panels.ResourceMappingPanel.getResourceSchemaNames(ResourceMappingPanel.java:405)[ResourceMappingPanel.class:na] at org.apache.syncope.console.pages.panels.ResourceMappingPanel.initResourceSchemaNames(ResourceMappingPanel.java:383)[ResourceMappingPanel.class:na] at org.apache.syncope.console.pages.panels.ResourceMappingPanel.<init>(ResourceMappingPanel.java:150)[ResourceMappingPanel.class:na] at org.apache.syncope.console.pages.ResourceModalPage.<init>(ResourceModalPage.java:66)[ResourceModalPage.class:na] at org.apache.syncope.console.pages.Resources$1$1$1.createPage(Resources.java:151)[Resources$1$1$1.class:na] at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.createPage(ModalWindow.java:807)[wicket-extensions-1.5.8.jar:1.5.8] at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.getWindowOpenJavaScript(ModalWindow.java:1054)[wicket-extensions-1.5.8.jar:1.5.8] at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.show(ModalWindow.java:357)[wicket-extensions-1.5.8.jar:1.5.8] at org.apache.syncope.console.pages.Resources$1$1.onClick(Resources.java:157)[Resources$1$1.class:na] at org.apache.syncope.console.wicket.markup.html.form.ActionLinksPanel$3.onClick(ActionLinksPanel.java:119)[ActionLinksPanel$3.class:na] at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:86)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:184)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:369)[wicket-core-1.5.8.jar:1.5.8] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_26] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_26] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_26] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_26] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:255)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)[wicket-request-1.5.8.jar:1.5.8] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)[wicket-core-1.5.8.jar:1.5.8] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)[wicket-core-1.5.8.jar:1.5.8] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.23] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.23] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)[catalina.jar:7.0.23] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)[catalina.jar:7.0.23] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[catalina.jar:7.0.23] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[catalina.jar:7.0.23] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[catalina.jar:7.0.23] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)[catalina.jar:7.0.23] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.23] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[catalina.jar:7.0.23] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)[tomcat-coyote.jar:7.0.23] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)[tomcat-coyote.jar:7.0.23] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)[tomcat-coyote.jar:7.0.23] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_26] at java.lang.Thread.run(Thread.java:662)[na:1.6.0_26]

    Users with the same issue

    chenjunjun
    chenjunjun1 times, last one,
    tvrmsmith
    tvrmsmith1 times, last one,
    marcbouvierdav
    marcbouvierdav1 times, last one,
    Indri Yunita
    Indri Yunita18 times, last one,
    ajinkya_w
    ajinkya_w2 times, last one,
    13 more bugmates