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.

  • I wrote [a new test case in trapperkeeper-filesystem-watcher|https://github.com/KevinCorcoran/trapperkeeper-filesystem-watcher/commit/53f66ce4df19a47c1c51da30d31899cdf4c934e0] which creates 1000 files in a watched directory. This triggers an {{OVERFLOW}} event which returns {{nil}} for {{.context}}. This causes the following error: {code} 2016-07-28 15:21:13,266 ERROR [p.t.s.s.scheduler-core] scheduled job threw error java.lang.NullPointerException: null at sun.nio.fs.UnixPath.toUnixPath(UnixPath.java:198) ~[na:1.8.0_40] at sun.nio.fs.UnixPath.resolve(UnixPath.java:397) ~[na:1.8.0_40] at sun.nio.fs.UnixPath.resolve(UnixPath.java:43) ~[na:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_40] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_40] at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[clojure-1.7.0.jar:na] at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[clojure-1.7.0.jar:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21819$clojurize__21824$fn__21825.invoke(filesystem_watch_core.clj:34) ~[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21819$clojurize__21824.invoke(filesystem_watch_core.clj:29) ~[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21906$handle_watch_events_BANG___21913$fn__21914$fn__21919.invoke(filesystem_watch_core.clj:130) ~[na:na] at clojure.core$map$fn__4553.invoke(core.clj:2624) ~[clojure-1.7.0.jar:na] at clojure.lang.LazySeq.sval(LazySeq.java:40) ~[clojure-1.7.0.jar:na] at clojure.lang.LazySeq.seq(LazySeq.java:49) ~[clojure-1.7.0.jar:na] at clojure.lang.RT.seq(RT.java:507) ~[clojure-1.7.0.jar:na] at clojure.core$seq__4128.invoke(core.clj:137) ~[clojure-1.7.0.jar:na] at clojure.core$empty_QMARK_.invoke(core.clj:5948) ~[clojure-1.7.0.jar:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21906$handle_watch_events_BANG___21913$fn__21914.invoke(filesystem_watch_core.clj:133) ~[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21906$handle_watch_events_BANG___21913.invoke(filesystem_watch_core.clj:97) ~[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$handle_events_and_reschedule_BANG_.invoke(filesystem_watch_core.clj:146) ~[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$handle_events_and_reschedule_BANG_$fn__21960.invoke(filesystem_watch_core.clj:148) ~[na:na] at puppetlabs.trapperkeeper.services.scheduler.scheduler_core$wrap_with_error_logging$fn__7163.invoke(scheduler_core.clj:16) ~[na:na] at clojure.lang.AFn.applyToHelper(AFn.java:152) [clojure-1.7.0.jar:na] at clojure.lang.AFn.applyTo(AFn.java:144) [clojure-1.7.0.jar:na] at clojure.core$apply.invoke(core.clj:630) [clojure-1.7.0.jar:na] at overtone.at_at$wrap_fun_to_remove_itself$fn__7086.doInvoke(at_at.clj:103) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:397) [clojure-1.7.0.jar:na] at clojure.lang.AFn.call(AFn.java:18) [clojure-1.7.0.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_40] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_40] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_40] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40] {code}
    via by Kevin Corcoran,
  • Spring Social Facebook Tuturial error
    via Stack Overflow by CESCO
    ,
  • http://www.technicalkeeda.com/spring/spring-social-facebook-integration-example This example not working in the latest version. The issue is that Facebook instance is not created in the controller. Exception which I got is: When I try the same code its works fine in 1.1.3 version. I have reported this problem in stackoverflow with my code what I have tried: http://stackoverflow.com/questions/32547998/facebook-instance-not-getting-created-in-spring-social {code:java} java.lang.NullPointerException: null 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:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at $Proxy41.isAuthorized(Unknown Source) at net.javabeat.spring.social.web.HelloFBController.helloFacebook(HelloFBController.java:25) 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:601) {code}
    via by Krishna Srinivasan,
  • http://www.technicalkeeda.com/spring/spring-social-facebook-integration-example This example not working in the latest version. The issue is that Facebook instance is not created in the controller. Exception which I got is: When I try the same code its works fine in 1.1.3 version. I have reported this problem in stackoverflow with my code what I have tried: http://stackoverflow.com/questions/32547998/facebook-instance-not-getting-created-in-spring-social {code:java} java.lang.NullPointerException: null 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:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at $Proxy41.isAuthorized(Unknown Source) at net.javabeat.spring.social.web.HelloFBController.helloFacebook(HelloFBController.java:25) 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:601) {code}
    via by Krishna Srinivasan,
  • GitHub comment 60#253070785
    via GitHub by hdeadman
    ,
    • java.lang.NullPointerException: null at sun.nio.fs.UnixPath.toUnixPath(UnixPath.java:198)[na:1.8.0_40] at sun.nio.fs.UnixPath.resolve(UnixPath.java:397)[na:1.8.0_40] at sun.nio.fs.UnixPath.resolve(UnixPath.java:43)[na:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_40] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_40] at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)[clojure-1.7.0.jar:na] at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)[clojure-1.7.0.jar:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21819$clojurize__21824$fn__21825.invoke(filesystem_watch_core.clj:34)[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21819$clojurize__21824.invoke(filesystem_watch_core.clj:29)[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21906$handle_watch_events_BANG___21913$fn__21914$fn__21919.invoke(filesystem_watch_core.clj:130)[na:na] at clojure.core$map$fn__4553.invoke(core.clj:2624)[clojure-1.7.0.jar:na] at clojure.lang.LazySeq.sval(LazySeq.java:40)[clojure-1.7.0.jar:na] at clojure.lang.LazySeq.seq(LazySeq.java:49)[clojure-1.7.0.jar:na] at clojure.lang.RT.seq(RT.java:507)[clojure-1.7.0.jar:na] at clojure.core$seq__4128.invoke(core.clj:137)[clojure-1.7.0.jar:na] at clojure.core$empty_QMARK_.invoke(core.clj:5948)[clojure-1.7.0.jar:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21906$handle_watch_events_BANG___21913$fn__21914.invoke(filesystem_watch_core.clj:133)[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$eval21906$handle_watch_events_BANG___21913.invoke(filesystem_watch_core.clj:97)[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$handle_events_and_reschedule_BANG_.invoke(filesystem_watch_core.clj:146)[na:na] at puppetlabs.trapperkeeper.services.watcher.filesystem_watch_core$handle_events_and_reschedule_BANG_$fn__21960.invoke(filesystem_watch_core.clj:148)[na:na] at puppetlabs.trapperkeeper.services.scheduler.scheduler_core$wrap_with_error_logging$fn__7163.invoke(scheduler_core.clj:16)[na:na] at clojure.lang.AFn.applyToHelper(AFn.java:152)[clojure-1.7.0.jar:na] at clojure.lang.AFn.applyTo(AFn.java:144)[clojure-1.7.0.jar:na] at clojure.core$apply.invoke(core.clj:630)[clojure-1.7.0.jar:na] at overtone.at_at$wrap_fun_to_remove_itself$fn__7086.doInvoke(at_at.clj:103)[na:na] at clojure.lang.RestFn.invoke(RestFn.java:397)[clojure-1.7.0.jar:na] at clojure.lang.AFn.call(AFn.java:18)[clojure-1.7.0.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_40] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_40] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_40] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_40]

    Users with the same issue

    derprogger
    14 times, last one,
    qavid
    2 times, last one,
    Nikolay Rybak
    11 times, last one,
    Unknown visitor1 times, last one,
    Riyaz
    1 times, last one,
    20 more bugmates