JVMPI enable event during run failed

Does JVMPI supports calls to JVMPI_Interface::EnableEvent() in the middle of program execution?
I tries to avoid JVM from running slowly before it executes the code of interest. I use an external file to control when method trace should be enabled. In JVM_OnLoad, I create a thread to monitor the file's existence. However, when I call EnableEvent() from this thread, I keep getting an exception. I wonder if EnableEvent() can only be called inside JVM_OnLoad().
I am using Sun's Jsdk1.4.

I currently use the standard j2sdk from sun:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
I test the jdk/1.5-beta and it seems to be the same as 1.4 for jvmpi. I have also run a lot of other jvms with profiling, mostly sun version 1.2.x, 1.3.x, 1.4.x, but also IBM 1.3 and 1.4 and the blackdown versions (which mostly is the same as sun).
Currently I only run linux, but I have used jvmpi under windows and solaris as well.
jdk/1.2 and 1.3 are unstable for jvmpi, but jdk/1.4 seems to behave nicely most of the time (it sometimes gives errorous heap dumps, but they can be handled).
The jvm that comes with websphere (IBM/1.4) ought to be able to run the full jvmpi without problems, but I have not tried it for some time.
Anyway my profiler, jmp, is free (as in GPL) so you can try it, there is a windows binary (jmp.dll) that you can download and try.
/robo

