473,624 Members | 2,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java applet and https problem

1 New Member
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
Jan 14 '07 #1
0 2861

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

Similar topics

5
3378
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql database. This page never makes it to the browser window. 3. a simple Thank you page that shows...
0
4494
by: Shawn | last post by:
I am getting the following error with a Java Applet being served out by IIS over HTTPS/SSL using a Verisign certificate: java.lang.NoClassDefFoundError: javax/help/HelpSetException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.newInstance0(Class.java:276) at...
5
13642
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server (running IIS 6). I've written a little test applet that should call a helloWorld function in the dll, but when I use System.loadLibrary, it gives me this security warning :
3
6003
by: Robert Bralic | last post by:
Hello, I writed small graphical editor for probabilystic networks in JAVA, but there was problem with making save file inJAVA. I thinked about it and I concluded that Save in JAVA is great error. If is possibile to mke save in JAVA then is posible tha make save in any
3
3511
by: Larry Martin | last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO exception when IE6 tries to load the applet. It seems a lot of others are getting the same problem but a search of the web did not turn up any sort of solution. I have tried most of the suggestions but none of them seem to have helped with the problem. My error is below and the most significant part of it is the HTTP connection failure. load: class...
2
13515
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with 10.4.4. I have Java 1.3.1 and 1.4.2 plug-ins, and J2SE 5.0 (1.5.0) installed. The Java preferences application lets me choose J2SE 5 or 1.4.2 to run applets via a browser. The problem happens in both settings. The problem is that we have a...
1
9623
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
2
2654
by: pssraju | last post by:
Hi, I am having applet display problem on my PC and the same thing working fine on some of my colleagues PC's. When I cross checked content through view source its exactly same on both the PC's. Something related to JRE is not allowing to display this applet through browser. Even I tried by uninstalling & reinstalling JRE and ended up with same problem. Can anyone tell whats problem on my PC. Here is the error which I am getting in java...
0
8249
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8633
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4187
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.