NullPointerException when loging to Facebook

34 views
Skip to first unread message

Jaaz Portal

unread,
Jun 5, 2016, 2:42:42 PM6/5/16
to Facebook4J
hi,
from some time my application has broken and it is sometimes not possible to login.
It is very strange because i did not changed this part of code and it sometimes not working.

Sometimes it works, sometimes gives NullPointerException. I was wondering that maybe facebook is working right now on their side
with login feature but cannot check this so decided to ask here if you also have such behavior.

Here is a stack trace and you can check login process on http://cellohost.com/ just try to register as beta tester but not finish the process.

java.lang.NullPointerException
    at facebook4j.auth.OAuthAuthorization.getOAuthAccessToken(OAuthAuthorization.java:122)
    at facebook4j.FacebookBaseImpl.getOAuthAccessToken(FacebookBaseImpl.java:244)
    at eu.jaaz.portal.web.FacebookAuth.doGet(FacebookAuth.java:146)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)

Ryuji Yamashita

unread,
Jun 5, 2016, 7:30:37 PM6/5/16
to Facebook4J
Which version do you use?

And,
Could you show me the dump of request/response?
You can dump by to set 'debug=true' to your configuration. (http://facebook4j.org/en/configuration.html)

Best,

2016年6月6日月曜日 3時42分42秒 UTC+9 Jaaz Portal:

Jaaz Portal

unread,
Jun 11, 2016, 8:22:10 AM6/11/16
to Facebook4J
hi,
i am using latest version from maven repository (2.4.4).

I have problem with debuging facebook4j i had enabled debug option through ConfigurationBuilder and by catalina.properties
but does not get any debuging info in catalina logs
i tried facebook4j.internal.logging.CommonsLoggingLoggerFactory and facebook4j.internal.logging.Log4JLoggerFactory
and does not have anything in log files.

Can you help me with this? Maybe i should define some logger channel in catalina configuration?

I get some clue however. I get this NullPointerException each time I am redeploying application.
After some time - 15-30 minutes everything works again.

all the best,
artur
Reply all
Reply to author
Forward
0 new messages