Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
Java SE Embedded
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: May 23, 2012 5:21 PM by
java.net.ProtocolException: Cannot write output after reading input.
May 23, 2012 8:41 AM
Good day, can someone help me with this problem.
This content has been marked as final.
Show 1 reply
Re: java.net.ProtocolException: Cannot write output after reading input.
May 23, 2012 5:21 PM
in response to
The error message is perfectly clear. HTTP is a request-response protocol. You write the request, then you read the response. Not the other way around.
NB your TrustManager is radically insecure. Don't do that: use the truststore correctly as intended by the designers of X.509.