Security Exception while using javax.help.*
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nitin_Chaudhary
Posted On:   Monday, June 23, 2003 11:46 PM

I have created the java help and when I am invoking "CntxHelp.java" from "F1" key I got the following error: code for both the classes is buried below: java.lang.SecurityException: class "javax.help.event.EventListenerList"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:568) at java.lang.ClassLoader.defineClass(ClassLoader.java:496) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java   More>>

I have created the java help and when I am invoking "CntxHelp.java" from "F1" key I got the following error: code for both the classes is buried below:

			
java.lang.SecurityException: class "javax.help.event.EventListenerList"'s signer information does not match signer information of other classes in the same package

at java.lang.ClassLoader.checkCerts(ClassLoader.java:568)

at java.lang.ClassLoader.defineClass(ClassLoader.java:496)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)

at java.net.URLClassLoader.access$100(URLClassLoader.java:54)

at java.net.URLClassLoader$1.run(URLClassLoader.java:193)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:186)

at java.lang.ClassLoader.loadClass(ClassLoader.java:299)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

at javax.help.HelpSet. (HelpSet.java:60)

at javax.help.HelpSet. (HelpSet.java:126)

at com.xten.wallace.cmt.editor.CntxHelp. (CntxHelp.java:21)



"Login.java"

			
class PanelKeyListener extends KeyAdapter {
public PanelKeyListener(){

}
public void keyPressed(KeyEvent k) {
System.out.println("Key "+k.getKeyCode()+" has been pressed. It is equals to "+KeyEvent.VK_DELETE);
if (k.getKeyCode() == 112) {
new CntxHelp("How to Login in IMS CMT");
}
}


			
"CntxHelp.java"


			
package com.xten.wallace.cmt.editor;
import java.awt.*;
import java.net.URL;
import javax.help.HelpSet;
import javax.help.JHelp;
import javax.swing.*;
public class CntxHelp extends JFrame
{
JHelp browser;
HelpSet def_helpset = null;
public CntxHelp (String topic_id){
String helpset_path="d:\nitin\javahelp\help\helpset.hs";
System.out.println("NILESH: helpset_path: " + helpset_path+" topic_id: "+topic_id);
try
{
getContentPane ().setLayout(new GridLayout());
URL url;
url = new URL ("file", "", helpset_path);
System.out.println("NILESH: URL: " + url);
System.out.println("NILESH: getClass(): " + getClass()+" getClassLoader(): " +getClass().getClassLoader());
def_helpset = new HelpSet (getClass().getClassLoader(), url);
System.out.println("NILESH: After getClass().getClassLoader(): def_helpset: " + def_helpset);
browser = new JHelp ();
browser.setHelpSetSpec(url.toString());
System.out.println("NITIN: 1: ");
browser.setBounds (0,0,780,650);
System.out.println("NITIN: 2: ");
getContentPane ().add (browser);
System.out.println("NITIN: add (browser)");
setTitle (def_helpset.getTitle());

System.out.println("NILESH: 3: ");
//topic_id = "How to Login in IMS CMT";

ShowHelp (topic_id);
System.out.println("NILESH: 4: ");
setSize(780,650);
setVisible (true);
}
catch (Exception e)
{
System.out.println("NILESH: CntxHelp: ");
e.printStackTrace();
}
}

public void ShowHelp (String topic_id)
{

try
{
System.out.println("Topic ID in Show Help........."+topic_id);
if (topic_id.equals ("")){
System.out.println("Inside IF");
browser.setCurrentID (def_helpset.getHomeID ());
}

else{
System.out.println("Inside ELSE "+ topic_id);
//browser.helpSetAdded(def_helpset);
System.out.println("Def Help---"+def_helpset);
browser.setCurrentID (topic_id);
}

}
catch (Exception e)
{ e.printStackTrace();}
}

}
   <<Less
About | Sitemap | Contact