Is it a bug in 1.4.2_04

public class MainFrame extends JFrame implements ActionListener
JLabel jLable = new JLabel();
static int i = 0;
public MainFrame()
jLabel.setText("sometext");
//some button defined here and added actionlistener.
public void actionPerformed(ActionEvent e)
jLabel.setText(++i);
I click on the button, the text on the jLable is 0, but at the second and also the following clicks on the button to triggle the actionPerformed method, the text on the jLabel doesn't change, still remaining 0. I'm confused, so I changed javax.swing.JLabel to java.awt.Label, everything appears just as I expected. Eaching clicking makes the number on the label increase by 1. Is it a bug of javax.swing.JLabel of 1.4.2_04?

Thank you very much for your advice, and below is my real codes. I'm sorry the JLabel in my real codes was added to a panel, not the JFrame. I didn't believe it was a bug until I compared it with in java.awt.Label.
* Created on 2004-6-5
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
package com.jpdragon.product;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.FlowLayout;
//import java.awt.Label;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Properties;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JLabel;
* @author elgs
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
public class MainFrame extends JFrame implements ActionListener
     Connection               connection;
     PreparedStatement     pstatement;
     ResultSet               rs;
     Container               content               = getContentPane();
     JPanel                    pn                    = new JPanel();
     JPanel                    pc                    = new JPanel();
     JPanel                    ps                    = new JPanel();
     JPanel                    pt                    = new JPanel();
     (J)Label                    lr                    = new Label();
     LabelPanel               labelPanel          = new LabelPanel("No.)",
                                                            "0000000000", 7);
     JButton                    addButton          = new JButton("Add *");
     JButton                    removeButton     = new JButton("Remove *");
     Properties               p                    = new Properties();
     JTable                    t                    = new JTable();
     JScrollPane               s                    = new JScrollPane();
     String[]               names               =
                                                  {"code", "name"};
     TableModel               tableModel          = new TableModel();
     public MainFrame() throws ClassNotFoundException, FileNotFoundException,
               IOException, SQLException
          p.load(new FileInputStream("star.properties"));
          Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
          labelPanel.getTheField().selectAll();
          setTitle("2004-06-06");
          content.setLayout(new BorderLayout());
          pc.setLayout(new BorderLayout());
          ps.setLayout(new FlowLayout());
          content.add(pn, BorderLayout.NORTH);
          content.add(pc, BorderLayout.CENTER);
          content.add(ps, BorderLayout.SOUTH);
          addButton.addActionListener(this);
          removeButton.addActionListener(this);
          pn.add(labelPanel);
          ps.add(addButton);
          ps.add(removeButton);
          s.setViewportView(t);
          pt.add(s);
          lr.setText("Total: " + 0);
          pc.add(pt, BorderLayout.CENTER);
          pc.add(lr, BorderLayout.SOUTH);
          String url = p.getProperty("url");
          String username = p.getProperty("username");
          String password = p.getProperty("password");
          connection = DriverManager.getConnection(url, username, password);
          pstatement = connection
                    .prepareStatement("select max(num) from prcadj where cls='lprice'");
          ResultSet rs = pstatement.executeQuery();
          if (rs.next())
               labelPanel.setField(rs.getString(1).trim());
          pstatement.close();
          pack();
     * (non-Javadoc)
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     public void actionPerformed(ActionEvent e)
          addButton.setEnabled(false);
          removeButton.setEnabled(false);
          String sql_view = "";
          String sql_exe = "";
          String title = "";
          String msg_view = "";
          String msg_exe = "";
          String no = labelPanel.getText().trim();
          Component src = (Component) e.getSource();
          if (src == addButton)
               sql_view = "select g.code,g.name from prcadjdtl p,goods g "
                         + "where num = ? and cls ='lprice' "
                         + "and p.gdgid = g.gid and g.name not like '*%'";
               title = "Add *";
               msg_view = "Are you sure to add *?";
               msg_exe = "items have been added with *";
               sql_exe = "update goods set name = '*'+ name from prcadjdtl p,goods g "
                         + "where num = ? and cls ='lprice' "
                         + "and p.gdgid = g.gid "
                         + "and g.name not like '*%'";
          if (src == removeButton)
               sql_view = "select g.code,g.name from prcadjdtl p,goods g "
                         + "where num = ? and cls ='lprice' "
                         + "and p.gdgid = g.gid and g.name like '*%'";
               title = "Remove *";
               msg_view = "Are you sure to remove *?";
               msg_exe = "items have been removed *";
               sql_exe = "update goods set name = substring(name,2,len(name)-1) from prcadjdtl p,goods g "
                         + "where num = ? and cls ='lprice' "
                         + "and p.gdgid = g.gid "
                         + "and g.name like '*%'";
          try
               pstatement = connection.prepareStatement(sql_view,
                         ResultSet.TYPE_SCROLL_INSENSITIVE,
                         ResultSet.CONCUR_READ_ONLY);
               pstatement.setString(1, no);
               rs = pstatement.executeQuery();
               tableModel.set(rs);
               tableModel.setName(names);
               t.setModel(tableModel);
               s.setViewportView(t);
               pt.add(s);
               lr.setText("total: " + tableModel.getRowCount());
               pstatement.close();
               pack();
               int answer = JOptionPane.showConfirmDialog((Component) content,
                         msg_view, title, JOptionPane.YES_NO_OPTION);
               if (answer == JOptionPane.YES_OPTION)
                    pstatement = connection.prepareStatement(sql_exe);
                    pstatement.setString(1, no);
                    int rowsAffected = pstatement.executeUpdate();
                    t.setModel(new TableModel());
                    JOptionPane.showMessageDialog((Component) content, rowsAffected
                              + msg_exe, title, JOptionPane.INFORMATION_MESSAGE);
               addButton.setEnabled(true);
               removeButton.setEnabled(true);
               pack();
          catch (SQLException e1)
               System.out.println(e1);
}

