Thread Error

Hi Guys,
I have a problem with a thread. I would appreciate any help.
I have an applet (called BaseApplet) that is the basis for all my applets. This BaseApplet is basically an extension of Applet that implements Runnable. A thread runs which simply waits for a given time then aborts (basically a timeout). I am getting the following error, apparently randomly);
java.lang.NullPointerException
     at com/innsite/applet/BaseApplet.run
     at java/lang/Thread.run
The BaseApplet is defined as follows;
public class BaseApplet extends Applet implements Runnableand the code to execute the thread is as follows;
  public void init()
    super.init();
    // start the timeout monitor
    timeout = new Thread(this);
    timeout.setDaemon(true);
    timeout.start();
  }First of all can I ask;
Is the error because some code is trying to execute the thread that is not instantiated? If not what could be causing this error?
I can provide the run() method if required but I have put some System.out's and it doesn't appear to run when I get this error. The application does time out as required. I have searched the application and cannot find any other call to start this thread.
Sorry to be so vague. The application is large/commercial so I cannot realistically post all of it.
Has anyone experienced problems with threads being executed?
Thanks in advance.
Slacks

I have a little example. Running this eample if you press 'Destroy Thread' then close the the applet you get a similar error. This error gives the line number etc.
import java.applet.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.MalformedURLException;
import java.net.URL;
public class BaseApplet extends Applet implements Runnable {
     protected static BaseApplet instance;
     private transient Thread timeout = null;
     private transient Thread timeout1 = null;
     public BaseApplet() {
          super();
          instance = this;
     public void init() {
          super.init();
          // start the timeout monitor
          timeout = new Thread(this);
          timeout.setDaemon(true);
          timeout.start();
          timeout1 = new Thread(this);
          timeout1.setDaemon(true);
          timeout1.start();
          Panel p = new Panel();
          Button b1 = new Button("Reset");
          b1.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent arg0) {
                    System.out.println("Timeout Reset : ");
                    resetTimeout();
          Button b2 = new Button("Distroy thread");
          b2.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent arg0) {
                    System.out.println("Destroy Thread : ");
                    timeout=null;
                    timeout1=null;
          p.add(b1);
          p.add(b2);
          add(p);
     public void run() {
          int delay = 30000;
          boolean stopped = false;
          URL exitPage = null;
          try {
               exitPage = new URL("http://127.0.0.1/homepage.html");
          } catch (MalformedURLException e1) {
               e1.printStackTrace();
          while (!stopped) {
               try {
                    synchronized (timeout) {
                         // wait for n milliseconds or until interrupted
                         timeout.wait(delay);
                         System.out.println("Timeout!!!!");
                         stopped = true;
                         getAppletContext().showDocument(exitPage, "_self");
               } catch (InterruptedException e) {
                    // Invoked when interrupt() is called on the timeout thread.
                    // Means that the timeout whould either reset or stop.
          timeout = null;
     public final static void resetTimeout() {
          if ((instance != null) && (instance.timeout != null))
               instance.timeout.interrupt();

Similar Messages

  • Second hard drive missing thread error

    Hello, I've got a macbook pro with 10.8.5 running.  I have had a second 1Gb hard drive installed in the optical bay and it's been running for a long time with no issue.  I booted up today and noticed the drive would not show up in finder.  I ran disk utilities and it said there was a sibling link error and it suggested I repair the disk using disk utility. I ran disk repair and a new error popped up during catalog file check:  there are 5 missing thread record (id = xxxx) errors and two "Incorrect number of thread record errors".  Then it says the volume could not be verified completely and ultimately ends with Error: Disk Utility can't repair this disk...disk, and restore your backed-up files.  I noticed the volume name changed to disk1s2 and I can't mount it.  Now I'm stuck. I looked at recommendations for more elaborate disk repair programs that can be purchased but I see so many negative recommendations on all of them I'm not compelled to purchase.  I definitely need to recover the data on the drive so I am pretty disappointed at what disk utility seemed to do to the drive (it appears to me to be worse since the volume name is changed (before I ran disk utilities when I had the sibling error I saw that the volume name was correct) and I can't do anything with it.)  I'm stuck and could use some good advice.  This is not a boot drive just a data drive.
    Also if anyone could say what this sibling error was and what the thread errors actually are that would be a bonus (I'm an old timer hardware engineer and just want to know )

    Normally, those errors are WRT the disk's directory. You need something stronger, such as DiskWarrior, TechTools Pro, or Drive Genius. All of are reliable and should do the job. Disk Utility has many shortcomings and repairing disk directory errors is one of its biggest.
    iMac refurb (27-inch Mid 2011), OS X Mavericks (10.9.4), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • Problems converting analog - not threaded error

    I am taking a 8mmvideo from an old Sony camcorder, passing it thru a Sony digital recorder and capturing the video/audio into Final Cut Express. I have done this with iMovie but never tried with FCE.
    The connections are fine but I am getting a "Not Threaded" error on the capture window. According to the manual, the tape is missing from the Sony digital camera (which is true). The digital camera manual says to remove the tape in order to do the pass thru. I can't get it to work either way. When I try to play (without the tape) I get a "no VTR" error.
    My 1st question is - does anyone know if I need to have a tape (blank one) in the digital camcorder or not? If I need a tape, doesn't it have to be as long as the one on the old camcorder? Will it record there while I capture in FCE? Then, will I have to erase it to re-record another tape?
    I've gotten as far as seeing the video play in the capture window but when I hit play, nothing happens (except getting the VTR error).
    Thanks in advance for assistance.

    I haven't actually daisy chained two cams like this but I know it should work.
    Make sure you have all your connections properly set ... all the Ins and Outs set properly.
    Have both cams set to VTR and turned on before you launch FCE
    In FCE choose an Easy Setup of DV Converter. Use Capture Now rather than Capture Clip. Play from the 8mm. Then click Capture Now and to stop, press Esc. Make sure you have Capture Now set long enuff to handle the tape (for instance, one hour)

  • B2BStarter thread: (ERROR) Max retry exceeded - B2B startup

    Hi,
    On B2B startup we are getting the following logs.
    le.receiver.minimum_age=0;http.receiver.registry_port=5110;
    2010.05.04 at 09:20:25:600: B2BStarter thread: (DEBUG) initialize TransportReceiver: [Emix_Email_Inbound_Transport_Server_Node_1 < email > < Emix >]
    2010.05.04 at 09:20:25:600: B2BStarter thread: (DEBUG) SMTPReceiver.init() started ....
    2010.05.04 at 09:20:25:713: B2BStarter thread: (DEBUG) IMAPMonitor.setPollingInterval: polling time 1
    2010.05.04 at 09:20:25:713: B2BStarter thread: (DEBUG) SMTPReceiver.init() completed.
    2010.05.04 at 09:20:25:713: B2BStarter thread: (DEBUG) initialize TransportReceiver: [Emix_JMS_Transport_Server < jms > < Emix >]
    2010.05.04 at 09:20:25:714: B2BStarter thread: (DEBUG) JMSReceiver.init() started ....
    2010.05.04 at 09:20:25:714: Thread-15: (DEBUG) [IPT_SmtpRecPollingStatus] IMAPMonitor is up polling at 1 sec interval ...
    2010.05.04 at 09:20:25:715: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:25:728: B2BStarter thread: (DEBUG) Establishing JMS Connection.
    2010.05.04 at 09:20:26:717: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:27:719: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:28:721: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:29:723: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:30:727: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:31:729: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:32:732: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:33:733: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:34:735: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:35:737: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:35:820: B2BStarter thread: (DEBUG) Establishing JMS Connection.
    2010.05.04 at 09:20:36:740: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:37:743: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:38:744: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:39:747: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:40:749: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:41:752: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    le.receiver.minimum_age=0;http.receiver.registry_port=5110;
    2010.05.04 at 09:20:25:600: B2BStarter thread: (DEBUG) initialize TransportReceiver: [Emix_Email_Inbound_Transport_Server_Node_1 < email > < Emix >]
    2010.05.04 at 09:20:25:600: B2BStarter thread: (DEBUG) SMTPReceiver.init() started ....
    2010.05.04 at 09:20:25:713: B2BStarter thread: (DEBUG) IMAPMonitor.setPollingInterval: polling time 1
    2010.05.04 at 09:20:25:713: B2BStarter thread: (DEBUG) SMTPReceiver.init() completed.
    2010.05.04 at 09:20:25:713: B2BStarter thread: (DEBUG) initialize TransportReceiver: [Emix_JMS_Transport_Server < jms > < Emix >]
    2010.05.04 at 09:20:25:714: B2BStarter thread: (DEBUG) JMSReceiver.init() started ....
    2010.05.04 at 09:20:25:714: Thread-15: (DEBUG) [IPT_SmtpRecPollingStatus] IMAPMonitor is up polling at 1 sec interval ...
    2010.05.04 at 09:20:25:715: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:25:728: B2BStarter thread: (DEBUG) Establishing JMS Connection.
    2010.05.04 at 09:20:26:717: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:27:719: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:28:721: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:29:723: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:30:727: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:31:729: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:32:732: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:33:733: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:34:735: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:35:737: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:35:820: B2BStarter thread: (DEBUG) Establishing JMS Connection.
    2010.05.04 at 09:20:36:740: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:37:743: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:38:744: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:39:747: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:40:749: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:20:41:752: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:26:402: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:27:404: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:35:883: B2BStarter thread: (ERROR) Max retry exceeded, closing everything
    java.lang.Exception: Max retry exceeded
    at oracle.tip.transport.basic.jms.JMSMonitor.reconnect(JMSMonitor.java:834)
    at oracle.tip.transport.basic.JMSReceiver.init(JMSReceiver.java:334)
    at oracle.tip.transport.b2b.B2BTransport.init(B2BTransport.java:389)
    at oracle.tip.adapter.b2b.transport.TransportInterface.initialize(TransportInterface.java:473)
    at oracle.tip.adapter.b2b.engine.Engine.initialize(Engine.java:528)
    at oracle.tip.adapter.b2b.init.B2BServer.initialize(B2BServer.java:280)
    at oracle.tip.adapter.b2b.init.B2BStarter.startB2B(B2BStarter.java:318)
    at oracle.tip.adapter.b2b.init.B2BStarter.run(B2BStarter.java:151)
    at java.lang.Thread.run(Thread.java:534)
    2010.05.04 at 09:25:36:424: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:37:427: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:43:440: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:44:441: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:45:443: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:45:886: B2BStarter thread: (DEBUG) Establishing JMS Connection.
    2010.05.04 at 09:25:46:446: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:46:688: B2BStarter thread: (DEBUG) JMS Connection established.
    2010.05.04 at 09:25:47:449: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:47:810: B2BStarter thread: (ERROR) New connection acquired
    2010.05.04 at 09:25:47:810: B2BStarter thread: (DEBUG) JMSReceiver.init() completed.
    2010.05.04 at 09:25:47:810: B2BStarter thread: (DEBUG) initialize TransportReceiver: [Emix_Dummy_File_Transport_Server < file > < Emix >]
    2010.05.04 at 09:25:47:810: B2BStarter thread: (DEBUG) FileReceiver.init() started ....
    2010.05.04 at 09:25:47:822: B2BStarter thread: (DEBUG) FileReceiver.init() completed.
    2010.05.04 at 09:25:48:452: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:49:453: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    2010.05.04 at 09:25:50:455: Thread-15: (DEBUG) IMAPMonitor.run(): IMAPMonitor goes to sleep for 1 secs ...
    The problem is, it takes quite a while for the JMS connection to get established. It fails as you see on max retries.
    However it succeeds eventually.
    However the B2B functionality doesnt start till the connection is established.
    Any idea why this is happeninig...it takes arnd 5-8 minutes for our B2B to actually start polling/ working.
    I did a tnsping to the database and it works correctly.
    Plz help its urgent.
    Thanks,
    Rosh

    Hi Rosh,
    To which JMS you are connecting (weblogic or something else)? This may happen only when the target JMS server is not reachable / there is JNDI look up issue.
    Please provide details. Also refer -
    Re: AIP-50077:  Cannot Initialize Transport
    If you are connecting to Weblogic JMS then make sure to follow below steps -
    1. Add the weblogic.jar in the classpath by following the below instructions:
    a. copy the weblogic.jar in $ORACLE_HOME/ip/lib/ folder
    b. go to the $ORACLE_HOME/opmn/conf/ folder
    c. update the opmn.xml (take the backup of opmn.xml)
    c.1 add this line <variable id="CLASSPATH" value="$ORACLE_HOME/ip/lib/weblogic.jar" append="true" />
    after <variable id="CLASSPATH" value="$ORACLE_HOME/ip/lib/maverick-all.jar" append="true" /> line
    d. restart the B2B
    2. make sure the below properties are set in IDC configuration
    polling interval <polling Interval time>
    Destination Provider Properties java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;java.naming.security.credentials=weblogic;java.naming.security.principal=weblogic;java.naming.provider.url=t3://<IP Address>:<Port>/
    isTopic false
    Connection Factory Location <Connection Factory Name>
    Message Type bytes
    Factory Provider Properties java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory;java.naming.security.credentials=weblogic;java.naming.security.principal=weblogic;java.naming.provider.url=t3://<IP Address>:<port>/
    Regards,
    Anuj

  • Stylus RMX & Konkakt 2 [Mutli Threading error]

    I've been using logic 8 with no problems until I get a [Multi threading error] with Stylus RMX & Kontakt 2
    I've got 8 gigs of memory & an Intel quad running VSL & ESX,... 52 trks no issue,.... I also tried the "new" 1.6.1 update for Stylus,.. no good
    anyone else having this problem ?
    thanks,
    Paul

    I am now getting some nasty instability problems putting a whole film score into one session with multiple cues. Up to a certain point it was ok, but now I'm getting multithreading errors in which both Reaktor MFX, Sculpture, and ES2 are named specifically in the error dialog.
    I also find that if I do any editing operation whatsoever while logic is playing, I get the spinning beachball and have to force quit. I have to do any tweaking with the transport stopped.
    Logic 8 is not free from issues...

  • Kjs threads errors and suicides

    iAS 6 sp2 running iPM will start reporting thread errors on kjs without any meaningfull message. It just prints this: 'Exception in thread "Thread-##" '
    (xx is a number)
    Also my kjs processes "commit suicide" without any reason. Sometimes as soon as they come up. No particular order or
    Has anyone experienced similar issues?
    Here is hardware/software info: Compaq Windows NT4 Server, 2GB RAM, 2 processors.
    iAS sp2 running 2 kjs processes.

    Are you using external threads in your code. Specially, this type of errors happens when you use external threads, and if you use ejb lookups in your threads.

  • Exception in thread error

    I got the following code:
    import java.io.*;
    import java.util.*;
    public class BranchB2
         public static void main(String[] args)
              int pathCost, source, destination, count=0;
              int userSource, userDestination;
              String tempRead;
              ArrayList edge = new ArrayList();
              System.out.print("Start: ");
              userSource = read();
              System.out.print("End: ");
              userDestination = read();
              if(userSource == -1 || userDestination == -1)
                   System.out.println("Error in entry, Program will now exit!");
                   System.exit(0);
            try
                   FileReader file = new FileReader("graph_info - TUTE 2.txt");
                   BufferedReader fileInput = new BufferedReader(file);
                   StringTokenizer st = new StringTokenizer(fileInput.readLine());
                   while (st.hasMoreTokens())
                        source = Integer.parseInt(st.nextToken());
                        destination = Integer.parseInt(st.nextToken());
                        pathCost = Integer.parseInt(st.nextToken());
                        edge.add(new Edge(pathCost, source, destination));
                        count++;
                        st = new StringTokenizer(fileInput.readLine()); //Go to next line
                        System.out.println("TEST" + count);
                   System.out.println("TEST");
                   System.out.println("");     
                   System.out.println("Number of lines in file is " + count);
              catch (IOException e)
                   System.out.println("ERROR: Cannot Read File!");
              System.out.println("TEST");          
         public static int read()
              int value = -1;
              try
                   InputStreamReader isr = new InputStreamReader(System.in);
                   BufferedReader br = new BufferedReader(isr);
                   String tempRead = br.readLine();
                   value = Integer.parseInt(tempRead);
              catch (IOException e)
                   System.out.println("ERROR: Cannot read keyboard!");
              return value;
    }File:
    1 2 2
    1 3 4
    2 4 5
    3 6 5
    4 5 3
    5 7 2
    4 8 5
    8 9 2
    8 13 13
    13 15 3
    13 14 1
    6 10 8
    10 11 4
    10 12 2
    10 2 2
    11 14 2
    14 15 4
    11 11 11When i run it, i get the following error:
    C:\Users\Taurus\Desktop\University\AMI - 4517\Assignment\branchb>java BranchB2
    Start: 2
    End: 1
    TEST1
    TEST2
    TEST3
    TEST4
    TEST5
    TEST6
    TEST7
    TEST8
    TEST9
    TEST10
    TEST11
    TEST12
    TEST13
    TEST14
    TEST15
    TEST16
    TEST17
    TEST18
    Exception in thread "main" java.lang.NullPointerException
            at java.util.StringTokenizer.<init>(Unknown Source)
            at java.util.StringTokenizer.<init>(Unknown Source)
            at BranchB2.main(BranchB2.java:37)
    C:\Users\Taurus\Desktop\University\AMI - 4517\Assignment\branchb>What can I do to fix it?

    I'm guessing that the objective of this program is to read each line from "graph_info - TUTE 2.txt" and convert it into an Edge object. If that is the case, then what did you expect this piece of code will do?
    StringTokenizer st = new StringTokenizer(fileInput.readLine());
    while (st.hasMoreTokens())
      source = Integer.parseInt(st.nextToken());
      destination = Integer.parseInt(st.nextToken());
      pathCost = Integer.parseInt(st.nextToken());
      edge.add(new Edge(pathCost, source, destination));
      count++;
      st = new StringTokenizer(fileInput.readLine()); //Go to next line
      System.out.println("TEST" + count);
    }I would write it like this.
    String str = "";
    while ( (str = fileInput.readLine()) != null )//Read every line until EOF
      String []splits = str.split(" ");//No need for StringTokenizer
      source = Integer.parseInt(splits[0]);
      destination = Integer.parseInt(splits[1]);
      pathCost = Integer.parseInt(splits[2]);
      edge.add(new Edge(pathCost, source, destination));
      count++;
      System.out.println("TEST" + count);
    }

  • Singol Thread Error (STA) when open script by powershell

    hi everyone. this is my script:
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    function global:stamp(){
    param([string]$string)
    $string=$string.replace(' ',',')
    $string | Out-File "C:\test.txt" -Append
    $form.close()
    $form = New-Object System.Windows.Forms.Form
    [int32]$x=(Get-WmiObject -Class Win32_DesktopMonitor | ForEach-Object {$_.ScreenWidth}) - 100
    [int32]$y=(Get-WmiObject -Class Win32_DesktopMonitor | ForEach-Object {$_.ScreenHeight}) - 100
    $x1 = $x - 100
    $y1 = $y - 400
    $form.Size = New-Object System.Drawing.Size($x,$y)
    $dataGridView = New-Object System.Windows.Forms.DataGridView
    $dataGridView.Size=New-Object System.Drawing.Size($x1,$y1)
    $dataGridView.Location = New-Object System.Drawing.Size(100,40)
    $dataGridView.AutoSizeColumnsMode = "Fill"
    $go = New-Object System.Windows.Forms.Button
    $go.Location = New-Object System.Drawing.Size(300,450)
    $go.Size = New-Object System.Drawing.Size(80,30)
    $go.text = "ok"
    $form.Controls.Add($go)
    $form.Controls.Add($dataGridView)
    $Column0 = New-Object System.Windows.Forms.DataGridViewTextboxColumn
    $Column0.HeaderText = "Pacchetti"
    $Column0.Width = 300
    $dataGridView.Columns.Add($Column0)
    $Column1 = New-Object System.Windows.Forms.DataGridViewComboBoxColumn
    $Column1.HeaderText = "Azione"
    $Column1.width = 300
    $Options="Promozione","Regressione"
    $Column1.Items.AddRange($Options)
    $dataGridView.Columns.Add($Column1)
    $Column2 = New-Object System.Windows.Forms.DataGridViewComboBoxColumn
    $Options2="Promozione","Regressione", "Null"
    $Column2.HeaderText = "Tipo_Dipendenza"
    $Column2.Width = 300
    $Column2.Items.AddRange($Options2)
    $dataGridView.Columns.Add($Column2)
    $Column3 = New-Object System.Windows.Forms.DataGridViewTextboxColumn
    $Column3.HeaderText = "Pacchetti_Dipendenti"
    $Column3.Width = 300
    $dataGridView.Columns.Add($Column3)
    $go.Add_Click(
    $p=$true
    $intestazione="Pkt,Azione,Dip,PktDip" | Out-File "C:\test.txt"
    $data=New-Object System.Collections.ArrayList
    for($j=0;$j -le ($dataGridView.RowCount - 2); $j++){
    #$dataGridView.Rows[$j].Selected = $true
    for($i=0;$i -le ($dataGridView.Columns.Count -1);$i++){
    $export=$dataGridView.Rows[$j].Cells[$i].Value
    $columnName = $dataGridView.Columns[$i].HeaderText
    $riga = $j+1
    switch ($i){
    0 { if(!($log=cmd /c hudp -b harvest -en HarvestOper -st Accettazione -usr c.nosari -pw harvest -pn QueryPkg -ap $export -o " C:\log.txt" | Select-String -Pattern "NON ESISTE")){$data.Add($export)}
    else{[System.Windows.Forms.MessageBox]::Show("Campo $columnName riga $riga Errato","WARNING",0,48)
    $p=$false
    1 {$data.Add($export)}
    2 {$data.Add($export)}
    3 { if(!($log=cmd /c hudp -b harvest -en HarvestOper -st Accettazione -usr c.nosari -pw harvest -pn QueryPkg -ap $export -o " C:\log.txt" | Select-String -Pattern "NON ESISTE") -or $export -eq ""){$data.Add($export)}
    else{[System.Windows.Forms.MessageBox]::Show("Campo $columnName riga $riga Errato","WARNING",0,48)
    $p=$false
    if(!($p)){break}
    if($p){
    stamp $data
    $data.clear()
    else{
    break
    [void]$form.ShowDialog()
    When i execute it by powershell i receive thi error:
    System.ThreadingThreadStateException:
    Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
    System.Windows.Forms.ComboBoxset_AutoCompleteSource (Autoco
    mpleteSource value)
    System.Windows.Forms.DataGridViewComboBoxCell.InitializeEditingCo
    ntrol (1nt32 rowlndex,, Object
    initialFormattedValue,,
    DataGridViewCellStyle dataGridViewCellStyle)
    System.Windows.Forms.DataGridViewJnitializeEditingC ontrolValue
    (Dat
    aGridViewCellStyle & dataGridViewCellStyle,,
    DataGridViewCell
    DataGridViewCell)
    To replace this default dialog box,
    handle the event
    DataError.
    How can i fix this? where do i have to insert what it say?
    Thanks so much
    Cristian

    I forget which versions this applies to, but some of the older versions of PowerShell launch the console in MTA mode by default, while the ISE is always STA. On my computer with PowerShell 4.0 installed, this is no longer the case; both ISE and Console both
    use STA by default.
    Anyhow, just use the -Sta switch when launching PowerShell.exe, and you'll be able to run that script. You could even add code to the beginning of the script which detects the current apartment state, and relaunches a new copy of powershell.exe if needed,
    very similar to code which people have used to detect whether PowerShell.exe was running in an elevated process. Something along these lines:
    if ([System.Threading.Thread]::CurrentThread.ApartmentState -eq [System.Threading.ApartmentState]::MTA)
    powershell.exe -Sta -File $MyInvocation.MyCommand.Path
    return
    # Rest of your script code here

  • Some Java Thread error in Xp (Urgent)

    HI all,
    I am working on a 3 tier software and it is running fine on all machines except one "The XP Machine",
    The problem is when i m going tru http://appserv:13000 it starts executing but in between an error comes that shows that some java thread or null pointer error and execution stops, i have faced similar type of error in WIN 98 but after installing java virtual machine it was sorted.
    but on this perticular machine i have already installed this JVM, but still problem is as it is.
    Please help me to sort this problem,
    Thanks & regards
    Tehzeeb Ahmed

    Tehzeeb,
    this is an Oracle Forms discussion forum. General Java questions are best answered on teh J2EE forum or the JDeveloper forum.
    Btw.: You need to be more specific when describing the problem.
    Frank

  • Thread: ERROR - ORA-28000: the account is locked

    i installed oracle 10g. but it shows this error

    suresh.m2015 wrote:
    i installed oracle 10g. 10g?
    Really?
    Why?
    Why not 11g (which you were trying to install in your previous thread: Re: Error in instaling oracle 11g in win7
    And where did you get a copy of 10g, seeing as it is not publicly available.
    but it shows this error

  • Debugging on linux - strange thread error?

    Hi,
    I'm having problems debugging on Red Hat EL 3 linux with the 1.4.2_09 JVM. I start the JVM like so:
    java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n
    About 1 out of every 2 or 3 times I start the JVM like this, it fails right away with this error:
    FATAL ERROR in native method: JDWP "threadControl.c" (Jul 26 2005), line 1551: Unable to create thread table entry
    And even when the JVM does manage to come up, when I try to attach with a debugger it just hangs.
    I suspect that this might be a JVM bug because if I switch to the 1.5.0 JVM , everything works fine.
    Anybody have any suggestions?
    Thanks!

    Hi,
    change your display value to 1.0
    DISPLAY=localhost.localdomain:1.0
    export DISPLAY
    this should work
    Jyothi.

  • Creating thread : error

    Hi
    class NewThread implements runnable {
    Thread t;
    NewThread(){
    t = new Thread(this, "Demo Thread");
    System.out.println("Child Thread:" + t);
    t.start();
    public void run(){
    try{
    for(int i =5; i>0; i--){
    System.out.println("Child Thread:" + i);
    Thread.sleep(500);
    catch(InterupptedException e) {
    System.out.println("Child interuppted.");
    System.out.println("Exiting child Thread);
    class ThreadDemo{
    new NewThread();
    try{
    for(i=5; i>0; i--) {
    System.out.println("Main Thread:" + i);
    Thread.sleep(1000);
    }catch(InterupptedException e) {
    Sytem.out.println("Main thread interuppted.");
    System.out.println("Main thread exiting.");
    I AM GETTING THIS ERROR IN COMMAND PROMPT
    c:\java>javac ThreadDemo.java
    ThreadDemo.java:9: illegal start of expression
    public void run(){
    ^
    ThreadDemo.java:9: illegal start of expression
    public void run(){
    ^
    ThreadDemo.java:9: ';' expected
    public void run(){
    ^
    ThreadDemo.java:15: 'catch' without 'try'
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:15: ')' expected
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:15: not a statement
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:15: ';' expected
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:18: unclosed string literal
    System.out.println("Exiting child Thread);
    ^
    ThreadDemo.java:18: ';' expected
    System.out.println("Exiting child Thread);
    ^
    ThreadDemo.java:10: 'try' without 'catch' or 'finally'
    try{
    ^
    ThreadDemo.java:23: illegal start of type
    new NewThread();
    ^
    ThreadDemo.java:23: ';' expected
    new NewThread();
    ^
    ThreadDemo.java:23: illegal start of type
    new NewThread();
    ^
    ThreadDemo.java:23: <identifier> expected
    new NewThread();
    ^
    ThreadDemo.java:24: illegal start of type
    try{
    ^
    ThreadDemo.java:24: ';' expected
    try{
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: ';' expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: ';' expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: ';' expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:26: <identifier> expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: illegal start of type
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: ')' expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: ';' expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: illegal start of type
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: <identifier> expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: ';' expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:27: illegal start of type
    Thread.sleep(1000);
    ^
    ThreadDemo.java:27: illegal start of type
    Thread.sleep(1000);
    ^
    ThreadDemo.java:29: 'catch' without 'try'
    }catch(InterupptedException e) {
    ^
    ThreadDemo.java:29: ')' expected
    }catch(InterupptedException e) {
    ^
    ThreadDemo.java:29: not a statement
    }catch(InterupptedException e) {
    ^
    ThreadDemo.java:29: ';' expected
    }catch(InterupptedException e) {
    ^
    41 errors
    c:\java>javac ThreadDemo.java
    ThreadDemo.java:9: illegal start of expression
    public void run(){
    ^
    ThreadDemo.java:9: illegal start of expression
    public void run(){
    ^
    ThreadDemo.java:9: ';' expected
    public void run(){
    ^
    ThreadDemo.java:15: 'catch' without 'try'
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:15: ')' expected
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:15: not a statement
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:15: ';' expected
    catch(InterupptedException e) {
    ^
    ThreadDemo.java:18: unclosed string literal
    System.out.println("Exiting child Thread);
    ^
    ThreadDemo.java:18: ';' expected
    System.out.println("Exiting child Thread);
    ^
    ThreadDemo.java:10: 'try' without 'catch' or 'finally'
    try{
    ^
    ThreadDemo.java:23: illegal start of type
    new NewThread();
    ^
    ThreadDemo.java:23: ';' expected
    new NewThread();
    ^
    ThreadDemo.java:23: illegal start of type
    new NewThread();
    ^
    ThreadDemo.java:23: <identifier> expected
    new NewThread();
    ^
    ThreadDemo.java:24: illegal start of type
    try{
    ^
    ThreadDemo.java:24: ';' expected
    try{
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: ';' expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: ';' expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: illegal start of type
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: <identifier> expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:25: ';' expected
    for(i=5; i>0; i--) {
    ^
    ThreadDemo.java:26: <identifier> expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: illegal start of type
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: ')' expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: ';' expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: illegal start of type
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: <identifier> expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:26: ';' expected
    System.out.println("Main Thread:" + i);
    ^
    ThreadDemo.java:27: illegal start of type
    Thread.sleep(1000);
    ^
    ThreadDemo.java:27: illegal start of type
    Thread.sleep(1000);
    ^
    ThreadDemo.java:29: 'catch' without 'try'
    }catch(InterupptedException e) {
    ^
    ThreadDemo.java:29: ')' expected
    }catch(InterupptedException e) {
    ^
    ThreadDemo.java:29: not a statement
    }catch(InterupptedException e) {
    ^
    ThreadDemo.java:29: ';' expected
    }catch(InterupptedException e) {
    ^
    41 errors
    c:\java>
    Can you please tell me where i am wrong.
    Regards,
    Neha

    NehaVerma wrote:
    Hi,
    See i am getting this error when i try to run the same program that you wrote after corrections
    c:\java>javac ThreadDemo.java
    c:\java>java ThreadDemo
    Exception in thread "main" java.lang.NoClassDefFoundError: ThreadDemo
    Caused by: java.lang.ClassNotFoundException: ThreadDemoIf you don't know how to fix that, then you need to go back to the very basics. Learn the fundamentals before getting anywhere near multithreading.
    [Javapedia: Classpath|http://wiki.java.net/bin/view/Javapedia/ClassPath]
    [How Classes are Found|http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html]
    [Setting the class path (Windows)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html]
    [Setting the class path (Solaris/Linux)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html]
    [Understanding the Java ClassLoader|http://www-106.ibm.com/developerworks/edu/j-dw-javaclass-i.html]
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    = = = = = = = = = = = = = =
    Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • XML SQL Utility Thread Error

    Greetings:
    I am working on how to use xml and 8i to our benefit. I have
    installed Oracle 8i and I have downloaded the XML SQL Utility.
    In checking out the installation using the standard "java ...
    select from" example I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError:
    OracleXML
    The first place I checked was the env.bat file, I found an
    incorrect classpath and changed it:
    rem - JDK_HOME
    set JDK_HOME=C:\JDK1.1.6 (no such folder)
    to
    rem - JDK_HOME
    set JDK_HOME=C:\JDK1.2.2
    All other paths look good. I executed the bat file and tried the
    example again. Same error.
    Any Ideas??
    null

    Still same error.
    Here is what I've done.
    1. rem the JDK Home
    2. downloaded Java 1.1.8 JDK
    3. changed computer env. path to include 1.1.8 JDK
    I have checked all the paths in the bat file and all are pointing
    to the correct place to find the file listed with one exception:
    I don't have a src file in the %PD% folder.
    rem This need not be changed
    set
    XMLSQL_DIR=%PD%\lib\oraclexmlsql.jar;%PD%;%PD%\src;%PD%\lib;%PD%\
    sample
    Where should it be pointing for the src file?
    Oracle XML Team wrote:
    : Hi Michael,
    : Based on the symptoms described, I am guessing something in
    : your environment still isn't right (i.e. env.bat hasn't been
    : configured correctly). Please confirm that all the paths in
    that
    : directory point to the right places. In particular make
    : sure that your CLASSPATH includes the directory in which
    : oraclexmlsql.jar and parser.jar reside. Also, the XSU is
    : supposed to run against JDK1.1.6 (we haven't tested it against
    : 1.2). One last thing... make sure that JAVA_HOME environment
    : variable is NOT set (i.e. make sure it is undefined).
    : Michael Cline (guest) wrote:
    : : Greetings:
    : : I am working on how to use xml and 8i to our benefit. I have
    : : installed Oracle 8i and I have downloaded the XML SQL
    Utility.
    : : In checking out the installation using the standard "java ...
    : : select from" example I get the following error:
    : : Exception in thread "main" java.lang.NoClassDefFoundError:
    : : OracleXML
    : : The first place I checked was the env.bat file, I found an
    : : incorrect classpath and changed it:
    : : rem - JDK_HOME
    : : set JDK_HOME=C:\JDK1.1.6 (no such folder)
    : : to
    : : rem - JDK_HOME
    : : set JDK_HOME=C:\JDK1.2.2
    : : All other paths look good. I executed the bat file and tried
    : the
    : : example again. Same error.
    : : Any Ideas??
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Main thread error

    Just started programming and get error message for main thread. any suggestions

    There could be something wrong with your computer...
    Go buy another one

  • Failed session with Java Thread error message

    Hi:
    We are using Oracle Forms 10g (application server 10.1.2.0.2).
    One of our users sessions just went unresponsive and when we took a look at the Java Console we captured the following:
    Exception in thread "AWT-EventQueue-2" java.lang.IllegalStateException: cannot open system clipboard
    at sun.awt.windows.WClipboard.openClipboard(Native Method)
    at sun.awt.datatransfer.ClipboardTransferable.<init>(Unknown Source)
    at sun.awt.datatransfer.SunClipboard.getContents(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent._pasteImpl(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.paste(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.processKeyEvent(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWCommonText.processKeyEvent(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField.processKeyEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.processEventImpl(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField.processEventImpl(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
    Has anybody seen this before and found a solution for it?
    I searched the forum and found nothing that seems to apply.
    Thanks,
    USA

    Bug 4520121 is about a java.lang.OutOfMemoryError or performance degradation when large amounts of data (megabytes) is on the system clipboard. Not sure if that's related to your problem as the call stack seems to indicate you're getting this when pasting information from the clipboard to an item
    Update: searching on metalink quickly reveals Note 301618.1 which refers to the bug Jan mentions and also to "Bug 4290580 JAVA.LANG.ILLEGALSTATEEXCEPTION: CANNOT OPEN SYSTEM CLIPBOARD"
    From the metalink Note:
    The both bugs are fixed in 10.1.2.2 of Forms. In order to implement the full fix for Bug 4290580 / 4170518, the following modifications must be made:
    1. formsweb.cfg:
    a. Locate forms90/server (9.0.4) or forms/server (10.1.2)
    b. Add allowAlertClipboard=true
    2. Add the "allowAlertClipboard" to the following HTML templates used by Forms:
    base.htm
    baseie.htm
    basejini.htm
    basejpi.htm
    * Syntax for the <OBJECT> </OBJECT> and <APPLET> </APPLET>
    <PARAM NAME="allowAlertClipboard" VALUE="%allowAlertClipboard%">
    * Syntax for the <OBJECT> </OBJECT>
    allowAlertClipboard="%allowAlertClipboard%"
    This paramter is added so that user has a choice of disabling the Clipboard alert Dialog is added so that user has a choice of disabling the alert Dialog by setting this parameter value to false in case of System Clipboard is used by some other Application.

Maybe you are looking for

  • Discontinuation in BOM

    Dear Gurus, for one discon material we have four follow up material s,clienet want requirement should consume follow up 1,then consume follow up 2,then follow up 3,then consume 4,if still requirement is not fulfilled ,systroupem should create the PR

  • Firewire to Thunderbolt

    I want to transfer footage from my digital camera to my new iMac, as there is no firewire port anymore what do I need? I transferred footage with no problem on my old Dual processor G5, what firewire connection do I need don't know how many pins that

  • BoundAttribute incoherence?

    If i write: <text data:text="someText@myData"/> it is just supposed to be a shortcut for: <text> <boundAttribute name="text"> <dataObject source="myData" select="someText"/> </boundAttribute> </text> right? So here is what I was trying to do: - case

  • Since the latest update a previously combined album has separated and won't go back to normal...

    I have about 30 singles downloaded onto itunes, each with its own individual cover, and each one renumbered and organised as part of an album. On itunes this is fine, they all play in order and everything seems okay, but everytime I sync with my ipod

  • Apple remote won't work with Keynote + "not enough RAM" error

    Of course it works with Keynote 6.0 ('13), but not Keynote 5.3. It also works with iTunes and volume during Keynot '13 but will not advance the slide/animation. Anyone else have the same problem? Also, ever since Mavericks update, sometimes my Keynot