2016-09-09 4 views
1

내가이 HTTPS URL (부두 서버)에 ADFS SSO 사용 가능 웹 로직 서버에서 일부 JSON 데이터를 게시 할하지만 난 조각연결 EOF가

에게 아래의 예외 아래

java.io.IOException: Connection closed, EOF detected 
    at weblogic.socket.JSSEFilterImpl.handleUnwrapResults(JSSEFilterImpl.java:637) 
    at weblogic.socket.JSSEFilterImpl.unwrapAndHandleResults(JSSEFilterImpl.java:515) 
    at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:96) 
    at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:75) 
    at weblogic.socket.JSSEFilterImpl.write(JSSEFilterImpl.java:448) 
    at weblogic.socket.JSSESocket$JSSEOutputStream.write(JSSESocket.java:93) 
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) 
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) 
    at java.io.FilterOutputStream.flush(FilterOutputStream.java:140) 
    at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:192) 
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:433) 
    at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37) 

입니다 얻고 감지, 폐쇄

 URL urlObject = new URL(url); 
     HttpURLConnection httpConnection = (HttpURLConnection) urlObject.openConnection(); 
     httpConnection.setRequestMethod("POST"); 
     httpConnection.setDoOutput(true); 
     httpConnection.setDoInput(true); 
     httpConnection.addRequestProperty("Content-Type", "application/xml"); 
     OutputStreamWriter writer = new OutputStreamWriter(httpConnection.getOutputStream()); 
     writer.write(paramJSON.toString()); 
     writer.flush(); 

     String line; 
     StringBuffer buffer = new StringBuffer(); 
     BufferedReader reader = new BufferedReader(new InputStreamReader(httpConnection.getInputStream())); 
     while ((line = reader.readLine()) != null) 
     { 
      buffer.append(line); 
     } 

     writer.close(); 
     reader.close(); 
     int status = httpConnection.getResponseCode(); 
     httpConnection.disconnect(); 
는 HTTP URL 즉, SSL없이 우리가 웹 로직 서버를 사용하는 경우

+0

서버 로그에서 오류를 검색합니다. – SJuan76

답변

2

활성화와 협력, 우리는 정의해야합니다

set JAVA_OPTIONS=%JAVA_OPTIONS% -DUseSunHttpHandler=true 

... 서버 도메인 내의 클래스 경로에 있습니다.

이렇게하면 Weblogic 서버에 Sun Http 처리기를 사용하고 자체 Http 처리기를 설치하지 않게됩니다.