Applet with JFilechooser called from a Javascript blocks paint messages

Hi,
I am trying to create an applet that can:
1) be called from a Javascript
2) displays a file selection dialog for multi-selecting files
3) returns the selected filenames in a string to the JavaScript
I am able to use doPrivileged to apply the necessary security context to launch a JFilechooser and return the filenames selected. However, When the JFilechooser dialog is visible and the user moves the dialog window around the HTML pages dose not receive any repaint messages. They seem to be blocked by the thread that launched the JFilechooser dialog and is probably blocking update events as the dialog is still visible.
I know I need some type of a message pump so the child thread can inform the parent thread and the browser to repaint. However, I don't know how to do this.
Please help.
------Applet Code Begin:-----
import java.awt.Color;
import java.awt.Graphics;
import java.awt.AWTEvent;
import java.awt.event.AWTEventListener.*;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseEvent;
import java.io.File;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.Properties;
import java.util.ResourceBundle;
import java.util.Vector;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
public class SampleApplet extends JApplet
   boolean allowDirs=false;
   boolean allowFiles=true;
   boolean hidden=false;
   File lastUserDir=null;
   public void init()
    public void start()
    public void stop()
    public String selectFiles()
       String choosenFiles = null;
       choosenFiles = new String((String)java.security.AccessController.doPrivileged(
       new java.security.PrivilegedAction()
     public Object run()
        String choosenFiles=new String();
             JFilechooser fc = new JFilechooser();
     fc.setFileSelectionMode(allowDirs ? (allowFiles ? JFileChooser.FILES_AND_DIRECTORIES
        : JFileChooser.DIRECTORIES_ONLY)
        : JFileChooser.FILES_ONLY);
     fc.setMultiSelectionEnabled(true);
             int returnVal = fc.showOpenDialog(null);
             if (returnVal == JFileChooser.APPROVE_OPTION)
                choosenFiles = "The selected filesnames will be stuffed here";
          return choosenFiles; //return whatever you want
       return choosenFiles;   
------Applet Code End:-----
------Html Code Begin:-----
<html>
<applet id="SampleApplet" archive="SampleApplet.jar"; code="SampleApplet.class"; width="2" height="2" codebase=".">
</applet>
<head>
    <title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function SelectFiles_onclick()
  var s = (document.applets[0].selectFiles());
  alert(s);
</script>
</head>
<body>
    Click Test button to select files
    <input id="SelectFiles" type="button" value="Select Files" onclick="return SelectFiles_onclick()" />
</body>
</html>
------Html Code End:-----

try this:
first don't open the file dialog in the SelectFiles call. Start a new thread that does that. Then return from the SelectFiles call immediately. Now after the user selectes the files call back into the javascript by doing something like this:
pass the list of files into this function, each on being a String in the params array
    public synchronized void sendDataToUI(Object[] params) {
        if (FuserState.hasQuit()) {
            return;
        String function = "getUpdates";
        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "Calling Javascript function " + function);
        if (getJavaScriptWindow() == null) {
            logger.log(Level.SEVERE, "Member javascriptWindow is NULL, no call was made!");
            return;
        try {
            getJavaScriptWindow().call(function, params);
        catch (netscape.javascript.JSException x) {
            if (params == null) {
                logger.log(Level.SEVERE, "p=NULL PARAM");
            } else {
                logger.log(Level.SEVERE, "p=" + params[0]);
    protected JSObject getJavaScriptWindow() {
        javascriptWindow = JSObject.getWindow(this);
    }

Similar Messages

  • Object synchronization method was called from an unsynchronized block of co

    I have installed DotNETWebControlConsumer_3.0_sp1
    in my machine I am very much new to Plumtree
    I am building the application in vs 2005 or .Net 2.0 environment and plumtree 6.0
    here is my web.config file code
    <httpModules>
    <add type="Com.Plumtree.Remote.Loader.TransformerProxy, Plumtree.WCLoader, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d0e882dd51ca12c5" name="PTWCFilterHttpModule"/>
    </httpModules>
    and I get the error Object synchronization method was called from an unsynchronized block of code
    I just removed the html format for posting purpose i mean all the less than and greater than sign
    please I need it so badly

    Regarding your first issue (because it looks as if you removed the <httpModules> node from your web.config to move on from that issue), I changed 'Aqualogic.WCLoader' to 'Plumtree.WCLoader' in <httpModules ../>, added a reference to Plumtree.WCLoader in my project , then added another <add assembly="Plumtree.WCLoaderyadayada...> accordingly to the <assemblies> node in the web.config and then it worked. Well, almost, now I'm seeing a new error:
    [NullReferenceException: Object reference not set to an instance of an object.]
    Com.Plumtree.Remote.Transformer.PTTransformer.HandleRequest(HttpContext ctx) in e:\buildroot\Release\wcfilter\3.0.x\filter\src\Com\Plumtree\Remote\Transformer\PTTransformer.cs:60
    Com.Plumtree.Remote.Transformer.PTTransformer.BeginRequestHandler(Object sender, EventArgs e) in e:\buildroot\Release\wcfilter\3.0.x\filter\src\Com\Plumtree\Remote\Transformer\PTTransformer.cs:54
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    Mine is a .net 2.0 portlet that will work if I don't try to use the WCC 3.0SP1 (by pulling the <httpModules> node. But then I'm guaranteed no inline refresh. I have no fix yet, but when I do, I'll post it. I've contacted Plumtree Support in the meantime because others must be having the same problem.
    p.s. Also using edk 5.3 signed, though I'm going to upgrade to 5.4 and see if that does anything.

  • Initialization section vs call from another code block in package.

    hi,
    why is it intialization section in package body is more than call from another code block the package .

    The initialization section is only called once upon the initial loading of the package into memory, which is just once per session. So, accessing any function or procedure etc in the package causing it to load into memory will automatically run the initialization section first. It doesn't have to be called specifically.

  • Harrsment calls from VIDEO RECEIVED! PLAY MESSAGE ...

    no matter how many times i decline and block this caller contiues to calls at all hours of the day. i have never answered the call. Missed call from VIDEO RECEIVED! PLAY MESSAGE AT VIDMS.COM.

    if you block a certain user, that user should not be able to contact you again in any way.  I think in your case, those scammers/spammers might be using another Skype account with the same or similar display name.  I think you can consider adjusting your privacy settings to allow calls from people in your contact list only to avoid receiving such unwanted calls again.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Strange problem with procedure calling from Java!!!

    I am using Oracle 8.1.7 Database, Oracle 8i Application server and WInNT platform.
    I am facing a strange problem while inserting a String from Java to Oracle database through Procedure. When i am passing the String containing single quotes(e.g "test' and ' and ' end") and without including any escape charactes for the single quotes I am passing the String by the setString() method then the procedure is inserting the single quotes without any problem.
    Of course when I am independently executing the procedure thru backend and passing the same String containing single quotes then the error message comes as " quoted string not properly terminated" which is justified,
    I have even printed the String in a file through sql on the runtime of the procedure when it is called by Java and then also the String contatins single quotes that is passed through java without any escape characters. This means that procedure is inserting the String into the column without any hassles!!!!!
    Can anyone tell me what may be the reason for the peculiar behaviour of Database?
    Thanks

    Sri Ram wrote:
    No actually in the documentation of oracle database 10g plsql user guide, oracle explains the concept of declaring nested plsql subprograms he gave the example but in the main block he gave NULL, without calling any procedure.Can you provide a link to where in the Oracle documentation you saw this example?
    in order to know which procedure is getting first i added a dbms statement in both the functions and called the function from the main block.
    the original example was
    DECLARE
    PROCEDURE proc1(number1 NUMBER); -- forward declaration
    PROCEDURE proc2(number2 NUMBER) IS
    BEGIN
    proc1(number2); -- calls proc1
    END;
    PROCEDURE proc1(number1 NUMBER) IS
    BEGIN
    proc2 (number1); -- calls proc2
    END;
    BEGIN
    NULL;
    END;
    ---------------------------------------------------------------------------------------------------------The original example is equivalent to:
    BEGIN
       NULL;
    END;That is, the main block never calls anything. Either you are misinterpreting the Oracle documentation, or if the example came from a non-Oracle source as I suspect, the author of that example has a deeply flawed understanding of how programming works.
    John

  • Problem with incoming call from pstn

    Hi,
    we have a 2610XM router with CCME 3.2 and 4 bri
    and we don't redirect incomming call from pstn on a internal IP Phone.
    which command for redirect call ?
    my isdn number (french) is 0156838050
    and when we call this number with my mobile (number 0685284832), look this debug
    debug isdn q931:
    Mar 22 12:53:46.350: ISDN BR1/0 Q931: Ux_DLRelInd: DL_REL_IND received from L2
    *Mar 22 12:53:46.378: ISDN BR1/0 Q931: RX <- SETUP pd = 8 callref = 0x73
    Bearer Capability i = 0x8090A3
    Standard = CCITT
    Transer Capability = Speech
    Transfer Mode = Circuit
    Transfer Rate = 64 kbit/s
    Channel ID i = 0x89
    Calling Party Number i = 0x2083, '685284832'
    Plan:Unknown, Type:National
    Called Party Number i = 0x81, '8050'
    Plan:ISDN, Type:Unknown
    Sending Complete
    *Mar 22 12:53:46.382: %ISDN-6-LAYER2UP: Layer 2 for Interface BR1/0, TEI 64 changed to up
    Router#
    *Mar 22 12:53:46.415: ISDN BR1/0 Q931: TX -> CALL_PROC pd = 8 callref = 0xF3
    Channel ID i = 0x89
    *Mar 22 12:53:46.439: ISDN BR1/0 Q931: TX -> DISCONNECT pd = 8 callref = 0xF3
    Cause i = 0x8081 - Unallocated/unassigned number
    *Mar 22 12:53:46.527: ISDN BR1/0 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x73
    Cause i = 0x87E4 - Invalid information element contents
    Router#
    thanks for your help

    You have to either use a transfer pattern or a translation rule.
    http://www.cisco.com/en/US/products/sw/iosswrel/ps5012/products_feature_guide_chapter09186a00801812db.html

  • SPA8000 Problem with outgoing calls from trunk

    Hi all,
    I have SPA8000 with the latest firmware 6.1.12.
    Tried the first time to configure the trunk groups. With incoming calls it caused no problems. But with the outgoing calls cannot solve the problem:
    When dialing, the SPA8000 try found number to itself.
    Port 8 in trunk group 1.
    10.120.0.67 - ip of SPA8000.
    172.17.1.1 - ip of PBX
    302 - number of trunk.
    444 - other number on PBX.
    INVITE sip:[email protected]:6060 SIP/2.0
    Via: SIP/2.0/UDP 10.120.0.67:5361;branch=z9hG4bK-e9bbff35
    From: <sip:[email protected]>;tag=1e668866b76f0b0do1
    To: <sip:[email protected]>
    Remote-Party-ID: <sip:[email protected]:6060>;screen=yes;party=calling
    Call-ID: [email protected]
    CSeq: 101 INVITE
    Max-Forwards: 70
    Contact: <sip:[email protected]:5361>
    Expires: 240
    User-Agent: Linksys/SPA8000-6.1.12
    Allow-Events: talk, hold, conference
    Content-Length: 202
    Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
    Supported: x-sipura, replaces
    Content-Type: application/sdp
    v=0
    o=- 13756 13756 IN IP4 10.120.0.67
    s=-
    c=IN IP4 10.120.0.67
    t=0 0
    m=audio 19469 RTP/AVP 8 101
    a=rtpmap:8 PCMA/8000
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=ptime:30
    a=sendrecv
    SIP/2.0 404 Not Found
    To: <sip:[email protected]>;tag=63d33124-0
    From: <sip:[email protected]>;tag=1e668866b76f0b0do1
    Call-ID: [email protected]
    CSeq: 101 INVITE
    Via: SIP/2.0/UDP 10.120.0.67:5361;branch=z9hG4bK-e9bbff35
    Server: Linksys/SPA8000-6.1.12
    Allow-Events: talk, hold, conference
    Content-Length: 0
    What is wrong? What must I do to outgoing call?
    Screenshots of configuration:

    Hey!
    Thank u soo much ana_bidi! It worked and my phone is back to life
    I even sent an email to Nokia and I got the weirdest reply ever! They were telling me to check if my sim was inserted correctly I was like whaaaat? And I did mention to them that I can receive calls and send/recieve SMS! I seriously don't know what made them suggest that thing
    Anyways thanks again for the solution!
    Have a great day! 
    Walid Shaaya

  • Javascript function call from PL/SQL block

    Hello,
    I am writing this pl/sql block that has checkbox and onselect, it calls javascript function.
    I defined javascript function in page header, even though I get error that says function is not defined.
    Please help.
    Thank you,
    H.

    I got it resolved...!!!

  • Problem with function call from sql when using distinct

    I have the following problem.
    SELECT DISTINCT colA from tabA where my_function(colB) = 'TRUE'
    This statement will return a handfull of results from a table with 70k + records. The function takes about 0.5 secs to execute.
    How do i force the optimizer to do the select distinct first then execute the function on the results rather than execute the function for every single line first?
    Thanks in advance
    Keith

    Let's compare some of those methods:
    michaels>  CREATE OR REPLACE FUNCTION my_function (tr VARCHAR2)
       RETURN VARCHAR2
    AS
    BEGIN
       DBMS_APPLICATION_INFO.set_client_info (SYS_CONTEXT ('userenv','client_info') + 1);
       IF LOWER (tr) LIKE '%name%'
       THEN
          RETURN 'TRUE';
       ELSE
          RETURN 'FALSE';
       END IF;
    END my_function;
    Function created.
    michaels>  CREATE TABLE taba AS SELECT object_id cola ,object_name colb FROM all_arguments
    Table created.
    michaels>  SELECT COUNT(*) FROM taba
      COUNT(*)
         78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT colA from tabA where my_function(colB) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM (SELECT ROWNUM r, t.* FROM (SELECT DISTINCT cola, colb FROM taba) t)
              WHERE my_function (colb) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    14225
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM taba WHERE (SELECT my_function (colb) FROM DUAL) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    14281
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM taba WHERE EXISTS (SELECT ROWNUM FROM dual WHERE my_function (colb) = 'TRUE')
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    13913
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  WITH temp AS
      (SELECT DISTINCT colA, colB FROM tabA)
    SELECT DISTINCT colA FROM temp WHERE  my_function(colB) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  WITH temp AS
      (SELECT colB, my_function(colB) func FROM (SELECT DISTINCT colB FROM   tabA))
    SELECT DISTINCT colA FROM tabA a, temp t WHERE  a.colB = t.colB AND t.func = 'TRUE'
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786 The combination with exists, rownum and dual gives the least calls to the function.

  • I want to know why it's happening me this error: Object synchronization method was called from an unsynchronized block of code.

    I'm developing a Smart Array (it's a request I cannot use a List of int that I know it's easier because I made both codes). I have done this class and below is the example of how I use it. The error is often in this line (153 from class):
    // Ensure that the lock is released.
    Monitor.Exit(array);
    If I use a List nothing wrong happens just when I translate to an array. Thanks for your help.
    SmartArray3.cs
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using System.Threading.Tasks;
    namespace SmartArray
    class SmartArray3
    private int[] array;
    private int size = 0;
    private int count = 0;
    public SmartArray3()
    Resize(1);
    public SmartArray3(int size)
    this.size = size;
    array = new int[this.size];
    public bool Resize(int size)
    try
    if (array == null)
    array = new int[size];
    else
    Array.Resize(ref array, size);
    this.size++;
    return true;
    catch
    return false;
    private void add(int value)
    try
    if (array == null)
    this.size = 1;
    Resize(this.size);
    array[0] = value;
    this.count++;
    else
    if (this.count == (this.size - 1))
    this.size *= 2;
    this.Resize(this.size);
    if ((this.count - 1) < 0)
    array[0] = value;
    else
    array[this.count - 1] = value;
    this.count++;
    catch (Exception ex)
    Console.Write(ex.ToString());
    throw new System.IndexOutOfRangeException("Index out of Range.");
    // Lock the array and add an element.
    public void Add(int value)
    // Request the lock, and block until it is obtained.
    Monitor.Enter(array);
    try
    if (array == null)
    this.size = 1;
    Resize(this.size);
    array[0] = value;
    this.count++;
    else
    if (this.count == (this.size - 1))
    this.size *= 2;
    this.Resize(this.size);
    if ((this.count - 1) < 0)
    array[0] = value;
    else
    array[this.count - 1] = value;
    this.count++;
    finally
    // Ensure that the lock is released.
    Monitor.Exit(array);
    // Try to add an element to the List: Add the element to the List
    // only if the lock is immediately available.
    public bool TryAdd(int value)
    // Request the lock.
    if (Monitor.TryEnter(array))
    try
    if (array == null)
    this.size = 1;
    Resize(this.size);
    array[0] = value;
    this.count++;
    else
    if (this.count == (this.size - 1))
    this.size *= 2;
    this.Resize(this.size);
    if ((this.count - 1) < 0)
    array[0] = value;
    else
    array[this.count - 1] = value;
    this.count++;
    finally
    // Ensure that the lock is released.
    Monitor.Exit(array);
    return true;
    else
    return false;
    public int Get(int index)
    try
    return array[index];
    catch (IndexOutOfRangeException ex)
    throw new System.IndexOutOfRangeException("Index out of range");
    Code for called the Class:
    private static int threadsRunning = 0;
    private SmartArray3 sa = new SmartArray3();
    private List<double> times;
    private static string[] titles ={
    "Add ", "Add failed ", "TryAdd succeeded ", "TryAdd failed "};
    private static int[][] results = new int[3][];
    //Event to Create Threads
    private void newTest()
    for (int i = 0; i < 3; i++)
    Thread t = new Thread(ThreadProc);
    t.Start(i);
    Interlocked.Increment(ref threadsRunning);
    private void ThreadProc(object state)
    times = new List<double>();
    DateTime finish = DateTime.Now.AddSeconds(10);
    Random rand = new Random();
    int[] result = { 0, 0, 0, 0};
    int threadNum = (int)state;
    while (DateTime.Now < finish)
    Stopwatch sw = Stopwatch.StartNew();
    int what = rand.Next(250);
    int how = rand.Next(25);
    if (how < 16)
    try
    sa.Add(what);
    result[(int)ThreadResultIndex.AddCt] += 1;
    times.Add(sw.Elapsed.TotalMilliseconds);
    catch
    result[(int)ThreadResultIndex.AddFailCt] += 1;
    else
    if (sa.TryAdd(what))
    result[(int)ThreadResultIndex.TryAddSucceedCt] += 1;
    else
    result[(int)ThreadResultIndex.TryAddFailCt] += 1;
    sw.Stop();
    results[threadNum] = result;
    if (0 == Interlocked.Decrement(ref threadsRunning))
    StringBuilder sb = new StringBuilder(
    " Thread 1 Thread 2 Thread 3 Total\n");
    for (int row = 0; row < 4; row++)
    int total = 0;
    sb.Append(titles[row]);
    for (int col = 0; col < 3; col++)
    sb.Append(String.Format("{0,4} ", results[col][row]));
    total += results[col][row];
    sb.AppendLine(String.Format("{0,4} ", total));
    Console.WriteLine(sb.ToString());
    private enum ThreadResultIndex
    AddCt,
    AddFailCt,
    TryAddSucceedCt,
    TryAddFailCt
    Federico Navarrete

    The array that you're calling Monitor.Enter under is not always the same array that you call Monitor.Exit on. When you resize an array using Array.Resize, you pass the variable in as a reference parameter (ref). The method then creates a
    new array object and assigns it to the array variable. Then, when you leave the synchronization block after resizing the array, your Monitor.Exit uses the new array rather than the one it originally entered
    and... boom.
    Instead of locking on the array itself, create a new private readonly field of type Object called "lock" within the SmartArray class and use that to lock on. It doesn't
    need to be readonly, but the keyword will prevent you from accidentally introducing this issue again.

  • Problem with f95 called from make inference rule

    I am porting an existing FORTRAN application to a Sun Solaris machine.  The application is built with a moderately large make file and the source files span multiple directories (basically grouped by functionality).  All foo.f,  foo.o  and foo.lst files are referenced by their absolute path names within the make file.  The Sun Studio 12.3 FORTRAN compiler successfully finds the /home/uid/ ... /foo.f files from all the source directories as input and writes foo.lst files to the same directory as was specified for the matching foo.f file.  However, foo.o object files are written to the current working directory from where the make was executed and not to the same directory as the corresponding foo.f file.
    Using a different make does not change the outcome.
    Changing compilers (with no other change to the make) restores the proper functionality for writing output files to the same directory as was specified by the corresponding *.f locations.
    Have I found a bug or am I just making a newbie's mistake ?

    Sorry, I missed that info. I can reproduce the problem when combining -Xlist with -c option only.
    Look like we have a bug with the new driver when combining the two output options and producing the two output files in the same compilation.
    In this case, the -Xlisto is still accepted and produces the output .lst file at the specified location but the -o option for the ,o file is completely ignored. Is that what you ran into ?
    Since the -Xlist option is not needed to build the application, you can work around the problem by removing the -Xlist option to build the app and use the -Xlist option only when you need to look at the .lst file.
    Sorry about the trouble.

  • How does ip4s identify and address the caller from Contacts on the outgoing message to a caller?

    A friend has the iP4s and has this featured activated.

    Here ya go:
    http://itunes.apple.com/us/app/youmail/id308331524?mt=8

  • CodeBase for Applet called from Javascript

    I have a Search applet that is called from an HTML form in a browser when a button in the form is pressed. The Applet searches files in a folder/subfolders and uses a JSObject to create a new page for the browser with results. Up until recently I was using the plugin from jre 1.3.1 with the appropriate FilePermission entries in the .java.policy file and the applet worked as expected. IE if I added new folders to be searched, I had to add new entries to the policy file to give permission.
    I then installed jre 1.4.2 and the applet started getting Security problems stating the program did NOT have FilePermission. I tried several changes to the policy file and finally found that if I put the FilePermission entries in the empty(Global) codeBase the applet would work.
    What changed between jre 1.3.1 and 1.4.2?
    I would like to understand how the system works, ie where is the true codeBase and not cop-out with giving global permission.
    Any suggestions?
    Also the Java Tutorial shows a Windows syntax for a path (uses \) : C:\testing\-
    The policytool gets confused when I try to enter this. I use double \\ and it takes it OK when I do a Save. But later if I use policytool again to make changes somewhere else in the policy file, the \\ are removed and I end up with: C:testing- in the policy file. So I do it manually with an editor.
    Norm

    I would agree. Remember that the changes you make to the policy file apply to all applets that will ever be run on the system, not only to your applet.

  • Asynchronous calls from EJB

    Hi all,
    I have some problem in designing my application. I would appreciate ,
    if some one can help me out regarding the same.
    My application:
    GUI client requests my EJB for some data, giving some a list of input parameters.(data returned will be directly dependant on the input parameters)
    Problem starts here,
    From my EJB, i have to communicate to an external application for data retrieval based on the list of parameters supplied from the GUI.
    Communication to the external application is asynchronous(JMS like).
    But, to the GUI, data should be displayed as a response
    The problem I face in such a design is that:
    * How can I hold the method call from GUI, till an asynchronous message is received from the external app(as a response) & how can I co-relate these async
    messages with the appropriate request which I'am holding & waiting to be returned.
    This is the first time I'am facing such a situation. If any one has some experience designing such apps, please do share. Any help would be much appreciated.
    Thanks in advance,
    Baskar

    You problem statement doesn't speak anything of why you would be opting for asynchronous communication when the GUI has to respond immediately. Is it a constraint of the existing applications?
    Generally, I observed asynchronous communication only in applications which did not require a frequent refresh on UI, mostly report-generation.

  • Blocked caller - why can they leave a message?

    Blocked caller can leave a message on my iPhone 5s. I don't want the blocked caller to be allowed to leave a message. How can I change the settings?

    I called my carrier and then cannot block the caller from leaving a voice mail message.  However in response to your post above, the fact that i received a voice mail appeared on my phone and the message was there.  Other posts suggested that the caller could leave a message but i would not have access to it,  That's not what happened to me.  Is there any way to change the settings so that the caller cannot leave a message or the message that is left is not accessible to me?

Maybe you are looking for

  • HOW TO ACCESS ATTRIBUTES FROM DIFFERENT VIEW SET

    Hi Experts, How i can  access the variables declared in context class from component controller class and vice-versa. Thanks & Regards Ansal

  • ISight camera built in - good quality?

    Hello, I am about to purchase the 24 inch cinema display for my new Harpertown 3.0 Ghz mac pro 2008. I already bought the Nvidia GT 120 and wanted to know is the isight camera thats built in a much better camera than say, rocketfish which is a 3rd pa

  • Open order value not updated in F.35

    Hi While using item category Tas ( Third party item ) in Sale order, it is not updated in open order value at F.35. please give your suggestions. thanks. Regards, Tirumal.R

  • Connecting TopLink to MQseries via EIS and J2C adapter

    Hi all, has anybody connected successfully TopLink with (non-relational) datasource MQSeries? I have tree-tier-architecture with a custom server and RMI-clients. TopLink resides within this custom server (NOT J2EE App server) and connects to DB2 (mai

  • Datepicker - setting selected date as current date plus 3 days

    Hi, I have a datepicker in my visual webpart. I want to set by default as "today's date + 3 days". Example: if today is 25 Feb, then the datepicker should have selected date as 28 I am aware of this: DTDefaultDate.SelectedDate = DateTime.Today; How t