java.lang.NullPointerException: Ouch! Argument cannot be null: val

Stack Overflow | Amit Sharma | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Apache Ignite not updating cache with null value

    Stack Overflow | 5 months ago | Amit Sharma
    java.lang.NullPointerException: Ouch! Argument cannot be null: val

    Root Cause Analysis

    1. java.lang.NullPointerException

      Ouch! Argument cannot be null: val

      at org.apache.ignite.internal.util.GridArgumentCheck.notNull()
    2. org.apache.ignite
      SpringCache.put
      1. org.apache.ignite.internal.util.GridArgumentCheck.notNull(GridArgumentCheck.java:48)
      2. org.apache.ignite.internal.util.GridArgumentCheck.notNull(GridArgumentCheck.java:61)
      3. org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:481)
      4. org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2541)
      5. org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:460)
      6. org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2215)
      7. org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1214)
      8. org.apache.ignite.cache.spring.SpringCache.put(SpringCache.java:71)
      8 frames
    3. Spring Context
      CacheInterceptor.invoke
      1. org.springframework.cache.interceptor.AbstractCacheInvoker.doPut(AbstractCacheInvoker.java:82)
      2. org.springframework.cache.interceptor.CacheAspectSupport$CachePutRequest.apply(CacheAspectSupport.java:626)
      3. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:340)
      4. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:281)
      5. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
      5 frames
    4. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      2 frames
    5. com.sun.proxy
      $Proxy171.getChannelByCode
      1. com.sun.proxy.$Proxy171.getChannelByCode(Unknown Source)
      1 frame
    6. in.til.tp
      BadgeController.getUserBadges
      1. in.til.tp.commonpage.controller.BadgeController.getUserBadges(BadgeController.java:497)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames