• facebook problem

    By Andrew Welch 1 decade ago

    Hi folks,

    I'm trying to get facebook working. Wildfire is properly registered at my profile, I did set up sesion id in wildfire preferences. Still I'm not able to get my feeds. Attaching some exceptions from logs.



    Any clue what is wrong?



    thanks, Jan



    Wildfire log: Error Feed from: Facebook - Facebook



    Trace log:

    java.lang.RuntimeException: java.net.ProtocolException: Cannot write output after reading input.

    at com.google.code.facebookapi.BasicClientHelper.runtimeException(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.users_getLoggedInUser(Unknown Source)<br/>
    at com.google.code.facebookapi.SpecificReturnTypeAdapter.users_getLoggedInUser(Unknown Source)<br/>
    at org.openntf.wildfire.clients.Facebook.getStatuses(Unknown Source)<br/>
    at org.openntf.wildfire.views.Feeds$2.runInNotesThread(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesJob$1.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer$RunnableLock.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer.runSyncMessages(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.readAndDispatch(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.access$1(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform$1.run(Unknown Source)<br/>
    

    Caused by:

    java.net.ProtocolException: Cannot write output after reading input.

    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.ibm.rcp.net.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.postRequest(Unknown Source)<br/>
    ... 12 more<br/>
    

    java.lang.RuntimeException: java.net.ProtocolException: Cannot write output after reading input.

    at com.google.code.facebookapi.BasicClientHelper.runtimeException(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.users_getLoggedInUser(Unknown Source)<br/>
    at com.google.code.facebookapi.SpecificReturnTypeAdapter.users_getLoggedInUser(Unknown Source)<br/>
    at org.openntf.wildfire.clients.Facebook.getStatuses(Unknown Source)<br/>
    at org.openntf.wildfire.views.Feeds$2.runInNotesThread(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesJob$1.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer$RunnableLock.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer.runSyncMessages(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.readAndDispatch(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.access$1(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform$1.run(Unknown Source)<br/>
    

    Caused by:

    java.net.ProtocolException: Cannot write output after reading input.

    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.ibm.rcp.net.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.postRequest(Unknown Source)<br/>
    ... 12 more<br/>
    

    java.lang.RuntimeException: java.net.ProtocolException: Cannot write output after reading input.

    at com.google.code.facebookapi.BasicClientHelper.runtimeException(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.users_getLoggedInUser(Unknown Source)<br/>
    at com.google.code.facebookapi.SpecificReturnTypeAdapter.users_getLoggedInUser(Unknown Source)<br/>
    at org.openntf.wildfire.clients.Facebook.getStatuses(Unknown Source)<br/>
    at org.openntf.wildfire.views.Feeds$2.runInNotesThread(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesJob$1.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer$RunnableLock.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer.runSyncMessages(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.readAndDispatch(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.access$1(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform$1.run(Unknown Source)<br/>
    

    Caused by:

    java.net.ProtocolException: Cannot write output after reading input.

    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.ibm.rcp.net.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.postRequest(Unknown Source)<br/>
    ... 12 more<br/>
    

    java.lang.RuntimeException: java.net.ProtocolException: Cannot write output after reading input.

    at com.google.code.facebookapi.BasicClientHelper.runtimeException(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.callMethod(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.users_getLoggedInUser(Unknown Source)<br/>
    at com.google.code.facebookapi.SpecificReturnTypeAdapter.users_getLoggedInUser(Unknown Source)<br/>
    at org.openntf.wildfire.clients.Facebook.getStatuses(Unknown Source)<br/>
    at org.openntf.wildfire.views.Feeds$2.runInNotesThread(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesJob$1.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer$RunnableLock.run(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesSynchronizer.runSyncMessages(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.readAndDispatch(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform.access$1(Unknown Source)<br/>
    at com.ibm.notes.java.api.util.NotesPlatform$1.run(Unknown Source)<br/>
    

    Caused by:

    java.net.ProtocolException: Cannot write output after reading input.

    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.ibm.rcp.net.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)<br/>
    at com.google.code.facebookapi.ExtensibleClient.postRequest(Unknown Source)<br/>
    ... 12 more
    
    • Facebook Help

      By Andrew Welch 1 decade ago

      Hi Jan,

      Is it just the reading of the stream that does not work for you? Can you post status's to your Facebook account?



      Facebook did change some permissions requirements recently. Open the following link to confirm the correct permissions. Make sure after accepting all the required permissions and "Success" is shown, that you copy the entire URL into WildFire and press Apply. It will extract the necessary session id.



      http://www.facebook.com/login.php?api_key=7dd2df131291369d8e4f5eea77e13ccb&connect_display=popup&v=1.0&fbconnect=true&return_session=true&next=http://www.facebook.com/connect/login_success.html&req_perms=offline_access,read_stream,status_update



      Regards,

      Andrew

      • By Jan Zaruba 1 decade ago

        Hi Andrew,

        I can't also post ( from log:"May 26, 2010 1:14:52 PM - Error Posting to: Facebook - Facebook"). I used your link with no problems. I saw the "success" page and then a copied link and the session Id was decoded from that link. The same strange behaviour.



        Jan

    • Facebook Solution

      By Andrew Welch 1 decade ago

      Hi Jan,

      What version of Lotus Notes are you running? Do you have any fix packs installed?



      The Fix Packs: FP1, FP2 & FP3; for Lotus Notes 8.5.1 disables the use of Facebook Feeds and Posting, as it throws the ProtocolException error.

      This problem was introduced in FP1, and was meant to be fixed in FP3, but unfortunately it is not.

      If you have any of these Fix Packs installed and you wish to use Facebook in WildFire, the only option at this stage is to uninstall them. This can be done by running the same Fix Pack installation file again. As this is not an ideal solution, it is only recommended if you wish to use the Facebook aspect of WildFire.



      Thanks for your feedback.

      Regards Andrew