java.lang.NullPointerException

null

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web75

  • via Unknown by Sébastien Louvigné,
  • Stack trace

    • java.lang.NullPointerException: null at java.net.URLEncoder.encode(URLEncoder.java:204)[na:1.8.0_65] at twitter4j.HttpParameter.encode(HttpParameter.java:261)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.encodeParameters(OAuthAuthorization.java:411)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.encodeParameters(OAuthAuthorization.java:394)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.normalizeRequestParameters(OAuthAuthorization.java:378)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.generateAuthorizationHeader(OAuthAuthorization.java:225)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.generateAuthorizationHeader(OAuthAuthorization.java:277)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.getAuthorizationHeader(OAuthAuthorization.java:66)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.HttpClientImpl.setHeaders(HttpClientImpl.java:208)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:91)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.HttpClientBase.request(HttpClientBase.java:53)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.HttpClientBase.post(HttpClientBase.java:82)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.getOAuthAccessToken(OAuthAuthorization.java:139)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.auth.OAuthAuthorization.getOAuthAccessToken(OAuthAuthorization.java:159)[twitter4j-core-4.0.1.jar:4.0.1] at twitter4j.TwitterBaseImpl.getOAuthAccessToken(TwitterBaseImpl.java:370)[twitter4j-core-4.0.1.jar:4.0.1] at com.website.talent.service.external.TwitterServiceImpl.storeAccessToken(TwitterServiceImpl.java:111)[talent-core-2.21.jar:na] at com.website.talent.rest.ExternalRestService.confirmTwitterAuth(ExternalRestService.java:65)[ExternalRestService.class:na] at com.website.talent.rest.ExternalRestService$$FastClassBySpringCGLIB$$248309c.invoke(<generated>)[spring-core-4.1.7.RELEASE.jar:na] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)[spring-core-4.1.7.RELEASE.jar:4.1.7.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:649)[spring-aop-4.1.7.RELEASE.jar:4.1.7.RELEASE] at com.website.talent.rest.ExternalRestService$$EnhancerBySpringCGLIB$$53497dbc.confirmTwitterAuth(<generated>)[spring-core-4.1.7.RELEASE.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_65] at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[jersey-server-2.19.jar:na] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[jersey-server-2.19.jar:na] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[jersey-server-2.19.jar:na] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[jersey-server-2.19.jar:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    marcbouvierdavmarcbouvierdav
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Hiren AmaliyarHiren Amaliyar
    7 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    3 more bugmates