Program: 21641
Project: 21641
Buggy source:
public void createActions(){
  newUserDataAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      createNewUser();
    }
  }
;
  loadUserDataAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here. Just the parent class.
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      openUserData();
    }
  }
;
  exportToHtmlAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      File fileToSave=getReportFile();
      OTMLToXHTMLConverter otxc=new OTMLToXHTMLConverter(otViewFactory,bodyPanel.getViewContainer());
      otxc.setXHTMLParams(fileToSave,800,600);
      (new Thread(otxc)).start();
    }
  }
;
  exportToHtmlAction.setEnabled(true);
  saveUserDataAction=new AbstractAction("String_Node_Str"){
    /** 
 * Nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      if (currentUserFile == null || !currentUserFile.exists()) {
        saveUserDataAsAction.actionPerformed(arg0);
        return;
      }
      if (currentUserFile.exists()) {
        try {
          Exporter.export(currentUserFile,userDataDB.getRoot(),userDataDB);
          userDataDB.setDirty(false);
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
  }
;
  saveUserDataAsAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      Frame frame=(Frame)SwingUtilities.getRoot(OTViewer.this);
      MostRecentFileDialog mrfd=new MostRecentFileDialog("String_Node_Str");
      mrfd.setFilenameFilter("String_Node_Str");
      if (currentUserFile != null) {
        mrfd.setCurrentDirectory(currentUserFile.getParentFile());
        mrfd.setSelectedFile(currentUserFile);
      }
      int retval=mrfd.showSaveDialog(frame);
      File file=null;
      if (retval == MostRecentFileDialog.APPROVE_OPTION) {
        file=mrfd.getSelectedFile();
        String fileName=file.getPath();
        currentUserFile=file;
        if (!fileName.toLowerCase().endsWith("String_Node_Str")) {
          currentUserFile=new File(currentUserFile.getAbsolutePath() + "String_Node_Str");
        }
        try {
          Exporter.export(currentUserFile,userDataDB.getRoot(),userDataDB);
          userDataDB.setDirty(false);
          setTitle(baseFrameTitle + "String_Node_Str" + currentUserFile.toString());
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
        frame.setTitle(fileName);
      }
    }
  }
;
  loadAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      Frame frame=(Frame)SwingUtilities.getRoot(OTViewer.this);
      MostRecentFileDialog mrfd=new MostRecentFileDialog("String_Node_Str");
      mrfd.setFilenameFilter("String_Node_Str");
      int retval=mrfd.showOpenDialog(frame);
      File file=null;
      if (retval == MostRecentFileDialog.APPROVE_OPTION) {
        file=mrfd.getSelectedFile();
      }
      if (file != null && file.exists()) {
        System.out.println("String_Node_Str" + file);
        loadFile(file);
        exportToHtmlAction.setEnabled(true);
      }
    }
  }
;
  saveAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      if (remoteURL != null) {
        try {
          if (Boolean.getBoolean(OTViewerHelper.REST_ENABLED_PROP)) {
            try {
              remoteSaveData(OTViewer.HTTP_PUT);
            }
 catch (            Exception e) {
              remoteSaveData(OTViewer.HTTP_POST);
            }
          }
 else {
            remoteSaveData(OTViewer.HTTP_POST);
          }
        }
 catch (        Exception e) {
          JOptionPane.showMessageDialog((Frame)SwingUtilities.getRoot(OTViewer.this),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          e.printStackTrace();
        }
      }
 else {
        if (currentAuthoredFile == null) {
          saveAsAction.actionPerformed(arg0);
          return;
        }
        if (checkForReplace(currentAuthoredFile)) {
          try {
            ExporterJDOM.export(currentAuthoredFile,xmlDB.getRoot(),xmlDB);
            xmlDB.setDirty(false);
          }
 catch (          Exception e) {
            e.printStackTrace();
          }
        }
      }
    }
  }
;
  saveAsAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      Frame frame=(Frame)SwingUtilities.getRoot(OTViewer.this);
      MostRecentFileDialog mrfd=new MostRecentFileDialog("String_Node_Str");
      mrfd.setFilenameFilter("String_Node_Str");
      if (currentAuthoredFile != null) {
        mrfd.setCurrentDirectory(currentAuthoredFile.getParentFile());
        mrfd.setSelectedFile(currentAuthoredFile);
      }
      int retval=mrfd.showSaveDialog(frame);
      File file=null;
      if (retval == MostRecentFileDialog.APPROVE_OPTION) {
        file=mrfd.getSelectedFile();
        String fileName=file.getPath();
        if (!fileName.toLowerCase().endsWith("String_Node_Str")) {
          file=new File(file.getAbsolutePath() + "String_Node_Str");
        }
        if (checkForReplace(file)) {
          try {
            ExporterJDOM.export(file,xmlDB.getRoot(),xmlDB);
            currentAuthoredFile=file;
            xmlDB.setDirty(false);
          }
 catch (          Exception e) {
            e.printStackTrace();
          }
        }
        frame.setTitle(fileName);
        remoteURL=null;
        updateMenuBar();
      }
    }
  }
;
  saveRemoteAsAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      JPanel panel=new JPanel();
      panel.setBorder(new EmptyBorder(10,10,10,10));
      panel.setLayout(new BorderLayout());
      JLabel prompt=new JLabel("String_Node_Str");
      prompt.setBorder(new EmptyBorder(0,0,10,0));
      JTextField textField=new JTextField();
      if (remoteURL == null) {
        textField.setText("String_Node_Str");
      }
 else {
        textField.setText(remoteURL.toString());
      }
      JPanel checkboxPanel=new JPanel();
      JCheckBox restCheckbox=new JCheckBox("String_Node_Str");
      restCheckbox.setSelected(Boolean.getBoolean(OTViewerHelper.REST_ENABLED_PROP));
      checkboxPanel.setBorder(new EmptyBorder(5,5,0,0));
      checkboxPanel.add(restCheckbox);
      panel.add(prompt,BorderLayout.NORTH);
      panel.add(textField,BorderLayout.CENTER);
      panel.add(checkboxPanel,BorderLayout.SOUTH);
      int returnVal=CustomDialog.showOKCancelDialog((Frame)SwingUtilities.getRoot(OTViewer.this),panel,"String_Node_Str",false,true);
      if (returnVal == 0) {
        try {
          remoteURL=new URL(textField.getText());
          System.setProperty(OTViewerHelper.REST_ENABLED_PROP,Boolean.toString(restCheckbox.isSelected()));
          remoteSaveData(OTViewer.HTTP_POST);
          updateMenuBar();
        }
 catch (        Exception e) {
          System.err.println("String_Node_Str");
          JOptionPane.showMessageDialog((Frame)SwingUtilities.getRoot(OTViewer.this),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          e.printStackTrace();
        }
      }
 else {
      }
    }
  }
;
  exportImageAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      Component currentComp=bodyPanel.getCurrentComponent();
      Util.makeScreenShot(currentComp);
    }
  }
;
  exportHiResImageAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      Component currentComp=bodyPanel.getCurrentComponent();
      Util.makeScreenShot(currentComp,2,2);
    }
  }
;
  debugAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      Object source=e.getSource();
      if (((JCheckBoxMenuItem)source).isSelected()) {
        System.setProperty(OTViewerHelper.DEBUG_PROP,"String_Node_Str");
      }
 else {
        System.setProperty(OTViewerHelper.DEBUG_PROP,"String_Node_Str");
      }
      try {
        reloadWindow();
      }
 catch (      Exception exp) {
        exp.printStackTrace();
      }
      SwingUtilities.invokeLater(new Runnable(){
        public void run(){
          updateMenuBar();
        }
      }
);
      exportToHtmlAction.setEnabled(true);
    }
  }
;
  showConsoleAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      if (consoleFrame != null) {
        consoleFrame.setVisible(true);
      }
    }
  }
;
  reloadWindowAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      try {
        reload();
      }
 catch (      Exception e1) {
        e1.printStackTrace();
      }
    }
  }
;
  exitAction=new ExitAction();
}

Fixed version (ground truth):
public void createActions(){
  newUserDataAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      createNewUser();
    }
  }
;
  loadUserDataAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here. Just the parent class.
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      openUserData();
    }
  }
;
  exportToHtmlAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      File fileToSave=getReportFile();
      OTMLToXHTMLConverter otxc=new OTMLToXHTMLConverter(otViewFactory,bodyPanel.getViewContainer());
      otxc.setXHTMLParams(fileToSave,800,600);
      (new Thread(otxc)).start();
    }
  }
;
  exportToHtmlAction.setEnabled(true);
  saveUserDataAction=new AbstractAction("String_Node_Str"){
    /** 
 * Nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      if (currentUserFile == null || !currentUserFile.exists()) {
        saveUserDataAsAction.actionPerformed(arg0);
        return;
      }
      if (currentUserFile.exists()) {
        try {
          Exporter.export(currentUserFile,userDataDB.getRoot(),userDataDB);
          userDataDB.setDirty(false);
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
  }
;
  saveUserDataAsAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      Frame frame=(Frame)SwingUtilities.getRoot(OTViewer.this);
      MostRecentFileDialog mrfd=new MostRecentFileDialog("String_Node_Str");
      mrfd.setFilenameFilter("String_Node_Str");
      if (currentUserFile != null) {
        mrfd.setCurrentDirectory(currentUserFile.getParentFile());
        mrfd.setSelectedFile(currentUserFile);
      }
      int retval=mrfd.showSaveDialog(frame);
      File file=null;
      if (retval == MostRecentFileDialog.APPROVE_OPTION) {
        file=mrfd.getSelectedFile();
        String fileName=file.getPath();
        currentUserFile=file;
        if (!fileName.toLowerCase().endsWith("String_Node_Str")) {
          currentUserFile=new File(currentUserFile.getAbsolutePath() + "String_Node_Str");
        }
        try {
          Exporter.export(currentUserFile,userDataDB.getRoot(),userDataDB);
          userDataDB.setDirty(false);
          setTitle(baseFrameTitle + "String_Node_Str" + currentUserFile.toString());
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
        frame.setTitle(fileName);
      }
    }
  }
;
  loadAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      Frame frame=(Frame)SwingUtilities.getRoot(OTViewer.this);
      MostRecentFileDialog mrfd=new MostRecentFileDialog("String_Node_Str");
      mrfd.setFilenameFilter("String_Node_Str");
      int retval=mrfd.showOpenDialog(frame);
      File file=null;
      if (retval == MostRecentFileDialog.APPROVE_OPTION) {
        file=mrfd.getSelectedFile();
      }
      if (file != null && file.exists()) {
        System.out.println("String_Node_Str" + file);
        loadFile(file);
        exportToHtmlAction.setEnabled(true);
      }
    }
  }
;
  saveAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      if (remoteURL != null) {
        try {
          if (Boolean.getBoolean(OTViewerHelper.REST_ENABLED_PROP)) {
            try {
              remoteSaveData(OTViewer.HTTP_PUT);
            }
 catch (            Exception e) {
              remoteSaveData(OTViewer.HTTP_POST);
            }
          }
 else {
            remoteSaveData(OTViewer.HTTP_POST);
          }
        }
 catch (        Exception e) {
          JOptionPane.showMessageDialog((Frame)SwingUtilities.getRoot(OTViewer.this),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          e.printStackTrace();
        }
      }
 else {
        if (currentAuthoredFile == null) {
          saveAsAction.actionPerformed(arg0);
          return;
        }
        if (checkForReplace(currentAuthoredFile)) {
          try {
            ExporterJDOM.export(currentAuthoredFile,xmlDB.getRoot(),xmlDB);
            xmlDB.setDirty(false);
          }
 catch (          Exception e) {
            e.printStackTrace();
          }
        }
      }
    }
  }
;
  saveAsAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      Frame frame=(Frame)SwingUtilities.getRoot(OTViewer.this);
      MostRecentFileDialog mrfd=new MostRecentFileDialog("String_Node_Str");
      mrfd.setFilenameFilter("String_Node_Str");
      if (currentAuthoredFile != null) {
        mrfd.setCurrentDirectory(currentAuthoredFile.getParentFile());
        mrfd.setSelectedFile(currentAuthoredFile);
      }
      int retval=mrfd.showSaveDialog(frame);
      File file=null;
      if (retval == MostRecentFileDialog.APPROVE_OPTION) {
        file=mrfd.getSelectedFile();
        String fileName=file.getPath();
        if (!fileName.toLowerCase().endsWith("String_Node_Str")) {
          file=new File(file.getAbsolutePath() + "String_Node_Str");
        }
        if (checkForReplace(file)) {
          try {
            ExporterJDOM.export(file,xmlDB.getRoot(),xmlDB);
            currentAuthoredFile=file;
            currentURL=file.toURL();
            xmlDB.setDirty(false);
          }
 catch (          Exception e) {
            e.printStackTrace();
          }
        }
        frame.setTitle(fileName);
        remoteURL=null;
        updateMenuBar();
      }
    }
  }
;
  saveRemoteAsAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent arg0){
      JPanel panel=new JPanel();
      panel.setBorder(new EmptyBorder(10,10,10,10));
      panel.setLayout(new BorderLayout());
      JLabel prompt=new JLabel("String_Node_Str");
      prompt.setBorder(new EmptyBorder(0,0,10,0));
      JTextField textField=new JTextField();
      if (remoteURL == null) {
        textField.setText("String_Node_Str");
      }
 else {
        textField.setText(remoteURL.toString());
      }
      JPanel checkboxPanel=new JPanel();
      JCheckBox restCheckbox=new JCheckBox("String_Node_Str");
      restCheckbox.setSelected(Boolean.getBoolean(OTViewerHelper.REST_ENABLED_PROP));
      checkboxPanel.setBorder(new EmptyBorder(5,5,0,0));
      checkboxPanel.add(restCheckbox);
      panel.add(prompt,BorderLayout.NORTH);
      panel.add(textField,BorderLayout.CENTER);
      panel.add(checkboxPanel,BorderLayout.SOUTH);
      int returnVal=CustomDialog.showOKCancelDialog((Frame)SwingUtilities.getRoot(OTViewer.this),panel,"String_Node_Str",false,true);
      if (returnVal == 0) {
        try {
          remoteURL=new URL(textField.getText());
          System.setProperty(OTViewerHelper.REST_ENABLED_PROP,Boolean.toString(restCheckbox.isSelected()));
          remoteSaveData(OTViewer.HTTP_POST);
          updateMenuBar();
        }
 catch (        Exception e) {
          System.err.println("String_Node_Str");
          JOptionPane.showMessageDialog((Frame)SwingUtilities.getRoot(OTViewer.this),"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
          e.printStackTrace();
        }
      }
 else {
      }
    }
  }
;
  exportImageAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      Component currentComp=bodyPanel.getCurrentComponent();
      Util.makeScreenShot(currentComp);
    }
  }
;
  exportHiResImageAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      Component currentComp=bodyPanel.getCurrentComponent();
      Util.makeScreenShot(currentComp,2,2);
    }
  }
;
  debugAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serizile here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      Object source=e.getSource();
      if (((JCheckBoxMenuItem)source).isSelected()) {
        System.setProperty(OTViewerHelper.DEBUG_PROP,"String_Node_Str");
      }
 else {
        System.setProperty(OTViewerHelper.DEBUG_PROP,"String_Node_Str");
      }
      try {
        reloadWindow();
      }
 catch (      Exception exp) {
        exp.printStackTrace();
      }
      SwingUtilities.invokeLater(new Runnable(){
        public void run(){
          updateMenuBar();
        }
      }
);
      exportToHtmlAction.setEnabled(true);
    }
  }
;
  showConsoleAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      if (consoleFrame != null) {
        consoleFrame.setVisible(true);
      }
    }
  }
;
  reloadWindowAction=new AbstractAction("String_Node_Str"){
    /** 
 * nothing to serialize here
 */
    private static final long serialVersionUID=1L;
    public void actionPerformed(    ActionEvent e){
      try {
        reload();
      }
 catch (      Exception e1) {
        e1.printStackTrace();
      }
    }
  }
;
  exitAction=new ExitAction();
}