kjas having problem with a java applet under HTTPS protocol

Thibaut DELACHAUX delachaux at free.fr
Sat Feb 17 10:52:53 GMT 2007


Dear all,

I'm trying to display a Java applet under Konqueror, which is supposed 
to plot a graphic.
I'm using the Java-sun-1.6 virtual Machine.

When using this applet under the HTTP protocol, no problem : applet is 
running well.
But when I log under my account (a bank account), turning to HTTPS 
protocol in doing so, the applet is not working anymore....The graphic 
doesn't display anymore. Data used to do the plotting is still available 
(when I click on https links given under the Java console, I get the 
data), but under HTTPS, applet is not able to "read" it (at least it seems).

And I don't have this problem under Firefox (that's why my conclusion is 
that KJAS is the cause of this problem)

My Java configuration under Konqueror is :
Use the security manager = Yes
Stop applet server if inactive = Yes
Use KIO = Yes
Java executable path = /opt/sun-jdk-1.6.0/jre/bin/java

When I look for the process ID with ps aux command, I get :
/opt/sun-jdk-1.6.0/jre/bin/java -classpath 
/usr/kde/3.5/share/apps/kjava/kjava.jar 
-Djava.security.manager=org.kde.kjas.server.KJASSecurityManager 
-Djava.security.policy=/usr/kde/3.5/share/apps/kjava/kjava.policy 
-Dkjas.useKio org.kde.kjas.server.Main

I tried to run the applet with the option -Dkjas.debug=1, but it doesnt 
give me anything more.

The error I get in the Java console is the following :

Java VM version: 1.6.0
Java VM vendor:  Sun Microsystems Inc.
KJAS: SecurityManager=org.kde.kjas.server.KJASSecurityManager at 1ac1e22
Java VM: Sun Microsystems Inc. 1.6.0
SecurityManager=org.kde.kjas.server.KJASSecurityManager at 1ac1e22

KJAS: JSObject.getWindow
KJAS: JSObject.ctor: [WINDOW]
Data request: 
http://www.fortuneo.fr/static/FRT5.2/fnCharts_PC/predefined_indicators.txt
 
KJAS: evaluate ("   var agent=navigator.userAgent.toLowerCase();   
if((agent.indexOf("msie") != -1) &&(agent.indexOf("opera") == -1))  
    document.FnChartsApplet1.setBrowserType("msie");   else  
    document.FnChartsApplet1.setBrowserType("not_msie");")
 
 Data request (UTF 8): 
https://www.fortuneo.fr/static/FRT5.2/fnCharts_PC/../../../cgi-bin/webact/WebBank/scripts/FRT5.2/outils/fnCharts_PC/load_configuration.jsp?BV_SessionID=@@@@1903116544.1169991166@@@@&BV_EngineID=ccceaddjmilfedecfngcfkmdffkdfij.0&userID=621997 


 Data request: 
https://www.fortuneo.fr/static/FRT5.2/fnCharts_PC/../../../cgi-bin/webact/WebBank/scripts/FRT5.2/lesMarches/fncharts_dataHistorique.jsp?BV_SessionID=@@@@1903116544.1169991166@@@@&BV_EngineID=ccceaddjmilfedecfngcfkmdffkdfij.0&symbol=FR0004026250&plisinh=025_FR0004026250&devise=undefined
 
 Exception in thread "Thread-3" java.lang.ClassCastException: 
org.kde.kjas.server.KJASHttpURLConnection cannot be cast to 
javax.net.ssl.HttpsURLConnection
    at fnCharts.aF.a(Unknown Source)
    at fnCharts.dx.d(Unknown Source)
    at fnCharts.dE.K(Unknown Source)
    at fnCharts.dE.m(Unknown Source)
    at fnCharts.cc.h(Unknown Source)
    at fnCharts.S.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:619)



You can see by yourself the problem without having to create an account 
: click on the link below :
http://www.fortuneo.fr/cgi-bin/webact/WebBank/scripts/FRT5.2/lesMarches/ficheValeur.jsp?a=a&plisin=025_FR0010242511#

Just under a little graphic (which is NOT the one causing my trouble), 
you have to click on the link "Accès graphique interactif"
 -> it should open THE applet which is annoying me.
Under HTTP protocol, everything should be OK.
If you replace HTTP by HTTPS in the adress bar, then the applet is 
surprisingly no longer working...
If you look in the java console, the last https link (the last Data 
request line) leads to bulk data : it is the data applet is using to 
plot the graphic.....

How to solve this problem ?
Thanks for your collectiv help,

Best regards,




More information about the kfm-devel mailing list