Steeing System Property from Applet

1269 byte By vani_h at 2007-9-30 7:13:59
Hi,I am trying to set some system properties in my applet like :System.setProperty("java.security.auth.login.config", cfg_url);I am getting the following exception.java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.auth.login.config write)at ...

AccessControlException - Reading from a file on the server

1171 byte By CalPolyDeveloper at 2007-9-30 7:42:43
I'm writing an applet that needs to read data from a file on the same web server as the applet. In this case, both the applet class and the file exist in the same .jar file on the server. I'm not attempting to read or write to a file on alocal machine, nor am I trying to write to a file on ...

NoSuchAlgorithmException: Signature not avaiable

662 byte By pantichd at 2007-9-30 7:52:46
Hello,I have inherited a jar signing process from a co-worker who left. No documentation so I don't know what I'm doing wrong. I'm at dead end and hoping someone can help. I execute the following command:<path to java/bin>.jarsigner -keystore <path to verisign certificate ...

signed applet, jmf.jar provided, but no connection

1987 byte By honfrek at 2007-9-30 8:12:18
hi there! i'm posting this again in order for you to earn duke-bucks.i have a similar problem. i wrote an applet that connects to a video-streamserver an requests a live-stream. the applet sends some udp-packets to the server, which retreives the client's ip from thepacket and sends it back ...

Problem with loading signed applet

