Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migrating to Https(SSLSession & HttpsSession)

 
sambasiva kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have recently migrated from Http to Https.
We are facing a problem in establishing the session.
Is there any thing that we need to modify the HttpSession with the SSLSession?
Please find below the code for the HttpSession that I am currently using
 
Rob Spoor
Sheriff
Pie
Posts: 20608
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you'll have more success in the servlets forum. Moving there.
 
sambasiva kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any advices on my request please.
Thanks in advance.
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you post the exact "problem" that you are facing. Are you unable to create a new session or get a handle to the current session?
 
sambasiva kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable to establish the session.

Please find below the error log
*******************************************************
url=https://xxx:xxx
The protocol is ..........https
The host is ..........xxx
The port is ..........xxx
The urlSuffix is ........../servlet/WebRequestController
The dataURL is ..........https://xxx:xxx/servlet/WebRequestController
inside processRequest urlCurrentPage = https://xxx:xxx
Connecion in connectServlet is .................sun.net.www.protocol.https.DelegateHttpsURLConnection:
https://xxx:xxx/servlet/WebRequestController
Inside sendRequest
Key is server Value is Sun-ONE-Web-Server/6.1
Key is date Value is Fri, 21 Aug 2009 07:17:37 GMT
Key is content-type Value is application/x-java-serialized-object
Key is transfer-encoding Value is chunked
The value of cookie in the process request is ............... null
Inside receiveRequest
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2155)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2621)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:251)
at com.orbitreasury.fixedincome.presentation.util.AppServCommunication.receiveRequest(AppServCommunication.java:227)
at com.orbitreasury.fixedincome.presentation.util.AppServCommunication.processRequest(AppServCommunication.java:166)
at com.orbitreasury.fixedincome.control.ServerResets.main(ServerResets.java:62)

*******************************************************
Please find below the code that I am using

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic