Problem with my applet-servlet comunication

Hello:
I'm using a dynamic chart on my applet, which gets the data from a servlet, by URLConnection. These service work, but after a moment, the chart scroll is stopped and I get the next error on java console:
java.security.AccessControlException: access denied (java.net.NetPermission
getProxySelector)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at
java.lang.SecurityManager.checkPermission(Ljava.security.Permission;)V(Unkno
wn Source)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:6
61)
at jfch.AppletGraphic$DataGenerator.sendCommand(AppletGraphic.java:307)
at jfch.AppletGraphic$DataGenerator.actionPerformed(AppletGraphic.java:259)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:234)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.
The applet make request to servlet by URLConection permanently, which gets
the data from SQL Server.
I'm using JVM 1.5.
The applet makes requests to servlet by normally url, not access to local resources (or file system).
Please can anyone help me?
Regards, Ulises.

http://java.sun.com/j2se/1.5.0/docs/api/java/net/ProxySelector.html
Selects the proxy server to use, if any, when connecting to the network resource
referenced by a URL. A proxy selector is a concrete sub-class of this class and is
registered by invoking the setDefault method. The currently registered proxy selector
can be retrieved by calling getDefault method.
The getDefault Throws:
SecurityException - If a security manager has been installed and it denies
NetPermission("setProxySelector")
http://java.sun.com/j2se/1.5.0/docs/api/java/net/NetPermission.html
getProxySelector
The ability to get the proxy selector used to make decisions on which proxies
to use when making network connections.
Malicious code can get a ProxySelector to discover proxy hosts and ports on
internal networks, which could then become targets for attack.
I checked my java.policy for my w2k jre 1.5 installation but could not find any specific
NetPermission in there. I never had this problem using URL and URLConnections
in 1.5 but it sounds strange that creating an URL in an applet could throw a
SecurityException with the default jre 1.5 installation (both objects are introduced
since 1.5).
If you are using windows could you open the java control panel and select "use
browser settings" in the General tab after clicking the "Network settings" button?
I have this option in my jre settings and never got that Exception.

Similar Messages

  • Problems with pacman applet, and advice on a gaming portfolio

    Hi
    I recently made a pacman applet, im having a few problems with it though, the first time the applet is run on a browser, the ghosts(represented by squares) often dont appear or if they do, they are stuck in walls, this never happens when i run offline on my computer. Is this because the very first time the applet is run, it doesnt load properly, but the second time some of the files are in the cache so it loads fully?
    Also everytime i refresh the browser the applet dissapears and is replaced with a blank space and a cross in the top left hand corner, does anyone know the reason for this?
    The applet can be found below, if you do decide to play it, please bear in mind what i have said, so it might not load correctly the first time, if this is the case please refresh, or close the broswer and reopen the link! Also you will need to click the applet for it to gain focus before you can move pacman - use the arrow keys the control pacman.
    http://www.renaissance-designs.co.uk/Satwant/java/pacman/
    Id also be very gratful for some advice - id like a change in career, ive always wanted to get into gaming, ive had some previous knowledge in java i made a programme that could generate its own poetry in java for my dissatation, but i still never had a huge amount of confidence, and so went into websites.
    BUT now i have decided to take the leap back into programming and give it a go, which is why ive made this game.
    I thought id make a portfolio and try and apply for a few gaming jobs. This applet took me two weeks to make and it was in my spare time, i am fully aware its not perfect, and it doesnt look great, but i would like to know what people think of it, also how many more games do you think i should make, before i apply for gaming jobs? Does anyone have any advice on what would make a good portfolio for a java gaming job?
    Thanks alot, i look forward to what you think of the game, and your advice!
    SSKenth

    sskenth wrote:
    Thanks for getting back to me with that information, i didnt know you could see that information with just a simple right click!
    But im afraid that doesnt really help me solve the problem, im not sure what all of that information means! :SI have very little experience with applets, but I can tell you what I would do to debug this (forgive me if you already know this stuff).
    Look at the stack trace you get in the Java Console that I posted earlier. Each line contains a method that was called from the method on the previous line. So, java.lang.Thread.run() called sun.applet.AppletPanel.run(), which called Room.init(), etc. Look at the topmost line whose method is something you wrote, not something in the standard Java libraries. In your case it looks like PaintSurface.java (specifically, line 22). Look at what line 22 of PaintSurface.java is doing, it's calling Thread.start(). If you check out the Javadoc for Thread.start(), it says IllegalThreadStateException gets thrown if you call start() on a thread that has already started. So that's your problem. Without looking at your code, I'd assume you want to stop your thread in your applet's destroy() override, and instead of reusing it, create a new one each time init() is called.
    Ill try and look into, thanks again though, it gives me somthing to work with :D
    Btw when you first ran the applet, did all the ghosts(3) load up correctly?Unfortunately, no. The first time I ran it, there was only 1 ghost (or maybe all 3 overlapping each other?) at the top of the screen, and they never moved. Refreshing once made the game play as I think you want it to. Refreshing a third time gave the dreaded red X.
    ...oh and just out of curiosity,,, did u have fun playing the game :DSure did.

  • Problem with Sessions in Servlets

    Hi,
    I'm having a problem with sesions with servlets. It seems that if someone logs into my website, which is running on all servlets, while another person is logged on, the second person gets the session of the first person.
    I'm using
    HttpSession session = request.getSession(true);to get the session in each page. The session contains a user object which shows if the user is logged in and what permissions.
    The session should be unique to the client computer right? Or am I jsut screwing this up big time?

    Yes, each client will have their own session. However, you may be testing incorrectly:
    In Firefox, for example, all instances of the application running on the same machine will share the same cookies, therefore the same session, and would be considered one client.
    MS IE will do the same if you use File - New to open a new wondow rather than clicking on the desktop icon.
    If the different clients are using different machines and still getting shared data, then you may be using class-level variables in the servlet, which would not be thread safe and could lead to your problems...
    public class MyServlet extends HttpServlet {
      String data;  //bad
      int moredata; //bad
      public void doGet(...) ... { ... }
    }

  • Problem with logout in servlet After logging out i need to expire the pages

    I have a problem in logout using servlet.
    I introduced sessions in my page and while logout i used
    session.removeAttribute("name");
    session.removeAttribute("password");
    res.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
         res.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
         res.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
    String user=(String)session.getAttribute("name");
              System.out.println(user);
              if(user==null)
                   System.out.println("hi");
                   req.setAttribute("Error", "Session has ended. Please login.");
                   res.sendRedirect("http://localhost:8080/homepage.html");
    and after i logout im redirected to login page but after clicking back button im getting back to restricted pages(the pages b4 logout).
    what should i do?????

    Thanks Dear BalusC,
    I tried with this,
    rs.getString("DATA_SCAD1")// where the source from .xls files
    String pattern = "yyyy-MM-dd";
    SimpleDateFormat format = new SimpleDateFormat(pattern);
    try {
    Date date = format.parse("DATA_SCAD1");
    System.out.println(date);
    } catch (ParseException e) {
    e.printStackTrace();
    System.out.println(format.format(new Date()));
    this out put gives me Tue Apr 03 00:00:00 IST 2007
    But I want to display the date format in yyyy-mm-dd.
    regards,
    maza

  • Problem with running multiple servlet in same webapplication with tomcat 3

    Hi all,
    I am using Tomcat 3.0 as webserver with jdk1.3, Servlet 2.0,
    Templates for html file and oracle 8i on UNIX platform.
    I have problem with multiple servlet running same webapplication.
    There are two servlet used in my application. 1) GenServlet.class
                   and 2) ServletForPrinting.class
    All of my pages go through GenServlet.class which reads some property files
    and add header and footer in all pages.
    I want reports without header & footer that is not possible through GenServlet in my application.
    So I have used another servlet called ServletForPrinting --- just for reading html file.
    It is as follow:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ServletForPrinting extends HttpServlet {
    public void service (HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException
    // set content-type header before accessing the Writer
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    File f1 = null;
    String report = null;
    String path = request.getPathInfo();
    try{
    String p = "/var/home/latif/proj/webapps/WEB-INF/classes" + path;
    System.out.println(p);
    f1 = new File(p);
    p = null;
    if (f1.exists()) {
    FileReader fr = new FileReader(f1);
    BufferedReader br = new BufferedReader(fr);
    report = new String();
    while ((report = br.readLine()) != null) {
    out.println(report);
    }catch(Exception e) {
    out.close();
    report = null;
    path = null;
    f1 = null;
    } // end class
    It works fine and display report properly.
    But now Problem is that if report is refreshed many times subsequently,
    WebServer will not take any new change in any of java file used in web-application.
    It works with the previous class only and not with updated one.
    Then I need to touch it. As soon as I touch it, webserver will take updated class file.
    Anybody has any idea regarding these situation?
    Is there any bug in my ServletForPrinting.java ?
    Any solution ????? Please suggest me.
    Suggestion from all are invited. That will help me a lot.
    Thanks in advance
    Deepalee.

    Llisas wrote:
    I solved the problem, I just had to wire the blocks in a sequential way (I still don't know why, but it works).
    Feel free to delete this topic.
    I would strongly suggest at least reading this tutorial to give you an idea of why your fix worked (or maybe only appeared to work).  Myself, I never just throw up my hands and say, "Whatever," and wash my hands of the situation without trying my best to understand just what fixed it.  Guranteed you'll run into the same/similar problem and this time your fix won't work.
    Please do yourself a favor and try to understand why it is working now, and save yourself (or more likely, the next poor dev to work on this project) some heartache.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • [Solved]Problem with deskbar-applet

    Hi to all, i'm having  annoying problems with the deskbar-applet in gnome. I've installed it with pacman and no error occurred during installation but I can't perform any search on the web through the search-engine of firefox. They don't appear in action's list at all. And i don't manage to use the deksbar-applet with tracker. I compiled tracker from abs with the option --enable-deskbar-applet=auto. and copied tracker-handler.py and tracker-handler-static.py  in the .gnome2/deskbar-applet/modules-2.20-compatible/ directory. Any advice??
    Thanks
    Solved. I had to copy tracker-module.py in that directory. Bye
    Last edited by oportec (2007-12-14 16:35:28)

    Thank you, headkase, you were right about it! Removing "ck-launch-session" solved my problems. I also removed "dbus-launch" because I didn't have it there originally, I had added "dbus-launch" to exec line just today as I had read somewhere that it might help (it didn't)...
    So, I'm going with "exec gnome-session" and everything works, thanks.
    //Edit: Admin can mark this as "[SOLVED]"
    Last edited by mino.sk (2012-06-22 20:22:39)

  • Problems with Java Applets

    Ever since upgrading to 10.5.2 I have been having trouble with sites with java applets. I like to play bridge on Pogo, but sometimes the game room will not open and at other times I get messages advising me to check the URL or go back to home page. I have tried emptying the cache, repairing permissions and a few other tips I have seen on this forum, but the problem persists.

    I decided to take a look, but the Bridge program requires a signup. Not interested, but the free Poppit game plays fine as a guest on my machine on both Safari 3.1 and FireFox 3.0b4.
    With FireFox I'm running AdBlock Plus, which can create problems with some sites, but the games loaded and played.
    Based on this, I'd check the time of day you are trying to use their site and see if there are more problems with certain times.

  • Changes in security from 7 update 45 to 7 update 51 and problems with Java applet

    Hello,
    After the update (from 7 update 45) to version 7 update 51 we've gotten some problems with a Java Applet as it won't run.
    When changing security settings to "medium" it works, but it would not run under the default "high" setting. This lead me to update the manifest file as follows:
    Manifest-Version: 1.0
    Trusted-Only: true
    Application-Name: MyApplet
    Permissions: all-permissions
    Caller-Allowable-Codebase: www.MySite.com
    In addition to this, I added the <param> tag in the HTML page.
    <applet name="MyApplet" code="MyApplet" archive="MyApplet.jar">
       <param name="permissions" value="all-permissions" />
    </applet>
    The applet is digitally signed with a certificated issued by Verisign.
    It now runs on my system. But I noticed that it also runs if I switch the security setting back to "high", which doesn't make any sense to me.
    I've tried another computer and to the same thing there. Would not run. I switched to "medium" and and the applet worked. Switched back to "high" and it still works.
    I've tried this in both Google Chorme and Internet Explorer 11.
    On a third computer it won't run at all, getting a different error message than on the other two, but still related to permissions/security.
    The console log message is:
            "liveconnect: Security Exception: JavaScript from http://MySite.comn/MyPage.html attempted to access a resource it has no rights to."
    Any ideas what I'm missing or what I need to change to get this beast to run everywhere.

    I tried changing the Caller-Allowable-Codebase to not include "www." and it started giving the the same error message as for the third machine in the test.
    So, I changed Caller-Allowable-Codebase to "*" which made it work on all machines.
    I don't quite understand why it acts differently on different machines, if it's ok with www.MySite.com on one of the the machines, it should be OK on all no?
    I don't see a problem with letting it be "*" but it would be nice to understand what's going on.

  • Repaint problems with an applet under Netscape 4.75

    Hello,
    I'm currently working on an applet created with VisualAge for Java, running under the standard Netscape 4.75 JVM, with Windows NT4.
    I am experiencing problems with AWT components which randomly disappear, especially Labels and sometimes Panels. When I drag a window over the missing label and then drag it back, the label appears.
    I have tried a lot of combinations with the repaint(), paint(), paintAll() and paintComponents() methods, but it has not been efficient for the moment. Introducing lots of repaint() calls on the concerned labels is even worse.
    Is there a known bug in the Netscape 4.75 JVM concerning this problem ? Do you have an idea of what can be done to solve this problem ? Changing the JVM is not an option that can be chosen. Netscape 4.75 has been defined as the only browser for the whole project.
    Thanks for your help !
    Kevin

    Well, I finally solved this problem.
    For your information, the JVM included in Netscape 4.75 running under NT4 does not like having AWT labels with either Background or Foreground not initialised. If any of these 2 properties is not defined, it could sometimes occur that the JVM can't display the label.

  • Problem with running applets

    When I try to run an applet on HTML page i only get a gray screen which shows nothing.
    When i try to use appletviewer it always says:
    I/O exception while reading: D:\ClickMe (The system can
    not find the file specified)
    (ClickMe is an applet)
    When I run an applet on some website it works, but when I upload one and open it through an HTML page it stiil shows a gray screen with nothing on it(maybe I have a problem with my compiler).
    I use "SUN ONE STUDIO 4 update 1" (j2sdk1.4.1 came along with it)
    I'm under WINXP HOME EDITION and I've downloaded the letest "service pack 1" from windows update center.
    Thanks in advance to all the helpers!

    I had the same problem once. Try if it works with Netscape. If it does, then you are having the same problem as I had.
    The solution:
    compile the applet with "javac -target 1.1 *.java"
    I dont know why it work, but it does.

  • Problems with running Applet through HTML

    I am currently having problems with running my file through the HTML. For some reason when I open it in the browser it keeps saying Error. I am programming in NetBeans.
    The code I am using is:
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <applet code=”CarApplet.class” codebase="RedCarApplet.jar" width=690 height=300></applet>
    </body>
    </html>

    Heres the error message, I see that it cannot find the class I have stated above. Any solutions?
    My class is in the 'build' folder but, the HTML file is in the 'src' folder. Now my applet contains a 'jar' file, do I need to add that to the HTML code?
    load: class ‚Ä?TunerApplet.class‚Ä? not found.
    java.lang.ClassNotFoundException: ‚Ä?TunerApplet.class‚Ä?
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.FileNotFoundException: C:\Users\*****\*******\NetBeansProjects\RadioApplet\src\‚Ä?TunerApplet\class‚Ä?.class (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 9 more
    Exception: java.lang.ClassNotFoundException: ”TunerApplet.class”

  • Problem with Draggable Applet in JavaFX Samples

    I am looking at JavaFX Samples which run as Draggable Applets - for example, DisplayShelf and EffectsPlayground. I ran into a problem while running these samples from Netbeans 6.5 IDE. It seems that there is a problem with the logic in this line of code in Main.fx:
    var inBrowser = "true".equals(FX.getArgument("isApplet") as String);I found that this expression is evaluating to false because the "isApplet" argument is null, such that the drag and drop installation is not available. When toggling the Properties > Application > Draggable Applet checkbox, I found that the html page generated to launch the applet (e.g. DisplayShelf/dist/DisplayShelf.html) would simply add/remove draggable argument:
    <script>
        javafx(
                  archive: "DisplayShelf.jar",
                  *draggable: true,*
                  width: 600,
                  height: 300,
                  code: "displayshelf.Main",
                  name: "DisplayShelf"
    </script>Given this, shouldn't the Samples actually have logic as follows:
    var inBrowser = "true".equals(FX.getArgument("draggable") as String);

    Thanks, this works and is probably the better solution, as the draggable argument can be set even when not running from browser. Thanks!
    But my concern is that the code in the draggable app Samples which come with Netbeans IDE do not work correctly, because FX.getArgument("isApplet") returns null. Would this be something to file a bug for? Seems like other newbies like me would get confused when the samples don't work....

  • Problem with URL - Applet

    hi, i have a little problem running my applet. it's supposed to get a file from the WWW and display its contents as a string inside a JTextArea. the file on the web is a simple .txt containing little text, say one sentence, its irrelevant here. the file is read in inside a different class that the applet calls. however, there seems to be a problem with that - maybe it has something to do with Applet restrictions. anyway. here goes:
    the applet (i removed all irrelevant applet construction objects like buttons etc) -
    public class Applet1 extends JApplet {
    private JTextArea sisestaJutt;
    private String juttVeebist;
    public void init() {
    URLReader veebist = new URLReader();
    try {
    juttVeebist.equals( veebist.reader());
    catch(Exception e) {
    Container sisu = new Container();
    sisestaJutt = new JTextArea(juttVeebist);
    sisu = getContentPane();
    sisu.setLayout( new BorderLayout() );
    sisestaJutt.setBorder(brdr);
    sisu.add(sisestaJutt, BorderLayout.CENTER);
    the called class (& method) -
    public class URLReader {
    public static String reader()
    throws Exception {
    URL jjstreet = new URL("http://www.anydomain.com/file.txt");
    BufferedReader input = new BufferedReader(
    new InputStreamReader(
    jjstreet.openStream()));
    String inputLine = input.readLine();
    input.close();
    return inputLine;

    thank you everyone for information, it's getting clearer to me already. sounds like signing would do the trick.
    however, i first tried this thing on a localhost - thats the server-program and applet at the same place, even writing in the same dir... but the text ment to be inside the textarea is still from a URL, so i guess applet has trouble getting input from the www then...
    anyway, JFrame is working very good + it has the comfortable command line feel in it =)
    ty all.

  • Problems with java applets freezing.

    Okay, this is an extemely rare java problem (from what I know), and I have worked for months to fix it and nothing has worked so far.
    This is my problem: Whenever I use java applets, the screen freezes (still able to move mouse around) for about 10-20 seconds about twice a minute to once in ten minutes. This can make me very angry if I am in the middle of a game. I am POSITIVE it isn't my internet, I have Cable internet, one of the fastest. And after it is done freezing the applet runs perfectly, until it freezes again.
    PLEASE HELP ME! Thanks in advance, Zach.

    I decided to take a look, but the Bridge program requires a signup. Not interested, but the free Poppit game plays fine as a guest on my machine on both Safari 3.1 and FireFox 3.0b4.
    With FireFox I'm running AdBlock Plus, which can create problems with some sites, but the games loaded and played.
    Based on this, I'd check the time of day you are trying to use their site and see if there are more problems with certain times.

  • Security Problems with Signed Applet

    Hello All,
    I need help with signed applets.
    I have an applet pkged in a jar that uses other jars. I have signed the jar containing applet and all the other jars being used. However, when I try to run the applet in IE 6.0.xx, I get the following error
    java.lang.ExceptionInInitializerError
         at aaa.aaa.somemethod(xxx.java:192)
         at aaa.aaa.aaa.access$000(xxx.java:27)
         at aaa.aaa.aaa.$1.run(xxx.java:467)
    Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
         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.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         ... 3 moreMy application is using Java 1.4.2.xx.
    Any help or pointers would be greatly appreciated.
    Thanks.

    Thanks harmmeijer and mjparme for your responses.
    I made some changes to my application and it does not now require the system property information. But now I am getting another exception related to class loader.
    I made the changes to the console as suggested by harmmeijer, and here is the stack trace. Also, I am not using any JavaScript explicitly.
    Registered modality listener
    Invoking JS method: document
    Invoking JS method: URL
    Referencing classloader: sun.plugin.ClassLoaderInfo@e0a386, refcount=1
    Loading applet ...
    Initializing applet ...
    Starting applet ...
    java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
         at xxx.xxx.a...<init>(a.java:39)
         at  xxx.xxx.b...<init>(b.java:42)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
    java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
         at xxx.xxx.a...ToolBus.<init>(a.java:39)
         at xxx.xxx.b....<init>(b.java:42)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Modality pushed
    Modality poppedmjparme as to your second point, the action is taking place in the same jar only. No other jar is involved at the stage where I am getting exception.
    Thankyou again and will appreciate your help.
    AC

Maybe you are looking for

  • Jsp:foward

    Can one get a parameter from a jsp forward? For example, if in one jsp I have the following statement: <jsp:forward page="History.jsp?action=showAll" /> and in History.jsp I have: <% String value = request.getParameter("action") System.out.println("A

  • Error message when connecting Nano to computer - please help!

    I just started getting an error message when I try to disconnect my Ipod Nano from my computer after it's done charging/updating. The message tells me the device can't be stopped because other programs are utilizing files on my nano. I tried restarti

  • How do I change the default color scheme in Dreamweaver CS6?

    Hi All I just updated to CS6 on my work computer from CS5 on my personal computer (preferences and stuff were not transferred), and I'm trying to figure out how I can import my custom color scheme that I was using in CS5. In CS5 I was able to replace

  • Solaris 10 Topic discrepency 1z0-877

    Ref: Oracle Solaris 10 System Administrator Certified Professional Exam, Part I | Oracle Certification Exam Section 5: Manage Network Printers and System Processes Control system processes by viewing the processes, clearing frozen processes, and sche

  • Black out on information regarding artwork

    I have seen a number of threads on the issue of artwork suddenly not sticking to iTunes files, unless it is artwork that can automatically be found online through the get artwork function. In all the threads there are many people complaining that the