By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,855 Members | 1,970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,855 IT Pros & Developers. It's quick & easy.

Java applet and https problem

P: 1
Hi,
I'm relly new in java and I have a problem.
I'm using java applet.
When using http all ok, but when trying to use https i get:

Java Plug-in 1.5.0_10
Using JRE version 1.5.0_10 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\noa
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
XXX openConnection: url = https://172.26.102.10/goform/processMibRequestCgi
network: Connecting https://172.26.102.10/goform/processMibRequestCgi with proxy=DIRECT
1168250221186 : Start sending 1 requests
network: Connecting https://172.26.102.10/goform/processMibRequestCgi with cookie "rvu=admin; rvp; rvSid=0; rvSlv=1; rvSuid=1168260892"
XXX before new BufferedReader
1168250221466 : MibDb.processResponses(): # of responses = 73
XXX openConnection: url = https://172.26.102.10/goform/KeepMibCgi
network: Connecting https://172.26.102.10/goform/KeepMibCgi with proxy=DIRECT
1168250221586 : Start sending 438 requests
network: Connecting https://172.26.102.10/goform/KeepMibCgi with cookie "rvu=admin; rvp; rvSid=0; rvSlv=1; rvSuid=1168260892"
network: Connecting socket://172.26.102.10:443 with proxy=DIRECT
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment session certificate store
network: Connecting https://172.26.102.10/goform/KeepMibCgi with cookie "rvu=admin; rvp; rvSid=0; rvSlv=1; rvSuid=1168260892"
java.io.IOException: Error writing to server
at sun.net.www.protocol.http.HttpURLConnection.writeR equests(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.writeR equests(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl. getInputStream(Unknown Source)
at webdatasource.MibWebServerSource.readKeepMibRespon se(MibWebServerSource.java)
at webdatasource.MibWebServerSource.saveInFile(MibWeb ServerSource.java)
at mib.MibDb.saveToFile(MibDb.java)
at prods.gw.mib.GwMibDb.saveToFile(GwMibDb.java)
at prods.common.gui.BaseCfgMainPanel.saveCommand(Base CfgMainPanel.java)
at prods.common.gui.CommonCfgToolBar.actionPerformed( CommonCfgToolBar.java)
at prods.gw.gui.config.GwCfgToolBar.actionPerformed(G wCfgToolBar.java)
at pv.awt.PVButton.fireAction(PVButton.java)
at pv.awt.PVButton.processMouseEvent(PVButton.java)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
XXX java.io.IOException: Error writing to server



My code is:
protected int readKeepMibResponse(URLConnection connection)
throws IOException
{
int retIndex = -1;
String inputLine = null;
BufferedReader in = new BufferedReader(
new InputStreamReader( connection.getInputStream()));
while (//in.ready() &&
((inputLine = in.readLine()) != null) &&
!inputLine.equals(END_OF_RESPONSE))
{
try {
util.Debug.print(this, "inputLine = " + inputLine);
retIndex = Integer.parseInt(inputLine);
}
catch (NumberFormatException e)
{
retIndex = -1;
}
}
in.close();
return retIndex;
}


Any idea?
Thanks
NOa
Jan 14 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.