Similar Messages

  • Deploy Lenovo with SCCM and enable Bitlocker during deploying?

    Hi!
    Do anyone got information how to activate TPM and enable bitlocker during deploy of new Lenovo with SCCM ? 
    Something like this but for Leonovo  
    http://www.nullsession.com/2010/12/02/enable-tpm-in-task-sequence-with-sccm-and-cctk/
    Thanks, Magnus
    Solved!
    Go to Solution.

    jamessnarey wrote:
    has anyone been successful with the WMI script on the M92p models, I recently attempted to activate the TPM using the same script that we use for our M91p and it fails.  When I check the logs, it states that access is denied, when I run it manually I get the same error (access denied).  Our lenovo rep says that you cannot use the WMI to enable the TPM and that the Enable Bitlocker step should enable the TPM.  However we automate our OS deployments so manually enabling bitlocker is not an option, any assistance or feedback is appreciated. 
    I was having the same issue and I discovered another way to accomplish this task. Download this utility:
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkcentre_bios/9sjw67usa.exe
    Run the EXE to extract the files to the location of your choice, then copy them to your script location. From your script, run the following command: 
    srwin.exe /tpm active
    Then do a couple reboots (this may not be necessary, but I didn't have time to test it.)
    There are a couple of caveats. First, the working directory must be the directory the utility is stored in (presumably so it can find the two .sys files). I.e. you can't do
    c:\utilities\srwin.exe /tpm active
    you have to do
    cd /D c:\utilities
    srwin.exe /tpm active
    Also, I was attempting to run this in a WinPE session (doing OS deployment using SCCM 2012) and I was getting an 0x80070134 error in my logs. I had been using an x64 boot image, and switching to an x86 boot image resolved that issue.
    Hope this helps someone.

  • Select serial comm port in sub vi during run-time

    Hi, would like to be able to select the comm port (serial RS232) in sub vi to use in main vi during run time. How can I do this? Have tried and failed, for on startup an error occurs because I have not selected a port yet. An example would be invaluable! Thanks alot, Madri

    Hi Madri !
    What you could do is to intercept the com errors, and open a configuration vi either if there is an init error or if the user has pressed a "Change port" boollean (or menu...). Do not forget to close the previously opened serial port, and to open/init the new one. I have attached a small example of this idea.
    Of course com errors can have various origins, and do not require always to change the serial port. So, you have some additional work to do.
    Hope this helps
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Select_port.vi.zip ‏12 KB
    Com_with_serial_init_vi.vi.zip ‏13 KB

  • ORA-3113 while running export (first run ok, second run fails)

    Hi,
    I'm running 10g (10.1.0.2.0) on gentoo Linux.
    After a restart of the database I can do an EXP for any user without errors. But when I repeat the same command after the export I get the following error:
    . . exporting table WEB_SESSION_DATA 0 rows exported
    . exporting synonyms
    EXP-00008: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    EXP-00000: Export terminated unsuccessfully
    It's always the same error on the same task (exporting synonyms) but always just for the second and any later export, while the first one is ok.
    I read through some forums and found, that ORA-3113 is a standard error which just hides the real error. So I look into the trace files and found:
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [jox_lookup_known_object()+413] [SIGSEGV] [Address not mapped to object] [0x1AD14034] [] []
    Current SQL statement for this session:
    SELECT SYNNAM, DBMS_JAVA.LONGNAME(SYNNAM), DBMS_JAVA.LONGNAME(SYNTAB), TABOWN, TABNODE, PUBLIC$, SYNOWN, SYNOWNID, TABOWNID, SYNOBJNO FROM SYS.EXU9SYN WHERE SYNOWNID = :1 ORDER BY SYNTIME
    If I call this SQL from sqlplus I get the same ORA-3113, so this seems to be the cause for the export failure.
    When I remove the DBMS_JAVA.LONGNAME calls from the statement, it runs fine. It also runs fine, when I add a "and 1=0" to the EXU9SYN view. But this will not really solve the problem, because then all synonyms don't get exported.
    I also checked all the synonyms and they are valid, the referenced tables exist and can be queried.
    Because we use JavaStoredProcedures I cannot remove the Java Features in Oracle. But I reinstalled it (rmjvm.sql and initjvm.sql) but this did not help.
    Does anyone have an idea what's happening here?
    Especially the "first run ok, second run fails" seems to be very strange, because DB objects including DBMS_JAVA should be ok, if the first export can be done. So what changes in the database during or after the first run?

    Maybe description for bug 3953108 (ORA-7445 AND ORA-3113 DURING DIRECT FULL DATABASE EXPORT OF PUBLIC SYNONYMS) is helpful.
    Werner

  • File to File Scenario - issue during Running the configuration in ID

    Hi All,
    We are getting following error message during running the configuration in Integration Directory.
    Receiver Determination
    <Not found>
    Internal Error
    HTTP connection to ABAP Runtime failed. Error: 403 Forbidden URL: http://XXXXX:8002/sap/xi/simulation?sap-client=111 User: XIUSER
    Can somebody help me on this.
    Thank You,
    Swapnil

    Hi,
    I activated simulation service. But now I am getting error in Interface Mapping. Please see below
    Interface Mapping
    <Not found>
    Runtime error
    com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MMF2F_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>... (163 lines)
    Thanks,
    Swapnil

  • How to get info on whether the server is enabled and/or running,

    I'm posting this for a customer who  has been testing the capabilities of Business Intelligence Platform RESTful Web Service.
    We're currently at 4.1 SP2 Patch09. But it seems that we're not being able to get the information that we need. For example a call to http://myBIserver:6405/biprws/infostore/16/children is giving us information about servers such as name or description but  it is not telling us whether the server is enabled and/or running, what is the process ID etc.. The JSON response for the above request is:
    {"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/16\/children?page=1&pageSize=50"},"first":{"__deferred":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/16\/children?page=1&pageSize=50"}},"next":{"__deferred":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/16\/children?page=2&pageSize=50"}},"last":{"__deferred":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/16\/children?page=2&pageSize=50"}},"entries":[{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1207"},"id":1207,"cuid":"Aeodv.WAuUhDjuLGQvxTyHw","description":"Adaptive Job Server","name":"PHLBOBIT01.AdaptiveJobServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7581"},"id":7581,"cuid":"AZGIF9vdegFFvk5MZNe._qU","description":"Adaptive Processing Server - Analysis","name":"PHLBOBIT01.APS.Analysis","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/4388704"},"id":4388704,"cuid":"AZL..77cHkhBh1gDQowM.fE","description":"","name":"PHLBOBIT01.APS.AnalysisApplication","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7478"},"id":7478,"cuid":"AYctUCKuCVBHn4oSDhQPQb4","description":"Adaptive Processing Server - Auditing","name":"PHLBOBIT01.APS.Auditing","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7477"},"id":7477,"cuid":"AaEMaMZd2AdMhm8z0qkrTnM","description":"Adaptive Processing Server - Core Services","name":"PHLBOBIT01.APS.Core","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7583"},"id":7583,"cuid":"AVp8Kq3mrYNCrWB83j2PEvQ","description":"Adaptive Processing Server - Data Access","name":"PHLBOBIT01.APS.DataAccess","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7580"},"id":7580,"cuid":"AXWBe54kOCpOg_mbxUr8Ivo","description":"Adaptive Processing Server - Lifecycle Management","name":"PHLBOBIT01.APS.LCM","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7479"},"id":7479,"cuid":"Af7OI9uF6O5JtR9n1oSO0wc","description":"Adaptive Processing Server - Search","name":"PHLBOBIT01.APS.Search","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7582"},"id":7582,"cuid":"AW1EMWgpDfFImvzDF.Iqwik","description":"Adaptive Processing Server - Web Intelligence","name":"PHLBOBIT01.APS.WebI","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/791"},"id":791,"cuid":"AST6mA7FF.VDvrKpYQACO.E","description":"Central Management Server","name":"PHLBOBIT01.CentralManagementServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/3917458"},"id":3917458,"cuid":"Aeo5YKWfzgVKo5DwN4NaG9A","description":"Connection Server","name":"PHLBOBIT01.ConnectionServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/3917459"},"id":3917459,"cuid":"AZ3w6cEAUWlEiB5j6mB0CWw","description":"Connection Server (32-bit)","name":"PHLBOBIT01.ConnectionServer32","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1178"},"id":1178,"cuid":"AaMjzl.x749MhIyS.DEXoY0","description":"Crystal Reports 2013 Processing Server","name":"PHLBOBIT01.CrystalReports2013ProcessingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1247"},"id":1247,"cuid":"AYWI6VC.J8BBvFqSj2JMyyY","description":"Crystal Reports 2013 Report Application Server","name":"PHLBOBIT01.CrystalReports2013ReportApplicationServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1172"},"id":1172,"cuid":"AZL.2iX_DXZAspTawsvOhH0","description":"Crystal Reports Cache Server","name":"PHLBOBIT01.CrystalReportsCacheServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1281"},"id":1281,"cuid":"AbWBEFGNJGxCjNK1DY2b2yM","description":"Crystal Reports Processing Server","name":"PHLBOBIT01.CrystalReportsProcessingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1228"},"id":1228,"cuid":"AVDRV00HfORMkMkl55KMo7c","description":"Dashboards Cache Server","name":"PHLBOBIT01.DashboardsCacheServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1264"},"id":1264,"cuid":"ATJuZregTz1Ck3YJY1eMmW4","description":"Dashboards Processing Server","name":"PHLBOBIT01.DashboardsProcessingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1184"},"id":1184,"cuid":"ASOm.SrtU7pInQBRZiUewdQ","description":"Event Server","name":"PHLBOBIT01.EventServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7277"},"id":7277,"cuid":"AZDQYV3Q7f5EkTWnc6bSlw0","description":"Explorer Exploration Server","name":"PHLBOBIT01.ExplorerExplorationServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7263"},"id":7263,"cuid":"AatQWEVsQdtHj1u2_SidyKM","description":"Explorer Indexing Server","name":"PHLBOBIT01.ExplorerIndexingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7284"},"id":7284,"cuid":"Ab11DBefLJRIuEfZJ5XQ7Wk","description":"Explorer Master Server","name":"PHLBOBIT01.ExplorerMasterServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7270"},"id":7270,"cuid":"AWSPc8Mmv3dDvDBYVSxiiq4","description":"Explorer Search Server","name":"PHLBOBIT01.ExplorerSearchServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1212"},"id":1212,"cuid":"AdePU2NkVzVGkCHc.je2P5k","description":"Input File Repository Server","name":"PHLBOBIT01.InputFileRepository","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1275"},"id":1275,"cuid":"Acxi23qKCy1FiGBoFzBXEtc","description":"Output File Repository Server","name":"PHLBOBIT01.OutputFileRepository","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/1258"},"id":1258,"cuid":"AS4fT9dzIuBBv6nFMbdaisA","description":"Web Application Container Server","name":"PHLBOBIT01.WebApplicationContainerServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/5090617"},"id":5090617,"cuid":"AW5jSqL.F1hOtiwZpk5CAZs","description":"","name":"PHLBOBIT01.WebIntelligenceProcessingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6541"},"id":6541,"cuid":"AXn6vPIEispHjYAf5tuaEF8","description":"Adaptive Job Server","name":"PHLBOBIT02.AdaptiveJobServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7588"},"id":7588,"cuid":"AQgPfs_1WhlKvTQl0w1NT2k","description":"Adaptive Processing Server - Analysis","name":"PHLBOBIT02.APS.Analysis","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/4388705"},"id":4388705,"cuid":"ARtodu06Xj5FizlyqZMoV6A","description":"","name":"PHLBOBIT02.APS.AnalysisApplication","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7585"},"id":7585,"cuid":"AT4mRrAirvFPv.LhQkzqN5Q","description":"Adaptive Processing Server - Auditing","name":"PHLBOBIT02.APS.Auditing","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7584"},"id":7584,"cuid":"AdEGqTBYhm5AsYlC1wNGxaQ","description":"Adaptive Processing Server - Core Services","name":"PHLBOBIT02.APS.Core","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7590"},"id":7590,"cuid":"AUrLQ_szs9VMmU84qLOHmfw","description":"Adaptive Processing Server - Data Access","name":"PHLBOBIT02.APS.DataAccess","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7587"},"id":7587,"cuid":"ASUVQFFRAKRFvfQWfJsoIJA","description":"Adaptive Processing Server - Lifecycle Management","name":"PHLBOBIT02.APS.LCM","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7586"},"id":7586,"cuid":"ARcHLmjTRyhMjWn.y_onJxI","description":"Adaptive Processing Server - Search","name":"PHLBOBIT02.APS.Search","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/7589"},"id":7589,"cuid":"AY1s2.BeMbxEsF05cYPCLpc","description":"Adaptive Processing Server - Web Intelligence","name":"PHLBOBIT02.APS.WebI","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6301"},"id":6301,"cuid":"AU7SRyRyd1hKgH3TbRF5EYM","description":"Central Management Server","name":"PHLBOBIT02.CentralManagementServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6568"},"id":6568,"cuid":"AYhb6lnbKJFKn4WVnoFVnt4","description":"Connection Server","name":"PHLBOBIT02.ConnectionServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6574"},"id":6574,"cuid":"ARKezeTmhh5Iu4F.7.fvByk","description":"Connection Server (32-bit)","name":"PHLBOBIT02.ConnectionServer32","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6512"},"id":6512,"cuid":"Abv17tsXCStKpnJw7jeTguY","description":"Crystal Reports 2013 Processing Server","name":"PHLBOBIT02.CrystalReports2013ProcessingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6581"},"id":6581,"cuid":"AWwWhkIpwc9CoAybOLeQtog","description":"Crystal Reports 2013 Report Application Server","name":"PHLBOBIT02.CrystalReports2013ReportApplicationServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6506"},"id":6506,"cuid":"AQIjnkiIYvROsApDkY24S7Y","description":"Crystal Reports Cache Server","name":"PHLBOBIT02.CrystalReportsCacheServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6615"},"id":6615,"cuid":"Ac70E5GxHX9GhnO335_zkpw","description":"Crystal Reports Processing Server","name":"PHLBOBIT02.CrystalReportsProcessingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6562"},"id":6562,"cuid":"ATD9BYLbU2xGgL0dQc.HwEY","description":"Dashboards Cache Server","name":"PHLBOBIT02.DashboardsCacheServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6598"},"id":6598,"cuid":"Ab1VZJehgWFEkCl0f3EqJNY","description":"Dashboards Processing Server","name":"PHLBOBIT02.DashboardsProcessingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/6518"},"id":6518,"cuid":"AXpYgpIDDtlLnNzkprKrIK4","description":"Event Server","name":"PHLBOBIT02.EventServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/9033"},"id":9033,"cuid":"AUGWvt8N6gREukWGWmmxvHE","description":"Explorer Exploration Server","name":"PHLBOBIT02.ExplorerExplorationServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/9019"},"id":9019,"cuid":"AQePEipM3nhPsArG5mVbpR0","description":"Explorer Indexing Server","name":"PHLBOBIT02.ExplorerIndexingServer","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/5108034"},"id":5108034,"cuid":"ARZ7obbOLYdIpPx431uK2nI","description":"Explorer Master Server","name":"PHLBOBIT02.ExplorerMasterServer2","type":"Server"},{"__metadata":{"uri":"http:\/\/phlbobit01:6405\/biprws\/infostore\/9026"},"id":9026,"cuid":"AZHGDhiY7MpCsMMUqSf3AMs","description":"Explorer Search Server","name":"PHLBOBIT02.ExplorerSearchServer","type":"Server"}]}

    Hi Tom,
    As Anthony pointed out, currently it is not possible to get server details like the server state, PID etc. through BIP REST calls. Only prelimnary information about the infostore object is returned. You would need to use the BIP JAVA SDK to retrieve server details. However, we are in the process of enhancing BIP REST SDK. Can you please raise this on idea place under BIP>>SDK category?
    Regards
    Sumitesh Ranjan Srivastava
    Product Manager, BI SDK & OEMs
    SAP Labs India

  • [SOLVED] Netbeans - Run fails - most of the time

    Hello everybody,
    I have just today installed Netbeans Verion 7.0 and all plugins are up to date.
    I have a strage error with a simple "Hello World" program:
    The program builds always fine, but it runs just in about 1 of 5 tries.
    Here are some screenshots:
    Build Info
    Success
    Fail
    I also realized, that when I choose "Debug / Debug Main Project" this works all the time.
    Any suggestions?
    matse
    Last edited by matse (2011-06-11 20:51:09)

    just found a workaround here:
    http://forums.netbeans.org/ptopic28915.html
    disabling the built-in profiler: in project properties ->
    Profile, uncheck "Show profiling indicators during run".
    solved the problem.

  • Getting Key Events during animation loop

    I'm having a problem recieving Key events during my animation loop. Here is my example program
    import java.awt.*;
    import java.awt.image.BufferStrategy;
    import javax.swing.JPanel;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import java.util.ArrayList;
    import java.awt.event.*;
    import java.util.Iterator;
    import GAME.graphics.Animation;
    import GAME.sprites.MainPlayer;
    import GAME.util.MapData;
    import GAME.input.*;
    public class ImageTest extends JFrame {
        private static final long DEMO_TIME = 20000;
        private Animation      anim;
        private MainPlayer     mPlayer;
        private MapData               mapData;
        private InputManager      inputManager;
        private GameAction moveLeft;
        private GameAction moveRight;
        private GameAction exit;
        public ImageTest()
         requestFocus();
         initInput();
         setSize(1024, 768);
         setUndecorated(true);
         setIgnoreRepaint(true);
         setResizable(false);
         loadImages();
         anim = new Animation();
            mPlayer = new MainPlayer(anim);
            setVisible(true);
            createBufferStrategy(2);
            animationLoop();
         // load the player images
         private void loadImages()
              // code that loads images...
         // Initialize input controls
         private void initInput() {
            moveLeft = new GameAction("moveLeft");
            moveRight = new GameAction("moveRight");
            exit = new GameAction("exit",
                GameAction.DETECT_INITAL_PRESS_ONLY);
            inputManager = new InputManager(this);
            inputManager.setCursor(InputManager.INVISIBLE_CURSOR);
            inputManager.mapToKey(moveLeft, KeyEvent.VK_LEFT);
            inputManager.mapToKey(moveRight, KeyEvent.VK_RIGHT);
            inputManager.mapToKey(exit, KeyEvent.VK_ESCAPE);
        // Check player input
        private void checkInput(long elapsedTime) {
            if (exit.isPressed()) {
                System.exit(0);
            if (mPlayer.isAlive()) {
                float velocityX = 0;
                if (moveLeft.isPressed()) {
                    velocityX-=mPlayer.getMaxSpeed();
                if (moveRight.isPressed()) {
                    velocityX+=mPlayer.getMaxSpeed();
                mPlayer.setVelocityX(velocityX);
        // main animation loop
        public void animationLoop() {
            long startTime = System.currentTimeMillis();
            long currTime = startTime;
            while (currTime - startTime < DEMO_TIME) {
                long elapsedTime =
                    System.currentTimeMillis() - currTime;
                currTime += elapsedTime;
                checkInput(elapsedTime);
                mPlayer.update(elapsedTime);
                // draw and update screen
                BufferStrategy strategy = this.getBufferStrategy();
                Graphics2D g = (Graphics2D)strategy.getDrawGraphics();
                if (!(bgImage == null))
                     draw(g);
                     g.dispose();
                     if (!strategy.contentsLost()) {
                         strategy.show();
                // take a nap
                try {
                    Thread.sleep(20);
                catch (InterruptedException ex) { }
        public void draw(Graphics g) {
            // draw background
            if (bgImage != null)
                         // draw image
                 g.drawImage(mPlayer.getImage(), (int)mPlayer.getX(), (int)mPlayer.getY(), null);
    }My InputManager implements KeyListener. When running print statements on my Key events, they are not being called until after the animation demo is done running. Can someone help me with getting the Key events to update during the animation loop? Thank you!

    I've used the post from Abuse on the following thread with success. Maybe it will clue you in to what you might be doing wrong:
    http://forum.java.sun.com/thread.jsp?forum=406&thread=498527

  • Attribute change Run Failed/Scheduled

    Hello All,
    For a process Chain Attribute Change Run has failed in BW 3.5,and I Repeated the Change Run in Chain only
    where Repeat option is ,now the problem is in RSA1 it is now that change run is scheduled
    and sm37 it is showing that Canceled.
    Now there is Other Process Chain in BI7.0  which picks data from  3.5
    Should I repeat the Master data Chain in BW 3.5 followed by in BI 7.0
    Or any other way is possible as in BI7 the chain has run successfully..
    Thanks,
    Kiran

    Hi Kiran.......
    BI 7.0 and BW 3.5............totally two seperate systems..............here BW 3.5 is just act as a source system of BI 7.0.............if change run fails in BW3.5...............it is not going to effect BI 7.0.............
    As ajeet already said............it will effect the SID s in 3.5.............because attribute change run activates the master data...........and SID get generated during the activation of master data.......
    Also it will effect the aggregates............because aggregates also get adjusted during change run.......if any of the aggregates contains the master data.........which are getting activated in the change run....
    Now u r saying........that in SM37 it is showing that the job got cancelled............So it will not locked the master data..............terminated change runs generally lock the master data............then we hav to repeat the chain run to release the lock.........and u hav already repeated the change run............so no issue........
    Hope this helps..........
    Regards,
    Debjani........

  • [GeForceFX] Event: Silent running: Stress test transition: L2 - L1

        I'm using 71.25 nvidia drivers (from MSI), and I activated with the coolbit the hidden features. So, cheking the hidden features there is one called: Debbugin... and I've never seen any issue there. But this message apeared:
    Event ID: 106
    Event: Silent running: Stress test transition: L2 -> L1
    anyone here has a list of these events?    or anyone knows what this could mean?
    I've searched on the nvidia forum but right there there aren't solutions  to that issue:
    "In system log, i've a lot of this error:
    Silent Running: Stress test transition: L2 -> L1
    what is that?
    ( the temp are normals, idle:54 full:65, no artefacts, everything run fine )...
    What's this error message...?
    Answer: I don't know if this will work or not,,but it shouldn't hurt. What it sounds like to me is ur motherboard is having a hard time transitioning your video card from performance 3d to Low Power 3d. If you use Rivatuner you can force a constant performance level. This might help, but if you notice your system rebooting more often then I'd revert back to the original setting."
    BTW my vid card temp is 44° C on Idle. Just running D.O.T. enabled in Private.
    thanks in advance
    Yo can see in my signature my PC specs.

    Thanks I'll chek it out.
    Quote
    If you dont believe me
    why shouln't I beleive you? 
    I was doing some overclocking yesterday (the day that I got the error), my card specs: 390 Core/ 700 Memory. I reached 450 core/ 900 Memory    and I got 6200 points in 3D mark 03    and after the test I saw the error message. I guess you're right, the card got its limit and also suffer some overheating. But I added some cooling solution and now I'll see if I can reach that point without problems.
    thanks

  • [6:01:13 PM] Status: Error UVSC Internal Error Detail: [UVSC_DBG_ENUMERATE_BP, MSG: 0x2000, STATUS: 0x1] (1) Status: Run failed.

    sir,
     we are working in arm 7 mcb2300. we get an error "[UVSC_DBG_ENUMERATE_BP, MSG: 0x2000, STATUS: 0x1] (1)
    Status: Run failed." during downloading. we dont know whether it is a software or hardware error. please guide us to rectify it. 
      thank you

    Figured it out.  Somehow the projects that I was working on got corrupted somehow.  After another reinstall I opened an example project, not one of the many that are my own, and it worked.  I had to copy and past the code out of the one project and into a new one, but it is working.  Don't know how my projects got messed up in the middle of working on them.  
    Now back to actually getting work done.

  • Pxvfs:mount(): global mounts are not enabled (need to run "clconfig -g")

    Dear All,
    I having two node cluster and one of the cluster node rebooted automatically . After it boots, it shows the following error.
    Mar 11 14:23:21 scrbdomderue005 svc.startd[8]: [ID 652011 daemon.warning] svc:/system/cluster/globaldevices:default: Method "/
    usr/cluster/lib/svc/method/globaldevices start" failed with exit status 96.
    Mar 11 14:23:21 scrbdomderue005 svc.startd[8]: [ID 748625 daemon.error] system/cluster/globaldevices:default misconfigured: tr
    ansitioned to maintenance (see 'svcs -xv' for details)
    Mar 11 14:23:21 scrbdomderue005 Cluster.CCR: [ID 795553 daemon.error] /usr/cluster/bin/scgdevs: Filesystem /global/.devices/no
    de@2 is not available in /etc/mnttab.
    Mar 11 15:04:19 scrbdomderue005 cl_runtime: [ID 403317 kern.warning] WARNING: pxvfs:mount(): global mounts are not enabled (need to run "clconfig -g" first)
    scrbdomderue005:/usr/cluster/lib/sc# ./clconfig -g
    cladm: CLGBLMNT_ENABLE: Device busy
    scrbdomderue005:/usr/cluster/lib/sc#
    When i tried to mount manually it couldn't.
    scrbdomderue005:/# mount /dev/dsk/c1t1d0s5 /global/.devices/node@2
    mount: No such device
    mount: Cannot mount /dev/dsk/c1t1d0s5
    but when i tried to mount the device in new mount point its mounting and i'm able to see the data.
    scrbdomderue005:/# mount /dev/dsk/c1t1d0s5 /mnt
    scrbdomderue005:/mnt# ls
    dev devices lost+found
    Kindly Could some one please guide me. how to resolve this issue.
    Thanks in advance.
    veera

    What have you changed recently? Patches?? Was it booting successfully before?
    May be the /global/.devices/node@X is not mounting properly on one node?
    Tim
    ---

  • Urjent help !!!Error during running script root.sh for oracle 11g migration

    Dear All,
    My databse is Oracle 9.2.8.0 and i am migrating it into oracle 11g.
    During installation of oracle 11g (with software only option) , it asked me to run the script root.sh in another terminal,
    During running i got the below error.
    What i should do now. shall i continue with the error...............
    Kindly help ? It's urjent....
    Script Output :
    [root@cmssbigt dbhome_1]# ./root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME= /oracle/product/11.2.0/dbhome_1
    Enter the full pathname of the local bin directory: [usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]: y
    Copying dbhome to /usr/local/bin ...
    The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]: y
    Copying oraenv to /usr/local/bin ...
    The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]: y
    Copying coraenv to /usr/local/bin ...
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    Finished product-specific root actions.
    /bin/mkdir: cannot create directory `/opt/ORCLfmap': No such file or directory
    /bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32': No such file or directory
    /bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32/bin': No such file or directory
    /bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32/etc': No such file or directory
    /bin/mkdir: cannot create directory `/opt/ORCLfmap/prot1_32/log': No such file or directory
    /bin/cp: cannot create regular file `/opt/ORCLfmap/prot1_32/bin': No such file or directory
    /bin/cp: cannot create regular file `/opt/ORCLfmap/prot1_32/bin': No such file or directory
    /bin/chmod: cannot access `/opt/ORCLfmap/prot1_32/bin/fmputl': No such file or directory
    /bin/chmod: cannot access `/opt/ORCLfmap/prot1_32/bin/fmputlhp': No such file or directory
    /bin/cp: cannot create regular file `/opt/ORCLfmap/prot1_32/etc': No such file or directory
    [root@cmssbigt dbhome_1]#
    You have new mail in /var/spool/mail/root

    Biswa wrote:
    If u have any problem with urjent word then mention in the forum during regestration that , only who having 5 to 6 days of time can only post. Because the issues will be solved within this time interval.
    Ok ..........No. It is NOT okay to claim that everyone else here that posted problems need to be ignored and your problem be given priority attention because you deem it to be urgent. You have not a single valid excuse for claiming your posting is more important on OTN that other postings.
    It is not acceptable. Learn some basic etiquette please when posting online!

  • Changing data in the table control during run time of transaction F-28

    Dear Experts,
    in transaction F-28 of second screen of second column (Field Name: Assignment) currently the data is getting from BSEG table and populating this column of table control, now I have a requirement that the data should be get from the other ZTABLE and populate this column during run time instead of the data from BSEG table, please let me know your suggestions, if you guys feel it will be done using User Exit then please let me know the suitable exit for this.
    Best Regards
    Venkat

    Hi Venkat,
    Use the appropriate sort key in the GL to fill up the assignment field automatically.
    U can create ur new sort key through OB16
    Regards,
    Kiran

  • How to get the Title and Tcode of a Program during run time

    Hello,
    I am new to abap and I have this question please. Is the a way to get the title, Tcode and Author of a program during run time? I would like to get the name and title of a program or a view or an include during run time.
    Using table TADIR, you can only get the object_name and the author. Is the a way for me to get the Title of the repository object and any Tcode if any is available for the case of a program?
    I loop forward for your respond.
    Thank you.
    Sabina

    You can get it by accessing SYST.
    SY-TITLE for Title
    SY-TCODE for Tcode
    I don't think there is any field in SYST for the Author.
    To get the author name you can use the TRDIR table.
    Regards,
    Naimesh Patel

Maybe you are looking for