Applet Signer Notinited
I support some users that go onto a secure website and use certificates. They used the java 1.4.1 plugin and all is fine. Now they have a new machine, and the new Java plugin 1.4.2 throws up an error when you hit a button to select the certificate, runtime error line 53 bla bla bla, and at the bottom of the screen it says applet notinited. I don't know how to fix this error. I uninstalled the 1.4.2_07 and used the 1.4.1 and it still doesn't work, am confused, have 10 working machines and this one is causing a problem. I no nothing of Java apart from installing it.
Sorry I don't know much about Java, how would I go about doing that? The error I get is line 54 char 9 error Object doesn't support this property or method. Here is the page source don't if this helps or not?
<head>
<title>Login with a Certificate</title>
<link rel="stylesheet" href="/ecom/login/stylesheets/hmce.css" type="text/css">
<link rel="stylesheet" href="/ecom/login/stylesheets/hmceForms.css" type="text/css">
<script LANGUAGE="JavaScript1.1">
var intervalId;
var isAppletLoaded = false;
var intervalSet = false;
var isPosted = false;
function appletIsLoaded()
isAppletLoaded = true;
document.data.SignButton.disabled=false;
function checkStatus()
if (isAppletLoaded == false)
return;
if (document.signer.signComplete())
clearInterval(intervalId);
document.post.gatewaydata.value = document.signer.getSignedBase64Xml();
if (document.signer.getStatus() == 0)
if (isPosted == false)
document.post.submit();
isPosted = true;
else {
// do-nothing in this sample.
function signXML()
if ((document.signer.signComplete()) && (document.signer.getStatus() == 0))
return true;
} else {
var B64XML = document.data.xml.value;
var B64UTF8fragment = document.data.xmlsigblock.value;
document.signer.signXml(B64XML, B64UTF8fragment);
if (intervalSet == false)
intervalId = setInterval("checkStatus()", 1000);
intervalSet = true;
return false;
function doSubmit()
document.frm.submit();
</script>
</head>
<body topmargin="10" bgcolor="#FFFFFF" onLoad="appletIsLoaded()">
<OBJECT ID="GGSecSign" CLASSID="CLSID:2D9F7B63-EC7C-43FF-A41D-6E9EC984A5B9" CODEBASE="/ecom/login/ggsecsign.cab#version=5,1,7,1"></OBJECT>
<APPLET CODE="com.govgateway.UKOnLineSigningApplet.class" archive="/ecom/login/XMLSigningApplet.jar.zip" name="signer" width="0" height="0" VIEWASTEXT id="signer">
<PARAM NAME="profile" value="c:entrustprofiles">
<PARAM NAME="namespace" value="UKOnLineSigningApplet">
<PARAM NAME="useslibrary" value="UKOnLineSigningApplet">
<PARAM NAME="useslibrarycodebase" value="/ecom/login/UKOnLineSigningApplet.cab">
<PARAM NAME="useslibraryversion" value="5,1,7,1">
</APPLET>
<img src="/ecom/login/images/1px.gif" width="1" height="1" border="0">
<table width="733" border="0" cellspacing="0" cellpadding="0" height="52">
<tr>
<td>
<img src="/ecom/login/images/hmce_logo.jpg" width="733" height="52" border="0" alt="HM Customs and Excise">
</td>
</tr>
</table>
<br>
<table width="733" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<h1>Login with a Certificate</h1>
</td>
</tr>
Similar Messages
-
Hi
I 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 how to achieve it...
And one more thing is i want to run my applet in a JSP so that i can access the file from different machine.
For this i tried using jsp:plugins..but it is also giving error...
Can u suggest me at this moment. how to get my applet signed...and how to resolve the plugin error...
thanks
type Exception report
Error message :.....................
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /view.jsp(9,0) jsp:plugin not closed
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
at org.apache.jasper.compiler.Parser.parsePlugin(Parser.java:643)
at org.apache.jasper.compiler.Parser.parseAction(Parser.java:669)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)Don't know about your second question but signing applets:
http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
second post -
Applet Java_Report_Panel Notinited Error in Business Objects XIR2 Webi
Hi,
I am facing a error Applet Java_Report_Panel Notinited when I want to create or edit a Web Intelligence report.
The Current version of BO is XIR2.
The version of Java installed on my machine is 1.6.0.
Whenever, I try to create or modify a new report through Infoview, I get a blank Page and at the bottom of the Infoview, it displays
Java Report Panel Notinited.
This was working fine till yesterday. There were no changes or updates done on the machine.
Just for reference, the reports work fine, when I use the other panels such as the Query-HTML and HTML Report Panel.
I had enabled all the required options in the Internet Explorer. but still, I face the Issue.
Let me know what has to be done in resolving the same.bouser39:
This was working fine till yesterday. There were no changes or updates done on the machine
Are you absolutely sure about no changes applied? I.e. you solely are the administrator, and you have sole access to this server in regards to administration, loading patches, or other configurations? The "no init" I ran into a couple of years back and the cause was our web admin wanted to make a shorter URL appear in the address bar (something like ACME.com/BO) versus ACME.com/businessobjects/enterprise115/infoview, so he built a "virtual" web folder and had it say "BO". Well, everything worked fine in Infoview, logging in, running reports, etc, etc, however, after loading a particular service pack, and then when we went to build a new web intelligence document the whole house of cards came toppling down. Long story short, we had to forego the "BO" short name and revert back to the long URL, as ugly as it appeared, the previous method of "BO" was not longer applicable with the new "java bridge" that Business Objects had implemented with their new service pack. So, perhaps someone tried to make things more efficient for you, but in the long run actually broke a few things along the way....
Thanks,
John -
Four Java Applet signing questions
hi all;
I'd like to ask a few quick questions about applet signing. As you know there is a "Security Warning" Gray Alert box that appears when the user tries to load your signed applet.
1. When the alert window asks someone to accept the signed applet, is it possible to some how capture the Yes or No button click event by javascript or something like that ? I noticed that the Yes and No Response seems to be saved in an in-memory cookie? Is it possible to figure out wht the person clicked ?
2. Is it possible to keep that "Security Warning" Alert box on top so that the user will not be able to accidentally ignore it (it goes under the browser and stays there).
3. Is there some way to inspect the PC to determine weather your applet loaded properly - apart from seeing a properly working applet ? For example , If I want to make sure it is being cached properly.
4. When a new version of the applet is available on the server ? how does the browser know to download something ? is that something I would code for manually or would is this automatically handled behind the scenes.
Thanks in advance
StephenI can only reply to nr 1 but looking at java.security.AccessControl there is a method called checkPermission() you can use.
-
Hi, Q. if i get my applet signed with all premissions can my applet then open a socket connection with another applet on the Internet that's listening. apart from the server the applet came from. Also how do i sign a jar file does this mean that the applet is signed is it free and for how long is it signed and is the any limits or restrictions if i get it do free
Both applets must be signed in order to make a connection between them. Signing an applet just verifies the applet can only be run from a location containing the correct keys. Here's more info on what it is and how to do it:
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html -
I get an error message of "applet fphover notinited" and the java applet error. I have tried downloading the java runtime environment and it does not fix the problem. I have googled the error but it seems to be a programming error.Any one help me
When visiting some websites, I cannot view or click on certain "buttons". I am running AOL 8.0 and also have Comcast high speed cable access. Things work fine when using Comcast access to internet, but not with AOL. This is a relatively new problem. I am not terribly computer savy at troubleshooting.
Help! -
Applet MyApplet notinited?
hi there,
i have created a swing applet using jre plug-in to run on netscape and i m also using JSOject class for interaction between javascript & java applet and i have also copied jaws.jar file in my "C:\jdk1.3\jre\lib\ext" folder
If try to set the classpath using set CLASSPATH it works fine, but when i tried to execute the same applet from other machines on the network i get a error in netscape status bar "Applet MyApplet notinited?"
well here is my applet code :
import netscape.javascript.*;
import javax.swing.text.*;
import javax.swing.*;
public class AppletA extends JApplet {
// JButton bold,italic,underline,leftalign,centeralign,rightalign;
// JEditorPane jep;
public String testB() {
return "hi pradeep1";
public void init()
JSObject win = JSObject.getWindow(this);
win.call("test1", null);
and here is my html code :
<HTML>
<HEAD>
<script language="javascript">
function test1()
alert('done');
</script>
</HEAD>
<BODY>
<center>
<br>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.3 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="pp" WIDTH = 100 HEIGHT = 100 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = "AppletA" >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME=MAYSCRIPT VALUE=TRUE>
<PARAM NAME=archive VALUE=jaws.jar>
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="true">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3" MAYSCRIPT="true" name="pp" CODE ="AppletA" CODEBASE = "." WIDTH = 100 HEIGHT = 100 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
<NOEMBED></COMMENT>
</NOEMBED></EMBED>
</OBJECT>
</center>
<form>
<input type="submit"><input value="hello" type="button" onclick="alert(document.pp.testB())">
</form>
</BODY>
</HTML>Doesn't the browser give you any reason for this problem? Check the plugin console for any error messages.
From the HTML I can see that the archive-attribute is not present in the embed-tag (there are other oddities as well). Try reconverting the HTML file. -
Print from applet, signed jar
Hi all
Have a signed applet that runs under IE 6, java 1.5. The applet is basically used for printing purpose.
My problem is that the applet shows a dialog box "Applet would like to print. Do you want to proceed?"
How can I get rid of the dialog box?
I don't want to change the Java file.
Thanks in advanceAn Applet runs in a sandbox which without proper authentication, will not allow any actions outside the sandbox, i.e. on the local filesystem.
You cannot print from an unsigned applet.
The signing process is very simple using Jarsigner and the Java Plugin.
You can generate your own certificates too, no need to purchase one. -
Applet signed w/ self-signed cert - different behaviors w different servers
Folks,
I'd really appreciate your help with the following.
I'd like to deploy an applet as a signed jar. Probably at least in the beginning, and maybe indefinitely, I'd like to sign it with a self-signed cert. When I've tested this under Linux, loading the applet in a browser running on my desktop, from an apache2 webserver also running on the desktop, I get the expected behavior - I get a security dialog reporting that the applet was signed by an unrecognized CA, but allowing me to accept the applet's signature. However, when I try loading the applet from my server (i.e, browser still running on my desktop, but now loading the applet from the real webserver, which is also apache2), I don't get a security dialog, and the applet fails silently.
Is there some way of configuring the webserver so that the security dialog is presented for a self-signed applet? What explains this difference?
Thanks much,
Matthew Fleming
DermVision, LLCDouble post answer has been given and ignored:
http://forum.java.sun.com/thread.jspa?threadID=569012&messageID=2812525#2812525 -
Applet signed w/ self-signed cert - different behavior w/ different servers
Folks,
I'd really appreciate your help with the following.
I'd like to deploy an applet as a signed jar. Probably at least in the beginning, and maybe indefinitely, I'd like to sign it with a self-signed cert. When I've tested this under Linux, loading the applet in a browser running on my desktop, from an apache2 webserver also running on the desktop, I get the expected behavior - I get a security dialog reporting that the applet was signed by an unrecognized CA, but allowing me to accept the applet's signature. However, when I try loading the applet from my server (i.e, browser still running on my desktop, but now loading the applet from the real webserver, which is also apache2), I don't get a security dialog, and the applet fails silently.
Is there some way of configuring the webserver so that the security dialog is presented for a self-signed applet? What explains this difference?
Thanks much,
Matthew Fleming
DermVision, LLCpolicy files or Runtime Parameters could change the default behavior.
The java.policy could have a line like this:
permission java.lang.RuntimePermission "usePolicy";
A full trace might show you what's going wrong.
To turn the full trace on (windows) you can start the java console, to be found here:
C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
In the advanced tab you can fill in something for runtime parameters fill in this:
-Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
if you cannot start the java console check here:
C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
I think for linux this is somewhere in youruserdir/java (hidden directory)
add or change the following line:
javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
for 1.5:
deployment.javapi.jre.1.5.0.args=Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
The trace is here:
C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
I think for linux this is somewhere in youruserdir/java (hidden directory) -
Hi Members,
* I am trying to uplaod a file to FTP server using apache API in Applet...
* I have Signed the JAR(TestApplet.jar) file by the following steps,
Generated the keytool for my created JAR file by the following command,
keytool -genkey -alias TestApplet -validity 365
Signed the JAR file by the following command,
jarsigner TestApplet.jar TestApplet
* The following is my HTML code to call my signed JAR file,
+<HTML>+
+<HEAD>+
+</HEAD>+
+<BODY>+
+<APPLET ALIGN="CENTER" CODE="AppletExample.class" archive="AppletExample.jar" WIDTH="800" HEIGHT="500"></APPLET>+
+</BODY>+
+</HTML>+
* The below is the my code in applet to upload a file to FTP server,
public void upload(){
try {
FTPClient client = new FTPClient();
FileInputStream fis = null;
client.connect("ftp.tnq.co.in");
client.login("workflow", "workflow");
String filename = "D:/Temp/upload.txt";
fis = new FileInputStream(filename);
client.storeFile("/home/workflow/TEST/javaupload.txt", fis);
client.logout();
fis.close();
System.out.println("File Uploaded Susccessfully.........");
} catch (SocketException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}* The File is successfully uploaded to FTP server machine while running it in Eclipse IDE, but not in browser(Mozilla FireFox)
* When i run it by browser it throws the following exception,
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.net.SocketPermission ftp.tnq.co.in resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at java.net.InetSocketAddress.<init>(Unknown Source)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:176)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:268)
at AppletExample.upload(AppletExample.java:88)
at AppletExample.actionPerformed(AppletExample.java:111)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.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.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)* Please let me know, why it is not running in browser....?
* Thanks in advance
Regards,
JavaImran* Thanks for your thoughts....
* As sabre said to me sign external also, so that now i did the following upload program by sun API only(now there is no external API jar file)
public void upload( String ftpServer, String user, String password,
String fileName, File source ) throws MalformedURLException,
IOException
if (ftpServer != null && fileName != null && source != null)
StringBuffer sb = new StringBuffer( "ftp://" );
// check for authentication else assume its anonymous access.
if (user != null && password != null)
sb.append( user );
sb.append( ':' );
sb.append( password );
sb.append( '@' );
sb.append( ftpServer );
sb.append( '/' );
sb.append( fileName );
* type ==> a=ASCII mode, i=image (binary) mode, d= file directory
* listing
sb.append( ";type=i" );
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
try
URL url = new URL( sb.toString() );
URLConnection urlc = url.openConnection();
urlc.setDoOutput(true);
//urlc.setUseCaches(false);
bos = new BufferedOutputStream( urlc.getOutputStream() );
bis = new BufferedInputStream( new FileInputStream( source ) );
int i;
// read byte by byte until end of stream
while ((i = bis.read()) != -1)
bos.write( i );
finally
if (bis != null)
try
bis.close();
catch (IOException ioe)
ioe.printStackTrace();
if (bos != null)
try
bos.close();
catch (IOException ioe)
ioe.printStackTrace();
else
System.out.println( "Input not available." );
}* Now also, it is executing well in eclipse, but not in browser both IE and Mozilla2.0
* I got the following error, when i run it in browser,
java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(Unknown Source)
at FileUploadAndDownload.upload(FileUploadAndDownload.java:76)
at UploadAndDownload.actionPerformed(UploadAndDownload.java:67)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.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.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)* The erroe gives me to set setDoOutput(true) as true..., i did like that only in my coding........but throws erroe..... Why that...?
* Please let me know your suggestions........
Thanks and Regards,
JavaImran -
Prevent abuse of a signed applet?
Hi
I 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.) local I/O.
The type of abuse I am worried about is e.g. java code from another jar calling public methods on classes in my signed jar, using them to read or write files, and thus abusing my certificate for doing something else than my applet/jar was meant to.
I am looking for advice on how to prevent such things from happening.
Thoughts that already crossed my mind, are:
- making sure only my applet (and as few as possible other classes) has a public constructor
- declaring as much classes as possible (at least the sensitive classes) as final
- avoid non-final public static variables that contain default names of files
If anyone has some more ideas, please post them! I'll be very gratefull!
If you know about a similar question (and answer) in this forum, please let me know, as I have not found it.harmmeijer,
thanks for the answer, and especially the idea of checking the call stack!
You scared the hell out of me however, by saying:
Your applet would not work at all in jre 1.4.2 signed or policy, when the method is called by javascriptand reading the thread you referenced!
Everything worked fine in jre 1.4.1_2 and earlier. It continued working in 1.4.2_01 in combination with Netscape (v 7.1)
But the combination MSIE (v6.0) with jre v1.4.2_01 did require a minor change:
From my signed applet, I called a .class.getResource(...).getURL()
It didn't work anymore, so I do it know in my applet's init() method, instead of in a stack started by javascript.
All my other I/O (and reflection) still works (thank all gods!), since I do it in a separate thread that I start in my applet's init() method. I hope it keeps working in jre 1.5 :-)
Any other input is very welcome! -
Java applet warning keeps coming back for signed applet
I have an applet signed with certificate issued by a public CA cert verisign. This applet prints document to the printer. When it loads everything looks good and checks on the screen and the user is prompted to allow access to the printer. Even, though the user selects "Allways allow this applet to print" the warning keeps coming back everytime the applet attempts to access the printer.
I notice other applets work correctly. I veriy the signed jar and it all looks correct every class file comes with smk marking.
What is going, can someone please help???
ManuelI appreciate the help. but i was able to resolve the problem. Our web page called the applet print method directly from scripting. Apparently that causes the java plugin to warn the user every time.
To avoid this issue the new print method queues up a print job and a separate thread watches for the queue and picks up the job and prints it. In order to support the same original function, the new print method is syncronized and waits for the job to be queued before it returns.
Now, there are no warnings even the first time you use the applet.
[Here is another similar thread.|http://forum.java.sun.com/thread.jspa?forumID=63&threadID=524815]
Thanks,
Manuel -
Signed applet, jmf.jar provided, but no connection
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 the
packet and sends it back to the client ( i did this to avoid signing the applet, since otherwise the client
would have to do a dns-lookup and therefore be signed). the client gets back his public ip (i don't have the 127.0.0.1-problem) , however, i get an
InvalidSessionAddressException :
Local Data Address Does not belong to any of the local interfaces
it seems, the client cannot recognize it's own public ip.
so i thought, signing the applet would do, but it doesn't.
I get the same InvalidSessionAddressException.
now, this only happens on hosts on which jmf is NOT installed.
Installing the jmf solves the problem. but i don't want people who visit my page having to install
jmf in order to watch my livestream. i tried including the whole jmf.jar (also tried, customizing it),
but no success.
i read the posts on the issue: running jmf-applets on non-jmf-systems, but there seems to be a
controversy on wether that is possible or not. some say, jmf must be installed, some say, just include jmf.jar or customized jmf.jar.
what else could i try? i have the clients public ip and i have the applet signed. so, there shouldn't be
any restrictions anymore.
i have no ClassDefNotFoundExceptions, so i suppose, including jmf.jar works.
what else gets changed when i install jmf? there must be some restrictions that keep the vm from
determining the hosts public ip and which will be removed by the installation of jmf.
anyone had similar problems? and, perhaps, a solution to this?
thanks in advance,
honfrek
b.t.w. you can earn some duke-bucks too !hi!
i found a very elaborate solution here:
http://www.mutong.com/fischer/java/usbcam/VideoToAppletWithNoSupport.zip
this link has been posted before,
http://onesearch.sun.com/ClickThru?qt=servlets&url=http%3A%2F%2Fforum.java.sun.com%2Fthread.jsp%3Fforum%3D28%26thread%3D515345&pathInfo=%2Fsearch%2Fdevelopers%2Findex.jsp&hitNum=45&col=devforums
this solution uses jmf only on server side for capturing, then converts the capture-stream into images, splits
the images into smaller regions and evaluates the differences of these regions to the regions of the previous image. if the difference hits a certain threshold, these regions are transmitted to the applet. but the transmission is done via tcp, which slows things down.
the splitting -code is hard for me to understand, since i'm new to java. -
Signed java 1.1.8 applet
I'm developing with jdk1.1.8 today to support MSJVM, such that user of old Windows don't have to install java explicity to run my applet. Now I have come to the point where I need a signed applet. I have searched the net and the information I get is that signing applet was very starge before java Plugin 1.3, where it became more unified.
So my questions are:
What options do I have if I wish to remain using jdk1.1.8 and I want a signed applet that should be abel to run in any browser on any OS?
If a users uses windows and haven't isntalled any recent JRE. That is he only have the MSJVM to run applets. Is there a way that he can use an applet signed according to the java plug-in 1.3 scheme without having to download a recent JRE?
Ok I dont know if that makes any sense, but I hope someone can give me some answers.
thanks
RobertYou need to use the cabsign utility from MS to sign for MSJVM.
Here are some snippets from my cygwin bash script for signing jars and cabs:
if [ $makecabs -ne 0 ]; then
echo '#' cabarc $pdir $sdls
rm -f ../code/jars/unsigned/$prnm.cab
cabarc -r -p N ..\\code\\jars\\unsigned\\$prnm.cab \*.class \*.gif > ${prnm}-cab.log
fi
if [ $makejars -ne 0 ]; then
echo '#' jar $pdir $sdls
rm -f ../code/jars/unsigned/$prnm.jar
pwd
echo "jar -cvf ..\\code\\jars\\unsigned\\$prnm.jar $sdls"
jar -cvf ..\\code\\jars\\unsigned\\$prnm.jar $sdls > ${prnm}-jar.log
fi
sign() {
key=${keys[$2]}
kid=${kids[$2]}
par=${part[$1]}
cls=${pcls[$1]}
nam=${pnam[$1]}
mkdir -p ../docroot/code/jars/$key
if [ $makejars -ne 0 ]; then
echo '#' signing jar $1 $2 key:$key kid:$kid par:$par
pwd
jarfile="..\\docroot\\code\\jars\\$key\\$cls.jar"
cp -f ../docroot/code/jars/unsigned/$cls.jar ../docroot/code/jars/$key/$cls.jar
echo jarsigner -keystore ..\\keys\\.keystore -storepass $password $jarfile $kid
jarsigner -keystore ..\\keys\\.keystore -storepass $password $jarfile $kid <<EOF
EOF
fi
if [ $makecabs -ne 0 ]; then
echo '#' signing cab $1 $2 key:$key kid:$kid par:$par
certfile="..\\keys\\"${keyc[$2]}
keyfile="..\\keys\\"${keyk[$2]}
cabfile="..\\docroot\\code\\jars\\$key\\$cls.cab"
cp -f ../docroot/code/jars/unsigned/$cls.cab ../docroot/code/jars/$key/$cls.cab
if [ $noauto -eq 1 ]; then
signcode -j javasign.dll -jp "low" -spc $certfile -v $keyfile -n $key $cabfile
else
echo '#' autosign.vbs $certfile $keyfile $cabfile $password $key $nam
cmd /c cscript autosign.vbs $certfile $keyfile $cabfile $password $key $nam
fi
signcode -x -t http://timestamp.verisign.com/scripts/timstamp.dll -tr 5 $cabfile
chktrust $cabfile
fi
return 0
You need different certificates for jar and cab signing. The applet tag to support both
jars and cabs needs some fussing too.
Maybe you are looking for
-
Error message when installing Photoshop CS2 in Windows 8
I just upgraded to a computer with Windows 8. I use Photoshop CS2. I am getting the error message below when starting photoshop after installation. I changed program folders, but that did not work. Please advise. Error: an error has been detecte
-
Asynchronous web service call doesn't work
Hi, I'm trying to convert a synchronous web service call into an asynchronous call. (Folder-level Javascript, Acrobat Professional 8.1, Windows XP). Everything works fine when I call Soap.Request as a synchronous call. It calls the web service and ge
-
Populating variable from another query..
Hi, I have a requirement whereby I have a variable (for eg. on the Accounting Document Number) in query Q2.The values of this variable have to be derived by executing another query eg. - Q1 So I defined a variable on the infoobject, defined it as bas
-
Import, ignore=y : what if FK, procedures, exists
Hello, I need to re-run the full import (the data in the tables were corrupted thus deleted). The full import takes around 2 days so I would like to keep as many db objects as possible (to not drop them all)I want to do the import with IGNORE=N. Ther
-
HI My mac does not alert me when is running out of power and just switch off. is that normal? what can i do thanks