File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Migrating to Https(SSLSession & HttpsSession) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Migrating to Https(SSLSession & HttpsSession)" Watch "Migrating to Https(SSLSession & HttpsSession)" New topic
Author

Migrating to Https(SSLSession & HttpsSession)

sambasiva kumar
Greenhorn

Joined: Jan 16, 2007
Posts: 24
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

Joined: Oct 27, 2005
Posts: 19543
    
  16

I think you'll have more success in the servlets forum. Moving there.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
sambasiva kumar
Greenhorn

Joined: Jan 16, 2007
Posts: 24
Any advices on my request please.
Thanks in advance.
Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

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

Joined: Jan 16, 2007
Posts: 24
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migrating to Https(SSLSession & HttpsSession)
 
Similar Threads
Session varibles not Initialized .
Session problem
servlet running in different JVM than other servlets
Session already invalidated
What is a Session's scope?