699 byte By Marcin.Sliwa at 2007-9-30 8:17:07
Hello!I have applet signed with VeriSign (certificate is ok, valid etc.), but on some machines there is a problemwith loading this applet. When I try to load applet, there is no popup window with grant possibility andapplet works like non-signed (SecurityException is thrown when accessing local ...

Valid certificate not accepted with J2RE 1.5.0 Beta

1947 byte By neologica at 2007-9-30 8:25:09
Hello.I am developing a Java applet that is packaged as a single JAR file and digitally signed with a valid Thawte Java Code Signing Certificate.This applet worked fine with JRE 1.4.2_04: when the applet was loaded by a client's browser, a Java Plug-in security window appeared, saying that the ...

Applet fails to Work over SSL on JRE 1.4

1038 byte By ste_fjs at 2007-9-30 8:31:45
I have an odd problem that i am hoping someone may be able to help with.I have an applet that works in many instances but fails to load in the environment that i require it to work within.I have a setup that is made up of a SUN JRE 1.4.2_4 , a Proxy server, a Content Switch performing SSL ...

Problem downloading applet in W2K with SP4.

870 byte By praky_25 at 2007-9-30 8:34:46
Hi, We are using a Security Applet in our web application for validation purposes. We were using W2K Professional / W2K Server with SP3 and Sun JRE 1.3.x. The application was working as expected.We are now testing with W2K Server with SP4 (to upgrade to SP4). The current testing environment is ...

How to force security dialog to appear.

470 byte By joe11223 at 2007-9-30 8:38:05
Hopefully someone can help me with this. I have a signed applet that runs fine. But if the user, for whatever reason, clicks the 'Decline' button by accident, subsequent reloads of the applet do not allow the user to allow access to my applet. The only way is to close all browser windows and ...

Applet ignore sign

1422 byte By dudushr at 2007-9-30 9:00:35
I have created an applet and signed it. Everything was greate until today. Suddenly when I try to sign new applets I get a message saying that the applet was signed, but when I execute it I see that it is not signed (I have checked that the expiration date hasn't passed yet).I tried to create ...

Applet not working with SUN JVM

429 byte By Rajdeep_Java at 2007-9-30 9:01:06
Hi Everybody,I have an applet which is running perfectly by using Microsoft JVM. It doesn't work if i use Sun JVM and i don't use Microsoft Jvm.I have tried all the options availabe on the sun's website by modifing the browser's setting but nothing cameout. Please help me out as i don't ...

Keytool error

5027 byte By carusel at 2007-9-30 9:06:56
Hi,I'm trying to sign an applet that I'm testing. I have been advised to follow the steps below before using the jarsigner utility. I get this error: 'keytool error: java.security.cert.CertificateException: Sequence tag error.' when trying to import a certificate reply into the key entry of ...

Security problems when using Java Plugin 1.4.2_04

1390 byte By rararar at 2007-9-30 9:20:15
Hi,I develop a Java code which is supposed to execute under the Sun Java Plugin environment. The applet runs well on the Java Plugin 1.4.1_03 (and has been so for the last year) but when I upgrade the environment to the latest 1.4.2_04 Plugin the applet seems to run in a non-secure mode. I ...

problem granting permissions through policy file when using "CODEBASE"

1308 byte By stefp_gr at 2007-9-30 9:27:08
Hi all, I've got a problem with my code using JRE 1.4.2_04 (with a signed applet and security exceptions). The applet is signed by Verisign, and I try to grant permission to this applet through the policy file, but this does not seem to work correctly! When I grant the appropriate ...

Prevent abuse of a signed applet?

1193 byte By pieter31415 at 2007-9-30 9:34:09
HiI am creating an application using HTML, javascript, and a set of java classes.Communication betwwen the javascript and java is done by an applet, signed with a real certificate.I would like to prevent someone copying my signed jar, and abusing it.The classes behind my applet will do (a.o.) ...

Sign Applet Error?

594 byte By SunnyLaw at 2007-9-30 10:14:59
I use my existing pkcs#12 certificate (.pfx) to sign my applet code (without any key gen. before, directly sign the code by this certificate)jarsigner -storetype pkcs12 -keystore C:\mycert.pfx AppletCode.jar keyEntriesAlthough the code can be signed, when i view this page, it prompts me ...

Signed Applet Duration...

243 byte By MatttK at 2007-9-30 10:36:47
Hi,After signing an applet using jarsigner, it says the cert will expire within 6 months. Is there any way to prevent or extend this or does a new, signed applet have to be provided every 6 months?Thanks!Matt

How do I upload a file from an applet to a servlet, i.e. emulate the browse

175 byte By emmi@java at 2007-9-30 10:54:05
hi How do I upload a file from an applet to a servlet, i.e. emulate the browser's 'multipart/form' ability to upload files? thx in advance

signing, caching, jar, applet

959 byte By clarred at 2007-9-30 10:58:17
I have a caching problem with my jar-applet. Could this have something to do with the signing of the jar file?I get these error messages in the java console.Connecting http://192.168.3.25/remotegui1516.jar with no proxyConnecting http://192.168.3.25/remotegui1516.jar with cookie ...

bad Magic Number error on a signed applet

3569 byte By Telcontar_VI at 2007-9-30 10:59:04
hello, i have written a simple Aplet in wich the user press a button, selects a file and the contents is shown on a JTextArea. i jar my two classes on a jar, signed it with a rsa generated key with the keytool.then i code a simple html page and the IE browser ask me to run the untrusted applet, ...

Applet-servlet communication

744 byte By chakran1 at 2007-9-30 10:59:49
Hi,I have an applet communicating to a long-duration back-end process through a servlet. Currently, the applet waits for the back-end process to finish and the front-end hangs / does not display any messages.I would like to know how I can implement a process by which I can look at status of ...

netscape.javascript.ISObject ?

424 byte By aleks79 at 2007-9-30 11:04:26
I'm new in Java so I don't know how to add any external classes to my Java environment. I've downloaded the ifc112 library, I have all sources, I defined the environment variable CLASSPATH but still when I write in code:import netscape.javascript.JSObject;the compiler tells my that the ...

getParameter

318 byte By vani_h at 2007-9-30 11:05:31
Hi,i have a signed applet and i am using Safari Browser 1.2I am trying to read some of the applet parameters using getParameter(String s)IE returns the right value for the paramenter and using Safri Browser returns null.Any idea what is going on?Please help.vani ...

java.security.PrivilegedActionException: java.lang.reflect.InvocationTarget

1845 byte By Dilson@Sa at 2007-9-30 11:17:04
Hello for AllI ve been working on this problem for a long time and I cant solve it.I have a signed applet that works fine in Win2k with IE 6.0 and JRE Plugin 1.3, 1,4 etc... but when I try execute the applet in Netscape 7.0 for win2k or SUN Solaris I got the following ...

granting & reverting previlages at runtime

704 byte By minimola at 2007-9-30 11:21:33
hello ...i'm trying to migrate an applet currently implemented netscape and microsoft security packages(com.ms.security & netscape.security) using Javas plug-ins. But during the life time of this applet permissions are granted and revoked dynamically.like....if (miBrowserSecurity == ...

Calling an applet method from a Html file?

9627 byte By zebulaon at 2007-9-30 11:24:12
[nobr]Hi, I'm working on some Sun API (XMLEncoder) to obtain a Swing applet, and add some code for understanding the XMLEncoder.I need help to use the XMLEncoder Api with a Swing's applet. To resume, I would like to store an Object for long persistence storage...But I make some kind mistake, ...

java.security.AccessControlException

684 byte By tblank at 2007-9-30 11:25:04
I have an applet that I self-signed (following those 10 steps to sign an applet), which access a MySQL database. Unfortuneatly , it is giving me an error:The SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied ...

Why does the SecurityManager Ignore My Security Policy in java.security?

1876 byte By gberish at 2007-9-30 11:25:33
Hi,The command in Code Block A below works fine.Then I added Code Block B to ...jre\lib\security\java.security.Then I removed the -Djava.security.policy parameter in Code Block A to get Code Block C below, and I expected the command to still work, because the policy was in the default file, but ...

Why the hell only signed applets?

1090 byte By hinterwaeldler at 2007-9-30 11:35:09
**** you sun!I have just spent two hours writing this wonderful little "shell emulator" applet , intendet to take a simple command line class and execute it within an applet, displaying all the results of System.out on the screen and redirecting an input field as System.in.Of course I want it ...

Signed Applet--please tell me something about the basics of it

4467 byte By avichal167 at 2007-9-30 11:42:15
Hi guys .I am in the process of developing a GUI using an applet.The GUI involves reading a file given as input and parsing it for punctuaion errors.This applet has to write to a file called "errors.txt" to report about errors.I came to know from a friend that applets do not have access ...

Can I be my own CA for code signing certificates?

957 byte By AlfredTheGrey at 2007-9-30 12:07:13
Hello, I had a long read of : http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.htmland I have been poking around at : http://www.openca.org/ http://www.openssl.org/ Before I download the above I was hoping for a little advice....Is it possible to use one or both of the ...

Still getting AccessControlException

1925 byte By achoy941 at 2007-9-30 12:16:07
Hi -I'm using the Java Plugin 1.3.1_06 with Netscape 4.75 (this is a must).I'm using a signed applet. The applet uses a JFileChooser component. When I instantiateit, it gives me the AccessControlException.Here's the code snippet:protected JFileChooser getStoreBrowser() {if (_ksBrowser == ...

Signed applets as dangerous as ActiveX?

2720 byte By bckrispi at 2007-9-30 12:32:55
Hi all,I have some concerns about the default java.policy file that ships with j2se 1.4. Please keep in mind that I'm a bit of a noobie when it comes to Signed Applets. I created a simple applet that writes a line in a text file on the client's filesystem. Of course, when I run this as an ...

java.security.AccessControlException: access denied (java.io.FilePermission

3992 byte By akhawaja at 2007-9-30 12:49:07
I have a signed applet. Its invoking a webservice using apache axis. I cannot do anything to the client's policy files. I am getting the following exception (I have the console turned on, so there are some extra messages):Registered modality listenerInvoking JS method: documentInvoking JS ...

open HTTP connection failed

2093 byte By akhawaja at 2007-9-30 12:50:45
I am a bit new to applets and trying to get this thing to work. I am using windows 2003 server. I have created a virtual directory and hosting my page and applet over there. In my directory c:\Projects\CryptoApplet\src\, all my source, compile code, and jars are present.If i run appletviewer, ...

Read file from local disk (little bit urgent, thanks)

2309 byte By Ramon_Maria at 2007-9-30 12:54:31
Hi all. We're facing a problem using a signed applet. We think it's a matter of versions of the java plugin. The fact is that with version 1.4.0 there's no problem on reading a local file from the applet. Not the same can be said when using version 1.4.2_0X. In fact the applet crashes ...

Problems Accessing MS Access Database from Signed Applet...

753 byte By vignesh_java at 2007-9-30 12:56:49
I have a Signed Java applet that inserts Data to a MDB file in the local disk. It gives the following exception when i try to execute the code in the applet.java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)I have tried the ...

signed applet as application

333 byte By raja_ankem at 2007-9-30 13:23:07
hi all, I want to make some(third party) applet run as application in frame.but the problem is, if its in browser we can pass cab file as parameter, and its working fine in it.but if i'am trying to embed in frame, how can i pass parameter to it.does anyone having any clue ?thank you ...

"Self-Signed" Certificates

366 byte By beawi at 2007-9-30 13:23:10
Hello people,I was trying to make my own certificate, but I was not successful. I've followed the "ten steps for sign an applet" posted in this forum. Do I have to do something in order avoid of editing the policy file on every client's machine? I downloaded the root certificate from thawte, ...

unsigned applet can do anything

253 byte By dcfrank65 at 2007-9-30 13:39:10
Can anyone explain or speculate why my unsigned applet is allowed to perform actions like reading and writing to hard drive and launching other executables? I don't believe the policy file has ever been touched. I am using 1.4.2. Thanks.

Downloading Files in an Applet ?

193 byte By coreli99 at 2007-9-30 13:56:52
Hello folks,Any idea how to write/create an applet that downloads files from across the network?Appreciate your helpful replies.Thank you,Coreli

Downloading Signed Java Applet over https

4716 byte By rowland.watkins at 2007-9-30 14:05:21
Hi,I have an interesting problem relating to signed java applets and mutual SSL authentication.I have a signed java applet which creates an XML Signature of a file, which is then uploaded to a Tomcat server using an XHTML form. Signing is done on the client side which is why I require the ...

How to get my applet signed

4929 byte By keerthibhaskar at 2007-9-30 14:21:28
HiI have an applet which has the functionality to print images.when i am working with appletviewer on local machine it works. when i tried to print through browser i am getting access denied error...i came to know that my applet has to get signed so that it prints data to printer. Pls tel me ...

Signned Applet on Jre1.4.2

836 byte By doncaratall at 2007-9-30 14:24:51
Hi,The applet is running fine on MS VM, JVM 1.3.1 and 1.4.1. However on JVM 1.4.2, an exception is generated.java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.testXAfter some test, i found that it is because of the loadlibrary permission is not ...

access denied (java.net.SocketPermission ) for signed Applet

327 byte By keerthibhaskar at 2007-9-30 14:26:56
HiI am running an applet in a browser (through Tomcat Webserver in a JSP file)..but it is raising an exception even though that applet is signed.No idea how to fix it..any suggestions... Exception:access denied (java.net.SocketPermission javasystem:8080 connect , resolve) ...

keystore

955 byte By tsjakamaka at 2007-9-30 14:36:24
Hi,I have an applet. In the applet I must make a connection to a https-url (ssl website). But the problem is that I don't know how I must use the keystore.I make a connection to the https-url because I need some information of that website for putting this information into a comboBox of my ...

java.io.IOException: Server returned HTTP response code: 401

884 byte By bsandlier at 2007-9-30 14:39:09
java.io.IOException: Server returned HTTP response code: 401for URL: http://<our-intranet>.com/nocinterface/nocclient.jarI just moved a new web page into production and experienced the above HTTP error. The web page is located in a folder (Virtual Directory) that has restricted access. ...

SSL over HTTP/1.1 -jdk1.4.2_05 -RECV TLSv1 ALERT: fatal, unexpected_messag

3947 byte By sumanad at 2007-9-30 14:52:00
Hi ,I am trying to POST an XML message to a secured server through proxy tunneling. I am using the code sample provided in JW-Tip 111 , in jdk 1.4.2_05 in Solaris 8 .( i.e. using the URL class to get the HTTP Connection)The Secured server implements HTTP/1.1 and SSLv2/ SSLv3.1) when I add ...

Signed Applets I/O - 1.4.2 - GIVE IT UP!

893 byte By JavaWriterDude at 2007-9-30 15:05:29
Ok,I think I found out why nothing I try works. FROM http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html "If the JAR file is not signed properly, if the RSA certificate has expired, or if the RSA certificate is a self-generated, self-signed certificate, Java ...

File IO with applet on CD

1094 byte By DocDaddy at 2007-9-30 15:31:59
I am writing (trying to at least) an applet and interface to search, using a JDBC CSV driver, a data file placed on a CD. All data accessed will be on the CD, not the user's hard drive. Not that java cares about that! I am getting file IO errors when the driver tries to query the data file on ...