After GLcanvas setVisible(false), normal JPanels sometimes not repainted.

We are running an application which uses some jogl for animaties.
Sometimes when the animation is finished and we set the GLCanvas to invisible, the normal
java JPanels are not repainted.
Also alt-tab to another windows application and back will not force a redraw.
The application itself is still working, clicking on a (now) not visible button will trigger
the jogl animations, and these are show correctly.
Also from logging it appear that the AWT-thread is not blocking.
We are looking for tips that can help find us the problem from logging
as it only appears a few times a week and it is not reproducable.

The problem is that most of the time it works, but after some hours/days, the java panels are not repainted.
There is no memory leak.
Pseudo code:
public class AnimateTilePopup extends JPanel {
GLCanvas glCanvas;
public AnimateTilePopup() {
super(null);
setOpaque(true);
glCanvas = new GLCanvas();
glCanvas.setLocation(0,0);
glCanvas.setSize(width, height);
glCanvas.setVisible(false);
glCanvas.setFocusable(false);
add(glCanvas);
flipRendererZoom = new AnimateRendererZoom();
glCanvas.addGLEventListener(flipRendererZoom);
public startAnimation() {
glCanvas.setVisible(true);
this.setVisible(true);
public stopAnimation() {
glCanvas.setVisible(false);
this.setVisible(false);
So sometimes when we call stopAnimation(), the animation is stoppped, but the underlying java JPanels are not repainted.
When we now call startAnimation, the animation is shown and when stopped, no repaint for the normal JPanels.
Most times it is working perfectly, only sometimes it failes.
What can be the cause or what logging can be gather that might gives us a clue how to fix this problem.

Similar Messages

  • Flicker with heavyweight swing component and setVisible(false) on Linux

    Hi All,
    I'm using Java 6 update 14 on Ubuntu Jaunty.
    I'm developing a GUI for a system running linux. I'm using the Swing framework for the GUI but need to include 3D animation accelerated in hardware. I'm using the JOGL framework for applying the 3D animations which supplies one with two swing-like components, the GLJPanel and GLCanvas. These two components are lightweight and heavyweight swing components respectively.
    The difficulty arises when adding the heavyweight GLCanvas component into the gui. Often I need to do a setVisible(false) on the component in which case the GLCanvas hides correctly, but shows a flicker before the background is displayed. On digging a little deeper I found that because the GLCanvas is heavyweight, on linux it calls down to the sun.awt.X11 classes to do the setVisible(false) on hide. The very deepest call, the xSetVisible(false) method of the XBaseWindow class, causes the component to be replaced by first a grey backgound, and then the correct background. This intermediate grey background is causing the flicker.
    The source for the sun.awt.X11 packages was not available with the standard JDK 6 but I've found the open jdk source which matches the steps taken by the call. The xSetVisible method is as follows:
    0667:            public void xSetVisible(boolean visible) {
    0668:                if (log.isLoggable(Level.FINE))
    0669:                    log.fine("Setting visible on " + this  + " to " + visible);
    0670:                XToolkit.awtLock();
    0671:                try {
    0672:                    this .visible = visible;
    0673:                    if (visible) {
    0674:                        XlibWrapper.XMapWindow(XToolkit.getDisplay(),
    0675:                                getWindow());
    0676:                    } else {
    0677:                        XlibWrapper.XUnmapWindow(XToolkit.getDisplay(),
    0678:                                getWindow());
    0679:                    }
    0680:                    XlibWrapper.XFlush(XToolkit.getDisplay());
    0681:                } finally {
    0682:                    XToolkit.awtUnlock();
    0683:                }
    0684:            }I've found that the XlibWrapper.XFlush(XToolkit.getDisplay()) line (680) causes the grey to appear and then the XToolkit.awtUnlock(); line repaints the correct background.
    Using the lightwieght GLJPanel resolves this issue as it is a light weight component but unfortunately I'm unable to use it as the target system does not have the GLX 1.3 libraries required because of intel chipset driver issues (it has GLX 1.2). I cannot enable the opengl pipline either (-Dsun.java2d.opengl=True) for the same reason.
    Is there a way to configure a heavyweight component to avoid the operation in line 680? As far as I can tell, the flicker would disappear and the display would still be correctly rendered had this line not been executed. This problem is not present in windows.
    I've put together a minimal example of the problem. It requires the JOGL 1.1.1 libraries in the classpath. They can be found here: [JOGL-download|https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=11509&expandFolder=11509&folderID=11508]
    I've also found that running the program with the -Dsun.awt.noerasebackground=true vm argument reduces the flicker to just one incorrect frame.
    The program creates a swing app with a button to switch between the GLCanvas and a normal JPanel. When switching from the GLCanvas to the JPanel a grey flicker is noticeable on Linux. Step through the code in debug mode to the classes mentioned above to see the grey flicker frame manifest.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.media.opengl.GLCanvas;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.WindowConstants;
    import javax.swing.border.EmptyBorder;
    public class SwitchUsingJInternalFrameSwappedExample {
         private static JPanel glPanel;
         private static JPanel mainPanel;
         private static JPanel swingPanel1;
         private static boolean state;
         private static JInternalFrame layerFrame;
         private static GLCanvas glCanvas;
         public static void main(String[] args) {
              state = true;
              JFrame frame = new JFrame();
              frame.setSize(800, 800);
              frame.setContentPane(getMainPanel());
              frame.setVisible(true);
              frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              frame.setBackground(Color.GREEN);
         // The main component.
         public static JPanel getMainPanel() {
              mainPanel = new JPanel();
              mainPanel.setBackground(new Color(0, 0, 255));
              mainPanel.setBorder(new EmptyBorder(new Insets(20, 20, 20, 20)));
              mainPanel.setLayout(new BorderLayout());
              mainPanel.add(getButton(), BorderLayout.NORTH);
              mainPanel.add(getAnimationPanel(), BorderLayout.CENTER);
              return mainPanel;
         // Switch button.
         private static JButton getButton() {
              JButton button = new JButton("Switch");
              button.addActionListener(new ActionListener() {
                   @Override
                   public void actionPerformed(ActionEvent e) {
                        switchToOpenGl();
              return button;
         // Do the switch.
         protected static void switchToOpenGl() {
              // Make the OpenGL overlay visible / invisible.
              if (!state) {
                   glCanvas.setVisible(false);
              } else {
                   glCanvas.setVisible(true);
              state = !state;
         // Normal swing panel with buttons
         public static JPanel getNormalPanel() {
              if (swingPanel1 == null) {
                   swingPanel1 = new JPanel();
                   for (int i = 0; i < 10; i++) {
                        swingPanel1.add(new JButton("Asdf" + i));
                   swingPanel1.setBackground(Color.black);
              return swingPanel1;
         // Extra panel container just for testing whether background colors show through.
         public static JPanel getAnimationPanel() {
              if (glPanel == null) {
                   glPanel = new JPanel(new BorderLayout());
                   glPanel.setBorder(new EmptyBorder(new Insets(20, 20, 20, 20)));
                   glPanel.setBackground(Color.YELLOW);
                   glPanel.add(getLayerFrame(), BorderLayout.CENTER);
              return glPanel;
         // A component that has two layers (panes), one containing the swing components and one containing the OpenGl animation.
         private static JInternalFrame getLayerFrame() {
              if (layerFrame == null) {
                   // Create a JInternalFrame that is not movable, iconifyable etc.
                   layerFrame = new JInternalFrame(null, false, false, false, false);
                   layerFrame.setBackground(new Color(155, 0, 0));
                   layerFrame.setVisible(true);     
                   // Remove the title bar and border of the JInternalFrame.
                   ((javax.swing.plaf.basic.BasicInternalFrameUI) layerFrame.getUI())
                             .setNorthPane(null);
                   layerFrame.setBorder(null);
                   // Add a normal swing component
                   layerFrame.setContentPane(getNormalPanel());
                   // Add the OpenGL animation overlay on a layer over the content layer.
                   layerFrame.setGlassPane(getGLCanvas());
              return layerFrame;
         // OpenGL component.
         public static GLCanvas getGLCanvas() {
              if (glCanvas == null) {
                   glCanvas = new GLCanvas();
                   glCanvas.setBackground(Color.CYAN);
              return glCanvas;
    }

    Oracle employees typically don't read these forums, you can report bugs here: http://bugs.sun.com/bugdatabase/

  • Whole screen is not repainted, need debug tips

    We are running an application which uses some jogl for animaties.
    Sometimes when the animation is finished and we set the GLCanvas to invisible, the normal
    java JPanels are not repainted.
    Also alt-tab to another windows application and back will not force a redraw.
    The application itself is still working, clicking on a (now) not visible button will trigger
    the jogl animations, and these are show correctly.
    Also from logging it appear that the AWT-thread is not blocking.
    We are looking for tips that can help find us the problem from logging
    as it only appears a few times a week and it is not reproducable.

    The problem is that most of the time it works, but after some hours/days, the java panels are not repainted.
    There is no memory leak.
    paintComponent is not overwritten, a object is made visible to do the animation.
    Pseudo code:
    public class AnimateTilePopup extends JPanel {
    GLCanvas glCanvas;
    public AnimateTilePopup() {
    super(null);
    setOpaque(true);
    glCanvas = new GLCanvas();
    glCanvas.setLocation(0,0);
    glCanvas.setSize(width, height);
    glCanvas.setVisible(false);
    glCanvas.setFocusable(false);
    add(glCanvas);
    flipRendererZoom = new AnimateRendererZoom();
    glCanvas.addGLEventListener(flipRendererZoom);
    public startAnimation() {
    glCanvas.setVisible(true);
    this.setVisible(true);
    public stopAnimation() {
    glCanvas.setVisible(false);
    this.setVisible(false);
    So sometimes when we call stopAnimation(), the animation is stoppped, but the underlying java JPanels are not repainted.
    When we now call startAnimation, the animation is shown and when stopped, no repaint for the normal JPanels.
    Most times it is working perfectly, only sometimes it failes.
    What can be the cause or what logging can be gather that might gives us a clue how to fix this problem.

  • Which event will be fired when I after set JFrame.setVisible(false)

    Experts.
    I want to know which event will be fired when I after set JFrame.setVisible(false)?
    Because I need to check a thread is finished it job or not.
    I have checked windowClosing event, but it doesn't work.
    Thanks
    Francis

    Oh....
    Sorry, I find it will fired on componentHidden event.
    Very sorry.

  • After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menues, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.

    After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menus, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.
    == This happened ==
    Every time Firefox opened
    == After upgrading to 3.6

    Step by step, how did you arrive at seeing this agreement?

  • Why do my Reminders sometimes not alert after the set time?

    Why do my Reminders sometimes not alert after the set time?  I've tried re-starting repeatedly.  I've tried deleting older completed reminders (I only had 300).  Is there a fix for this? 

    You problem sounded rather odd, so I tried to duplicate it in iTunes 11 and I couldn't.
    I turned off copy to iTunes media folder when adding to library, then I moved a music track that was not in the iTunes media folder from folder A to folder B and right clicked on it and selected open with iTunes and it played fine. (I have to do it this way as iTunes is not my default player for MP3).
    However the consequences of doing this are that you end up with two copies of the track in the library database, the original which can no longer be found as it is not in its original location and the new entry pointing to the correct location which plays OK.
    So as far as I can tell, there must be something else going on as I can't dublicate your problem in iTunes 11
    You may find this program interesting
    iTunes Folder Watch
    http://albumbrowser.klarita.net/iTunesFolderWatch.html
    If you want an easy time with iTunes it really is easier to let iTunes manage your music in the iTunes media folder. Also it make life a lot easier if you want to move to a new disk or PC as iTunes can tolerate the iTunes media folder being moved as long as you tell it where it is.
    Added
    I realised that my last experment was not a purchased track.
    When I did it with a purchased track, iTunes recognises that it should be in the library database and brings the track up with an exclamation mark next to it. Strangely the track was added to the library with the correct loaction and would play on the secon try.
    Odd behaviour, maybe it is something to do with the icloud storage system as iTunes knows you purchased the track.

  • IOS 5.1, iPad 2, Safari shuts down after almost any transaction, sometimes it completes it, and sometimes not?

    iOS 5.1, iPad 2, Safari shuts down after almost any transaction, sometimes it completes it, and sometimes not?

    Almost similar problem..after latest updation ofios and itunes,I cant sync with itunes on computer further,everytime computer faces sudden shut down with itunes usage.
    I have ipad 1.

  • HT201412 All of the sudden, in order to make the home button work on my iPad 2, I have to press it without releasing my finger and sometimes, not always, after a few seconds it responds

    All of the sudden, in order to make the home button work on my iPad 2, I have to press it without releasing my finger and sometimes, not always, after a few seconds it responds. Could this be a software glitch or a hardware problem, how can I find out and fix it

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile

  • Sometimes my screen freeze after unlock my phone . sometimes after open an app the touch screen not respond to my touch...

    help.... i've faced this problem since the windows phone 8.1 updates.... sometimes my screen freeze after unlock my phone . sometimes after open an app the touch screen not respond to my touch... i tried all the ways like turning off wifi etc and still
    no recover my problem , and still screen freezing problems appear on windows phone 10 technical support..... just wish had to cure it... or i was depressing ....

    Hello,
    This is a developer forum and is intended only for discussions of Windows Phone APIs and app development.
    For technical issues regarding usability, updates, or other Windows Phone usability problems you might want to try the Microsoft Mobile Community forums:
    http://answers.microsoft.com/en-us/winphone/forum?tab=Threads
    Thanks,
    James
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

  • JPanel sometimes doesn't display correctly

    I have this JFrame which contains a single JPanel as its content pane. I have the paintComponent() overriden so that the panel paints a background that creates the basis for the GUI. The problem is that sometimes when I run the program (I've tried it on different computers too) instead of the background showing up with the text field on top of it, the background turns grey and only the text field that recieves focus by defualt shows up. I can make the other stuff show up too by clicking on it. It's as if I hadn't set setVisible() to true and it only happens some of the time. Here is a watered down version of the program but it still has the problem.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class problemFrame
        JFrame interfaceFrame;
        JLabel wrongLogin;
        JPanel logIn, repMain;
        JTextField userNameField;
        JPasswordField passField;
        JButton exit;
        ImageIcon loginImg, exitButton, exitButtonPressed;
        problemFrame(GraphicsDevice graphicsDev)
            interfaceFrame = new JFrame("Stupid, do what you will, Frame");
            interfaceFrame.setSize(graphicsDev.getDisplayMode().getWidth(), graphicsDev.getDisplayMode().getHeight());
            interfaceFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            interfaceFrame.setUndecorated(true);
            loginImg = new ImageIcon("loginScreen.jpg");
            exitButton = new ImageIcon("exitButtonNorm.jpg");
            exitButtonPressed = new ImageIcon("exitButtonPressed.jpg");
            logIn = new JPanel()
                public void paintComponent(Graphics g)
                    super.paintComponent(g);
                    g.drawImage(loginImg.getImage(), 0, 0, null);
            logIn.setLayout(null);
            logIn.setBackground(null);
            logIn.setOpaque(false);
            exit = new JButton(exitButton);
            exit.setBorderPainted(false);
            exit.setPressedIcon(exitButtonPressed);
            exit.setFocusable(false);
            exit.setSize(exitButton.getIconWidth(), exitButton.getIconHeight());
            exit.setLocation(1000, 7);
            logIn.add(exit);
            exit.setVisible(true);
            userNameField = new JTextField(20);
            userNameField.setLocation(500, 315);
            userNameField.setSize(userNameField.getPreferredSize());
            userNameField.setMaximumSize(userNameField.getPreferredSize());
            logIn.add(userNameField);
            userNameField.setVisible(true);
            passField = new JPasswordField(20);
            passField.setLocation(500, 385);
            passField.setSize(passField.getPreferredSize());
            passField.setMaximumSize(passField.getPreferredSize());
            logIn.add(passField);
            passField.setVisible(true);
            wrongLogin = new JLabel("Incorrect User Name/Password");
            wrongLogin.setForeground(Color.red);
            wrongLogin.setFont(new Font("SansSerif", Font.BOLD, 24));
            wrongLogin.setSize(wrongLogin.getPreferredSize());
            wrongLogin.setLocation(330, 250);
            logIn.add(wrongLogin);
            wrongLogin.setVisible(false);
        public void showLoginScreen()
            interfaceFrame.setContentPane(logIn);
            interfaceFrame.setVisible(true);
            interfaceFrame.requestFocus();
            userNameField.requestFocus();
        public static void main (String[] args)
            GraphicsDevice dev = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice ();
            GraphicsConfiguration gc = dev.getDefaultConfiguration();
            DisplayMode currentMode = dev.getDisplayMode();
            problemFrame PF = new problemFrame(dev);
            dev.setFullScreenWindow(PF.interfaceFrame);
            PF.showLoginScreen();
        }//end of main
    }You'll need to suplement some of your own images. loginImg- a background image (if you haven't figured it out already this is a login screen for a program). exitButton and exitButtonPressed- any old 'X' like image that pleases you!
    Also, do I need to put a setVisible(true) for each component or will doing it for the frame alone be sufficient? Should I be using another format for the background image, ImageIcon seems less like an image and more like a Icon. Any other things that I have that are repetitive, missing, or just plain stupid?
    Thanks in Advance
    Colin
    P.S. The most helpful person will recieve 3 duke dollars! Good luck.

    Answer to your reply 1: we're using a (GridBag) layout manager in this one. The layout manager takes care of locating components under varying conditions. The only tricksy thing in this layout is the cooperation of the two gbc.weighty constraints in determining the height of the three&#8211;component group (of the two textfields and the wrongLogin label). Using a lower number for the top constraint and a larger number for the bottom weighty will move the group higher on the screen. The opposite settings will lower the group. It really depends on the height of the exit button. Once you get the height of the group set where you want it (with the constraints) it should resize nicely in different monitors.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class ProblemFrame
        JFrame interfaceFrame;
        JLabel wrongLogin;
        JPanel logIn, repMain;
        JTextField userNameField;
        JPasswordField passField;
        JButton exit;
        ImageIcon loginImg, exitButton, exitButtonPressed;
        ProblemFrame(GraphicsDevice graphicsDev)
            interfaceFrame = new JFrame("Things are gettin' better...");
            interfaceFrame.setSize(graphicsDev.getDisplayMode().getWidth(),
                                   graphicsDev.getDisplayMode().getHeight());
            interfaceFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            interfaceFrame.setUndecorated(true);
            loginImg = new ImageIcon("images/barnowl.jpg");
            exitButton = new ImageIcon("images/bclynx.jpg");
            exitButtonPressed = new ImageIcon("images/greathornedowl.jpg");
            logIn = new JPanel()
                public void paintComponent(Graphics g)
                    super.paintComponent(g);
                    int w = getWidth();
                    int h = getHeight();
                    int imageW = loginImg.getImage().getWidth(null);
                    int imageH = loginImg.getImage().getHeight(null);
                    int x = (w - imageW)/2;
                    int y = (h - imageH)/2;
                    g.drawImage(loginImg.getImage(), x, y, null);
            logIn.setLayout(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.gridwidth = gbc.REMAINDER;
            logIn.setBackground(new Color(200,220,220));
            exit = new JButton(exitButton);
            exit.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    interfaceFrame.setExtendedState(Frame.ICONIFIED);
            exit.setBorderPainted(false);
            exit.setPressedIcon(exitButtonPressed);
            exit.setFocusable(false);            // no keyboard tabbing with this
            exit.setPreferredSize(new Dimension(exitButton.getIconWidth(),
                                                exitButton.getIconHeight()));
            gbc.insets = new Insets(10,0,0,10);  // [top, left, bottom, right]
            gbc.weightx = 1.0;
            gbc.weighty = 0.5;  // [0 - 1.0] controls height of textfields and label
                                // less means higher placement, see below (****)
            gbc.anchor = gbc.NORTHEAST;
            logIn.add(exit, gbc);
            userNameField = new JTextField(20);
            userNameField.setMaximumSize(userNameField.getPreferredSize());
            gbc.insets = new Insets(20,0,20,0);
            gbc.weighty = 0;                 // insets determine spacing now
            gbc.weightx = 0;
            gbc.anchor = gbc.NORTH;
            logIn.add(userNameField, gbc);
            passField = new JPasswordField(20);
            passField.addActionListener(new ActionListener()
                String s = "";
                public void actionPerformed(ActionEvent e)
                    if(wrongLogin.getText().equals(""))
                        s = "Incorrect User Name/Password";
                    else
                        s = "";
                    wrongLogin.setText(s);
            passField.setMaximumSize(passField.getPreferredSize());
            gbc.insets = new Insets(20,0,5,0);
            logIn.add(passField, gbc);
            wrongLogin = new JLabel("", JLabel.CENTER);
            // visual diagnostic trick, remove later
            //wrongLogin.setBorder(BorderFactory.createEtchedBorder());
            wrongLogin.setForeground(Color.red);
            wrongLogin.setFont(new Font("SansSerif", Font.BOLD, 24));
            // increase height so label doesn't move with setText calls
            wrongLogin.setPreferredSize(
                           new Dimension(wrongLogin.getPreferredSize().width, 40));
            gbc.insets = new Insets(0,0,0,0);
            // push textfields and label up with weighty constraint > 0
            gbc.weighty = 1.0;  // [0 - 1.0] controls height of textfields and label
                                // more means higher, see above (****), this is key
            gbc.weightx = 1.0;          // expand width so label doesn't move
            gbc.fill = gbc.HORIZONTAL;  // around on us with calls to setText
            logIn.add(wrongLogin, gbc);
        public void showLoginScreen()
            interfaceFrame.setContentPane(logIn);   // must be opaque(true)
            interfaceFrame.setVisible(true);
            interfaceFrame.requestFocusInWindow();  // this method preferred,
            userNameField.requestFocusInWindow();   // see api for explanation
        public static void main (String[] args)
            GraphicsDevice dev =
                GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
            GraphicsConfiguration gc = dev.getDefaultConfiguration();
            DisplayMode currentMode = dev.getDisplayMode();
            ProblemFrame pf = new ProblemFrame(dev);
            dev.setFullScreenWindow(pf.interfaceFrame);
            pf.showLoginScreen();
    }

  • JMS messages sometimes not received by Flex client

    We have a problem that Flex client is sometimes not able to
    receive JMS messages from a JBoss JMS Queue. Most of the time it
    works, but if users logout/login using the same account frequently
    or you restart JBoss 4.0.4 during their session then it might
    happen. Then it doesn't work at all even if you wait. Client is
    able to send messages when this problem occurs, which can then be
    intercepted by other clients but cannot receive any messages from
    himself or from the others. JBoss 4.0.4 is running in cluster mode.
    Could it be that there is an old frozen session which is receiving
    the messages meant for the new client?(consumer selector is unique
    to each user, but if a user logs in twice, the same selector is
    used) If I run 2 instances of my JMS test consumer using the same
    selector then the consumer which registered later receives the
    messages and if it quits, then the older consumer starts receving
    them. This doesn't occur in Flex.
    Flex is running on Tomcat 5.5.17.
    Our messaging-config.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="message-service"
    class="flex.messaging.services.MessageService"
    messageTypes="flex.messaging.messages.AsyncMessage">
    <adapters>
    <adapter-definition id="actionscript"
    class="flex.messaging.services.messaging.adapters.ActionScriptAdapter"
    default="true" />
    <adapter-definition id="jms"
    class="flex.messaging.services.messaging.adapters.JMSAdapter"/>
    </adapters>
    <destination id="JMSQueueB">
    <properties>
    <network>
    <session-timeout>10</session-timeout>
    </network>
    <jms>
    <initial-context-environment>
    <property>
    <name>java.naming.factory.url.pkgs</name>
    <value>org.jboss.naming:org.jnp.interfaces</value>
    </property>
    <property>
    <name>Context.PROVIDER_URL</name>
    <value>jnp://x.x.x.x:1100,jnp://x.x.x.y:1100</value>
    </property>
    <property>
    <name>Context.INITIAL_CONTEXT_FACTORY</name>
    <value>org.jnp.interfaces.NamingContextFactory</value>
    </property>
    </initial-context-environment>
    <destination-type>Queue</destination-type>
    <message-type>javax.jms.TextMessage</message-type>
    <connection-factory>ConnectionFactory</connection-factory>
    <destination-jndi-name>queue/B</destination-jndi-name>
    <destination-name>B</destination-name>
    <delivery-mode>PERSISTENT</delivery-mode>
    <message-priority>DEFAULT_PRIORITY</message-priority>
    <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
    <transacted-sessions>false</transacted-sessions>
    </jms>
    </properties>
    <channels>
    <channel ref="my-rtmp"/>
    <channel ref="my-secure-amf"/>
    </channels>
    <adapter ref="jms"/>
    </destination>
    </service>
    Part of our actionscript code:
    pmConsumer = new Consumer();
    pmConsumer.destination = "JMSQueueB";
    pmConsumer.selector = "some jms selector ....";
    pmConsumer.addEventListener(MessageEvent.MESSAGE,
    presenceMessageHandler);
    pmConsumer.addEventListener(MessageFaultEvent.FAULT,
    faultHandler);
    pmConsumer.addEventListener(ChannelFaultEvent.FAULT,
    channelFaultHandler);
    pmConsumer.subscribe();
    Also Flex seems to be handing channel switching incorrectly,
    if rtmp port is firewalled, it won't use amf properly even though
    it was given 2 channels in configuration file and JMS messaging
    doesn't work. We have to alter the channel set during runtime.
    Flex also doesn't automatically switch to other JMS server if
    one goes down. Is this a feature or a bug? We have to reset
    producer and consumer in order for this to work.

    Hi,
    It was in earlier version of the OS that you could turn Bonjour On and Off.
    If this can be done in Leopard and Snow Leopard I have not found it yet. (But I don't look that often and nor for very long)
    This Forum may help with that
    I would also try a PRAM reset. (on Both computers)
    Shut down the computer.
    Restart it holding down APPLE(or ⌘)ALT+PR Keys until you have heard three Start Up Bongs.
    7:18 PM Tuesday; December 8, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • SetVisible(false) doesn't work with JDialog

    Hi evry one in this forum, i am using JDialog to get some inputs from user, when the user click on the ok button, i start processing and the JDialog must be invisible, for that i use myJdialog.setVisible(false) methode, but the JDialog is still visible, i may be use the wrong component or there is a problem.
    I write some thing like this:
    actionPerformed(){
    //getinputs and make some controls
    if(test){
    this.setVisible(false);
    //some traitments
    //some traitments
    }I think there is no thing wrong, not? what happen?

    I am sorry, this is some thing complicated:
    public class OpenKeyStore
        extends JDialog
        implements ActionListener, KeyListener, WindowListener {
      JPanel jPanel1 = new JPanel();
      Border border1;
      JLabel lprivateKey = new JLabel();
      JLabel lkeyPass = new JLabel();
      JTextField tkeyStorePath = new JTextField();
      JPasswordField tkeyPass = new JPasswordField();
      JButton bvalidate = new JButton();
      JButton bopenKeyStore = new JButton();
      JButton breset = new JButton();
      GridBagLayout gridBagLayout1 = new GridBagLayout();
      JFileChooser jfc = new JFileChooser();
      JOptionPane jop = new JOptionPane();
      private UploadParameters uploadParameters;
      private OpenRequest openRequest;
      private OpenResponse openResponse;
      private CheckCertRequest checkCertRequest;
      private CheckCertResponse checkCertResponse;
      private WaitBox waitBox;
      UploadApplet uploadApplet;
      public OpenKeyStore(Frame frame, String title, boolean modal) {
        super(frame, title, modal);
        try {
          jbInit();
        catch (Exception ex) {
          ex.printStackTrace();
      public OpenKeyStore(UploadApplet uploadApplet) {
        this(null, "", false);
        this.uploadApplet = uploadApplet;
      private void jbInit() throws Exception {
        uploadParameters = new UploadParameters();
        border1 = new EtchedBorder(EtchedBorder.RAISED, Color.white,
                                   new Color(148, 145, 140));
        this.setModal(true);
        this.setTitle("Ouvrir");
        jPanel1.setBorder(border1);
        jPanel1.setLayout(gridBagLayout1);
        jPanel1.setSize(400, 140);
        lprivateKey.setText("Cl� priv�e :");
        lkeyPass.setText("Mot de passe : ");
        bopenKeyStore.setActionCommand("openKeyStore");
        bopenKeyStore.setText("Ouvrir");
        bopenKeyStore.setMnemonic(KeyEvent.VK_O);
        bopenKeyStore.addKeyListener(this);
        bopenKeyStore.addActionListener(this);
        bvalidate.setActionCommand("bvalidate");
        bvalidate.setText("Valider");
        bvalidate.setMnemonic(KeyEvent.VK_V);
        bvalidate.addKeyListener(this);
        bvalidate.addActionListener(this);
        breset.setActionCommand("breset");
        breset.setText("R�etablir");
        breset.setMnemonic(KeyEvent.VK_R);
        breset.addKeyListener(this);
        breset.addActionListener(this);
        tkeyStorePath.setText("C:\\y.p12");
        tkeyStorePath.addKeyListener(this);
        tkeyPass.setText("y");
        tkeyPass.addKeyListener(this);
        this.getContentPane().add(jPanel1, BorderLayout.CENTER);
        this.getContentPane().setSize(410, 150);
        jPanel1.add(lprivateKey, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
            , GridBagConstraints.WEST, GridBagConstraints.NONE,
            new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(lkeyPass, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
                                                     , GridBagConstraints.WEST,
                                                     GridBagConstraints.NONE,
                                                     new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(tkeyStorePath, new GridBagConstraints(1, 0, 1, 1, 10.0, 0.0
            , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
            new Insets(5, 5, 5, 5), 150, 0));
        jPanel1.add(tkeyPass, new GridBagConstraints(1, 1, 1, 1, 10.0, 0.0
                                                     , GridBagConstraints.WEST,
                                                     GridBagConstraints.HORIZONTAL,
                                                     new Insets(5, 5, 5, 5), 200, 0));
        jPanel1.add(bvalidate, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
                                                      , GridBagConstraints.EAST,
                                                      GridBagConstraints.NONE,
                                                      new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(bopenKeyStore, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
            , GridBagConstraints.CENTER, GridBagConstraints.NONE,
            new Insets(5, 5, 5, 5), 0, 0));
        jPanel1.add(breset, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
                                                   , GridBagConstraints.CENTER,
                                                   GridBagConstraints.NONE,
                                                   new Insets(5, 5, 5, 5), 0, 0));
        this.initFileChooser();
        this.tkeyStorePath.requestFocus();
        this.pack();
        Rectangle screenRect = this.getGraphicsConfiguration().getBounds();
        this.setLocation(
            screenRect.x + screenRect.width / 2 - this.getSize().width / 2,
            screenRect.y + screenRect.height / 2 - this.getSize().height / 2);
        this.show();
      public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand().equals("openKeyStore")) {
          this.showOpenFileChooser();
          return;
        if (e.getActionCommand().equals("bvalidate")) {
          this.acte();
          return;
        if (e.getActionCommand().equals("breset")) {
          this.reset();
          return;
      public void keyPressed(KeyEvent e) {
        if (e.getKeyCode() == KeyEvent.VK_ENTER) {
          if (e.getSource() == this.bopenKeyStore ||
              e.getSource() == this.tkeyStorePath) {
            this.showOpenFileChooser();
            return;
          if (e.getSource() == this.bvalidate ||
              e.getSource() == this.tkeyPass) {
            this.acte();
            return;
          if (e.getSource() == this.breset) {
            this.reset();
            return;
      public void keyReleased(KeyEvent e) {}
      public void keyTyped(KeyEvent e) {
      private void initFileChooser() {
        jfc.setFileFilter(new javax.swing.filechooser.FileFilter() {
          public boolean accept(File f) {
            return (f.getName().endsWith(".p12") || f.isDirectory());
          public String getDescription() {
            return "(.p12) fichier key store";
        jfc.setDialogTitle("Selectionnez un fichier .p12");
        jfc.setMultiSelectionEnabled(false);
        jfc.setDialogType(JFileChooser.OPEN_DIALOG);
        jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);
      private void showOpenFileChooser() {
        int returnVal = jfc.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION && jfc.getSelectedFile() != null &&
            jfc.getSelectedFile().exists()) {
          this.tkeyStorePath.setText(jfc.getSelectedFile().getAbsolutePath());
          this.tkeyPass.requestFocus();
        else {
          this.tkeyStorePath.requestFocus();
      private void reset() {
        this.tkeyStorePath.setText("");
        this.tkeyStorePath.requestFocus();
        this.tkeyPass.setText("");
      private void acte() {
    //waitBox = new WaitBox();
        openRequest = new OpenRequest();
        openRequest.setStorePath(this.tkeyStorePath.getText());
        if (!openRequest.isValide()) {
          jop.showMessageDialog(null,
                                "S.V.P v�rifiez le chemin de votre cl�!",
                                "Echec...", jop.ERROR_MESSAGE);
          this.tkeyStorePath.requestFocus();
          this.tkeyStorePath.selectAll();
          return;
        openRequest.setStorePass(new String(this.tkeyPass.getPassword()));
        openRequest.setReciverCert(this.uploadParameters.getReciverCert());
        OpenAction openAction = new OpenAction(this.openRequest);
        try {
          while (openResponse == null) {
            Thread.sleep(100);
            openResponse = (OpenResponse) openAction.getResponse();
        catch (Exception e) {
          e.printStackTrace();
        if (openResponse.getSenderPK() == null) {
          jop.showMessageDialog(null,
              "S.V.P entrez une cl� valide, \n ou verifiez votre mot de passe !",
              "Echec...", jop.ERROR_MESSAGE);
          this.tkeyStorePath.requestFocus();
          this.tkeyStorePath.selectAll();
          return;
        if (openResponse.getCaCert() == null) {
          this.setVisible(false);
          jop.showMessageDialog(null,
              "Votre cl� n'est pas valide.\n contactez votre administrateur!",
              "Echec...", jop.ERROR_MESSAGE);
          this.gotoPreviousPage();
          return;
        if (this.uploadParameters.getCipher() && openResponse.getReciverCert() == null) {
    this.setVisible(false);//*********************Does not work
    jop.showMessageDialog(null,
              "Vous ne disposez pas de certificat pour votre correspondant!",
              "Echec...", jop.ERROR_MESSAGE);
          this.gotoPreviousPage();
          return;
        this.setVisible(false);//*********************Does not work
        if (this.uploadParameters.getCipher()) {
          String compte;
          while (true) {
            compte = (String) JOptionPane.showInputDialog(
                this, "S.V.P. entrez le compte de votre correspondant : ",
                "Customized Dialog", JOptionPane.PLAIN_MESSAGE, null, null, "");
            if (compte == null) {
              //gotoprevious page
              return;
            this.checkCertRequest.setCommunName(compte);
            if (this.checkCertRequest.isValide()) {
              this.checkCertRequest.setReciverCert(this.openResponse.getReciverCert());
              this.checkCertRequest.setCaCert(this.openResponse.getCaCert());
              CheckCertAction checkCertAction = new CheckCertAction(this.
                  checkCertRequest);
              try {
                while (this.checkCertResponse == null) {
                  Thread.sleep(100);
                  this.checkCertResponse = (CheckCertResponse) checkCertAction.
                      getResponse();
              catch (Exception e) {
                e.printStackTrace();
              if (this.checkCertResponse.getReciverCertState()) {
                return;
              else {
                jop.showMessageDialog(null,
                    "L'identit� de votre correspondant n'a pas pu etre v�rifier!",
                    "Echec...", jop.ERROR_MESSAGE);
      public void windowActivated(WindowEvent e) {}
      public void windowClosed(WindowEvent e) {}
      public void windowDeactivated(WindowEvent e) {}
      public void windowDeiconified(WindowEvent e) {}
      public void windowIconified(WindowEvent e) {}
      public void windowOpened(WindowEvent e) {}
      public void windowClosing(WindowEvent e) {
        this.gotoPreviousPage();
      public void gotoPreviousPage() {
    }

  • Why can I (sometimes) not boot until running AHT?

    Apologies for the strangely worded question - I'm very confused by this issue.
    I have a 15-inch early 2011 MBP. I've added a Vertex 4 SSD as the primary boot drive, keeping the stock HD as a second drive, and upgraded the ram to 2x4gb. Everything else is standard.
    Recently I started having problems with OSX freezing and shutting down, sometimes not booting back up successfully - I put it down to some dodgy graphics drivers I'd installed (was running very hot and I suspect overheating) so I backed up my user files and did a full reinstall. It seemed to be OK since then.
    Today I had problems again - I think after the battery ran out while I was using it (I don't know if this is related). It shut down and I'd get a grey screen indefinitely when I rebooted, and I just couldn't get back into OSX. These are the things I tried, roughly in the order I tried them:
    Performing a safe boot - I'd get the Apple logo and slider, which would progress roughly two thirds of the way in, then I'd get a blue screen
    Performing a verbose safe boot - unresponsive grey screen
    Booting from local recovery disk - unresponsive grey screen
    Resetting NVRAM - made no difference
    Resetting SMC - made no difference
    Booting to single user mode and running fsck until it comes back clean (no 'volume was modified' message) and restarting - no difference
    Trying to isolate any hardware problems - swapping out RAM, disconnecting secondary drive etc - no luck
    Finally - running network AHT (opt+D on startup) This didn't find any problems, but seemed to solve whatever problem I was having. I restarted after this and OSX came back up as if nothing had been happening.
    So my questions are these - I'd appreciate any insight even if they're not complete answers, because I can't figure out what's going on.
    What did AHT do that fixed my problem?
    Does that point to a hardware issue, even though the test came back OK?
    What can I do to prevent it happening again?
    Thanks!

    Thanks,
    Does this excerpt from the system log help? It seems to represent a (failed)boot attempt.
    There's a couple of things at the bottom that look a bit suspicious, but I don't know how to interpret them - ERROR: smcReadData8 failed for key B0PS and activation bcstop timer fired!
    Jul 22 10:56:46 localhost bootlog[0]: BOOT_TIME 1406019406 0
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.appstore" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
      Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.authd" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.bookstore" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.eventmonitor" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.install" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.iokit.power" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.mail" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.MessageTracer" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.performance" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 localhost syslogd[17]: Configuration Notice:
      ASL Module "com.apple.securityd" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Jul 22 10:56:48 --- last message repeated 6 times ---
    Jul 22 10:56:48 localhost kernel[0]: Longterm timer threshold: 1000 ms
    Jul 22 10:56:48 localhost kernel[0]: PMAP: PCID enabled
    Jul 22 10:56:48 localhost kernel[0]: Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
    Jul 22 10:56:48 localhost kernel[0]: vm_page_bootstrap: 1963451 free pages and 117317 wired pages
    Jul 22 10:56:48 localhost kernel[0]: kext submap [0xffffff7f807a9000 - 0xffffff8000000000], kernel text [0xffffff8000200000 - 0xffffff80007a9000]
    Jul 22 10:56:48 localhost kernel[0]: zone leak detection enabled
    Jul 22 10:56:48 localhost kernel[0]: "vm_compressor_mode" is 4
    Jul 22 10:56:48 localhost kernel[0]: standard timeslicing quantum is 10000 us
    Jul 22 10:56:48 localhost kernel[0]: standard background quantum is 2500 us
    Jul 22 10:56:48 localhost kernel[0]: mig_table_max_displ = 74
    Jul 22 10:56:48 localhost kernel[0]: TSC Deadline Timer supported and enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=1 LocalApicId=0 Enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=2 LocalApicId=2 Enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=3 LocalApicId=4 Enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=4 LocalApicId=6 Enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=5 LocalApicId=1 Enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=6 LocalApicId=3 Enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=7 LocalApicId=5 Enabled
    Jul 22 10:56:48 localhost kernel[0]: AppleACPICPU: ProcessorId=8 LocalApicId=7 Enabled
    Jul 22 10:56:48 localhost kernel[0]: calling mpo_policy_init for TMSafetyNet
    Jul 22 10:56:48 localhost kernel[0]: Security policy loaded: Safety net for Time Machine (TMSafetyNet)
    Jul 22 10:56:48 localhost kernel[0]: calling mpo_policy_init for Sandbox
    Jul 22 10:56:48 localhost kernel[0]: Security policy loaded: Seatbelt sandbox policy (Sandbox)
    Jul 22 10:56:48 localhost kernel[0]: calling mpo_policy_init for Quarantine
    Jul 22 10:56:48 localhost kernel[0]: Security policy loaded: Quarantine policy (Quarantine)
    Jul 22 10:56:48 localhost kernel[0]: Copyright (c) 1982, 1986, 1989, 1991, 1993
    Jul 22 10:56:48 localhost kernel[0]: The Regents of the University of California. All rights reserved.
    Jul 22 10:56:48 localhost kernel[0]: MAC Framework successfully initialized
    Jul 22 10:56:48 localhost kernel[0]: using 16384 buffer headers and 10240 cluster IO buffer headers
    Jul 22 10:56:48 localhost kernel[0]: AppleKeyStore starting (BUILT: Jun  3 2014 21:40:51)
    Jul 22 10:56:48 localhost kernel[0]: IOAPIC: Version 0x20 Vectors 64:87
    Jul 22 10:56:48 localhost kernel[0]: ACPI: sleep states S3 S4 S5
    Jul 22 10:56:48 localhost kernel[0]: pci (build 21:30:51 Jun  3 2014), flags 0x63008, pfm64 (36 cpu) 0xf80000000, 0x80000000
    Jul 22 10:56:48 localhost kernel[0]: [ PCI configuration begin ]
    Jul 22 10:56:48 localhost kernel[0]: AppleIntelCPUPowerManagement: Turbo Ratios 6689
    Jul 22 10:56:48 localhost kernel[0]: AppleIntelCPUPowerManagement: (built 21:36:10 Jun  3 2014) initialization complete
    Jul 22 10:56:48 localhost kernel[0]: console relocated to 0xf90010000
    Jul 22 10:56:48 localhost kernel[0]: [ PCI configuration end, bridges 12, devices 18 ]
    Jul 22 10:56:48 localhost kernel[0]: mcache: 8 CPU(s), 64 bytes CPU cache line size
    Jul 22 10:56:48 localhost kernel[0]: mbinit: done [96 MB total pool size, (64/32) split]
    Jul 22 10:56:48 localhost kernel[0]: Pthread support ABORTS when sync kernel primitives misused
    Jul 22 10:56:48 localhost kernel[0]: rooting via boot-uuid from /chosen: F2E2754A-C2D0-3FD4-9754-621EEADDB1EB
    Jul 22 10:56:48 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    Jul 22 10:56:48 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod start
    Jul 22 10:56:48 localhost kernel[0]: com.apple.AppleFSCompressionTypeLZVN kmod start
    Jul 22 10:56:48 localhost kernel[0]: com.apple.AppleFSCompressionTypeDataless kmod start
    Jul 22 10:56:48 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded
    Jul 22 10:56:48 localhost kernel[0]: com.apple.AppleFSCompressionTypeLZVN load succeeded
    Jul 22 10:56:48 localhost kernel[0]: com.apple.AppleFSCompressionTypeDataless load succeeded
    Jul 22 10:56:48 localhost kernel[0]: AppleIntelCPUPowerManagementClient: ready
    Jul 22 10:56:48 localhost kernel[0]: BTCOEXIST off
    Jul 22 10:56:48 localhost kernel[0]: BRCM tunables:
    Jul 22 10:56:48 localhost kernel[0]: pullmode[1] txringsize[  256] txsendqsize[1024] reapmin[   32] reapcount[  128]
    Jul 22 10:56:48 localhost kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in now active, GUID c82a14fffe88be4c; max speed s800.
    Jul 22 10:56:48 localhost kernel[0]: Thunderbolt Self-Reset Count = 0xedefbe00
    Jul 22 10:56:48 localhost kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchSeriesAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/OCZ-VERTEX4 Media/IOGUIDPartitionScheme/Mac OS@2
    Jul 22 10:56:48 localhost kernel[0]: BSD root: disk0s2, major 1, minor 2
    Jul 22 10:56:48 localhost kernel[0]: jnl: b(1, 2): replay_journal: from: 5731840 to: 5806080 (joffset 0x3b6000)
    Jul 22 10:56:48 localhost kernel[0]: jnl: b(1, 2): journal replay done.
    Jul 22 10:56:48 localhost kernel[0]: AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: device was reinitialized
    Jul 22 10:56:48 localhost kernel[0]: hfs: mounted Mac OS on device root_device
    Jul 22 10:56:47 localhost com.apple.launchd[1]: *** launchd[1] has started up. ***
    Jul 22 10:56:47 localhost com.apple.launchd[1]: *** Shutdown logging is enabled. ***
    Jul 22 10:56:48 localhost com.apple.SecurityServer[14]: Session 100000 created
    Jul 22 10:56:48 localhost distnoted[20]: # distnote server daemon  absolute time: 2.788835412   civil time: Tue Jul 22 10:56:48 2014   pid: 20 uid: 0  root: yes
    Jul 22 10:56:48 localhost kernel[0]: IO80211Controller::dataLinkLayerAttachComplete():  adding AppleEFINVRAM notification
    Jul 22 10:56:48 localhost kernel[0]: IO80211Interface::efiNVRAMPublished():
    Jul 22 10:56:48 localhost com.apple.SecurityServer[14]: Entering service
    Jul 22 10:56:48 localhost kernel[0]: AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).
    Jul 22 10:56:48 localhost configd[18]: dhcp_arp_router: en1 SSID unavailable
    Jul 22 10:56:48 localhost kernel[0]: SMC::smcHandleInterruptEvent WARNING status=0x0 (0x40 not set) notif=0x0
    Jul 22 10:56:48 localhost kernel[0]: SMC::smcReadKeyAction ERROR: smcReadData8 failed for key LsNM (kSMCKeyNotFound)
    Jul 22 10:56:48 localhost kernel[0]: SMC::smcReadKeyAction ERROR LsNM kSMCKeyNotFound(0x84) fKeyHashTable=0x0
    Jul 22 10:56:48 localhost kernel[0]: SMC::smcGetLightshowVers ERROR: smcReadKey LsNM failed (kSMCKeyNotFound)
    Jul 22 10:56:48 localhost kernel[0]: SMC::smcPublishLightshowVersion ERROR: smcGetLightshowVers failed (kSMCKeyNotFound)
    Jul 22 10:56:48 localhost kernel[0]: SMC::smcInitHelper ERROR: smcPublishLightshowVersion failed (kSMCKeyNotFound)
    Jul 22 10:56:48 localhost kernel[0]: Previous Shutdown Cause: 3
    Jul 22 10:56:48 localhost kernel[0]: SMC::smcInitHelper ERROR: MMIO regMap == NULL - fall back to old SMC mode
    Jul 22 10:56:48 localhost kernel[0]: AGC: 3.6.22, HW version=1.9.23, flags:0, features:20600
    Jul 22 10:56:48 localhost kernel[0]: IOBluetoothUSBDFU::probe
    Jul 22 10:56:48 localhost kernel[0]: IOBluetoothUSBDFU::probe ProductID - 0x821A FirmwareVersion - 0x0042
    Jul 22 10:56:48 localhost kernel[0]: **** [IOBluetoothHostControllerUSBTransport][start] -- completed -- result = TRUE -- 0xe400 ****
    Jul 22 10:56:48 localhost kernel[0]: **** [BroadcomBluetoothHostControllerUSBTransport][start] -- Completed -- 0xe400 ****
    Jul 22 10:56:48 localhost kernel[0]: init
    Jul 22 10:56:48 localhost kernel[0]: probe
    Jul 22 10:56:48 localhost kernel[0]: start
    Jul 22 10:56:48 localhost kernel[0]: [IOBluetoothHCIController][staticBluetoothHCIControllerTransportShowsUp] -- Received Bluetooth Controller register service notification -- 0xe400
    Jul 22 10:56:48 localhost kernel[0]: [IOBluetoothHCIController][start] -- completed
    Jul 22 10:56:48 localhost UserEventAgent[11]: Failed to copy info dictionary for bundle /System/Library/UserEventPlugins/alfUIplugin.plugin
    Jul 22 10:56:48 localhost kernel[0]: [IOBluetoothHCIController::setConfigState] calling registerService
    Jul 22 10:56:48 localhost kernel[0]: **** [IOBluetoothHCIController][protectedBluetoothHCIControllerTransportShowsUp] -- Connected to the transport successfully -- 0xdcc0 -- 0x2000 -- 0xe400 ****
    Jul 22 10:56:48 localhost UserEventAgent[11]: Captive: CNPluginHandler en1: Inactive
    Jul 22 10:56:48 localhost kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
    Jul 22 10:56:48 localhost configd[18]: network changed.
    Jul 22 10:56:48 Jakes-MacBook-Pro.local configd[18]: setting hostname to "Jakes-MacBook-Pro.local"
    Jul 22 10:56:49 Jakes-MacBook-Pro kernel[0]: DSMOS has arrived
    Jul 22 10:56:49 Jakes-MacBook-Pro kernel[0]: [AGPM Controller] build GPUDict by Vendor1002Device6760
    Jul 22 10:56:49 Jakes-MacBook-Pro kernel[0]: fGPUIdleIntervalMS = 0
    Jul 22 10:56:50 Jakes-MacBook-Pro.local fseventsd[38]: event logs in /.fseventsd out of sync with volume.  destroying old logs. (275 3 822)
    Jul 22 10:56:50 Jakes-MacBook-Pro.local fseventsd[38]: log dir: /.fseventsd getting new uuid: 64D0AB9C-3D99-4E86-877A-CBD475452A4D
    Jul 22 10:56:50 Jakes-MacBook-Pro kernel[0]: VM Swap Subsystem is ON
    Jul 22 10:56:50 Jakes-MacBook-Pro.local hidd[67]: void __IOHIDPlugInLoadBundles(): Loaded 0 HID plugins
    Jul 22 10:56:50 Jakes-MacBook-Pro.local hidd[67]: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1
    Jul 22 10:56:50 Jakes-MacBook-Pro.local blued[40]: hostControllerOnline - Number of Paired devices = 1, List of Paired devices = (
         "c4-2c-03-9e-4b-7c"
    Jul 22 10:56:50 Jakes-MacBook-Pro.local mDNSResponder[59]: mDNSResponder mDNSResponder-522.92.1 (Jun  3 2014 12:57:56) starting OSXVers 13
    Jul 22 10:56:50 Jakes-MacBook-Pro.local com.apple.usbmuxd[45]: usbmuxd-327.4 on Feb 12 2014 at 14:54:33, running 64 bit
    Jul 22 10:56:50 Jakes-MacBook-Pro.local mds[58]: (Normal) FMW: FMW 0 0
    Jul 22 10:56:50 Jakes-MacBook-Pro.local loginwindow[62]: Login Window Application Started
    Jul 22 10:56:50 Jakes-MacBook-Pro.local apsd[79]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1102)
    Jul 22 10:56:50 Jakes-MacBook-Pro.local systemkeychain[91]: done file: /var/run/systemkeychaincheck.done
    Jul 22 10:56:50 Jakes-MacBook-Pro.local mDNSResponder[59]: D2D_IPC: Loaded
    Jul 22 10:56:50 Jakes-MacBook-Pro.local mDNSResponder[59]: D2DInitialize succeeded
    Jul 22 10:56:50 Jakes-MacBook-Pro.local mDNSResponder[59]:   4: Listening for incoming Unix Domain Socket client requests
    Jul 22 10:56:50 Jakes-MacBook-Pro.local networkd[110]: networkd.110 built Aug 24 2013 22:08:46
    Jul 22 10:56:50 Jakes-MacBook-Pro.local configd[18]: network changed: DNS*
    Jul 22 10:56:50 Jakes-MacBook-Pro.local aosnotifyd[80]: aosnotifyd has been launched
    Jul 22 10:56:50 Jakes-MacBook-Pro aosnotifyd[80]: assertion failed: 13E28: liblaunch.dylib + 25164 [A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A]: 0x25
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: [BNBMouseDevice::init][80.14] init is complete
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: [BNBMouseDevice::handleStart][80.14] returning 1
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: [AppleMultitouchHIDEventDriver::start] entered
    Jul 22 10:56:51 Jakes-MacBook-Pro.local WindowServer[105]: Server is starting up
    Jul 22 10:56:51 Jakes-MacBook-Pro.local locationd[64]: Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
    Jul 22 10:56:51 Jakes-MacBook-Pro.local locationd[64]: NBB-Could not get UDID for stable refill timing, falling back on random
    Jul 22 10:56:51 Jakes-MacBook-Pro.local WindowServer[105]: Session 256 retained (2 references)
    Jul 22 10:56:51 Jakes-MacBook-Pro.local WindowServer[105]: Session 256 released (1 references)
    Jul 22 10:56:51 Jakes-MacBook-Pro.local locationd[64]: Location icon should now be in state 'Inactive'
    Jul 22 10:56:51 Jakes-MacBook-Pro.local locationd[64]: locationd was started after an unclean shutdown
    Jul 22 10:56:51 Jakes-MacBook-Pro.local WindowServer[105]: Session 256 retained (2 references)
    Jul 22 10:56:51 Jakes-MacBook-Pro.local WindowServer[105]: init_page_flip: page flip mode is on
    Jul 22 10:56:51 Jakes-MacBook-Pro dnsmasq[83]: setting --bind-interfaces option because of OS limitations
    Jul 22 10:56:51 Jakes-MacBook-Pro dnsmasq[83]: failed to access /etc/resolv.conf: No such file or directory
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: label: default
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: dbname: od:/Local/Default
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: mkey_file: /var/db/krb5kdc/m-key
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: acl_file: /var/db/krb5kdc/kadmind.acl
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: digest-request: uid=0
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: [AppleMultitouchDevice::start] entered
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: AppleLMUController found an AG vendor product (0x9cb7), notifying SMC.
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: digest-request: netr probe 0
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: digest-request: init request
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: createVirtIf(): ifRole = 1
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: in func createVirtualInterface ifRole = 1
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: AirPort_Brcm4331_P2PInterface::init name <p2p0> role 1
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: AirPort_Brcm4331_P2PInterface::init() <p2p> role 1
    Jul 22 10:56:51 Jakes-MacBook-Pro kernel[0]: Created virtif 0xffffff801ef89400 p2p0
    Jul 22 10:56:51 Jakes-MacBook-Pro.local digest-service[93]: digest-request: init return domain: BUILTIN server: JAKES-MACBOOK-PRO indomain was: <NULL>
    Jul 22 10:56:51 Jakes-MacBook-Pro.local airportd[81]: airportdProcessDLILEvent: en1 attached (up)
    Jul 22 10:56:51 Jakes-MacBook-Pro.local awacsd[77]: Starting awacsd connectivity_executables-97 (Aug 24 2013 23:49:23)
    Jul 22 10:56:51 Jakes-MacBook-Pro.local awacsd[77]: InnerStore CopyAllZones: no info in Dynamic Store
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: ast_pending=0xffffff800a8cb690
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: cpu_interrupt=0xffffff800a8e3910
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: vboxdrv: fAsync=0 offMin=0x253f offMax=0x3846
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: VBoxDrv: version 4.3.12 r93733; IOCtl version 0x1a0007; IDC version 0x10000; dev major=34
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: VBoxDrv: vmx_resume=ffffff800a8f02d0 vmx_suspend=ffffff800a8f0290 vmx_use_count=ffffff800aed8848 (0) cr4=0x606e0
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: VBoxFltDrv: version 4.3.12 r93733
    Jul 22 10:56:52 Jakes-MacBook-Pro.local com.apple.systemadministration.writeconfig[218]: ### Error:-60005 File:/SourceCache/Admin/Admin-594.1/SFAuthorizationExtentions.m Line:36
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: VBoxAdpDrv: version 4.3.12 r93733
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: en1: 802.11d country code set to 'ES'.
    Jul 22 10:56:52 Jakes-MacBook-Pro kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
    Jul 22 10:56:53 Jakes-MacBook-Pro.local mds_stores[113]: (/.Spotlight-V100/Store-V2/D069037C-1284-4440-8DB8-DB2FB5A92714)(Error) IndexCI in ContentIndexPtr openIndex(int, char *, DocID, char *, _Bool, _Bool, _Bool, CIDocCounts *, int *, int *, const int):unexpected sync count 3 3 3 3, expected 2
    Jul 22 10:56:54 Jakes-MacBook-Pro kernel[0]: MacAuthEvent en1   Auth result for: c8:b3:73:38:33:dd  MAC AUTH succeeded
    Jul 22 10:56:54 Jakes-MacBook-Pro kernel[0]: wlEvent: en1 en1 Link UP virtIf = 0
    Jul 22 10:56:54 Jakes-MacBook-Pro kernel[0]: AirPort: Link Up on en1
    Jul 22 10:56:54 Jakes-MacBook-Pro kernel[0]: en1: BSSID changed to c8:b3:73:38:33:dd
    Jul 22 10:56:54 Jakes-MacBook-Pro kernel[0]: AirPort: RSN handshake complete on en1
    Jul 22 10:56:54 Jakes-MacBook-Pro kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
    Jul 22 10:56:59 Jakes-MacBook-Pro.local configd[18]: network changed: DNS* Proxy
    Jul 22 10:56:59 Jakes-MacBook-Pro.local configd[18]: network changed: DNS*
    Jul 22 10:56:59 Jakes-MacBook-Pro.local UserEventAgent[11]: Captive: [CNInfoNetworkActive:1655] en1: SSID 'Kimchinet' making interface primary (protected network)
    Jul 22 10:56:59 Jakes-MacBook-Pro.local UserEventAgent[11]: Captive: CNPluginHandler en1: Evaluating
    Jul 22 10:56:59 Jakes-MacBook-Pro.local UserEventAgent[11]: Captive: en1: Probing 'Kimchinet'
    Jul 22 10:56:59 Jakes-MacBook-Pro.local configd[18]: network changed: v4(en1!:192.168.2.140) DNS+ Proxy+ SMB
    Jul 22 10:57:02 Jakes-MacBook-Pro.local ntpd[85]: proto: precision = 1.000 usec
    Jul 22 10:57:02 Jakes-MacBook-Pro.local UserEventAgent[11]: tcp_connection_destination_prepare_complete 1 connectx to 2001:5008:101:292::c77#80 failed: 65 - No route to host
    Jul 22 10:57:02 Jakes-MacBook-Pro.local UserEventAgent[11]: tcp_connection_destination_prepare_complete 1 connectx to 2001:5008:101:283::c77#80 failed: 65 - No route to host
    Jul 22 10:57:02 Jakes-MacBook-Pro.local UserEventAgent[11]: tcp_connection_destination_prepare_complete 1 connectx to 2001:5008:101:28c::c77#80 failed: 65 - No route to host
    Jul 22 10:57:02 Jakes-MacBook-Pro.local UserEventAgent[11]: tcp_connection_handle_destination_prepare_complete 1 failed to connect
    Jul 22 10:57:03 --- last message repeated 2 times ---
    Jul 22 10:57:03 Jakes-MacBook-Pro.local UserEventAgent[11]: Captive: CNPluginHandler en1: Authenticated
    Jul 22 10:57:03 Jakes-MacBook-Pro.local apsd[79]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1102)
    Jul 22 10:57:04 Jakes-MacBook-Pro.local configd[18]: network changed.
    Jul 22 10:57:04 Jakes-MacBook-Pro.local apsd[79]: Unrecognized leaf certificate
    Jul 22 10:57:09 Jakes-MacBook-Pro.local awacsd[77]: Exiting
    Jul 22 10:57:35 Jakes-MacBook-Pro kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Suspend -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xe400 ****
    Jul 22 10:57:50 Jakes-MacBook-Pro kernel[0]: SMC::smcReadKeyAction ERROR: smcReadData8 failed for key B0PS (kSMCKeyNotFound)
    Jul 22 10:57:50 Jakes-MacBook-Pro kernel[0]: SMC::smcReadKeyAction ERROR: smcReadData8 failed for key B0OS (kSMCKeyNotFound)
    Jul 22 10:57:54 Jakes-MacBook-Pro kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Resume -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xe400 ****
    Jul 22 10:58:32 Jakes-MacBook-Pro.local warmd[44]: [warmctl_evt_timer_bc_activation_timeout:287] BC activation bcstop timer fired!
    Jul 22 10:58:33 Jakes-MacBook-Pro kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Suspend -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xe400 ****

  • JPanel do not refresh when minimizing or moving JApplet

    I�m using a JApplet that contains a JTree,some buttons and 3 JPanels. The 3 panels have the same size and are placed in the same place. So, 2 panels have the setVisible(false) and one setVisible(true), and depending on the situation, I change the panel I want to show. The problem is that in the appletviewer, when I move the applet, I minimize it or I put a window in front of it, the JPanel visible (all of them contain JTextFields, JTextAreas, JCombos ...) does not refresh and I cannot see the components inside the panel. This doesn�t happen with the JTree and the buttons.
    Any help ? Thanks !

    I think I got the solution. First you have to add the panel to the frame :
    this.getContentPane().add(panel, new XYConstraints(240, 112, -1, 484));
    and then add the elements to the panel.
    If you first add the elements and then the panel to the frame, the elements inside the panel are not refreshed (they dissapear) if you minimize or move the window.

  • [LAVA Cross Post] CTRL+SHIFT+ Shortcuts sometimes not working in LabVIEW

    Cross-post from LAVA: http://lavag.org/topic/15619-ctrlshift-shortcuts-sometimes-not-working-in-labview/
    See the above post for more information - here's a synopsis:
    CTRL+SHIFT modifiers are not working while running LabVIEW in a Parallels 7 virtual machine. This problem affects both LV2011 and LV2012. I'm not certain that this is a LabVIEW bug - could be an issue with my virtual machine environment or it's configuration - except that CTRL+SHIFT modifiers work in other applications on the affected VMs. It's just LabVIEW that appears to ignore shortcuts with the CTRL+SHIFT modifiers.
    Any ideas? 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    X. wrote:
    Still well and alive in Parallels 9 and LabVIEW 2013 SP1. Of course I could upgrade to the latest versions to check whether things have gotten any better.
    Any news on that?
    @mellroth figured out the solution :-)
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

Maybe you are looking for