Package com.arjuna.ats.arjuna.exceptions

Examples of com.arjuna.ats.arjuna.exceptions.FatalError


          {
            tsLogger.arjLoggerI18N.fatal("com.arjuna.ats.arjuna.common.Uid_4", new Object[]
            { uidString });
          }

          throw new FatalError(
              tsLogger.log_mesg.getString("com.arjuna.ats.arjuna.common.Uid_2"));
        }
      }
      else
      {
        if (tsLogger.arjLoggerI18N.isFatalEnabled())
        {
          tsLogger.arjLoggerI18N.fatal("com.arjuna.ats.arjuna.common.Uid_5", new Object[]
          { uidString });
        }

        throw new FatalError(
            tsLogger.log_mesg.getString("com.arjuna.ats.arjuna.common.Uid_3")
                + uidString);
      }
    }
  }
View Full Code Here


    if (txojLogger.aitLoggerI18N.isFatalEnabled())
    {
        txojLogger.aitLoggerI18N.fatal("CadaverLockRecord_1");
    }
   
    throw new FatalError(txojLogger.log_mesg.getString("com.arjuna.ats.txoj.CadaverLockRecord_1"));
      }
     
      return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
  }
  else
View Full Code Here

    if (txojLogger.aitLoggerI18N.isFatalEnabled())
    {
        txojLogger.aitLoggerI18N.fatal("com.arjuna.ats.txoj.CadaverLockRecord_2");
    }
   
    throw new FatalError(txojLogger.log_mesg.getString("com.arjuna.ats.txoj.CadaverLockRecord_2"));
      }
   
      CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName);
     
      return (manager.propagate(super.actionHandle.get_uid(), super.actionHandle.parent().get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
View Full Code Here

    if (txojLogger.aitLoggerI18N.isFatalEnabled())
    {
        txojLogger.aitLoggerI18N.fatal("com.arjuna.ats.txoj.CadaverLockRecord_3");
    }
   
    throw new FatalError(txojLogger.log_mesg.getString("com.arjuna.ats.txoj.CadaverLockRecord_3"));
      }

      CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName);

      return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
View Full Code Here

    if (txojLogger.aitLoggerI18N.isFatalEnabled())
    {
        txojLogger.aitLoggerI18N.fatal("com.arjuna.ats.txoj.CadaverLockRecord_4");
    }
   
    throw new FatalError(txojLogger.log_mesg.getString("com.arjuna.ats.txoj.CadaverLockRecord_4"));
      }

      CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName);

      return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
View Full Code Here

        } while (_theSocket == null && ++port < maxPort);

        _thePort = ((_theSocket == null) ? -1 : _theSocket.getLocalPort());

        if (_thePort == -1) {
            throw new FatalError(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.utils.SocketProcessId_2"));
        }
    }
View Full Code Here

      dir = dir + File.separator + "tmp";

        File tmpDir = new File(dir);

        if (tmpDir.isDirectory() == false && tmpDir.mkdirs() == false)
      throw new FatalError(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.utils.FilePocessId_1"));

        for (int i = 0; i < retry; i++)
        {
      try
      {
          File f = new File(dir + File.separator+ "pid " + pid);

          if (f.createNewFile())
          {
        f.deleteOnExit()// problem if we crash?

        processId = pid;
       
        break;
          }
          else
        pid++;
      }
      catch (IOException e)
            {
      }
        }

        if (processId == 0)
      throw new FatalError(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.utils.FilePocessId_2"));
    }
      }
  }

  return processId;
View Full Code Here

       */

      if (tsLogger.arjLoggerI18N.isWarnEnabled())
    tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.StateManager_13");
     
      throw new FatalError(tsLogger.log_mesg.getString("com.arjuna.ats.arjuna.StateManager_14"));
   
      //    objectStore = new ObjectStore(ArjunaNames.Implementation_ObjectStore_VolatileStore(), storeRoot);
  }

  /*
 
View Full Code Here

    {
      if (tsLogger.arjLoggerI18N.isFatalEnabled())
        tsLogger.arjLoggerI18N
            .fatal("com.arjuna.ats.internal.arjuna.objectstore.JDBCStore_5");

      throw new FatalError(
          tsLogger.log_mesg
              .getString("com.arjuna.ats.internal.arjuna.objectstore.JDBCStore_5"));
    }

    try
View Full Code Here

      if (drop == 1)
    _dropTable = true;
  }
  catch (Exception ex)
  {
      throw new FatalError(toString()+" : "+ex);
  }

  if (_url == null)
      throw new FatalError(toString()+" : invalid ObjectName parameter!");
    }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.exceptions.FatalError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.