huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

java.lang.RuntimeException: ClientAbortException: java.net.SocketException: Socket closed #166

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
[CODE]
FacebookWebappHelper facebookWeb = 
FacebookWebappHelper.newInstanceJson(request, response, appapikey, 
appsecret);

facebookWeb.requireLogin("") 
[/CODE]

What is the expected output? What do you see instead?
it should redirect to the login screen for facebook

What version of the product are you using? On what operating system?
2.0.4

Please provide any additional information below.

For some reason i get this error at random times. it an a runtime 
exception. Please advise the best course, as i need it to redirect.

Stack Trace
"java.lang.RuntimeException: ClientAbortException:  
java.net.SocketException: Socket closed
    at 
com.google.code.facebookapi.FacebookWebappHelper.redirect(FacebookWebappHel
per.java:288)
    at 
com.google.code.facebookapi.FacebookWebappHelper.requireLogin(FacebookWebap
pHelper.java:361)
at com.testapp.actions.FacebookAction.exec(FacebookAction.java:32)

Original issue reported on code.google.com by BenAbout...@gmail.com on 2 Feb 2009 at 9:31

GoogleCodeExporter commented 8 years ago

more of the stack trace

Caused by: ClientAbortException:  java.net.SocketException: Socket closed
    at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
    at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
    at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:311)
    at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
    at org.apache.catalina.connector.Response.flushBuffer(Response.java:544)
    at 
org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:276
)
    at 
com.google.code.facebookapi.FacebookWebappHelper.redirect(FacebookWebappHelper.j
ava:2
81)
    ... 38 more
Caused by: java.net.SocketException: Socket closed
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
    at org.apache.jk.common.JkInputStream.doWrite(JkInputStream.java:147)
    at org.apache.coyote.Response.doWrite(Response.java:555)
    at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
    ... 44 more

Original comment by BenAbout...@gmail.com on 2 Feb 2009 at 9:46

GoogleCodeExporter commented 8 years ago
I'm not sure how anyone is going to recreate this in order to fix it. Can you 
narrow 
down the issue and perhaps create a test that does the same thing 100 times. If 
it 
fails 1 out of 10 times then at least the average developer will be able to 
recreate 
it and debug further.

Original comment by david.j....@googlemail.com on 5 Feb 2009 at 9:10

GoogleCodeExporter commented 8 years ago
This issue can be closed.  Never store facebook Web App object in session. Beg 
the
question how to keep a track of the facebook session. which leads me to my next 
problem

Original comment by BenAbout...@gmail.com on 10 Feb 2009 at 2:57

GoogleCodeExporter commented 8 years ago
Closed on the request of BenAboutTown.

Original comment by david.j....@googlemail.com on 16 Feb 2009 at 2:33