Similar Messages

  • Liveconnect bug, in 1.4.2_04 ?

    It seems to me that there is a bug in the wery newest version of Java in download on www.java.com .
    When using liveconnect (javascript - java communication) the browser sometimes freezes.
    If you are using j2re Version 1.4.2_04 (build b05), with Microsoft Windows, and Internet Explorer, you can go to this page, and try out the bug for you self.
    http://www.both.dk/abjavatest/liveConnectTestPage.htm
    Best Regards,

    FORGET IT !!!!
    Just forget it,
    It is true that my sample is not working for this version of Java, but it is due to some kind of "bad" code, that is eaten by earlier versions of java. But not this new version.
    Sorry.

  • Is this a Bug?: FocusListener called twice

    Hey all,
    Im having this problem since realease 1.4.2_04.
    Folks, try this code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class FocusTest {
        public static void main(String[] args) {
            JFrame frame  = new JFrame("Focus test");
            final JTextField field1 = new JTextField("Test1");
            final JTextField field2 = new JTextField("Test2");
            field1.addFocusListener(new FocusAdapter(){
                public void focusGained(FocusEvent e){}
                public void focusLost(FocusEvent e){
                    if( !e.isTemporary() ){
                        System.out.println("ID: " + e.getID());
                        JOptionPane.showMessageDialog(null, "Focus lost in 1");
                        field1.requestFocus();
            frame.getContentPane().add(field1, BorderLayout.WEST);
            frame.getContentPane().add(field2, BorderLayout.CENTER);
            frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            frame.setBounds(0,0,200,300);
            frame.show();
    } The problem is: when TF1 looses its focus, and is validated, then i force the focus to keep on TF1 by calling TF1.requestFocus(), somehow the event focusLsot is called twice for my TF.
    If i do not requestFocus() it work but I must force the focus on TF1.
    Im going nuts. Does anyonw apear to have this problems?? In old realeses, the same code work perfect. until 1.4.2 beta.
    Tks
    Bruno

    Hello all!
    I found out that somehow JDialog with requestfocus after, fires twice the lostFocus event. I dont know why. I opened a bug report so they can figure it out why is happaning.
    Tks folks!
    Bruno

  • What happended to j2se 1.4.2_04 installler?

    What happended to j2se 1.4.2_04 installler? Why has it been replaced with 1.4.2_03
    is there a bug in the 1.4.2_04 release I should know about that I have'nt yet discovered, I downloaded it a few days ago.

    It has disappeared for hours , but there's no any explaination till now.

  • Jvm crash on 1.4.2_04 BEA/Solaris

    our weblogic managed server crashed on production with tht following error
    HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002EF 01
    we opened a case with BEA and they redirected us to SUN as it seems to be a bug in SUN jvm 1.4.2_04.
    http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=5c36f6627418c68d04a7a8936aef:YfiG?bug_id=6181110
    can anybody tell which version is this fixed in, 1.4.2_09 or 1.5.0_u4 or both.
    Also, is 6181110, (Bug ID:2124050) and (Bug ID:2125138) are the same bugs as mentioned in the description or are they different. If they are same, why was it fixed in 1.5.0_u4 if it is already fixed in the previous version which is 1.4.2_09 ?

    can anybody tell which version is this fixed in,
    1.4.2_09 or 1.5.0_u4 or both.It looks like it was fixed in both.
    Also, is 6181110, (Bug ID:2124050) and (Bug
    ID:2125138) are the same bugs as mentioned in the
    description or are they different. If they are same,
    why was it fixed in 1.5.0_u4 if it is already fixed
    in the previous version which is 1.4.2_09 ?They're multiple views of the same bug. We maintain parallel release trains for 1.4.x and 5.0 which is why it was fixed simultaneously in both trains.

  • JRockit 1.4.2_04 released

    An update release for the JRockit 1.4.2_04 JVM has been released and is now
    available from the BEA download site (http://commerce.bea.com). This is a
    maintenance update to the JRockit 1.4.2_04 JVM release that was previously
    released in April '04.
    Some highlights of this release vs. JRockit 8.1 SP2 (J2SE 1.4.1):
    - Support for new OSes. In addition to previously supported OSes, the
    following are additional supported platforms - Red Hat EL 3.0 (IA32 / IPF),
    Windows Server 2003 (IA32), and SuSE Linux Server 9 (IA32 / IPF). Support
    for Red Flag 4.1 (IA32 / IPF) will be added soon after it's availability.
    - This release will be bundled with each of the following Linux
    distributions - Red Hat EL 3.0, SuSE Linux Server 9, Red Flag Advanced
    Server 4.1.
    - Improved runtime performance
    - Improved startup performance
    - Support for Native POSIX Thread Library (NPTL) on Linux
    - Code caching (experimental feature)
    - Numerous bug fixes
    For more information on new features, please visit:
    http://edocs.bea.com/wljrockit/docs142/intro/newftrs.html.
    Finally, this JRockit release is bundled and certified with WebLogic
    Platform 8.1 SP3, which is also available from the BEA download site.

    Here is a test program you can use to test if for JVM leaks memory when creating
    threads.
    Johan Walles <johan@spamalamadingdong> wrote:
    I don't think so, but I could be wrong.
    Your best bet (in case nobody who actually knows answers this) is to
    write a
    short test program that starts tons of threads but always keeps the total
    number
    of threads at some sane value, then run that for a long time. Or ask
    Vegard for
    his :-).
    //Johan
    harish tejwani wrote:
    We are running jrockit81sp2rp1_141_06 for our production
    Any clue if it exists in this version ?
    Thanks
    Harish
    "Vegard Bye" <[email protected]> wrote:
    I've built a program, which just creates threads and let each of them
    run. Each
    thread just increases a couple of numbers and then terminates. After
    about 13
    million threads the program crashes with
    Error Message: Null pointer exception in native code
    Signal info : si_signo=11, si_code=1
    Version : BEA WebLogic JRockit(TM) 1.4.2_04 JVM ari-29212-20040415-1332-linux-ia32
    Threads / GC : Native Threads, GC strategy: parallel
    : mmHeap->data = 0x20000000, mmHeap->top = 0x30000000
    : mmStartCompaction = 0x23c00000, mmEndCompaction = 0x25000000
    which may imply that it is correct that there is a memeory leak for
    each
    started
    thread. In my test program the number of concurrent threads never increases
    100.
    This memory leak is very critical, since my server will crash afterabout
    a day
    or two.
    Johan Walles <johan@spamalamadingdong> wrote:
    There's a memory leak of about 100 bytes per started thread in JRockit
    1.4.2_04.
    If your app starts a lot of threads you may be running into this.
    Regards //Johan
    [TestCreateThreadMemoryLeak.java]

  • Upgrading from 1.4.2_04 to 1.4.2_06, 1.4.2_07 or 1.4.2_08 ?

    I am in need to upgrade my JMV from 1.4.2_04 due to known JVM issues solved in 1.4.2_06 and newer.
    I seek the most stable version and therefore need to pick between 06, 07 or the latest 08.
    Which version is considered the less risky more used and more stable atm?

    Note that 1.4.2_06 and 1.4.2_07 have
    "completed the Sun EOL process and are no longer supported under standard support contracts. These products are down-revision products that may have various bugs, Y2000, and possibly security issues associated with them. Sun in no way recommends these products be used in a live, production environment. Any use of product on this page is at the sole discretion of the developer and Sun assumes no responsiblity for any resulting problems."
    [url http://java.sun.com/products/archive/eol.policy.html]Java Technology EOL Policy

  • Build detection problem when updating 1.4.2_04 to 1.4.2_06 or higher

    When using the object tag in internet explorer to deploy Java we have a problem updating between builds
    example:
    updating Java from 1.4.2_04 to 1.4.2_06
    it seems that the object version attribute only checks 1.4.2 and not the build number, so our client. therefore strarts.
    We had expected that if the version number was changed to _06 and the new er 1.4.2_06 installer was updated to the web server that the installation would be carried out
    Does this mean that my customers that are within a secure (closed) intranet can only update between versions and not builds
    Thax

    Note that 1.4.2_06 and 1.4.2_07 have
    "completed the Sun EOL process and are no longer supported under standard support contracts. These products are down-revision products that may have various bugs, Y2000, and possibly security issues associated with them. Sun in no way recommends these products be used in a live, production environment. Any use of product on this page is at the sole discretion of the developer and Sun assumes no responsiblity for any resulting problems."
    [url http://java.sun.com/products/archive/eol.policy.html]Java Technology EOL Policy

  • Bad http.agent in Java properties : a bug in the HTTP user-agent string?

    Hi all,
    Me :
    I'm patching AWSTATS (web log analyzer tool) in order to recognize which Java version has
    been used to download files.
    Context of the problem :
    Each time a Java program (or applet) is downloading a file (for example .class, .png, .html)
    from a web server, a line will be added in the web server log file. If the web server is well
    configured, the user agent used to download the file will be at the end of the line in the log file.
    For Sun Java JVM, the user agent string is configured in the Java properties under "http.agent".
    Usually, the user-agent string contains the word "Java" and the virtual machine version. In most
    cases, this is just a string like "Java/1.4.2", so this is relatively easy to parse.
    Problem :
    Looking in my web server stats, and then on the web, I found that a JVM's user-agent is
    "Mozilla/4.0 (Windows XP 5.1)", which obviously does not contains the word "Java".
    Consequently, it is difficult to say that this user-agent string belongs to a JVM.
    Further look in my log files and on google shows that this http.agent string appears
    on Microsoft Internet Explorer (it seems MSIE 6.0) over Windows XP with the J2RE plugin:
    http://board.gulli.com/thread/300321
    http://forum.java.sun.com/thread.jsp?thread=531295&forum=30&message=2559523
    http://forum.java.sun.com/thread.jsp?forum=63&thread=132769&start=210&range=15&tstart=0&trange=15
    http://forum.java.sun.com/thread.jsp?forum=32&thread=480899
    http://www.goodidea.ru/setupJava/javaInstall.htm
    The J2RE plugin version does not seems to play a role as this user-agent string has
    been seen on 1.4.1_02-b06, 1.4.2_01, 1.4.2_03 and 1.4.2_04-b05.
    Further information requested :
    I would like to know:
    1) if you have reported the same problem;
    2) if there is some rules for the http.agent property;
    3) if this is a bug.
    Thank you very much, and feel free to add you opinion.
    Julien

    The web log files where the "Mozilla/4.0 (Windows XP 5.1)" user-agent appears can be displayed using the following search terms on google :
    "Mozilla/4.0 (Windows XP 5.1)" -"(Windows XP 5.1) Java"
    http://www.google.ch/search?hl=fr&ie=UTF-8&q=%22Mozilla%2F4.0+%28Windows+XP+5.1%29%22+-%22%28Windows+XP+5.1%29+Java%22&btnG=Rechercher&meta=
    Julien

  • I can't attach the JSF 1.2_04 sources to Eclipse project !

    Hello,
    I am using Eclipse 3.3.2. I am trying to build a ICEFaces project and I need the JSF sources for convinience.
    I have them, I am trying to attach them with Project>Properties>JavaBuildPath>Sun JSF RI 1.2_04>jsf-api 1.2> Source Attachment> Edit>External file.
    It's OK, but when I close the window and reopen it > there are no sources checked again.
    I have downloaded them from here : https://javaserverfaces.dev.java.net/download.html
    Please, help !

    [This is indeed a bug in Eclipse|https://bugs.eclipse.org/bugs/buglist.cgi?quicksearch=attach+source]. As far the only workaround is to add a new JRE via Window > Preferences > Java > Installed JREs and adding the desired JAR's as external JAR's, saving it and opening it again (!!) and finally attach the sources to the added JAR's. Then in the project properties choose the new JRE (and keep the same JSF JAR's in the web-inf/lib!).
    Yes it is cumbersome, but I suppose that this will be fixed in the next Eclipse release.

  • This is a bug, right?

    Hi all,
    I am gettting a NotSerializableException (Shown Below) from a JFileChooser sub-class -- because JFilerChooser implements java.io.Serializable, this is a bug right?
    TIA,
    ablivian23
    java.io.NotSerializableException: javax.swing.JFileChooser$WeakPCL
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
         at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
         at javax.swing.JFileChooser.writeObject(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeArray(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.access$100(Unknown Source)
         at java.io.ObjectOutputStream$PutFieldImpl.writeFields(Unknown Source)
         at java.io.ObjectOutputStream.writeFields(Unknown Source)
         at java.awt.Container.writeObject(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeArray(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.access$100(Unknown Source)
         at java.io.ObjectOutputStream$PutFieldImpl.writeFields(Unknown Source)
         at java.io.ObjectOutputStream.writeFields(Unknown Source)
         at java.awt.Container.writeObject(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeArray(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.access$100(Unknown Source)
         at java.io.ObjectOutputStream$PutFieldImpl.writeFields(Unknown Source)
         at java.io.ObjectOutputStream.writeFields(Unknown Source)
         at java.awt.Container.writeObject(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeArray(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.access$100(Unknown Source)
         at java.io.ObjectOutputStream$PutFieldImpl.writeFields(Unknown Source)
         at java.io.ObjectOutputStream.writeFields(Unknown Source)
         at java.awt.Container.writeObject(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeObject(Unknown Source)
         at java.awt.Window.writeObject(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeObject(Unknown Source)
         at com.lockheedmartin.SOAP.SoapApplication.saveToFiles(SoapApplication.java:166)
         at com.lockheedmartin.SOAP.SoapApplication.oldRun(SoapApplication.java:232)
         at com.lockheedmartin.SOAP.SoapApplication.main(SoapApplication.java:51)

    hmmm... are you sure the same thing happens with all those versions?
    The build of 1.4.2 that I have does not have a class called javax.swing.JFileChooser$WeakPCL, but 1.5.0 beta does have it:> /usr/java/j2sdk1.4.2_04/bin/javap 'javax.swing.JFileChooser$WeakPCL'
    ERROR:Could not find javax.swing.JFileChooser$WeakPCL
    /usr/java/jdk1.5.0/bin/javap 'javax.swing.JFileChooser$WeakPCL'Compiled from "JFileChooser.java"
    class javax.swing.JFileChooser$WeakPCL extends java.lang.Object implements java.beans.PropertyChangeListener{
        java.lang.ref.WeakReference jfcRef;
        static final boolean $assertionsDisabled;
        public javax.swing.JFileChooser$WeakPCL(javax.swing.JFileChooser);
        public void propertyChange(java.beans.PropertyChangeEvent);
        static {};
    }This does look like a bug in 1.5.0 beta.. could you post a minimal program that reproduces this error, I just tested it and was able to serialize a JFileChooser?
    If it's indeed a bug it should be reported at http://bugs.sun.com/services/bugreport/index.jsp

  • This is a Photoshop CS bug, right?

    When I go Save for Web... and choose JPEG, the preview is in GIF, not JPEG. I have used Photoshop for 15 years and I know that when you choose the file format you want to save it will preview in that same file format, not a different format. Is this a bug that is going to be fixed?

    hmmm... are you sure the same thing happens with all those versions?
    The build of 1.4.2 that I have does not have a class called javax.swing.JFileChooser$WeakPCL, but 1.5.0 beta does have it:> /usr/java/j2sdk1.4.2_04/bin/javap 'javax.swing.JFileChooser$WeakPCL'
    ERROR:Could not find javax.swing.JFileChooser$WeakPCL
    /usr/java/jdk1.5.0/bin/javap 'javax.swing.JFileChooser$WeakPCL'Compiled from "JFileChooser.java"
    class javax.swing.JFileChooser$WeakPCL extends java.lang.Object implements java.beans.PropertyChangeListener{
        java.lang.ref.WeakReference jfcRef;
        static final boolean $assertionsDisabled;
        public javax.swing.JFileChooser$WeakPCL(javax.swing.JFileChooser);
        public void propertyChange(java.beans.PropertyChangeEvent);
        static {};
    }This does look like a bug in 1.5.0 beta.. could you post a minimal program that reproduces this error, I just tested it and was able to serialize a JFileChooser?
    If it's indeed a bug it should be reported at http://bugs.sun.com/services/bugreport/index.jsp

  • Index with "or" clause (BUG still exists?)

    The change log for 2.3.10 mentions "Fixed a bug that caused incorrect query plans to be generated for predicates that used the "or" operator in conjunction with indexes [#15328]."
    But looks like the Bug still exists.
    I am listing the steps to-repro. Let me know if i have missed something (or if the bug needs to be fixed)
    DATA
    dbxml> openContainer test.dbxml
    dbxml> getDocuments
    2 documents found
    dbxml> print
    <node><value>a</value></node>
    <node><value>b</value></node>
    INDEX (just one string equality index on node "value")
    dbxml> listIndexes
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: node-element-equality-string for node {}:value
    2 indexes found.
    QUERY
    setVerbose 2 2
    preload test.dbxml
    query 'let $temp := fn:compare("test", "test") = 0
    let $results := for $i in collection("test.dbxml")
    where ($temp or $i/node[value = ("a")])
    return $i
    return <out>{$temp}{$results}</out>'
    When $temp is true i expected the result set to contain both the records, but that was not the case with the index. It works well when there is no index!
    Result WITH INDEX
    dbxml> print
    <out>true<node><value>a</value></node></out>
    Result WITHOUT INDEX
    dbxml> print
    <out>true<node><value>a</value></node><node><value>b</value></node></out>

    Hi Vijay,
    This is a completely different bug, relating to predicate expressions that do not examine nodes. Please try the following patch, to see if it fixes this bug for you:
    --- dbxml-2.3.10-original/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-04-18 10:05:24.000000000 +0100
    +++ dbxml-2.3.10/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-08-08 11:32:10.000000000 +0100
    @@ -1566,11 +1572,12 @@
         else if(name == Or::name) {
              UnionQP *unionOp = new (&memMgr_) UnionQP(&memMgr_);
    +          result.operation = unionOp;
              for(VectorOfASTNodes::iterator i = args.begin(); i != args.end(); ++i) {
                   PathResult ret = generate(*i, ids);
                   unionOp->addArg(ret.operation);
    +               if(ret.operation == 0) result.operation = 0;
    -          result.operation = unionOp;
         // These operators use the presence of the node arguments, not their valueJohn

  • Bug report follow-up

    is there a way to follow-up on a bug report that i submitted?  i have the bug number, but would like to see if the report was understood, filled out properly and determine the status of the bug report.
    thanks,
    doug

    They comment on bugs if actions were taken. Otherwise - don't expect any feedback.

  • Solaris8 and 9 (possibly 7) /dev/poll driver bug report.

    Hello,
    I'd like to report a bug in the solaris 8 and 9 /dev/poll driver (poll(7d)).
    As i do not have a support account with sun or anything like that, there
    seems to be no other way to do that here (which is of course a very sad
    thing).
    Bug details:
    The /dev/poll device provides an ioctl-request (DP_ISPOLLED) for checking
    if a particular filedescriptor is currently in the set of monitored
    filedescriptors for that particular /dev/poll fd set (open /dev/poll fd).
    A quote from the documentation of the poll(7d) manual page taken from
    Solaris9:
    "DP_ISPOLLED ioctl allows you to query if a file descriptor is already in
    the monitored set represented by fd. The fd field of the pollfd structure
    indicates the file descriptor of interest. The DP_ISPOLLED ioctl returns 1
    if the file descriptor is in the set. The events field contains the
    currently polled events. The revents field contains 0. The ioctl returns 0
    if the file descriptor is not in the set. The pollfd structure pointed by
    pfd is not modified. The ioctl returns a -1 if the call fails."
    It says that when you query for an filedescriptor which is currently being
    monitored in the set, that it would return 1, and change the events field of
    the pollfd structure to the events it's currently monitoring that fd for.
    The revents field would be set to zero.
    However the only thing which actually happens here, is that FD_ISPOLLED
    returns 1 when the fd is in the set and 0 if not. When the fd is in the
    set, when FD_ISPOLLED returns 1, the events field remains unmodified, but
    the revents field gets changed.
    A small sample code to illustrate:
    #include <stdio.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <sys/devpoll.h>
    main() {
    struct pollfd a;
    int dp_fd = open("/dev/poll", O_WRONLY);
    a.fd = 0; /* stdin */
    a.events = POLLIN; /* we monitor for readability, POLLIN=1 */
    a.revents = 0;
    write(dp_fd, &a, sizeof(a));
    a.fd = 0;
    a.events = 34; /* filled in with bogus number to show malfunctioning */
    a.revents = 0;
    printf("DP_ISPOLLED returns: %d\n", ioctl(dp_fd, DP_ISPOLLED, &a));
    printf("a.fd=%d, a.events=%hd, a.revents=%hd\n", a.fd, a.events,
    a.revents);
    According to the documentation of /dev/poll and namely DP_ISPOLLED this
    program is supposed to print the following:
    DP_ISPOLLED returns: 1
    a.fd=0, a.events=1, a.revents=0
    However it prints the following:
    DP_ISPOLLED returns: 1
    a.fd=0, a.events=34, a.revents=1
    You can take any number instead of '34' and it will simply remain untouched
    after the DP_ISPOLLED ioctl-request.
    I hope it's clear now that the solaris8 and solaris9 (and probably solaris7
    with /dev/poll patch too) DP_ISPOLLED implementation is broken.
    This bug is also easily illustrated by looking at the solaris8 kernel sourcecode:
    <snippet osnet_volume/usr/src/uts/common/io/devpoll.c:dpioctl()>
    case DP_ISPOLLED:
    pollfd_t pollfd;
    polldat_t *pdp;
    if (pollfd.fd < 0) {
    mutex_exit(&pcp->pc_lock);
    break;
    pdp = pcache_lookup_fd(pcp, pollfd.fd);
    if ((pdp != NULL) && (pdp->pd_fd == pollfd.fd) &&
    (pdp->pd_fp != NULL)) {
    pollfd.revents = pdp->pd_events;
    if (copyout(&pollfd, (caddr_t)arg,
    sizeof(pollfd_t))) {
    mutex_exit(&pcp->pc_lock);
    DP_REFRELE(dpep);
    return (set_errno(EFAULT));
    *rvalp = 1;
    </snippet>
    its' clearly visible that the code writes the current monitored events to
    the revents field:
    'pollfd.revents = pdp->pd_events;'
    and that it doesnt set revents to zero.
    It's funny to see that this has been like this since Solaris8 (possibly 7). That means nobody ever used DP_ISPOLLED that way or people were simply to lazy to file a bug report.
    Another funny thing related to this. is that Hewlett-Packard did seem to know about this. Since HP-UX11i version 1.6 they also support /dev/poll. From their manual page i ll quote some sentences from their WARNING session:
    "The ioctl(DP_ISPOLLED) system call also returns its result in the revents member of the pollfd structure, in order to be compatible with the implementation of the /dev/poll driver by some other vendors."
    Hopefully this will get fixed.
    I also like to reexpress my very negative feelings towards the fact that you're not able to file bug reports when you do not have a support contract. Ridiculous.
    Thanks,
    bighawk

    Have I mentioned how much i love my playbook now Great job on os 2.0

Maybe you are looking for

  • Deleting songs from an ipod mini

    If I delete a song from my playlist for my ipod mini does that mean that when I reconnect my ipod to the computer and it updates the ipod then the deleted songs will no longer be on the ipod? If this is not the case can someone tell me how to delete

  • Default tab in Process Purchase order

    Hi All, We are in SRM 4.0 and we recently we upgraded our system to SP12. After the upgrade, while entering into Process Purchase order transaction "Find" tab is showing by default. But before the upgrade it was showing Worklist as the default tab wh

  • Configuring RAS with BRI ISDN.

    Hello all, I have maybe very basic question but I have studied a lot of guides about configuring RAS with ISDN interface but Im not still sure how to build some reasonable solution. Could someone help me with this: 1.)what configuration commands I ne

  • Ethernet connection very slow.FIOS.. Help

    All of a sudden, when I turned my mac on today and booted up Firefox, my connection was incredibly slow(almost taking 1-2 minutes to load a normal page). Some pages aren't even loading. It seems very out of the ordinary -I figured maybe it was just F

  • Dodgy Order By detection

    Hi all Just found an annoying bug in Oracle. (perhaps I should say that the bug is most likely more in Oracle clients, like TOAD and APEX). I'm not sure if this has been pointed out already, but it's really quite poor. Say you have a query, like this