java.lang.NullPointerException

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.

  • 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.
    via by Andy Wilkinson,
  • 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.
    via by Andy Wilkinson,
    • 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)
    No Bugmate found.