WebLogic 8.1 SP4 on Linux - thread dump does not work

I have setup WebLogic 8.1 SP4 on RedHat Linux AS 3.3 with Sun JVM (142_05). When I try to perform a thread dump using weblogic.Admin, I receive the following error in the stderr file. I have also tried the kill -3 but still no thread dump. Is there some trick to this ?
cannot load libary 'stackdump': java.lang.UnsatisfiedLinkError: no stackdump in java.library.path

I am getting the same error as well
cannot load libary 'stackdump': java.lang.UnsatisfiedLinkError: no stackdump in java.library.path
I am creating a simple domain using the domain config wizard and I hope all the PATH and LD_LIBRARY_PATH are set by the default scripts. But I am still getting this error.
But Kill -3 <PID> works though!
Is is a know problem OR am I missing something?!
Bala

Similar Messages

  • Webutil-Forms(IAS10g) on Linux O.S does not work

    Hi folks!.
    I have a forms applic. that use webutil library.IAS10g(9.0.4) it is installed on linux,but
    i can not execute the entire enviroment.So i put binaries,webutil.jar and jacob.jar
    on a windows box with IAS9i(9.0.2) and it is work fine.
    I am not sure,but i think it is a problem with sign.properties,sign.bat,and makecert.bat
    files.Cause i need webutil for encryptation purposes,and on java console
    when a get into enviroment through IAS9i on Windows i see all certification executions on
    it,but when i log on Linux-IAS10g enviroment i don't see any certification executions
    on java console.
    Any people that use Forms(IAS10g)-webutil over Linux O.S could help me?

    Two reasons why webutil will not work.
    1) your env. Lang = UTL8 ( this is the first problem)
    2) in webutil.pll there is a function webutil_core...
    where the webutil.cfg will be read. Here the
    libaray will hang up. Insert a return result... then it will work fine.

  • Weblogic 6.1 example/security/sslclient jsseWLS.bat does not work

    I try to run the weblogic 6.1 example under the examples\security\sslclient.
    I follow the instruction and setup the server.
    wlsWLS.bat is working fine.
    but jsseWLS.bat is not working
    It gives back following error.
    ===== in jsseURLConnect =====
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTP connection using JDK client classes -
    http://localhost:80/examplesWebApp/SnoopServlet.jsp
    ====Permission =(java.net.SocketPermission localhost:80 connect,resolve)
    ===== inside tryConnection
    Connection refused: connectjava.net.ConnectException: Connection refused: connec
    t
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
    at sun.net.www.http.HttpClient.New(HttpClient.java:289)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:408)
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    05)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTPS connection using JDK client classes -
    https://localhost:443/examplesWebApp/SnoopServlet.jsp
    sconnection instanceof com.sun.net.ssl.HttpsURLConnection
    using a com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection
    ===== inside tryConnection
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at javax.net.ssl.SSLSocket.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>([DashoPro-V1.2-1201
    98])
    at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
    shoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
    [DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
    .2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoP
    ro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
    t([DashoPro-V1.2-120198])
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    30)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    Connection refused: connect----
    Does anyone know what happens..
    i would appreciate if i get some code snippets or url pointers.
    Thanks.
    --Michael W.

    I try to run the weblogic 6.1 example under the examples\security\sslclient.
    I follow the instruction and setup the server.
    wlsWLS.bat is working fine.
    but jsseWLS.bat is not working
    It gives back following error.
    ===== in jsseURLConnect =====
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTP connection using JDK client classes -
    http://localhost:80/examplesWebApp/SnoopServlet.jsp
    ====Permission =(java.net.SocketPermission localhost:80 connect,resolve)
    ===== inside tryConnection
    Connection refused: connectjava.net.ConnectException: Connection refused: connec
    t
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
    at sun.net.www.http.HttpClient.New(HttpClient.java:289)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:408)
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    05)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    JDK Protocol Handlers and Security Providers:
    java.protocol.handler.pkgs - com.sun.net.ssl.internal.www.protocol
    provider[0] - SUN - SUN (DSA key/parameter generation; DSA signing; SHA-1,
    MD
    5 digests; SecureRandom; X.509 certificates; JKS keystore)
    provider[1] - SunRsaSign - SUN's provider for RSA signatures
    provider[2] - SunJSSE - Sun JSSE provider(implements RSA Signatures, PKCS12,
    SunX509 key/trust factories, SSLv3, TLSv1)
    provider[3] - SunJCE - SunJCE Provider (implements DES, Triple DES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    Trying a new HTTPS connection using JDK client classes -
    https://localhost:443/examplesWebApp/SnoopServlet.jsp
    sconnection instanceof com.sun.net.ssl.HttpsURLConnection
    using a com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection
    ===== inside tryConnection
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at javax.net.ssl.SSLSocket.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>([DashoPro-V1.2-1201
    98])
    at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
    shoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
    [DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
    .2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoP
    ro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([Dasho
    Pro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
    1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
    t([DashoPro-V1.2-120198])
    at examples.security.sslclient.SSLClient.tryConnection(SSLClient.java:15
    1)
    at examples.security.sslclient.SSLClient.jsseURLConnect(SSLClient.java:2
    30)
    at examples.security.sslclient.SSLClient.main(SSLClient.java:99)
    Connection refused: connect----
    Does anyone know what happens..
    i would appreciate if i get some code snippets or url pointers.
    Thanks.
    --Michael W.

  • Linux logfile monitoring does not work after using "privileged datasource"

    Hello!
    I have noticed a strange behaviour on one of my Linux Agents (lets call it server_a) regarding logfile monitoring with the "Microsoft.Unix.SCXLog.Datasource" and the "Microsoft.Unix.SCXLog.Privileged.Datasource".
    After successfully testing monitoring of /var/log/messages on server_a with the "Privileged Datasource". This test has been on server_a and the MP containing this rule has been delete from the management gorup before the following tests.
    I wanted to test another logfile (lets call it logfile_a) using the normal datasource "Microsoft.Unix.SCXLog.Datasource" on server_a. So I created the usual logfile rule (rule_a) in XML (which I have done countless times before) for monitoring
    logfile_a. Logfile_a has been created by the "Linux Action Account User" with reading rights for everyone. After importing the Management Pack with the monitoring  for logfile_a I had the following warning alert in the scom console managing
    server_a:
      Fehler beim Überprüfen der Protokolldatei "/home/ActionAccountUser/logfile_a" auf dem Host "server_a" als Benutzer "<SCXUser><UserId>ActionAccountUser</UserId><Elev></Elev></SCXUser>";
    An internal error occurred.  (the userid has been changed to keep the anonimity of our action account).
    To make sure I did not make any mistakes in the XML i have created a new logfile rule (rule_b) monitoring "logfile_b" on "server_a" using the "Logfile Template" under the authoring tab. logfile_b was also created by the "Linux
    Action Account User" and had reading rights for everyone. Unfortunately this logfile rule created the same error:
      Fehler beim Überprüfen der Protokolldatei "/home/ActionAccountUser/logfile_b" auf dem Host "server_a" als Benutzer "<SCXUser><UserId>ActionAccountUser</UserId><Elev></Elev></SCXUser>";
    An internal error occurred.  (the userid has been changed to keep the anonimity of our action account).
    Although both rules (rule_a and rule_b) used the "Microsoft.Unix.SCXLog.Datasource" which uses the Action Account for monitoring logfiles, the above error looks to me as SCOM wants to use the privileged user, which in this case it not necessary
    as the Action Account can read logfile_a and logfile_b without any problems.
    So after a few unsuccessfull tries to get both rules to raise an alert I tried to use the "Microsoft.Unix.SCXLog.Privileged.Datasource" for rule_a as last resort. Then suddenly after importing the updated Management Pack I finally received the
    alert I desperately waited for this whole time.
    Finally after lot of text here are my questions:
    Could it be that the initial test with the Privileged Log Datasource somehow screwed up the agent on server_a so it could not monitor logfiles with the standard log datasource? Or may anyone of you might have an idea what went wrong here.
    Like I said both logfile could be accessed and changed by the normal Action Account without any problems. So privileged right are not needed. I even restarted the scom agent in case something hanged.
    I hope I could make the problm clear to you. If not, don´t hesitate to ask any questions.
    Thank you and kind regards,
    Patrick

    Hello!
    After all that text, I fogrot the most essential information..
    We are currently using OpsMgr 2012 SP1 UR4, the monitored server (server_a) has agent version 1.4.1-292 installed.
    Thanks for the explanation of how the logprovider works. I tried to execute the logfilereader just to see if there are any errors and everything looks fine to me:
    ActionAccount @server_a:/opt/microsoft/scx/bin> ./scxlogfilereader -v
    Version: 1.4.1-292 (Labeled_Build - 20130923L)
    Here are the latest entry in the scx.log file:
    * Microsoft System Center Cross Platform Extensions (SCX)
    * Build number: 1.4.1-292 Labeled_Build
    * Process id: 23186
    * Process started: 2014-03-31T08:29:09,136Z
    * Log format: <date> <severity>     [<code module>:<process id>:<thread id>] <message>
    2014-03-31T08:29:09,138Z Warning    [scx.logfilereader.ReadLogFile:23186:140522274359072] scxlogfilereader - Unexpected exception: Could not find persisted data: Failed to access filesystem item /var/opt/microsoft/scx/lib/state/ActionAccount/LogFileProvider__ActionAccount_shome_sActionAccount_slogfilewithoutsudo.txtEDST02
    2014-03-31T08:29:09,138Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] LogFileProvider InvokeLogFileReader - Exception: Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4
    2014-03-31T08:29:09,138Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] BaseProvider::InvokeMethod() - Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4 - [/home/serviceb/ScxCore_URSP1_SUSE_110_x64/source/code/providers/logfile_provider/logfileprovider.cpp:442]
    * Microsoft System Center Cross Platform Extensions (SCX)
    * Build number: 1.4.1-292 Labeled_Build
    * Process id: 23284
    * Process started: 2014-03-31T08:30:06,139Z
    * Log format: <date> <severity>     [<code module>:<process id>:<thread id>] <message>
    2014-03-31T08:30:06,140Z Warning    [scx.logfilereader.ReadLogFile:23284:140016517941024] scxlogfilereader - Unexpected exception: Could not find persisted data: Failed to access filesystem item /var/opt/microsoft/scx/lib/state/ActionAccount/LogFileProvider__ActionAccount_shome_sActionAccount_stest.txtEDST02
    2014-03-31T08:30:06,142Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] LogFileProvider InvokeLogFileReader - Exception: Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4
    2014-03-31T08:30:06,143Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] BaseProvider::InvokeMethod() - Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4 - [/home/serviceb/ScxCore_URSP1_SUSE_110_x64/source/code/providers/logfile_provider/logfileprovider.cpp:442]
    Strangely I could not acces the "Action Account User" directory under /var/opt/microsoft/scx/log as "ActionAccount" user. Is it ok for the directory to have the following rights:  drwx------ 2 1001 users? Instead of "1001" it should say "ActionAccount",
    right?
    This could be a bit far fetched, but perhaps the logfile provider can´t access logfiles as the "ActionAccount" on this server because it needs to write in the scx.log file. But as the "ActionAccount" can´t access the file, the logfile provider throws
    an error. And as "Privileged Account" the rule works flawlessly, as the logfile provider running in root context can access everything.
    Don´t know if that makes sense, but right now it sounds logical to me.

  • Only on one linux machine sync does not work and message is useless

    On one Linux machine, running OpenSuse 11.3, I cannot sync. The error message is useless, all it says is that sync failed for an unknown reason. Sync works on all the other machines, Win 2K running in a XEN VM on Linux (customized kernel and environment that started a few years ago as OpenSuse 10.3), Linux Mint and XP on a laptop.
    I checked the key, its the same as all the other machines, checked the iptables log, no problems, etc.. Since I have no access to any internal data or logs, I cannot go any further in assessing the problem.
    Firefox version is 4.01, extensions are the same for all versions running on the various machines.

    Ah! You are still using the old sync account. (deprecated) will be next to the Firefox Sync account. Try the new one :-) [[How to update to the new Firefox Sync]]

  • Linux shared library does not work in fedora core 4

    I have transferred an application that ran perfectly on fedora 3 to fedora 4.  It uses a shared library that I wrote in C.
    The vis no longer appear to recognise this file as a  shared
    library.  I have recompiied the library in fedora 4 but this makes
    no difference.
    Any ideas?

    Hi jbroughton,
    There are few things that I need to know in order to investigate why your file is no longer being recognised:
    What version of LabVIEW are you using?
    What is your kernal version of federa four?
    Is your application a built executable?
    What is your librarying doing currently when you try to call it? If any error popups what are the error codes and messages you are getting?
    Can you call your C library outside of LabVIEW?
    Thanks
    Emma R
    NIUK & Ireland

  • JCombox does not work under linux (fedora) could you help me???

    Hi All,
    I am implementing a GUI for a linux application. This GUI works fine under windows system. But the JCombobox does not work under Linux system. Would you help me to solve it? Thank you very much!..
    The problem is that I cannot select any other item except the first item in the dropdown box of JCombobox. There is no event generated when I click the combobox, while events are generated for other Buttons.
    This problem exists for the following code when I maximize the window. When the window is minimize to some extend in my problem, it is OK.
    Here is the simplify code:
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.Serializable;
    import java.util.Vector;
    import javax.swing.ComboBoxModel;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.event.ListDataEvent;
    import javax.swing.event.PopupMenuEvent;
    import javax.swing.event.PopupMenuListener;
    import java.awt.event.*;
    import javax.swing.*;
    //carmen
    import javax.swing.filechooser.*;
    import javax.swing.event.*;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.border.*;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    import java.io.*;
    import java.util.*;
    import java.lang.String.*;
    public class Test extends JFrame
         private JComboBox jComboBox1;
         private JComboBox jComboBox2;
         private JPanel contentPane;
         private JTabbedPane jTabbedPane1;
         //Main Tab
         private JPanel Main;
         private JPanel OutputSimSet;
         private JPanel Test;
         private JPanel ScriptGenTab;
         private JPanel ResultTab;
    //Result Tab
    private JPanel SimResult;
         public Test()
              super();
              //initializeComponent();
              contentPane = (JPanel)this.getContentPane();
              jTabbedPane1 = new JTabbedPane();
              Main = new JPanel();
              OutputSimSet = new JPanel();
              Test = new JPanel();
              ScriptGenTab = new JPanel();
              ResultTab = new JPanel();
              SimResult = new JPanel();
         jComboBox1 = new JComboBox(
                        new String[]{"Item 1","Item 2", "Item 3"});
                        jComboBox1.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                        System.out.println("Yeah");
         jComboBox2 = new JComboBox(
                                  new String[]{"Item 1","Item 2", "Item 3"});
                                  jComboBox2.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent ae) {
                                  System.out.println("Yeah");
              // jTabbedPane1
              jTabbedPane1.addTab("Main", Main);
              jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
              jTabbedPane1.addTab("Simulation Result", ResultTab);
              jTabbedPane1.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent e)
                        jTabbedPane1_stateChanged(e);
              // contentPane
              contentPane.setLayout(new BorderLayout(0, 0));
              contentPane.add(jTabbedPane1, BorderLayout.CENTER);
              // Main
              //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Main.setLayout(new BorderLayout(0, 0));
              Main.add(OutputSimSet,BorderLayout.NORTH);
              OutputSimSet.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              OutputSimSet.add(Test, 0);
              Test.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Test.add(jComboBox1,0);
              //ResultTab
              ResultTab.setLayout(new BorderLayout(0, 0));
              ResultTab.setBorder(new TitledBorder(""));
              ResultTab.add(SimResult, BorderLayout.NORTH);
              SimResult.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              SimResult.add(jComboBox2,0);
              // Test
              this.setTitle("Test");
              this.setLocation(new Point(0, 0));
              this.setSize(new Dimension(600, 500));
              this.setVisible(true);
         public void initializeComponent()
         /** Add Component Without a Layout Manager (Absolute Positioning) */
         private void addComponent(Container container,Component c,int x,int y,int width,int height)
              c.setBounds(x,y,width,height);
              container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
              System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
              // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jComboBox1_actionPerformed(ActionEvent e)
              System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
              Object o = jComboBox1.getSelectedItem();
              System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
              // TODO: Add any handling code here for the particular object being selected
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Create and set up the window.
    Test frame = new Test();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    package oct03_JCBox;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Point;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    public class Test extends JFrame
    private JComboBox jComboBox1;
    private JComboBox jComboBox2;
    private JPanel contentPane;
    private JTabbedPane jTabbedPane1;
    //Main Tab
    private JPanel Main;
    //private JPanel OutputSimSet;
    //private JPanel Test;
    private JPanel ScriptGenTab;
    private JPanel ResultTab;
    //Result Tab
    //private JPanel SimResult;
    public Test()
         super();
         //initializeComponent();
         contentPane = (JPanel)this.getContentPane();
         jTabbedPane1 = new JTabbedPane();
         Main = new JPanel();
         ScriptGenTab = new JPanel();
         ResultTab = new JPanel();
    //     OutputSimSet = new JPanel();
    //     Test = new JPanel();
    //     SimResult = new JPanel();
         jComboBox1 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox1.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent ae) {
              System.out.println("Yeah");
         jComboBox2 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox2.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   System.out.println("Yeah");
         // Main
         //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.add(jComboBox1);
         //ResultTab  -----     
         ResultTab.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         ResultTab.add(jComboBox2);
        //      jTabbedPane1
         jTabbedPane1.addTab("Main", Main);
         jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
         jTabbedPane1.addTab("Simulation Result", ResultTab);
         jTabbedPane1.addChangeListener(new ChangeListener() {
              public void stateChanged(ChangeEvent e)
                   jTabbedPane1_stateChanged(e);
         // contentPane
         contentPane.setLayout(new BorderLayout(0, 0));
         contentPane.add(jTabbedPane1, BorderLayout.CENTER);
         // Test
         this.setTitle("Test");
         this.setLocation(new Point(0, 0));
         this.setSize(new Dimension(600, 500));
         this.setVisible(true);
         public void initializeComponent()
    //     /** Add Component Without a Layout Manager (Absolute Positioning) */
    //     private void addComponent(Container container,Component c,int x,int y,int width,int height)
    //     c.setBounds(x,y,width,height);
    //     container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
         System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
         // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
    //     private void jComboBox1_actionPerformed(ActionEvent e)
    //     System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
    //     Object o = jComboBox1.getSelectedItem();
    //     System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
    //     // TODO: Add any handling code here for the particular object being selected
         * Create the GUI and show it. For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
         private static void createAndShowGUI() {
         //Create and set up the window.
         Test frame = new Test();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.pack();
         frame.setVisible(true);
    public static void main(String[] args) {
         //Schedule a job for the event-dispatching thread:
         //creating and showing this application's GUI.
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
         public void run() {
         createAndShowGUI();
    } Try this - you use too many unnecessary JPanels.
    Which way you prefer with actionPerformed should work either way.
    I think your problem was too many unnecessary Panels and set all attributes before it is added, perhaps,
    not add the panel first and then try to set attributes like layout, color, etc...

  • Threads does not work correctly

    The follow program working with threads. We have two classses : Producer and Customer which working with the same object (which type is class Q). Producer produces data. Customer should capture the data. The Q class must be synchronized. But code does not work (compile under NetBeans 6.0)
    class Q {
    int number = 0;
    boolean filled = false;
    void put (int n) {
    while (filled){
    try {
    wait();
    catch(InterruptedException e) {
    System.out.println("Interrupted");
    number = n;
    System.out.println("Put : " + number);
    filled = true;
    notify();
    void get () {
    while (!filled) {
    try {
    wait();
    catch(InterruptedException e) {
    System.out.println("Interrupted");
    System.out.println("Got : " + number);
    filled = false;
    notify();
    class Producer implements Runnable {
    Q obj_link;
    Thread t;
    Producer (Q obj_link) {
    this.obj_link = obj_link;
    t = new Thread(this, "Producer");
    t.start();
    public void run () {
    int i = 0;
    while (true) {           
    obj_link.put(i++);
    class Customer implements Runnable {
    Q obj_link;
    Thread t;
    Customer (Q obj_link) {
    this.obj_link = obj_link;
    t = new Thread(this, "Customer");
    t.start();
    public void run () {
    while (true) {
    obj_link.get();
    public class Main {
    public static void main(String[] args) {
    Q common_obj = new Q();
    Producer pr = new Producer (common_obj);
    Customer cs = new Customer (common_obj);
    try{
    pr.t.join();
    cs.t.join();
    catch(InterruptedException e) {
    System.out.println("Interrupted");
    System.out.println("Program Over");
    }

    The follow program working with threads. We have two classses : Producer and Customer which working with the same object (which type is class Q). Producer produces data. Customer should capture the data. The Q class must be synchronized. But code does not work (compile under NetBeans 6.0).
    I.e. i am waiting for the follow result:
    1. pr thread starts with common_obj object
    2. cs thread starts with common_obj object
    3. pr thread tries call common_obj.put(i++) in infinite cycle:
    3.1 these lines does not work because filled now is set to false
            while (filled){
                try {
                    wait();
                catch(InterruptedException e) {
                    System.out.println("Interrupted");       
            }3.2 the follow code will be implemented:
            number = n;    // put value to number
            System.out.println("Put : " + number); // output result to console
            filled = true; // value was put. It can be got.
            notify(); // notify another thread (cs) that it should not waiting anymore.4. pr thread tries call common_obj.get() in infinite cycle:
    4.1 the following code will not be implemented anymore:
            while (!filled) {
                try {
                    wait();
                catch(InterruptedException e) {
                    System.out.println("Interrupted");       
            } since another thread notify current.
    4.2 the follow code will be implemented:
            System.out.println("Got : " + number);
            filled = false;
            notify();So the result of running this program should be:
    Put : 0
    Got: 0
    Put : 1
    Got: 1
    Put : 2
    Got: 2
    Put : 3
    Got: 3
    Put : 4
    Got: 4
    class Q {
        int number = 0;
        boolean filled = false;
        void put (int n) {
            while (filled){
                try {
                    wait();
                catch(InterruptedException e) {
                    System.out.println("Interrupted");       
            number = n;
            System.out.println("Put : " + number);
            filled = true;
            notify();
        void get () {
            while (!filled) {
                try {
                    wait();
                catch(InterruptedException e) {
                    System.out.println("Interrupted");       
            System.out.println("Got : " + number);
            filled = false;
            notify();
    class Producer implements Runnable {
        Q obj_link;
        Thread t;
        Producer (Q obj_link) {
           this.obj_link = obj_link;
           t = new Thread(this, "Producer");     
           t.start();
        public void run () {
            int i = 0;
            while (true) {           
                obj_link.put(i++);
    class Customer implements Runnable {
        Q obj_link;
        Thread t;
        Customer (Q obj_link) {
           this.obj_link = obj_link;
           t = new Thread(this, "Customer");     
           t.start();
        public void run () {
            while (true) {
                obj_link.get();
    public class Main {
        public static void main(String[] args) {
            Q common_obj = new Q();
            Producer pr = new Producer (common_obj);
            Customer cs = new Customer (common_obj);
            try{
                pr.t.join();
                cs.t.join();
            catch(InterruptedException e) {
                System.out.println("Interrupted");
            System.out.println("Program Over");
    }the follow result of implementation I found:
    run:
    Put : 0
    Exception in thread "Producer" java.lang.IllegalMonitorStateException
    Got : 0
    at java.lang.Object.notify(Native Method)
    at threadstudy2.Q.put(Main.java:19)
    Program Over
    at threadstudy2.Producer.run(Main.java:50)
    at java.lang.Thread.run(Thread.java:619)
    Exception in thread "Customer" java.lang.IllegalMonitorStateException
    at java.lang.Object.notify(Native Method)
    at threadstudy2.Q.get(Main.java:33)
    at threadstudy2.Customer.run(Main.java:68)
    at java.lang.Thread.run(Thread.java:619)
    BUILD SUCCESSFUL (total time: 1 second)

  • Cluster Example shipped with 7.0 SP4 does not work !!!

              I have tried and tried to setup a cluster example using the instructions shipped
              in the cluster example and it does not work. When I call the Session.jsp via
              the proxy URL I get the following output in the proxy log.
              <Mon Apr 26 08:49:39 BST 2004>: Start connection timeout scheduler
              <Mon Apr 26 08:49:39 BST 2004>: GenericProxyServelt: init()
              <Mon Apr 26 08:49:39 BST 2004>: HttpClusterServlet:init()
              <Mon Apr 26 08:49:43 BST 2004>: ===New Request===GET /ClusterTest/Session.jsp
              HT
              TP/1.1
              <Mon Apr 26 08:49:43 BST 2004>: Found session from url: null
              <Mon Apr 26 08:49:43 BST 2004>: attempt #0 out of a max of 5
              <Mon Apr 26 08:49:43 BST 2004>: #### Trying to connect with server cl1!9001!443
              <Mon Apr 26 08:49:43 BST 2004>: Failed to connect: cl1!9001!443
              <Mon Apr 26 08:49:43 BST 2004>: marked bad: cl1!9001!443
              <Mon Apr 26 08:49:43 BST 2004>: attempt #0 out of a max of 5
              <Mon Apr 26 08:49:43 BST 2004>: #### Trying to connect with server cl2!9002!443
              <Mon Apr 26 08:49:43 BST 2004>: Failed to connect: cl2!9002!443
              <Mon Apr 26 08:49:43 BST 2004>: marked bad: cl2!9002!443
              <Mon Apr 26 08:49:43 BST 2004>: attempt #0 out of a max of 5
              <Mon Apr 26 08:49:43 BST 2004>: === whole list is bad, reverting to the all serv
              ers list ===
              <Mon Apr 26 08:49:43 BST 2004>: #### Trying to connect with server cl1!9001!443
              <Mon Apr 26 08:49:43 BST 2004>: Failed to connect: cl1!9001!443
              <Mon Apr 26 08:49:43 BST 2004>: marked bad: cl1!9001!443
              <Mon Apr 26 08:49:43 BST 2004>: Sleeping for 2 secs .....
              <Mon Apr 26 08:49:45 BST 2004>: attempt #1 out of a max of 5
              <Mon Apr 26 08:49:45 BST 2004>: #### Trying to connect with server cl2!9002!443
              <Mon Apr 26 08:49:45 BST 2004>: Failed to connect: cl2!9002!443
              <Mon Apr 26 08:49:45 BST 2004>: marked bad: cl2!9002!443
              <Mon Apr 26 08:49:45 BST 2004>: Sleeping for 2 secs .....
              <Mon Apr 26 08:49:47 BST 2004>: attempt #2 out of a max of 5
              <Mon Apr 26 08:49:47 BST 2004>: === whole list is bad, reverting to the all serv
              ers list ===
              <Mon Apr 26 08:49:47 BST 2004>: #### Trying to connect with server cl2!9002!443
              <Mon Apr 26 08:49:47 BST 2004>: Failed to connect: cl2!9002!443
              <Mon Apr 26 08:49:47 BST 2004>: marked bad: cl2!9002!443
              <Mon Apr 26 08:49:47 BST 2004>: Sleeping for 2 secs .....
              <Mon Apr 26 08:49:49 BST 2004>: attempt #3 out of a max of 5
              <Mon Apr 26 08:49:49 BST 2004>: #### Trying to connect with server cl1!9001!443
              <Mon Apr 26 08:49:49 BST 2004>: Failed to connect: cl1!9001!443
              <Mon Apr 26 08:49:49 BST 2004>: marked bad: cl1!9001!443
              <Mon Apr 26 08:49:49 BST 2004>: Sleeping for 2 secs .....
              <Mon Apr 26 08:49:51 BST 2004>: attempt #4 out of a max of 5
              <Mon Apr 26 08:50:17 BST 2004>: #### Trying to connect with server cl2!9002!443
              <Mon Apr 26 08:50:17 BST 2004>: Failed to connect: cl2!9002!443
              <Mon Apr 26 08:50:17 BST 2004>: marked bad: cl2!9002!443
              <Mon Apr 26 08:50:17 BST 2004>: Sleeping for 2 secs .....
              <Mon Apr 26 08:50:19 BST 2004>: attempt #5 out of a max of 5
              <Mon Apr 26 08:50:19 BST 2004>: #### Trying to connect with server cl1!9001!443
              <Mon Apr 26 08:50:19 BST 2004>: Failed to connect: cl1!9001!443
              <Mon Apr 26 08:50:19 BST 2004>: marked bad: cl1!9001!443
              <Mon Apr 26 08:50:19 BST 2004>: Tried all servers but didn't succeed
              Any ideas ?
              For starters I think the documentation is wrong.
              It states
              servlet weblogic.servlet.internal.HttpClusterServlet
              yet in the weblogic upgrade 6.0 to 7.0 documentation it says replace this with
              weblogic.servlet.proxy.HttpClusterServlet
              Thanks
              Justin
              

    Have you tried deleting the iDVD preference file, com.apple. iDVD.plist, that resides in your User/Library/Preferences folder?
    OT

  • Apache-Weblogic Bridge does not work?

    I've gone thru' the documentation regarding setting up of apache-weblogic bridge, but still it does not work. Does anyboday have any more details regarding this...EnvironmentOS - Solars 5.7Weblogic - 5.1 SP 8Apache 1.3.12

    I've given up and had to go back to running "Double NAT" which also reports as a "problem" within the AEBS, but I just "ignore" it so the light will always be green.
    It still ***** though, as "Double NAT" is also a reason for "Back to my Mac" not working properly, but how the ** am I supposed to avoid Double NAT when the wireless will not work in bridged mode?!

  • Hello, I am trying to upgrade to yosemite, but I get the "disk cannot be used to startup your computer" error. Resizing the partition does not work, I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot

    Hello, I am trying to upgrade my macbook pro to yosemite, but I get the "disk cannot be used to startup your computer" error.
    Resizing the partition does not work for me and I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot and the disk manager is lost.
    Anyway to tell the yosemite installer that it should not pay attention whether the disk is bootable or not ?
    If I am doomed, any way to delete the installer and downloaded OS from my hard drive ?
    Thanks for your help

    As usual, the Linux installer wrecked the partition table. You would have to boot from your OS X installation disc and repartition. Doing so will of course remove all data from the drive, so you must back up first if you haven't already done so.

  • Firefox 18 US-english on SuSE Linux does not work

    Hi,
    running Firefox 17.0.1 on my SuSE Linux 11.2 works fine.
    As I updated to Firefox 18.0 in Windows, I also downloaded
    the US-english version for Linux (firefox-18.0.tar.bz2) and
    unpacked it. The big disappointment: IT DOES NOT WORK!
    XPCOMGlueLoad error for file /root/test/firefox/libxpcom.so:
    libxul.so: cannot open shared object file: No such file or directory
    Couldn't load XPCOM.
    I removed the installation, restarted the system, installed again.
    No change. I tried the German package - the same problem.
    What am I doing wrong? Is this a known issue? Any remedy?
    Thanks, Tim Stoehr
    [email protected]

    See also http://en.opensuse.org/openSUSE:Evergreen

  • Email button or menu Email Link does not work. Firefox 29.0 on Linux Mint 13

    Neither the Email Link menu option under File nor the Email Button installed from the customise menu option when placed on the tool bar work.
    Thunderbird 24.5.0 is the email client both installed on Linux Mint 13 with latest updates.
    Nothing happens at all when on a web page and the email link is clicked or the envelope icon is clicked.
    Help appreciated.
    Regards
    Cavemann

    Hello
    The Preferred applications menu list showed Thunderbird as the email program but it did not link the email button to firefox.
    I had to eventually go to the Firefox preferences and in Applications, Thunderbird was not listed. So I selected Other and browsed to the filesystem / Usr/Bin and selected the Thunderbird icon which then put Thunderbird in the Firefox Applications options for email.
    The email link / button then worked.
    Now I have to sort out the link for emailing photos from Picasa as this does not work either
    Thanks for help
    Cavemann

  • Drag and Drop example porting to Linux does not work

    Hi Guys,
    Encountered this problem : I have a JFrame that displays the name and path of a file that is dragged from a Windows(Explorer) environment into the frame. This works seamlessly in Windows. However, porting to Linux and doing the same thing(dragging the file from File Manager into the Frame to display the file name and path) does not work.
    I suspect the case may be something to do with the flavormap.properties file found in the jdk1.xx/jre/lib file. Can anyone help?
    RG

    Hi,
    I don't know what is causing the problem, but I have been able to avoid it by starting Jdeveloper from $home\jdev\bin\jdev.exe.
    Regards,
    Mathias

  • I just spent an hour composing a reply in a thread ("Firefox will not work with paypal"), only to see "You don't have permission" at Submit - total loss!

    I was logged in to reply in the thread "Firefox will not work with paypal". I spent the better part of an hour carefully composing that reply, testing cases, providing links, etc... [Hint: Firefox, unlike other browsers, has a problem with scripts from server paypalobjects.com.] Because I had taken so long to compose the reply, it seemed like a good idea to check it via the Preview button, but I got a message that that function was not available. Of course I decided to submit it anyway, but when I hit "Submit" I got a message "You don't have permission ..." - at which point I was (stupidly) on a different page with that message, and everything I had composed was gone!

    It might be too late for this, but it's what I use when this happens. Prepare for deep nerdom:
    * Open the web console below the error page by pressing Ctrl+Shift+k
    * Right-click the blank area and turn on logging of the request and response bodies
    * Resubmit the request by clicking the reload button
    * Click the new URL that appears to open the viewer showing the headers and bodies
    There you may be able to copy out the content of your post from the Request Body. You can use a word processor or text editor to find/replace the + characters back to spaces.

Maybe you are looking for

  • Closing references YES or NO

    Hi all My program contains a cluster with 120 controls (string, Boolean and number). Is it too much? I need visibility or invisibly all controls during the program sometimes. In attachment is a simple example how it is work. Is using block "close ref

  • GL account needs to block for local currency & another cur. needs to post

    Hi, I need GL account that should block for posting in local currency, it should post other(forgien) currencies. how can i handle this scnerio. if there is any balance,is it possiable to maintain validation.could you please let me know,how i can reso

  • Urgent REQ

    Hi, Assume we have a FG,SFG and 2 raw materials. The 2 raw materials are send to the subcontractor and he delivers the FG.SFG is produced in his place.But we get only FG from him. How to maintain the SFG in SAP? How can we map this scenario? Reply AS

  • InvocationTargetException on 5.1 using RDBMSRealm

    I am running WebLogic 5.1 on Win2K professional.I followed the instructions in the documentation for building the RDBMSRealm and definining it in the weblogic.properties file. However when the server tries to load the realm I get the following stack

  • Windows Media Player (wmv files)

    Just wondering. Ever since I purchased this new intel core duo mac (I love absolutely love it by the way), I was wondering why anything associated with windows media player does not run correctly when used with safari. For example, mlb.com or espn.co