java.lang.NullPointerException

Spring JIRA | Andy Wilkinson | 1 year ago
  1. 0

    If {{PubSubResubscribeTests}} or {{PubSubTests}} run before another test that's instantiated {{RedisTestProfileValueSource}} they fail with a {{NullPointerException}}: {noformat} java.lang.NullPointerException at org.springframework.data.redis.RedisTestProfileValueSource.matches(RedisTestProfileValueSource.java:112) at org.springframework.data.redis.listener.PubSubResubscribeTests.shouldRun(PubSubResubscribeTests.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) (31 more lines...) {noformat} And: {noformat} java.lang.NullPointerException at org.springframework.data.redis.RedisTestProfileValueSource.matches(RedisTestProfileValueSource.java:112) at org.springframework.data.redis.listener.PubSubTests.shouldRun(PubSubTests.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) (31 more lines...) {noformat} You can recreate the problem by running either of the two test classes on their own in your IDE. I just saw the failure trying to build Spring IO Platform 2.0 RC1 (which is using Spring Data Redis 1.6.0.RELEASE). I'd appreciate a backport of any fix you make to all maintained branches as it's a huge pain to have these two tests be the only two that fail among the 10000s of tests that the Platform runs to verify compatibility.

    Spring JIRA | 1 year ago | Andy Wilkinson
    java.lang.NullPointerException
  2. 0

    If {{PubSubResubscribeTests}} or {{PubSubTests}} run before another test that's instantiated {{RedisTestProfileValueSource}} they fail with a {{NullPointerException}}: {noformat} java.lang.NullPointerException at org.springframework.data.redis.RedisTestProfileValueSource.matches(RedisTestProfileValueSource.java:112) at org.springframework.data.redis.listener.PubSubResubscribeTests.shouldRun(PubSubResubscribeTests.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) (31 more lines...) {noformat} And: {noformat} java.lang.NullPointerException at org.springframework.data.redis.RedisTestProfileValueSource.matches(RedisTestProfileValueSource.java:112) at org.springframework.data.redis.listener.PubSubTests.shouldRun(PubSubTests.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) (31 more lines...) {noformat} You can recreate the problem by running either of the two test classes on their own in your IDE. I just saw the failure trying to build Spring IO Platform 2.0 RC1 (which is using Spring Data Redis 1.6.0.RELEASE). I'd appreciate a backport of any fix you make to all maintained branches as it's a huge pain to have these two tests be the only two that fail among the 10000s of tests that the Platform runs to verify compatibility.

    Spring JIRA | 1 year ago | Andy Wilkinson
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.springframework.data.redis.RedisTestProfileValueSource.matches()
    2. Spring Data Redis
      PubSubTests.shouldRun
      1. org.springframework.data.redis.RedisTestProfileValueSource.matches(RedisTestProfileValueSource.java:112)
      2. org.springframework.data.redis.listener.PubSubTests.shouldRun(PubSubTests.java:78)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames