"Pause" Thread, thread creation & run performance

Hello,
I'm having an object executing tasks in response to events (I call it Executer)
In "normal" execution mode, it's executing 2 types of tasks: tasks1 and tasks2.
when a specific event occurs (pauseEvent), I want it to STOP executing tasks2 for a specific amount of time (in this example 100ms): I'm calling that a "pause"
it will still be executing tasks1 in the meantime, and will resume executing tasks2 only after the pause has expired.
to do so, when I receive a pauseEvent I create a new Thread (PauseThread) and start it.
it itself calls the "setPause(boolean p)" method of Executer to set the "pause" flag to true
then it waits for 100ms
then it sets back the pause flag to false
(Executer checks the pause flags before executing tasks2)
class PauseThread extends Thread {
    private TaskExecuter  executer;
    private long                pauseTime;
    public PauseThread(Executer e, int t) {
        executer = e;
        pauseTime = t;
    public void run() {
        executer.setPause(true);
     try {
            sleep(pausetime);
        catch(InterruptedException e) {
            System.out.println("exception pause thread");
     executer.setPause(false);                
}all is working fine.
however, I'm trying to improve performances.
the whole process of creating & starting the thread takes up to 50us, I want to reduce this as much as possible.
obviously, I create & start a thread every time I want to do a pause, I'm thinking there MUST be a way to avoid this, and simply call the setTrue / Sleep / setFalse part of the thread instead.
I was thinking about creating and starting the thread only once at the creation of my Executer, and calling the "pause()" method when needed:
class PauseThread extends Thread {
    private TaskExecuter  executer;
    private long                pauseTime;
    public PauseThread(Executer e, int t) {
        executer = e;
        pauseTime = t;
    public void run() {
     while(true) {
    public void pause() {
        executer.setPause(true);
     try {
            sleep(pausetime);
        catch(InterruptedException e) {
            System.out.println("exception pause thread");
     executer.setPause(false);                
}would that be correct ?
I'm concerned with the performance hit of the "while(true)" (as I'm fighting for micro-seconds, even the slighliest useless cpu hit should be avoided)
what if I had "sleep(1)" in my while loop ?
I'm pretty sure there's a better way to do this, any idea ? maybe using wait / notify, however I get the feeling those methods are not designed for this use...
any hint ?
thanks !

yes, I'm certainly reinventing the wheel ! but trying to understand it at the same time !
what was your other suggestion ? Timer + TimerTask ? I've already implemented it and using it now ! as I said it's working good, 3x improvement ! simply trying to see if there's a way to avoid creating a TimerTask object at each run.
coming back at the "piece of nonsense", what would this achieve:
class PauseThread extends Thread {
    private TaskExecuter  executer;
    private long                pauseTime;
    private boolean           flag = false;
    public PauseThread(Executer e, int t) {
        executer = e;
        pauseTime = t;
    public void run() {
     while(true) {
            if(flag) {
                flag = false;
                sleep(pauseTime); // add try/catch
                executer.setPause(false);
    public void startPause() {
        flag = true
}then in my Executer, I create and start the PauseThread only once, and when I want to pause it, I simply do:
setPause(true);
pauseThread.startPause();in this case the sleep would execute in the run(), pause the "pause" thread, not the "executer" thread, no ?
I will read about the concurrency classes...

Similar Messages

  • Thread (won't run on multiple CPUs)

    I have read articles that claim java's threads will only run on one CPU no matter how many CPUs your system has. But most of those articles were of old versions of java, but I have mostly dual and some quad CPU machines running Linux and I tested out the latest version of the jdk (1.5) and have soem disappointing results. When I look at the CPU usage while I run multithreaded apps it seems there is always one that is over worked, and I think the other CPUs are just doing OS stuff not java stuff. I then did some tests looking at run times which should be almost linear as I increase my thread count (as long as I keep it under the number of CPUs), so on my quad CPU machines I should 2 threads better than one and 3 threads better than 2 and 4 threads should be my peek performance. The machines I tested were completly idle, and I had the exact same run times for all the runs even a little worse as the numbe of threads was increased. So it looks at though the threads aren't utilizing the multiple CPUs. I then made my program run in seperate threads and there was a linear increase, so there is definatly something wrong with the jdk and threading (on SMP machines) as far as I can tell... Anyone else have input?

    I ran your code on a linux box running debian 3.0 with FOUR 750MHz processors:
    Runtime 771 ms, rate=2594033 rand()/sec
    Runtime 1445 ms, rate=2768166 rand()/sec
    Runtime 1546 ms, rate=5174644 rand()/sec
    $ uname -a
    Linux shell 2.4.27-undaero #3 SMP Fri Sep 3 17:35:56 CDT 2004 i686 unknown
    $ java -version
    java version "1.4.2_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
    $
    I ran your code on a Sun sparc with FOUR 450MHz processors:
    Solaris 9 12/02 s9s_u2wos_10 SPARC
    Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 05 November 2002
    Runtime 1252 ms, rate=1597444 rand()/sec
    Runtime 2545 ms, rate=1571709 rand()/sec
    Runtime 1843 ms, rate=4340748 rand()/sec
    agassiz% uname -a
    SunOS agassiz 5.9 Generic_117171-11 sun4u sparc SUNW,Ultra-4
    agassiz% java -version
    java version "1.4.0_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)
    Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode)
    agassiz%
    I ran your code on a Red Hat Linux release 8.0 (Psyche) wit DUAL Pentium Xeon 2.4 GHz
    Runtime 476 ms, rate=4201680 rand()/sec
    Runtime 742 ms, rate=5390835 rand()/sec
    Runtime 758 ms, rate=10554089 rand()/sec
    podollb@Node5 ~>uname -a
    Linux Node5 2.4.18-14smp #1 SMP Wed Sep 4 12:34:47 EDT 2002 i686 i686 i386 GNU/Linux
    podollb@Node5 ~>java -version
    java version "1.5.0-rc"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
    Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode)
    I ran your code on a SINGLE cpu Linux box running Slackware 9.1.0 with 333MHz Pentium II
    Runtime 1018 ms, rate=1964636 rand()/sec
    Runtime 2009 ms, rate=1991040 rand()/sec
    Runtime 4010 ms, rate=1995012 rand()/sec
    podollb@vectra ~>uname -a
    Linux vectra 2.4.22 #6 Tue Sep 2 17:43:01 PDT 2003 i686 unknown unknown GNU/Linux
    podollb@vectra ~>java -version
    java version "1.5.0-rc"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
    Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode)
    I ran your code on a SINGLE CPU machine running Red Hat Linux release 9 (Shrike) 1.69GHz
    Runtime 714 ms, rate=2801120 rand()/sec
    Runtime 1416 ms, rate=2824858 rand()/sec
    Runtime 2823 ms, rate=2833864 rand()/sec
    podollb@equus ~>uname -a
    Linux equus 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
    podollb@equus ~>java -version
    java version "1.4.2_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
    I ran your code on a Fedora Core release 1 (Yarrow) with DUAL 1.66 AMD Athlon
    Runtime 298 ms, rate=6711409 rand()/sec
    Runtime 837 ms, rate=4778972 rand()/sec
    Runtime 815 ms, rate=9815950 rand()/sec
    podollb@zeus_master ~>uname -a
    Linux zeus_master 2.4.22-1.2199.nptlsmp #1 SMP Wed Aug 4 11:49:01 EDT 2004 i686 athlon i386 GNU/Linux
    podollb@zeus_master ~>java -version
    java version "1.4.2_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
    I ran your code on a DUAL 2.8GHz Pentium Xeon running Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
    Runtime 485 ms, rate=4123711 rand()/sec
    Runtime 451 ms, rate=8869179 rand()/sec
    Runtime 484 ms, rate=16528925 rand()/sec
    podollb@crayowulf ~>uname -a
    Linux crayowulf 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:18:24 EDT 2004 i686 i686 i386 GNU/Linux
    podollb@crayowulf ~>java -version
    java version "1.5.0-rc"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
    Java HotSpot(TM) Server VM (build 1.5.0-rc-b63, mixed mode)
    I ran your code on a DUAL pentium xeon 1.69GHz
    Runtime 678 ms, rate=2949852 rand()/sec
    Runtime 1197 ms, rate=3341687 rand()/sec
    Runtime 1773 ms, rate=4512126 rand()/sec
    podollb@tycho ~>uname -a
    Linux tycho.rwic.und.edu 2.4.18-24.7.xsmp #1 SMP Fri Jan 31 06:10:55 EST 2003 i686 unknown
    podollb@tycho ~>java -version
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-beta)
    Java HotSpot(TM) Client VM (build Blackdown-1.4.1-beta, mixed mode)

  • How many threads can be running at the same time

    Hi!!
    Dows anyone knows how many Threads can be running at the same time in the JVM.
    I'm making a multi thread client-server app and I would like to know how much simultneous connections the JVM support. I'm using one Thread per connection.

    Hi, thanks to all for your answers.
    I think that I made the wrong question, as you said: "that means the number of threads currently created".
    I'm worry about this because my application is already online (It's a mail server -SMTP and POP3 server using ORACLE for the users database- ) and some other user post in the "multi-tread forum" that almost any JVM can only have 700 threads created at the same time, and I've never heard or read anything about this.
    what you mean with the stack space (memory??)
    I'm using the JavaWebServer 2.0 and a servlet to start the main Thread.
    Again Thanks to all for the answers but I think that the schapel answer is the one that solve my doubt...

  • Thread.start() without run() invoke

    We got interesting problem during migration one old application from java 1.4.2_08 to the java 1.5.0_06. The principal code of application is:
    public class objServ extends Thread {
      public void run() {
         while (!End) {
               clientSocket = ServSocket.accept();
               client = new objClient(this, clientSocket);
               logger.sendInfo("client created. "+client.getName());
               client.start();
               logger.sendInfo("client start done. "+client.getName());
      public static void main(String args[]) {
          pkvserv serv = new objServ(hostName, port);
          serv.start();
    public class objClient extends Thread {
       // client method run()
      public void run() {
         printlog("Thread run started. "+this..getName());
    }The application listen port and generate the client thread for each connection.
    After 10 days of using this application and generating and successful processing and termination of near 340000 client threads we got a situation when client thread was created, method start() was invoked, but the client method run() was never invoke.
    Does anybody have any idea why this situation can happen? We have memory monitoring on that application and it�s was not a memory problem.

    So you're claiming there's a bug in the VM. I doubt it (at least not one of the nature you're claiming). I'd suspect your code didn't execute start(), or that if it did, run() did execute and you're making a faulty conclusion that it didn't.

  • Thread won't run

    in my program i want a thread name getdata to start, but it does not. if it did a statement in system would say so. Any help in getting the thread to run would be great thanks. Here is the code:
    public void listenSocket() {
         if ( connected==("2") ) {
    //Create socket connection
         try{
           socket = new Socket(ipaddress, 4444);
           out = new PrintWriter(socket.getOutputStream(), true);
           in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
         } catch (UnknownHostException e) {
           System.out.println("Unknown host: host your connecting to");
           System.exit(1);
         } catch  (IOException e) {
           System.out.println("No I/O");
           System.exit(1);
                   connected = "1";
                   Thread getdata = new Thread();
                   getdata.start();
         else {
              try{
                    socket = new Socket(ipaddress, 4444);
           out = new PrintWriter(socket.getOutputStream(), true);
           in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
         } catch (UnknownHostException e) {
           System.out.println("Unknown host: host your connecting to");
           System.exit(1);
         } catch  (IOException e) {
           System.out.println("No I/O");
           System.exit(1);
         senddata();
    public void run()
              if( getdata == Thread.currentThread() )
                   System.out.println("running getdata thread");
                   friendtypingLabel.setText("running get data");
                   getdatamethod();
    }

    I believe you really have to read the API about Thread this is not the way at all how you can create a new Thread.
    Thread getdata = new Thread();
    getdata.start();Create a new Thread object with itself as its underlying Runnable. Therefore when you start it, it process the run() method of Thread class which is empty. You must create a class which extends Thread and overload its run method instead or create a class that implements Runnable and create the new Thread with:
    Thread t = new Thread(myRunnable);
    t.start();

  • Help with "Exception in thread "Thread-4" java.lang.NullPointerException"

    I am new to Java and I am trying a simple bouncing ball example from Stanford. Here is their simple example that works.
    import acm.program.*;
    import acm.graphics.*;
    import java.awt.*;
    public class BouncingBallWorking extends GraphicsProgram {
    /** sets diameter */
    private static final int DIAM_BALL = 30;
    /** amount y velocity is increased each cycle */
    private static final double GRAVITY = 3;
    /** Animation delay or pause time between ball moves */
    private static final int DELAY = 50;
    /** Initial X and Y location ball*/
    private static final double X_START = DIAM_BALL / 2;
    private static final double Y_START = 100;
    private static final double X_VEL = 3;
    private static final double BOUNCE_REDUCE = 0.9;
    private double xVel = X_VEL;
    private double yVel = 0.0;
    private GOval BallA;
    public void run() {
    setup(X_START,Y_START);
    //         Simulation ends when ball goes off right hand
    //         end of screen
    while (BallA.getX() < getWidth()) {
    moveBall(BallA);
    checkForCollision(BallA);
    pause(DELAY);
    private void setup(double X_coor, double Y_coor) {
    BallA = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
    add(BallA);
    private void moveBall(GOval BallObject) {
    yVel += GRAVITY;
    BallObject.move(xVel,yVel);
    private void checkForCollision(GOval BallObject) {
    if(BallObject.getY() > getHeight() - DIAM_BALL){
    yVel = - yVel * BOUNCE_REDUCE;
    double diff = BallObject.getY() - (getHeight() - DIAM_BALL);
    BallObject.move(0, -2 * diff);
    } Now I am trying to modify "setup" so it I can create several balls. I made a simple modification to "setup" and now I am getting an error.
    "Exception in thread "Thread-4" java.lang.NullPointerException
    at BouncingBallNotWorking.run(BouncingBallNotWorking.java:36)
    at acm.program.Program.runHook(Program.java:1592)
    at acm.program.Program.startRun(Program.java:1581)
    at acm.program.AppletStarter.run(Program.java:1939)
    at java.lang.Thread.run(Unknown Source)"
    Can you describe why I am getting an error? Thanks.
    Here is what I changed.
    Before:
         private void setup(double X_coor, double Y_coor) {
              BallA = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
              add(BallA);
         }After:
         private void setup(double X_coor, double Y_coor, GOval BallObject) {
              BallObject = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
              add(BallObject);
         }Here is the complete code.
    * File:BouncingBall.java
    * This program graphically simulates a bouncing ball
    import acm.program.*;
    import acm.graphics.*;
    import java.awt.*;
    public class BouncingBallNotWorking extends GraphicsProgram {
    /** sets diameter */
    private static final int DIAM_BALL = 30;
    /** amount y velocity is increased each cycle */
    private static final double GRAVITY = 3;
    /** Animation delay or pause time between ball moves */
    private static final int DELAY = 50;
    /** Initial X and Y location ball*/
    private static final double X_START = DIAM_BALL / 2;
    private static final double Y_START = 100;
    private static final double X_VEL = 3;
    private static final double BOUNCE_REDUCE = 0.9;
    private double xVel = X_VEL;
    private double yVel = 0.0;
    private GOval BallA;
    public void run() {
    setup(X_START,Y_START, BallA);
    //         Simulation ends when ball goes off right hand
    //         end of screen
    while (BallA.getX() < getWidth()) {
    moveBall(BallA);
    checkForCollision(BallA);
    pause(DELAY);
    private void setup(double X_coor, double Y_coor, GOval BallObject) {
    BallObject = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
    add(BallObject);
    private void moveBall(GOval BallObject) {
    yVel += GRAVITY;
    BallObject.move(xVel,yVel);
    private void checkForCollision(GOval BallObject) {
    if(BallObject.getY() > getHeight() - DIAM_BALL){
    yVel = - yVel * BOUNCE_REDUCE;
    double diff = BallObject.getY() - (getHeight() - DIAM_BALL);
    BallObject.move(0, -2 * diff);
    } Edited by: TiredRyan on Mar 19, 2010 1:47 AM

    TiredRyan wrote:
    That is great! Thanks. I've got two question though.
    1.) Now I want to have 100 bouncing balls. Is the best way to achieve this is through an array of GOvals? I haven't gotten to the lecture on arrays on Stanford's ITunesU site yet so I am not sure what is possible with what I know now.An array would work, or a List. But it doesn't matter much in this case.
    2.) Are references being passed by value only applicable to Java or is that common to object-oriented programming? Also is there a way to force Java to pass in "BallA" instead of the value "null"?I can't say about all OO languages as a whole, but at least C++ can pass by reference.
    And no, there's no way to pass a reference to the BallA variable, so the method would initialize it and it wouldn't be null anymore.
    When you call the method with your BallA variable, the value of the variable is examined and it's passed to the method. So you can't pass the name of a variable where you'd want to store some object you created in the method.
    But you don't need to either, so there's no harm done.

  • SAP NetWeaver 7.01 ABAP Trial Version - Exceptioin in thread "Thread-51"

    Hello All I have tried 4 times to install SAPNW 7.01 ABAP Trial, but failed.
    The InstallShield Wizard returns an error:
    Exceptioin in thread "Thread-51" com.installshield.database.ISSqlException: Table not found CONTROLEVENT in statement [SELECT ActionSequence_FROM ControlEvent WHERE
    Controlid_=51 AND EventType='buttonClicked'] [SELECT ActionSequence_FROM ControlEvent WHERE
    Controlid_=? AND EventType=?] caused by: java.sql.SQLException:
    Table not found CONTROLEVENT in Statement [SELECT ActionSequence_FROM ControlEvent WHERE
    Controlid_=51 AND EventType='buttonClicked']
           at com.installshield.database.TransactionProcessor.query(Unknown Source)
           at com.installshield.database.SQLProcessor.queryIntegers(Unknown Source)
           at com.installshield.database.designtime.ISControlEventDef.getActionSequence(Unknown Source)
           at com.installshield.database.runtime.impl.ISBaseEventImpl.getActionSequence(Unknown Source)
           at com.installshield.event.EventDispatcher.triggerEvent(Unknown Source)
           at com.installshield.event.EventDispatcher$BackgroundEventThread.run(Unknown Source)
    And the C:\SAP\NSP\log.txt:
    (Aug 7, 2009 1:07:26 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, An error occurred and product installation failed.  Look at the log file C:\SAP\NSP\log.txt for details.
    (Aug 7, 2009 1:07:26 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllInstallationSteps(StepWrapperInstallFiles.java:177)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.install(StepWrapperInstallFiles.java:268)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    (Aug 7, 2009 1:07:27 PM), Install, com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct, err, An error occurred and product uninstallation failed.  Look at the log file C:\SAP\NSP\log.txt for details.
    (Aug 7, 2009 1:07:27 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllUninstallationSteps(StepWrapperInstallFiles.java:192)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.uninstall(StepWrapperInstallFiles.java:313)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.uninstallProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.processActionsFailed(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    1.- I have installed the Loopback Adapter and
    2.- java_home=C:\Programme\Java\j2re1.4.2_16
    3.- before reinstalling everything, I have executed the RegCleanTool
    4.- I have Windows XP service pack 2
    and still the problem has not resolved.
    I need some help and I hope you can help me.
    Cheers
    Marcos

    Hi,
    I have dropped the NSP database and now I only get the following error after trying to install the trial version again:
    (Aug 7, 2009 2:09:59 PM), Install, com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct, err, An error occurred and product uninstallation failed.  Look at the log file C:\SAP\NSP\log.txt for details.
    (Aug 7, 2009 2:09:59 PM), Install, com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles, err, ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
    STACK_TRACE: 15
    ProductException: (error code = 200; message="Java error"; exception = [java.lang.Exception])
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.execute(StepWrapperInstallFiles.java:254)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllSteps(StepWrapperInstallFiles.java:224)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.executeAllUninstallationSteps(StepWrapperInstallFiles.java:192)
         at com.sap.installshield.sdcstepswrapper.StepWrapperInstallFiles.uninstall(StepWrapperInstallFiles.java:313)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.uninstallProductAction(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.processActionsFailed(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(Unknown Source)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(Unknown Source)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(Unknown Source)
         at com.installshield.wizard.service.AsynchronousOperation.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Cheers
    Marcos

  • Exception in thread "Thread-4" java.lang.IllegalAccessError

    Hi All,
    I am getting this error at run-time while trying to run below code
    Exception in thread "Thread-4" java.lang.IllegalAccessError
    CODE:
    ================================
    * FileName : UMAC.java *
    * Program Details : For getting Signed data. *
    * Invoked From : SignedDataImpl.java *
    package sfmsbr.bankapi;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.security.InvalidKeyException;
    import java.security.Key;
    import java.security.KeyPair;
    import java.security.KeyStore;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.security.NoSuchProviderException;
    import java.security.PrivateKey;
    import java.security.PublicKey;
    import java.security.Security;
    import java.security.Signature;
    import java.security.cert.Certificate;
    import java.security.cert.X509Certificate;
    import java.util.Date;
    import java.util.Enumeration;
    import javax.crypto.BadPaddingException;
    import javax.crypto.Cipher;
    import javax.crypto.IllegalBlockSizeException;
    import javax.crypto.NoSuchPaddingException;
    import com.ibm.misc.BASE64Decoder;
    import com.ibm.misc.BASE64Encoder;
    import sun.security.pkcs.ContentInfo;
    import sun.security.pkcs.PKCS7;
    import sun.security.pkcs.PKCS9Attribute;
    import sun.security.pkcs.PKCS9Attributes;
    import sun.security.pkcs.SignerInfo;
    import com.ibm.security.util.DerOutputStream;
    /*import sun.security.x509.AlgorithmId;*/
    import com.ibm.security.x509.AlgorithmId;
    /*import sun.security.x509.X500Name;*/
    import com.ibm.security.x509.X500Name;
    /*import com.ibm.jsse.IBMJSSEProvider;*/
    import org.apache.harmony.security.asn1.DerInputStream;
    import com.cs.common.Utilities;
    import com.sun.net.ssl.internal.ssl.Provider;
    /*import javax.net.ssl.*;*/
    import sun.security.pkcs.*;
    public class UMAC
    private static String storetype = null;
    private static String storepath = null;
    private static char keyPassword[] = null;
    private static char filePassword[] = null;
    private static String alias = null;
    private static X509Certificate x509 = null;
    private static Certificate certs[] = null;
    private static final String digestAlgorithm = "SHA256";
    private static final String signingAlgorithm = "SHA256withRSA";
    private static Key key = null;
    private static KeyPair pair = null;
    private static KeyStore keystore = null;
    private static PrivateKey priv = null;
    private static PublicKey pub = null;
    private static String signedData = null;
    File certificateFile;
    private static String fileName = "";
    private static final String ALGORITHM = "PBEWithSHA256AndDes";
    private String characterEncoding;
    private Cipher encryptCipher;
    private Cipher decryptCipher;
    private BASE64Encoder base64Encoder = new BASE64Encoder();
    private BASE64Decoder base64Decoder = new BASE64Decoder();
    * Constructor to initialize the Parameters used
    * @param s file name/path
    * @param s1 is file password
    * @param s2 is key password
    * @param s3 is alias name
    * @throws IOException
    public UMAC(String s, String s1, String s2, String s3) throws IOException
    try {
    String dkeyPassword = Utilities.decodeDBPwd(s2);
    String dFilePassword = Utilities.decodeDBPwd(s1);
    keyPassword = (new String(dkeyPassword)).toCharArray();
    filePassword = (new String(dFilePassword)).toCharArray();
    alias = s3;
    fileName = s;
    } catch (Exception e) {
    e.printStackTrace();
    * method will prepare the digital signature for the message received as argument and returns the digital signature
    * @param s the message to prepare signed data
    * @return signed data prepard for the message received
    * @throws NoSuchAlgorithmException
    * @throws InvalidKeyException
    * @throws IllegalBlockSizeException
    * @throws NoSuchProviderException
    * @throws BadPaddingException
    * @throws NoSuchPaddingException
    * @throws Exception
    public String getSingedData(String s) throws NoSuchAlgorithmException, InvalidKeyException, IllegalBlockSizeException, NoSuchProviderException, BadPaddingException, NoSuchPaddingException, Exception
    Security.addProvider(new Provider()); // addProvider(Provider provider).. Adds a provider to the next position available.
    System.out.println("reached here a");
    certificateFile = new File(fileName);
    /*keystore = KeyStore.getInstance("pkcs12", "SunJSSE");*/
    keystore = KeyStore.getInstance("pkcs12", "IBMJCE");
    System.out.println("reached here b");
    BASE64Encoder base64encoder = new BASE64Encoder();
    System.out.println("reached here ba");
    keystore.load(new FileInputStream(certificateFile), filePassword);
    System.out.println("reached here bb");
    Enumeration enumeration = keystore.aliases();
    do {
    if(!enumeration.hasMoreElements())
    break;
    String s1 = enumeration.nextElement().toString();
    if(keystore.isKeyEntry(s1))
    alias = s1;
    } while(true);
    System.out.println("reached here c");
    pair = getPrivateKey(keystore, alias, keyPassword);
    priv = pair.getPrivate();
    String s2 = base64encoder.encode(priv.getEncoded());
    if(keystore.isKeyEntry(alias))
    certs = keystore.getCertificateChain(alias);
    if(certs[0] instanceof X509Certificate)
    x509 = (X509Certificate)certs[0];
    if(certs[certs.length - 1] instanceof X509Certificate)
    x509 = (X509Certificate)certs[certs.length - 1];
    } else
    if(keystore.isCertificateEntry(alias))
    Certificate certificate = keystore.getCertificate(alias);
    if(certificate instanceof X509Certificate)
    x509 = (X509Certificate)certificate;
    certs = (new Certificate[] {
    x509
    } else {
    throw new Exception(alias + " Wrong alias, Please Check");
    AlgorithmId aalgorithmid[] = {
    AlgorithmId.get("SHA256")
    byte abyte0[] = s.getBytes("UTF8");
    System.out.println("reached here d");
    MessageDigest messagedigest = MessageDigest.getInstance("SHA256");
    messagedigest.update(abyte0);
    byte abyte1[] = messagedigest.digest();
    PKCS9Attribute apkcs9attribute[] = {
    new PKCS9Attribute(PKCS9Attribute.CONTENT_TYPE_OID, ContentInfo.DATA_OID), new PKCS9Attribute(PKCS9Attribute.SIGNING_TIME_OID, new Date()), new PKCS9Attribute(PKCS9Attribute.MESSAGE_DIGEST_OID, abyte1)
    PKCS9Attributes pkcs9attributes = new PKCS9Attributes(apkcs9attribute);
    Signature signature = Signature.getInstance("SHA256withRSA", "SunJSSE");
    signature.initSign(priv);
    signature.update(pkcs9attributes.getDerEncoding());
    byte abyte2[] = signature.sign();
    ContentInfo contentinfo = null;
    contentinfo = new ContentInfo(ContentInfo.DATA_OID, null);
    X509Certificate ax509certificate[] = {
    x509
    java.math.BigInteger biginteger = x509.getSerialNumber();
    SignerInfo signerinfo = new SignerInfo(new X500Name(x509.getIssuerDN().getName()), biginteger, AlgorithmId.get("SHA256"), pkcs9attributes, new AlgorithmId(AlgorithmId.RSAEncryption_oid), abyte2, null);
    SignerInfo asignerinfo[] = {
    signerinfo
    PKCS7 pkcs7 = new PKCS7(aalgorithmid, contentinfo, ax509certificate, asignerinfo);
    DerOutputStream deroutputstream = new DerOutputStream();
    pkcs7.encodeSignedData(deroutputstream);
    byte abyte3[] = deroutputstream.toByteArray();
    String s3 = new String(abyte3);
    BASE64Encoder base64encoder1 = new BASE64Encoder();
    String s4 = base64encoder1.encodeBuffer(abyte3);
    BASE64Decoder base64decoder = new BASE64Decoder();
    System.out.println("reached here e");
    byte abyte4[] = base64decoder.decodeBuffer(s4);
    PKCS7 pkcs7_1 = new PKCS7(abyte4);
    SignerInfo asignerinfo1[] = null;
    if(pkcs7_1.getContentInfo().getContentBytes() == null)
    byte abyte5[] = s.getBytes("UTF8");
    asignerinfo1 = pkcs7_1.verify(abyte5);
    } else
    asignerinfo1 = pkcs7.verify();
    if(asignerinfo1 == null) {
    throw new Exception("Signature failed verification, data has been tampered");
    } else {
    Utilities.log(3, "asignerinfo1 is not null Verification OK>>" + new Date(System.currentTimeMillis()), "UMAC", "run");
    return s4;
    * gets the private key for opening the signing file
    * @param keystore1
    * @param s is file path
    * @param ac
    * @return keypair
    * @throws Exception
    public KeyPair getPrivateKey(KeyStore keystore1, String s, char ac[]) throws Exception
    PublicKey publickey;
    System.out.println("inside UMAC.getPrivateKey");
    key = keystore1.getKey(s, ac);
    System.out.println("key --->" +key);
    if(!(key instanceof PrivateKey))
    return null;
    Certificate certificate = keystore1.getCertificate(s);
    publickey = certificate.getPublicKey();
    System.out.println("Returning from UMAC.getPrivateKey : publickey is --->" +publickey);
    return new KeyPair(publickey, (PrivateKey)key);
    ===========================================
    Its compiling properly but at run-time it's showing below error
    OUTPUT:
    ===========================================
    reached here a
    reached here b
    reached here ba
    Exception in thread "Thread-4" java.lang.IllegalAccessError
    at sun.security.util.DerInputStream.init(Unknown Source)
    at sun.security.util.DerInputStream.<init>(Unknown Source)
    at sun.security.rsa.RSAPublicKeyImpl.parseKeyBits(Unknown Source)
    at sun.security.x509.X509Key.decode(X509Key.java:396)
    at sun.security.x509.X509Key.decode(X509Key.java:408)
    at sun.security.rsa.RSAPublicKeyImpl.<init>(Unknown Source)
    at sun.security.rsa.RSAKeyFactory.generatePublic(Unknown Source)
    at sun.security.rsa.RSAKeyFactory.engineGeneratePublic(Unknown Source)
    at java.security.KeyFactory.generatePublic(KeyFactory.java:145)
    at com.ibm.security.x509.X509Key.buildX509Key(X509Key.java:278)
    at com.ibm.security.x509.X509Key.parse(X509Key.java:189)
    at com.ibm.security.x509.X509Key.parse(X509Key.java:215)
    at com.ibm.security.x509.CertificateX509Key.<init>(CertificateX509Key.java:112)
    at com.ibm.security.x509.X509CertInfo.parse(X509CertInfo.java:966)
    at com.ibm.security.x509.X509CertInfo.<init>(X509CertInfo.java:236)
    at com.ibm.security.x509.X509CertInfo.<init>(X509CertInfo.java:222)
    at com.ibm.security.x509.X509CertImpl.parse(X509CertImpl.java:2285)
    at com.ibm.security.x509.X509CertImpl.<init>(X509CertImpl.java:227)
    at com.ibm.security.x509.X509CertImpl.<init>(X509CertImpl.java:213)
    at com.ibm.security.pkcs12.CertBag.decode(CertBag.java:599)
    at com.ibm.security.pkcsutil.PKCSDerObject.decode(PKCSDerObject.java:251)
    at com.ibm.security.pkcs12.CertBag.<init>(CertBag.java:76)
    at com.ibm.security.pkcs12.BasicPFX.getCertificates(BasicPFX.java:1422)
    at com.ibm.security.pkcs12.PFX.getCertificates(PFX.java:549)
    at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source)
    at java.security.KeyStore.load(KeyStore.java:414)
    at sfmsbr.bankapi.UMAC.getSingedData(UMAC.java:137)
    at sfmsbr.bankapi.SignedDataImpl.getSingedData(SignedDataImpl.java:42)
    at com.cs.sfms.SFMSMessageSender.run(SFMSMessageSender.java:226)
    at java.lang.Thread.run(Thread.java:736)
    18:10:05 10-Feb-2012 AFTER JAVA Execution
    Please share your valuable inputs to resolve this
    Regards,
    Haris

    java version
    java version "1.6.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pap32devifx-20110211b (SR12 FP3 +IZ94331))
    IBM J9 VM (build 2.3, J2RE 1.6.0 IBM J9 2.3 AIX ppc-32 j9vmap3223ifx-20101130 (JIT enabled)
    J9VM - 20101129_69669_bHdSMr
    JIT - 20100623_16197ifx1_r8
    GC - 20100211_AA)
    JCL - 20110208
    Regards
    Haris
    Edited by: user12848704 on Feb 10, 2012 3:27 AM

  • Exception in thread "Thread-1" java.lang.NoClassDefFoundError:

    Hi
    When we are trying to deploy one of our application in Tomcat 5.0 we are seeing below error -
    - 18:58:51,721 [Thread-1] INFO (support.context.ApplicationContext) Done building hibernate session factory, time 21,296.396 ms
    Exception in thread "Thread-1" java.lang.NoClassDefFoundError: javax/transaction/Synchronization
    at org.hibernate.impl.SessionImpl.<init>(SessionImpl.java:212)
    at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.
    java:437)
    at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.
    java:461)
    at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.
    java:469)
    at com.splwg.base.support.context.ApplicationContext.newHibernateSession
    (ApplicationContext.java:264)
    at com.splwg.base.support.context.FrameworkSession.initialize(FrameworkS
    ession.java:175)
    at com.splwg.base.support.context.FrameworkSession.<init>(FrameworkSessi
    on.java:162)
    at com.splwg.base.support.context.ApplicationContext.createSession(Appli
    cationContext.java:255)
    at com.splwg.base.support.context.ApplicationContext.createThreadBoundSe
    ssion(ApplicationContext.java:298)
    at com.splwg.base.support.context.SessionExecutable.doInReadOnlySession(
    SessionExecutable.java:92)
    at com.splwg.base.support.context.SessionExecutable.doInReadOnlySession(
    SessionExecutable.java:75)
    at com.splwg.base.support.context.ApplicationContext.initialize(Applicat
    ionContext.java:157)
    at com.splwg.base.support.context.ContextFactory.buildContext(ContextFac
    tory.java:144)
    at com.splwg.base.support.context.ContextFactory.buildContext(ContextFac
    tory.java:65)
    at com.splwg.base.support.context.ContextFactory.createDefaultContext(Co
    ntextFactory.java:426)
    at com.splwg.base.web.startup.DeferredXAIStartup.run(DeferredXAIStartup.
    java:59)
    at java.lang.Thread.run(Thread.java:595)
    Your pointers can help us.
    Thanks
    Manish

    Your classpath is probably wrong. You are missing the javax.transaction.Synchronization class/interface.
    Kaj

  • IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool

    Hi ,
    I am seeing this issue while starting my managed server.
    com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread run
    FINE: "IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool.TimeoutException when requesting work from work queue default-workqueue."
    org.omg.CORBA.INTERNAL:   vmcid: SUN  minor code: 309  completed: No
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6330)
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6355)
            at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:494
    I have searched the net for this but didnt find any resolution. Please help.
    Regards,
    Rishi

    This became bug 6560301. And Sun pointed out that it was my bad in not handling spurious wakeups. Java 6 makes spurious wakeups more likely. (My experience is from "never" to "sometimes".)
    More info at:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6560301

  • Exception in thread "Thread-6" java.lang.UnsatisfiedLinkError: no cis

    Hi All,
    I got an error when I run SunONE 7 (final) on Solaris spark)
    as below. I do not get this error when I run SunONE 7 on
    Windows.
    I was access ejbs from a stand-a-lone Java application.
    What was wrong?
    Any information would be appreciated.
    Thanks in advance.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Exception in thread "Thread-6" java.lang.UnsatisfiedLinkError: no cis in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
         at java.lang.Runtime.loadLibrary0(Runtime.java:788)
         at java.lang.System.loadLibrary(System.java:832)
         at com.iplanet.ias.cis.connection.EndPoint.<clinit>(EndPoint.java:254)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:369)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:316)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:149)
         at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:505)
         at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:157)
         at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:115)
         at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:115)
         at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:133)
         at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:26)
         at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:3069)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3004)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextFactory.java:31)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:306)
         at java.lang.Class.newInstance(Class.java:259)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.init(InitialContext.java:219)
         at javax.naming.InitialContext.<init>(InitialContext.java:175)
         at com.sun.ejb.portable.HomeHandleImpl.readObject(HomeHandleImpl.java:60)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1298)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:908)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:939)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:850)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:842)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_abstract_interface(CDRInputStream.java:309)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:228)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:381)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:318)
         at com.sun.ejb.portable.EJBMetaDataImpl.readObject(EJBMetaDataImpl.java:112)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1298)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:908)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1075)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at examples._CasinoWithLoggingExampleHome_Stub.getEJBMetaData(Unknown Source)
         at com.acelet.s.Envoy.parseContext(Envoy.java:365)
         at com.acelet.s.Envoy.getJndiToRemoteInfoHashtable(Envoy.java:217)
         at com.acelet.s.peekPoke.EnvoyGetJndiToRemoteInfoHashtable.run(EnvoyGetJndiToRemoteInfoHashtable.java:33)
         at java.lang.Thread.run(Thread.java:536)
    Exception in thread "Thread-6" org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Serializable readObject method failed internally vmcid: SUN minor code: 211 completed: Maybe
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:944)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:850)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:842)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_abstract_interface(CDRInputStream.java:309)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:228)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:381)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:318)
         at com.sun.ejb.portable.EJBMetaDataImpl.readObject(EJBMetaDataImpl.java:112)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1298)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:908)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1075)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at examples._CasinoWithLoggingExampleHome_Stub.getEJBMetaData(Unknown Source)
         at com.acelet.s.Envoy.parseContext(Envoy.java:365)
         at com.acelet.s.Envoy.getJndiToRemoteInfoHashtable(Envoy.java:217)
         at com.acelet.s.peekPoke.EnvoyGetJndiToRemoteInfoHashtable.run(EnvoyGetJndiToRemoteInfoHashtable.java:33)
         at java.lang.Thread.run(Thread.java:536)
    Cannot get home object for jndi name: examples.CasinoWithLoggingExampleHome
    :java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception is:
         org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Serializable readObject method failed internally vmcid: SUN minor code: 211 completed: Maybe
    Cannot get home object for jndi name: examples.CasinoWithLoggingExampleHome
    Is client jar on CLASSPATH or installed onto Super?
    Cannot get home object for jndi name: examples.CasinoWithLoggingExampleHome
    :java.lang.NullPointerException
    Exception in thread "Thread-6" java.lang.StackOverflowError
         at com.sun.corba.ee.internal.corba.ORB.<init>(ORB.java:263)
         at com.sun.corba.ee.internal.iiop.ORB.<init>(ORB.java:102)
         at com.sun.corba.ee.internal.POA.POAORB.<init>(POAORB.java:126)
         at com.sun.corba.ee.internal.Interceptors.PIORB.<init>(PIORB.java:207)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.<init>(TxPIORB.java:82)
         at com.sun.enterprise.iiop.POAEJBORB.<init>(POAEJBORB.java:122)
         at sun.reflect.GeneratedConstructorAccessor5.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:306)
         at java.lang.Class.newInstance(Class.java:259)
         at org.omg.CORBA.ORB.create_impl(ORB.java:295)
         at org.omg.CORBA.ORB.init(ORB.java:336)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:288)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:81)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:685)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:621)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1155)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:823)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1245)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1129)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:3006)
         at com.sun.jts.CosTransactions.DefaultTransactionService.createPOAs(DefaultTransactionService.java:309)
         at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:180)
         at com.sun.corba.ee.internal.TxPOA.TxPIORB.initServices(TxPIORB.java:134)
         at com.sun.enterprise.iiop.POAEJBORB.initServices(POAEJBORB.java:475)
         at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:355)
         at com.sun.corba.ee.internal.Interceptors.PIORB.initPostProcessing(PIORB.java:236)
         at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:193)
         at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:337)
         at org.omg.CORBA.ORB.init(ORB.java:337)
         at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:355)
         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:257)
         at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:275)
         at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<init>(SecurityMechanismSelector.java:156)
         at com.sun.enterprise.iio

    Nelson_Garcia wrote:
    I think variable ourinfo (type SSRCInfo) has been set to null in class RTCPTransmitter in bye method. This method is executed due to the timeout event logged before the exception...but, why do i get that timeout event if it's supposed to be receiving the stream?You type that like you posted the output you're seeing when you run your program...but you didn't..so there's no way of answering that question.

  • Uncaught exception: applicationRegistry.getorwaitfor (0x7c802477365c3985) owner died thread [thread-388973568,5]

    my blackberry curve 8520 shows the below message
    uncaught exception: applicationRegistry.getorwaitfor (0x7c802477365c3985) owner died thread [thread-388973568,5]
    so i can'y recieve or do any phone calls
    also when i tried to reinstall the software it keeps telling me to check my internet connection even when i'm connecting to it, so what should i do to fix my blackberry or to reinstal the software

    Hi there,
    I would reload the software like you're trying to do. Try using the method described in the following link:
    http://supportforums.blackberry.com/t5/Device-software-for-BlackBerry/How-To-Reload-Your-Operating-S...
    Also, if needed, before running the Loader.exe file in Step 2, delete the file named Vendor.xml, located in the same folder. If you continue to see the internet connection message, let me know, but one other thing you can try is unplugging your computer from the internet once you've downloaded and installed the installer file for your OS.
    Good luck and I hope this info helps!
    If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
    If your issue is resolved, don't forget to click the Solution button on the resolution!

  • Uncaught exception : Application Registry.getOrWait for (0x7c802411365c3985) owner died Thread [thread- 86830080,5]

    hi,
    Since yesterday my Blackberry has stopped working. I tried rebooting several tomes but whenever i reboot it and the BB gets hanged
    "Uncaught exception : Application Registry.getOrWait for (0x7c802411365c3985) owner died Thread [thread- 86830080,5]"
    Can any1 help me with the possible solution

    akriti wrote:
    hi,
    Since yesterday my Blackberry has stopped working. I tried rebooting several tomes but whenever i reboot it and the BB gets hanged
    "Uncaught exception : Application Registry.getOrWait for (0x7c802411365c3985) owner died Thread [thread- 86830080,5]"
    Can any1 help me with the possible solution
    Hi akriti,
    Reset your BlackBerry to factory settings. Read this Article.
    How to reset the BlackBerry smartphone to factory defaults
    Hope it helps.
    Good luck!
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • Pause a thread and still process information?

    I've got the following code:
    if(option.equalsIgnoreCase("b"))
    String mapChoice = JOptionPane.showInputDialog("What map would you like to load?");
    mapReader(mapChoice);
    bufferGraphics.clearRect(0,0,800,600);
    printMap(g);
    option = "";
    gameStart = true;
    g.drawImage(offscreen,0,0,this);
    This is an applet and i start a thread in the init() method,
    so when a user selects option "b" the "String mapChoice = JOptionPane.showInputDialog("What map would you like to load?");"
    keeps on reloading and causes lots of screens to appear,
    also making it impossible to add input.
    Is there a way to pause(or sleep) the thread and still get
    the user input from "String mapChoice = JOptionPane.showInputDialog("What map would you like to load?");"
    thanks in advance

    This won't run, but this is about the just of the code, don't know if it will help
    public void init()
    boolean firstRun = false;
    Images();
    play = new Thread(this);
    play.start();
    setSize(40*sizeX,40*sizeY);
    addMouseMotionListener(this);
    addKeyListener( this );
    addMouseListener(this);
    offscreen = createImage(40*sizeX,40*sizeY);
    bufferGraphics = offscreen.getGraphics();
    public void update(Graphics g)
    if(option.equalsIgnoreCase("a"))
    mapReader("homeentrance");
    bufferGraphics.clearRect(0,0,800,600);
    printMap(g);
    option = "";
    gameStart = true;
    g.drawImage(offscreen,0,0,this);
    if(option.equalsIgnoreCase("b"))
    String mapChoice = JOptionPane.showInputDialog("What map would you like to load?");
    mapReader(mapChoice);
    bufferGraphics.clearRect(0,0,800,600);
    printMap(g);
    option = "";
    gameStart = true;
    g.drawImage(offscreen,0,0,this);
    public void keyPressed( KeyEvent e )
    if(gameStart == false)
    option = ""+e.getKeyChar();

  • Problems pausing a thread

    Hi, I'll try to explay my problem. I've got 3 classes (See code below):
    1-PruebaThreadMainGui,
    2-PruebaThread
    3-PruebaThreadGui.
    PruebaThread works as follows: When the method PruebaThread.execute is called , it writes "hello" , a new PruebaThreadGui (which extends JFrame) is created and then waits until the user presses the "Press" button in the PruebaThreadGui. After that, it writes "goodbye". This works OK if PruebaThread is executed directly.
    However the problem arises when PruebaThread.execute is called from PruebaThreadMainGui (when I press the "Execute" button). PruebaThread.execute writes "hello" and then creates the PruebaThreadGui, but this window frozes and can't continue working. I guess the problem is related to my attemp to pause PruebaThread? But if it's that, why does it work if I execute it directly?
    Well, thank you and sorry for my crappy English.
    PruebaThreadMainGui:
    package webServices;
    import javax.swing.SwingUtilities;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import java.awt.GraphicsConfiguration;
    import java.awt.HeadlessException;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    public class PruebaThreadMainGui extends JFrame {
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         private JButton jButton1 = null;
           //  @jve:decl-index=0:
         public PruebaThreadMainGui() throws HeadlessException {
              // TODO Auto-generated constructor stub
              super();
              initialize();
         private JButton getJButton1() {
              if (jButton1 == null) {
                   jButton1 = new JButton();
                   jButton1.setText("Execute");
                   jButton1.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             PruebaThread pt=new PruebaThread();
                             pt.execute();
              return jButton1;
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        PruebaThreadMainGui thisClass = new PruebaThreadMainGui();
                        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        thisClass.setVisible(true);
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.add(getJButton1(), BorderLayout.CENTER);
              return jContentPane;
    }PruebaThread:
    package webServices;
    public class PruebaThread {
         public PruebaThread() {
              // TODO Auto-generated constructor stub
    public void execute(){
         System.out.println("hello");
         // Now I want to open a PruebaThreadGui and wait until "Press" is pressed in that PruebaThreadGui
         Thread t=Thread.currentThread();
         PruebaThreadGui ptg=new PruebaThreadGui(t);
         ptg.pack();
         ptg.setVisible(true);
         synchronized(t){try {
              t.wait();
         } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         //This doesn't have to execute until "Press" has been pressed.
         System.out.println("goodbye");
         public static void main(String[] args) {
              // TODO Auto-generated method stub
    PruebaThread pt=new PruebaThread();
    pt.execute();
    }PruebaThreadGui:
    package webServices;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JButton;
    public class PruebaThreadGui extends JFrame {
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
    private Thread t;
    private JLabel jLabel1 = null;
    private JButton jButton1 = null;
    private PruebaThreadGui me=this;
         public PruebaThreadGui(Thread t) {
              super();
              this.t=t;
              initialize();
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jLabel1 = new JLabel();
                   jLabel1.setText("JLabel");
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.add(jLabel1, BorderLayout.NORTH);
                   jContentPane.add(getJButton1(), BorderLayout.SOUTH);
              return jContentPane;
         private JButton getJButton1() {
              if (jButton1 == null) {
                   jButton1 = new JButton();
                   jButton1.setText("Press");
                   jButton1.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             //Execution returns to PruebaThread
                             synchronized(t){t.notify();}
                        me.dispose();
              return jButton1;
    }

    Hi Saloa
    Try the following... Ive updated youre code so it actually uses java.lang.Thread and overrides its run method.
    I hope it is what you wanted.
    package webServices;
    public class PruebaThread extends Thread {
        public PruebaThread() {
            // TODO Auto-generated constructor stub
        public void run(){
            System.out.println("hello");
            // Now I want to open a PruebaThreadGui and wait until "Press" is pressed in that PruebaThreadGui
            PruebaThreadGui ptg=new PruebaThreadGui(this);
            ptg.pack();
            ptg.setVisible(true);
            synchronized(this){try {
                this.wait();
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            //This doesn't have to execute until "Press" has been pressed.
            System.out.println("goodbye");
        public static void main(String[] args) {
            // TODO Auto-generated method stub
            PruebaThread pt=new PruebaThread();
            pt.start();
    package webServices;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JButton;
    public class PruebaThreadGui extends JFrame {
        private static final long serialVersionUID = 1L;
        private JPanel jContentPane = null;
        private Thread t;
        private JLabel jLabel1 = null;
        private JButton jButton1 = null;
        private PruebaThreadGui me=this;
        public PruebaThreadGui(Thread t) {
            super();
            this.t=t;
            initialize();
        private void initialize() {
            this.setSize(300, 200);
            this.setContentPane(getJContentPane());
            this.setTitle("JFrame");
        private JPanel getJContentPane() {
            if (jContentPane == null) {
                jLabel1 = new JLabel();
                jLabel1.setText("JLabel");
                jContentPane = new JPanel();
                jContentPane.setLayout(new BorderLayout());
                jContentPane.add(jLabel1, BorderLayout.NORTH);
                jContentPane.add(getJButton1(), BorderLayout.SOUTH);
            return jContentPane;
        private JButton getJButton1() {
            if (jButton1 == null) {
                jButton1 = new JButton();
                jButton1.setText("Press");
                jButton1.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent e) {
                        //Execution returns to PruebaThread
                        synchronized(t){t.notify();}
                        me.dispose();
            return jButton1;
    package webServices;
    import javax.swing.SwingUtilities;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import java.awt.GraphicsConfiguration;
    import java.awt.HeadlessException;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    public class PruebaThreadMainGui extends JFrame {
        private static final long serialVersionUID = 1L;
        private JPanel jContentPane = null;
        private JButton jButton1 = null;
        //  @jve:decl-index=0:
        public PruebaThreadMainGui() throws HeadlessException {
            // TODO Auto-generated constructor stub
            super();
            initialize();
        private JButton getJButton1() {
            if (jButton1 == null) {
                jButton1 = new JButton();
                jButton1.setText("Execute");
                jButton1.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent e) {
                        PruebaThread pt=new PruebaThread();
                        pt.start();
            return jButton1;
        public static void main(String[] args) {
            // TODO Auto-generated method stub
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    PruebaThreadMainGui thisClass = new PruebaThreadMainGui();
                    thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    thisClass.setVisible(true);
        private void initialize() {
            this.setSize(300, 200);
            this.setContentPane(getJContentPane());
            this.setTitle("JFrame");
        private JPanel getJContentPane() {
            if (jContentPane == null) {
                jContentPane = new JPanel();
                jContentPane.setLayout(new BorderLayout());
                jContentPane.add(getJButton1(), BorderLayout.CENTER);
            return jContentPane;
    }

Maybe you are looking for