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/processMibReque stCgi
network: Connecting https://172.26.102.10/goform/processMibReque stCgi with proxy=DIRECT
1168250221186 : Start sending 1 requests
network: Connecting https://172.26.102.10/goform/processMibReque stCgi with cookie "rvu=admin; rvp; rvSid=0; rvSlv=1; rvSuid=11682608 92"
XXX before new BufferedReader
1168250221466 : MibDb.processRe sponses(): # 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=11682608 92"
network: Connecting socket://172.26.102.10:4 43 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=11682608 92"
java.io.IOExcep tion: Error writing to server
at sun.net.www.pro tocol.http.Http URLConnection.w riteRequests(Un known Source)
at sun.net.www.pro tocol.http.Http URLConnection.w riteRequests(Un known Source)
at sun.net.www.pro tocol.http.Http URLConnection.g etInputStream(U nknown Source)
at sun.net.www.pro tocol.https.Htt psURLConnection Impl.getInputSt ream(Unknown Source)
at webdatasource.M ibWebServerSour ce.readKeepMibR esponse(MibWebS erverSource.jav a)
at webdatasource.M ibWebServerSour ce.saveInFile(M ibWebServerSour ce.java)
at mib.MibDb.saveT oFile(MibDb.jav a)
at prods.gw.mib.Gw MibDb.saveToFil e(GwMibDb.java)
at prods.common.gu i.BaseCfgMainPa nel.saveCommand (BaseCfgMainPan el.java)
at prods.common.gu i.CommonCfgTool Bar.actionPerfo rmed(CommonCfgT oolBar.java)
at prods.gw.gui.co nfig.GwCfgToolB ar.actionPerfor med(GwCfgToolBa r.java)
at pv.awt.PVButton .fireAction(PVB utton.java)
at pv.awt.PVButton .processMouseEv ent(PVButton.ja va)
at java.awt.Compon ent.processEven t(Unknown Source)
at java.awt.Compon ent.dispatchEve ntImpl(Unknown Source)
at java.awt.Compon ent.dispatchEve nt(Unknown Source)
at java.awt.EventQ ueue.dispatchEv ent(Unknown Source)
at java.awt.EventD ispatchThread.p umpOneEventForH ierarchy(Unknow n Source)
at java.awt.EventD ispatchThread.p umpEventsForHie rarchy(Unknown Source)
at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
at java.awt.EventD ispatchThread.p umpEvents(Unkno wn Source)
at java.awt.EventD ispatchThread.r un(Unknown Source)
XXX java.io.IOExcep tion: Error writing to server
My code is:
protected int readKeepMibResp onse(URLConnect ion connection)
throws IOException
{
int retIndex = -1;
String inputLine = null;
BufferedReader in = new BufferedReader(
new InputStreamRead er( connection.getI nputStream()));
while (//in.ready() &&
((inputLine = in.readLine()) != null) &&
!inputLine.equa ls(END_OF_RESPO NSE))
{
try {
util.Debug.prin t(this, "inputLine = " + inputLine);
retIndex = Integer.parseIn t(inputLine);
}
catch (NumberFormatEx ception e)
{
retIndex = -1;
}
}
in.close();
return retIndex;
}
Any idea?
Thanks
NOa