Exceptions vs Prevention

Would it be better to throw an exception if someone kept popping elements that werent in the stack? Like if the top was 0 and they did a pop, leave top at 0 and ignore it, or throw exception?

in my pop im just removing elements, gonna use topto
view the top of stackHow is your stack implemented? If there's a method to
query its state (empty or not), then throw an
exception. But I wouldn't want to have to catch an
exception if I simply want to pop it until it's
empty. In that case, I'd expect null to be returned
or something.Make the exception unchecked then. That way, you do not have to catch or throw it in caller code. You can always use the inspection method you described earlier to ensure you do not receive the unchecked exception (ala ArrayIndexOutOfBounds). If someone does make a programming mistake using the Stack, then the unchecked exception should be thrown.
- Saish

Similar Messages

  • Microsoft Websites using non-standard URL lengths to libraries causing firewall exceptions which prevent service usability

    Hi,
    Myself and
    other Microsoft customers have been experiencing a problem behind our corporate firewalls with accessing Microsoft services (Microsoft.com, most Microsoft Support pages, Microsoft Downloads, etc.). I previously had the same problem early August with SharePoint
    Online but that appears to have been corrected (at least for now).
    The symptom:
    Microsoft Webpage contents load but then the whole pages appear blank (in Chrome and IE 11). The body style is set to "visibility:hidden;".
    The cause:
    Many Microsoft websites use scripts/libraries from http://ots.optimize.webtrends.com and these particular URL's are extremely long and in a bizarre way. In this instance, it's sending Chrome and IE 11 webclients to a URL that is 3472 characters in length (that's
    over 3.3KB for just the URL) and the URL retrieves a JS function call that's 157 characters in length.
    Our corporate firewall is blocking HTTP GET requests to URL lengths greater than a particular length (to prevent infected web-clients from exploiting external web servers). I believe it's set to 2048 characters by default.
    The workaround:
    Set useragent string to IE 10 or lower. It doesn't serve pages that include such long URL lengths in these cases.
    Modify the style of the page in developer mode and set visibility:visible on the body. Works in IE or Chrome then.
    Convince IT to change our corporate firewall to ignore URL Path Length restrictions
    I'm convinced that this is a bug from Microsoft for many reasons: 
    Microsoft claims IE's maximum URL length is 2083 characters. See
    here.
    It's arguably poor form to be requiring kilobytes of data just to locate a resource(such as a .js file)
    It's wasting Microsoft's bandwidth. Using 3472 bytes to retrieve 157 bytes that run a function (in another .js file from MS) that sets the body style.
    It's preventing Microsoft customers that are using IE11 on Windows 7/8, who are behind firewalls that check URL Path Length's, from using Microsoft services.
    It does appear to serve content that is unique to the request but there's got to be a better way to accomplish whatever it is MS is actually trying to accomplish with the contents:
    WTOptimize.fireEvent(new WTEvent(WTEvent.CONTROL_PART, WTEvent.STATUS_SUCCESS, {control:"WT3VtgdmLPVOceeXKd8U15PFuYs7rn2UxwpN_67li21nuTEqahNZFhhiLz-KXk~"}));
    Is it trying to display the content on modern browsers only after the page has successfully loaded? I'm not sure, but that's what it's looking like to me.

    Hi,
    I do need more time to make test for your problem. Please be patient.
    Thanks for your understanding.
    Roger Lu
    TechNet Community Support

  • How to get rid of the Exceptions

    When I tried to open the client i.e User interface which is MainMenuApp received NO_PERMISSION CORBA exception while attempting to get an initial reference to the mvcf_ControllerFactory from the FactoryFinder. Software defect that should be addressed is that the UI did not recover after catching the exception and required a restart of the UI to connect.
    The problem is that cleanWorkspace() in CorbaAdapter doesn't have any failover logic in it at all. The adapter is assumed to be good and if it is not cleanWorkspace() attempts to use a factory that doesn't exist. This throws an uncaught NullPointerException that blows out to MainMenuApp where it is interpreted as a fatal exception and prevents the main menu from starting. So please help me in writing the failover logic in CorbaAdapter
    The code for cleanWorkspace is
    * Cleans up the entire logical positions workspace.
    * @throws AdapterException UserError or Error occured
    public synchronized void cleanWorkspace() throws AdapterException
    cut_ContextInitData cid = getContextInitData();
    cid.clientId = "*";
    MVC2CleanWorkspaceCmd cmd = new MVC2CleanWorkspaceCmd(cid);
    execute(cmd);
    I am giving the whole logic of Corba Adapter. This might help:
    package com.ge.trans.tms.comm;
    import java.util.*;
    import org.omg.CORBA.CompletionStatus;
    import com.beasys.Tobj.FactoryFinder;
    import com.ge.trans.tms.ui.util.ExceptionHandler;
    import com.ge.trans.tms.util.Log;
    import com.ge.trans.tms.util.StringUtils;
    import com.ge.trans.tms.forms.mainmenu.Globals;
    import pds.cut_IDLCommon.cut_ContextInitData;
    import pds.cut_IDLCommon.cut_ValidationResult;
    import pds.cut_IDLContainers.cut_KeyValuePair;
    import pds.cut_IDLContainers.cut_KeyValueSequenceHolder;
    import pds.cut_IDLContainers.cut_StringSeqSeqHolder;
    import pds.cut_IDLContainers.cut_StringSequenceHolder;
    import pds.cut_IDLExceptions.cut_Error;
    import pds.cut_IDLExceptions.cut_InternalError;
    import pds.cut_IDLExceptions.cut_UserError;
    import pds.cut_IDLExceptions.cut_ModelNotFoundError;
    import pds.cut_IDLExceptions.cut_DBDeadlockError;
    import pds.mvct.mvct_ParentTableInfo;
    import com.ge.trans.tms.util.BM;
    import pds.mvcs_ControllerFactory;
    import pds.mvcs_ControllerFactoryHelper;
    import pds.mvcs_ControllerProxy;
    * Title: CorbaAdapter Description: This class provides a generic, 100% java
    * interface for its clients (UI for example) to create, query, and modify
    * remote data models. The methods in this class foward client requests through
    * calls on generated Java/Corba client stubs with disregard to the server-side
    * controller/model objects location or language implementation. This is
    * currently the only portal for the clients to communicate with the
    * server-side model/controller framework. Therefore, this class should mirror
    * the complete model/controller interface as provide in the mvcs_Controller
    * idl. This class provides constructors that hide all Corba initialization and
    * messaging implementation from its clients.
    public class CorbaAdapter extends AbstractAdapter
    protected String factoryDomainSuffix = "MVC";
    private mvcs_ControllerFactory factory;
    private mvcs_ControllerProxy controller;
    public synchronized mvcs_ControllerProxy getController()
    return controller;
    protected String getFactoryDomainSuffix() {
    return _factoryDomainSuffix;
    * Constructor Initializes the connection and generic factory finder. This
    * constructor should be used when the cleint does not want to immediately
    * create a new handle (controller) to a new or existing model. <p>
    * Preconditions: none
    * @param domain
    * @param listener <p>
    * Postconditions: If domain is null, then
    * AdapterConstants.DEFAULT_DOMAIN will be used as the domain name. If
    * listener is null, neither the caller or any other client will
    * receive error messages
    public CorbaAdapter(
    String domain,
    MessageListener listener,
    ConnectionListener connectionListener,
    boolean uniqueConnection ) throws AdapterException
    this(domain, listener, connectionListener, uniqueConnection, true);
    public CorbaAdapter(
    String domain,
    MessageListener listener,
    ConnectionListener connectionListener,
    boolean uniqueConnection,
    boolean geoAdapter ) throws AdapterException
    super( listener );
    setDomain( domain );
    _geoPartitioned = geoAdapter;
    //flag to stop retrying after failure to find factory
    this.uniqueConnection = uniqueConnection;
    String param = System.getProperty(AdapterConstants.POOLED_CONNECTION);
    if((param != null) && (param.equals("true"))) {
    this.pooledConnection = true;
    initialize();
    protected Connection makeConnection() throws Exception
    Connection connection = null;
    if( !pooledConnection )
    connection = (CorbaConnection)ConnectionFactory.getDefaultConnection(
    new ConnectionListener[] { this, additionalConnectionListener } );
    else
    String tempDomain = "";
    if(domain.equals("LOGICAL_POSITION")) {
    tempDomain = "MVC_LOGICAL_POSITION";
    } else {
    tempDomain = domain;
    connection = (CorbaConnection)
    PooledConnectionFactory.instance().getPooledConnection(tempDomain);
    if(connection != null) {
    connection.addConnectionListeners(
    new ConnectionListener[] { this, additionalConnectionListener } );
    return connection;
    * clients should never call this method as this is a the destructor for
    * this class and should only be called by the system before the garbage
    * collector sweeps away this object NOTE: there is no guarantee when the
    * system will call this method, so if a resource is in short supply,
    * manage that resource another way
    protected void finalize()
    if(Log.isEnterEnabled())Log.enter( CorbaAdapter.class, "Entering finalize..." );
    // cannot enusre all clients call cleanup fromt their code
    // so do this is defensive programming
    cleanup();
    if(Log.isLeaveEnabled())Log.leave( CorbaAdapter.class, "Leaving finalize..." );
    /** This should only be called when the adapter knows that it's
    * current connection has been repaired and the adapater's current
    * workspace (remote stub) needs to be initialized using the new connection
    * (IOR for new server).
    * This method should only be called from another which has a lock on the
    * current connection. Currently this method is only called from
    * verifyConnectionStatus().
    private boolean convertController()
    if ( controller == null ) {
    Log.error(CorbaAdapter.class, "convertController()",
    "CONVERT_CONTROLLER CALLED WITH CONTROLLER == NULL",
    new Exception("Fix Me"));
    MVC2ConvertControllerCmd cmd = new MVC2ConvertControllerCmd();
    execute(cmd);
    return (((String) cmd.getReturnValue()).equals(AdapterConstants.SUCCESS));
    * Initializes an existing adapter to a new controller/model.
    * @return AdapterConstants.ERROR or AdapterConstants.SUCCESS
    public synchronized String setController()
    AbstractCmd cmd = new MVC2SetControllerCmd();
    execute(cmd);
    Log.debug (getClass (), "returning from set controller :"+(String) cmd.getReturnValue());
    return ((String) cmd.getReturnValue());
    * Initializes an existing adapter to a new controller/existing model using
    * the current domain name and user data <p>
    * Preconditions:
    * @param domainName must represent a valid domain name
    * @param businessKey must represent a valid business key of an existing
    * model in the database. <p>
    * Postconditions: If the adapter has a initailized controller it is
    * uninitialized notifies registered MessageListener if businessKey
    * does not represent a valid model that already exists in the
    * database. notifies registered UIIFatalMessageListener of all fatal
    * server errors
    * @return Description of the Return Value
    * @returns AdapterConstants.SUCCESS or AdapterConstants.ERROR
    public synchronized String setController(Map businessKey)
    AbstractCmd cmd = new MVC2SetControllerCmd(businessKey);
    execute(cmd);
    Log.debug (getClass (), "returning from set controller bus key:"+(String) cmd.getReturnValue());
    return ((String) cmd.getReturnValue());
    private boolean clientInitialized()
    return clientInitialized( true );
    private boolean clientInitialized( boolean remoteStub )
    forceConnectionChange = false;
    if(getController()==null)
    Log.info(CorbaAdapter.class,
    "clientInitialized()",
    "(getController()==null):'"+(getController()==null)+"'");
    // obtain lock on used by this adapter and its' connection
    // before checking any values that could be changed by a shared
    // connection in another thread
    synchronized( this.adapterConnectionMonitor )
    if( !this.connectionRepaired && !this.connectionBroken )
    if( !healthyConnection )
    Log.debug(CorbaAdapter.class,
    "clientInitialized()",
    "connectionRepaired:'"+connectionRepaired+"' "+
    "connectionBroken:'"+connectionBroken+"' "+
    "healthyConnection:'"+healthyConnection+"' "+
    "calling fireFatalErrorHandler with 'AdapterConstants.NULL_CONNECTION'");
    fireFatalErrorHandler( AdapterConstants.NULL_CONNECTION );
    return false;
    else if( !healthyRemoteFactory )
    Log.debug(CorbaAdapter.class,
    "clientInitialized()",
    "connectionRepaired:'"+connectionRepaired+"' "+
    "connectionBroken:'"+connectionBroken+"' "+
    "healthyRemoteFactory:'"+healthyRemoteFactory+"' "+
    "calling fireFatalErrorHandler with 'AdapterConstants.NULL_REMOTE_FACTORY'");
    fireFatalErrorHandler( AdapterConstants.NULL_REMOTE_FACTORY );
    return false;
    else if( remoteStub && !healthyRemoteStub )
    Log.debug(CorbaAdapter.class,
    "clientInitialized()",
    "connectionRepaired:'"+connectionRepaired+"' "+
    "connectionBroken:'"+connectionBroken+"' "+
    "remoteStub:'"+remoteStub+"' "+
    "healthyRemoteStub:'"+healthyRemoteStub+"' "+
    "calling fireFatalErrorHandler with 'AdapterConstants.NULL_REMOTE_STUB'");
    fireFatalErrorHandler( AdapterConstants.NULL_REMOTE_STUB );
    return false;
    return true;
    } // release lock on used by this adapter and its' connection
    * This method should be called when the client has finished working with
    * the controller. <p>
    * Preconditions: controller (domain specific remote stub) must be
    * initialized. <p>
    * Postconditions: Cleans up any session state and removes the client's
    * workspace from existence. After this method is called, the client will
    * no longer be able to make calls on the controller without obtaining
    * another controller reference and re-initializing. Any changes made by
    * the client since calling commitChanges() are lost (i.e., the client is
    * responsible for calling commitChanges() before exiting).
    * @return AdapterConstants.SUCCESS or AdapterConstants.ERROR
    public synchronized String exit()
    AbstractCmd cmd = new MVC2ExitCmd();
    execute(cmd);
    String returnValue = (String) cmd.getReturnValue();
    if(returnValue.equals(AdapterConstants.SUCCESS))
    controller = null;
    healthyRemoteStub = false;
    return returnValue;
    * Reports whether adapters controller is currently initialized
    * @return The active value
    public synchronized boolean isActive()
    // obtain lock used by this adapter so that another method can NOT be
    // called on this adapter instance from another thread at the same
    // time
    synchronized( this.adapterConnectionMonitor )
    return ( controller != null );
    * Preconditions: the controller is initialized Postconditions: Returns the
    * domain name from the model we are controlling. <p>
    * notifies registered UIIFatalMessageListener of all fatal server errors
    * @return The domainName value or AdapterConstants.ERROR
    public synchronized String getDomainName() // throws cut_InternalError
    AbstractCmd cmd = new MVC2GetDomainNameCmd();
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: the controller is initialized Postconditions: Returns a
    * "user context," set by the user of this controller and otherwise not
    * used by the mvc2 framework. Context is data only kept in the controller
    * (if at all) and not the model. <p>
    * notifies registered UIIFatalMessageListener of all fatal server errors
    * @return The context value or AdapterConstants.ERROR
    public synchronized String getContext() // throws cut_InternalError
    AbstractCmd cmd = new MVC2GetContextCmd();
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: the controller is initialized
    * @param value saved as a "user context," set by the user of this
    * controller and used by domain or customer derived controllers. <p>
    * notifies registered UIIFatalMessageListener of all fatal server
    * errors
    * @return AdapterConstants.ERROR or AdapterConstants.SUCCESS
    public synchronized String setContext( String value )
    AbstractCmd cmd = new MVC2SetContextCmd(value);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Sets a key on the server.
    * @param property key to set
    * @param value value
    * @return String retruned by service provider or Adapter.ERROR
    public synchronized String setValue( String key, String value )
    AbstractCmd cmd = new MVC2SetValueCmd(key, value);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: the controller has been initialized
    * @param property is a valid property of the model <p>
    * Postconditions: notifies registered UIMessageListeners if property
    * is not valid notifies registered UIIFatalMessageListener(s) of any
    * fatal server errors
    * @return The value value
    * @returns the current value of the specified property or
    * AdapterConstants.ERROR
    public synchronized String getValue( String property ) // throws cut_InternalError
    AbstractCmd cmd = new MVC2GetValueCmd(property);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: the controller has been initialized and propertyValueMap
    * is not null All properties given is propertyValueMap are valid
    * properties of the model.
    * Postconditions: All values for the properties in the map are added to
    * the map.
    * @param propertyValueMap each KeyValuePair element will have its value
    * set based on its key notifies registered UIMessageListeners if any
    * property given in the map is not a valid property of the model. If
    * this happens, the map is unchanged. notifies registered
    * UIIFatalMessageListener(s) of any fatal server errors
    * @return The values value
    * @returns AdapterConstants.SUCCESS or
    * AdapterConstants.ERROR
    public synchronized String getValues( Map propertyValueMap )
    AbstractCmd cmd = new MVC2GetValuesCmd(propertyValueMap);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: controller has been initialized and propertyValueMap is
    * not null <p>
    * Postconditions: All properties and their associated values are added to
    * the propertyValueMap. Prior contents of the map are NOT erased.
    * @param propertyValueMap will be cleared then filled with KeyValuePair
    * object references notifies registered UIIFatalMessageListener(s) of
    * any fatal server errors <p>
    * @return The allValues value
    * @returns AdapterConstants.SUCCESS or
    * AdapterConstants.ERROR NOTE: The actual definition of what "all
    * values" mean is left to the designers of the UI and the Controller
    * but should reflect what is in the models' metamodel
    public synchronized String getAllValues( Map propertyValueMap )
    AbstractCmd cmd = new MVC2GetAllValuesCmd(propertyValueMap);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Invoke a method on controller.
    * @param method Method to invoke on controller
    * @param values input/output values sent and returned from controller
    * @return String from service on success or AdapterConstrants.ERROR
    public synchronized String invokeMethod( String method, List values )
    AbstractCmd cmd = new MVC2InvokeMethodCmd(method, values);
    execute(cmd);
    return (String) cmd.getReturnValue();
    * Preconditions: the controller has been initialized Postconditions:
    * Validates the state of the model for committing, copies the transient
    * model to the persistent model, and commits it to the database. <p>
    * reports a user error(s) to registered MessageListener s if the state of
    * the model is not a valid one for commiting. reports all fatal server
    * errors to registered UIIFatalMessageListener s <p>
    * @return Description of the Return Value
    * @returns AdapterConstants.ERROR or AdapterConstants.SUCCESS
    public synchronized String commitChanges()
    AbstractCmd cmd = new MVC2CommitChangesCmd();
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: the controller has been initialized. Postconditions:
    * Aborts all changes to the model since commitChanges() was last called.
    * <p>
    * reports all fatal server errors to registered UIIFatalMessageListener s
    * <p>
    * @return Description of the Return Value
    * @returns AdapterConstants.ERROR or AdapterConstants.SUCCESS
    public synchronized String abortChanges()
    AbstractCmd cmd = new MVC2AbortChangesCmd();
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: the controller has been initialized and columnName is not
    * null
    * @param tableName must be a valid table of the model.
    * @param columnName is a valid column in the table of the model.
    * @param rowNum is a valid row in the table of the model.
    * @param parents used if the table is a subtable of another table, its
    * parent table(s) info must be specified and must be valid. If the
    * table is not a subtable, then parents should be empty. <p>
    * Postconditions: <p>
    * asserts columnName or rowNum have valid values for the table asserts
    * the information in parents is valid and complete; reports to
    * registered MessageListener s if the table is not a table of the
    * model
    * @return The tableValue value
    * @todo talk to Kelly because an invalid table name should
    * not be a user error but a programming error reports all fatal server
    * errors to registered UIIFatalMessageListener s <p>
    * @returns the value of the table element located in the
    * specified column at the specified row or AdapterConstants.ERROR
    public synchronized String getTableValue(
    String tableName,
    String columnName,
    int rowNum,
    ParentTableInfo[] parents )
    AbstractCmd cmd = new MVC2GetTableValueCmd(tableName, columnName, rowNum, parents);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * @param tableId The new tableValue value
    * @param columnName The new tableValue value
    * @param row The new tableValue value
    * @param value The new tableValue value
    * @return Description of the Return Value
    * @see setTableValue(String tableName, String columnName,
    * int rowNum, String value, ParentTableInfo[] parents) for method
    * contract
    public synchronized String setTableValue(
    String tableId,
    String columnName,
    int row,
    String value )
    return setTableValue( tableId, columnName, row, value,
    ( ( ParentTableInfo[] ) null ) );
    * Preconditions: asserts the controller has been initialized and
    * columnName is not null
    * @param tableName must be a valid table of the model.
    * @param columnName is a valid column in the table of the model.
    * @param rowNum is a valid row in the table of the model.
    * @param value is a valid value of the tables column and row (cell)
    * @param parents used if the table is a subtable of another table, its
    * parent table(s) info must be specified and must be valid. If the
    * table is not a subtable, then parents should be empty. <p>
    * Postconditions: Sets the value of the table cell located in the
    * specified column at the specified rowNum to the new value. <p>
    * asserts both the columnName or rowNum have valid values for the
    * table asserts the information in parents is valid and complete
    * reports to registered MessageListener s if the table is not a table
    * of the model and if the value is not a valid value for the cell of
    * the table reports all fatal server errors to registered
    * UIIFatalMessageListener s
    * @return Description of the Return Value
    * @returns the value that the table cell is set to or
    * AdapterConstants.ERROR
    public synchronized String setTableValue(
    String tableName,
    String columnName,
    int rowNum,
    String value,
    ParentTableInfo[] parents )
    AbstractCmd cmd = new MVC2SetTableValueCmd(tableName, columnName,
    rowNum, value, parents);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * Preconditions: the controller has been initialized and tableName is not
    * null
    * @param tableName must be a valid table of the model.
    * @param parents used if the table is a subtable of another table, its
    * parent table(s) info must be specified and must be valid. If the
    * table is not a subtable, then parents should be empty. <p>
    * Postconditions: <p>
    * asserts the information in parents argument is valid and complete.
    * reports to registered MessageListener s if table is not a valid
    * table reports all fatal server errors to registered
    * UIIFatalMessageListener s
    * @return The numberOfRows value
    * @returns the number of rows in the table if successful, else -1
    public synchronized int getNumberOfRows(
    String tableName,
    ParentTableInfo[] parents )
    AbstractCmd cmd = new MVC2GetNumberOfRowsCmd(tableName, parents);
    execute(cmd);
    Object returnValue = cmd.getReturnValue();
    if(returnValue.equals(AdapterConstants.ERROR))
    return -1;
    return ((Integer) cmd.getReturnValue()).intValue();
    * Preconditions: the controller has been initialized and tableName is not
    * null
    * @param tableName must be a valid table of the model.
    * @param parents used if the table is a subtable of another table,
    * its parent table(s) info must be specified and must be valid. If the
    * table is not a subtable, then parents should be empty.
    * @param rowPosition represents the (zero-based) position where you want
    * the new row <p>
    * Postconditions: Adds one row to the table at the specified position.
    * <p>
    * asserts that the rowPosition is within range to add to the table
    * asserts that the information in parents is valid and complete.
    * reports to registered MessageListener s if table is not a valid
    * table and if it is not valid to add the row to the specified
    * position reports all fatal server errors to registered
    * UIIFatalMessageListener s
    * @return Description of the Return Value
    * @returns the new row number of the inserted row if
    * successful, else -1
    public synchronized int addRow(
    String tableName,
    int rowPosition,
    ParentTableInfo[] parents )
    AbstractCmd cmd = new MVC2AddRowCmd(tableName, rowPosition, parents);
    execute(cmd);
    return ((Integer) cmd.getReturnValue()).intValue();
    * Preconditions: the controller has been initialized, tableName is not
    * null, and rowsToDelete is not null or empty
    * @param tableName must be a valid table of the model.
    * @param parents used if the table is a subtable of another table,
    * its parent table(s) info must be specified and must be valid. If the
    * table is not a subtable, then parents should be empty.
    * @param rowsToDelete all rows specified in this container must exist in
    * the table 'tableName' <p>
    * Postconditions: Deletes all rows specified in rowsToDelete from the
    * table. <p>
    * asserts all row indexes in rowsToDelete are valid asserts the
    * information in parents argument is valid and complete reports to
    * registered MessageListener s if the 'tableName' is not a valid table
    * of the model and if it is not valid to delete the rows at the
    * specified positions reports all fatal server errors to registered
    * UIIFatalMessageListener s
    * @return Description of the Return Value
    * @returns AdapterConstants.SUCCESS or AdapterConstants.ERROR
    public synchronized String deleteRows(
    String tableName,
    int[] rowsToDelete,
    ParentTableInfo[] parents )
    AbstractCmd cmd = new MVC2DeleteRowsCmd(tableName, rowsToDelete, parents);
    execute(cmd);
    return ((String) cmd.getReturnValue());
    * This method retrieves all values for a specified row. The value in each
    * column is retrieved and stored in the row container. The row container
    * is column ordered. Prior contents in the row container are lost as the
    * container is initialized within this method. <p>
    * Preconditions: the controller has been initialized and the container
    * 'row' is not null
    * @param tableName must be a valid table of the model.
    * @param rowPosition represents a valid row in the table.
    * @param parents used if the table is a subtable of another table,
    * its parent table(s) info must be specified and must be valid. If the
    * table is not a subtable, then parents should be empty.
    * @param row container which will be filled with the specified
    * table rows values <p>
    * Postconditions: asserts that rowPosition is valid (i.e not out of
    * range) asserts the information in parents argument is valid and
    * complete asserts that the container row is a valid as an
    * input/output parameter (i.e. not null) reports to registered
    * MessageListener s if tableName is not a valid table of the model
    * reports all fatal server errors to registered
    * UIIFatalMessageListener s
    * @return The row value
    * @returns AdapterConstants.SUCCESS or AdapterConstants.ERROR
    * <p>
    * NOTE: All columns and all rows have zero-based indices.
    public synchronized String getRow(
    String tableName,
    int rowPosition,
    List row,
    ParentTableInfo[] parents )
    AbstractCmd cmd = new MVC2GetRowCmd(tableName, rowPosition, row, paren

    Please can u answer it fast

  • Handling exceptions of third party modules

    Hello,
    could you please help with handling exceptions in a right way from third party modules such as Smaato Advertising, how and where I can handle these exceptions to prevent app crash? One developer said his app sometimes crashes because of Smaato's
    module and he decided to delete it.

    Try to handle the exception in the
    Application.UnhandledException event.
    Ugly but should work.

  • Structural Exception During Auto Imports In MDM

    Hi All,
    We are facing a problem while auto importing bulk data.
    System is throwing structural exception and preventing data from importing automatically.
    Is there any way that we could identify which segment in XML is causing this structural exception?
    Also if we try to import data manually by loading the XML file, system throws a message "Unknown Exception".
    Is there a possibility that some data in XML will be causing this problem?
    Kindly provide your valuable inputs. Thank You.
    Regards,
    Ankush Bhardwaj

    Hi,
    I have checked the settings for the Port and Block on Structural Exception is already set to Yes.
    And Save Update did not help either.
    Apart from this, Log files for MDIS server points to some error saying ImportRecordSliceInternal471.
    So we are now trying to change Slicing Parameter for Import in MDS.ini and see if it still throws exceptions or not.
    Please suggest if i could try some other thing also.
    Also i have one question as to if this problem could be due to the Data in the XML file because we have so many qualified Table links to be updated along with Main table record values?
    Thank You.

  • Document Parsing and Exceptions

    I'm working on an application that accesses an Oracle database that goes down for a few hours each night for backups. If the application is accessed during this period an SQLException is thrown that is displayed at the top of my page, but the rest of the form is still displayed. I want to redirect them to a system maintenance message if this occurs, but a response.redirect does not work within my catch block.
    The form template text is after the Java code and I thought that an exception would prevent it from being displayed.
    Any suggestions on how to handle this?

    Hmm... I tried redirecting in the catch and it did not work before. I just tried it again and it did redirect. I don't believe I commented the e.printStackTrace(); method before though.

  • Uncaught exception puts tomcat on 100% CPU

    Hi all,
    we have a JSF 1.1 application on Tomcat 6.0.13 and have a problem with exceptions. In fact when an uncaught exception occurs, it is logged but then afterwards tomcat gets stuck in 100% CPU for garbage collection.
    Here is an example error:
    java.io.IOException: FileUtils.WriteToFile failed, got: java.io.FileNotFoundException: C:\test\GEARO\UPLOAD\C:\Documents and Settings\Sede\Desktop\apache-tomcat-6.0.14.zip (The filename, directory name, or volume label syntax is incorrect)
         at be.sofico.web.framework.FileUtil.writeFile(FileUtil.java:73)
         at be.sofico.web.extranet.dynamic.files.CustomerUpload.process(CustomerUpload.java:64)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164)
         at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)You can see we use an ajax4jsf filter.
    Is there any possibility to catch these exceptions and prevent tomcat from blocking the whole application?
    Thanks

    Hi,
    Our application use Tomcat 4.1 , I tried using the solution provided by you but it does not work , j2sdk1.4.1_05 is being used , since i am also facing the same problem , tomcat consumes a lot of memory and the application is very slow

  • Access exception text after exception event catch

    Dear all,
    I am trying to handle the exception in the process, and I would like to check and log the details of the exception, because there are difference cause for the same exception.
    I can catch the exception and prevent the process form stall, but would like to know how can I access the exception details text. (Like we done in Java code)
    Thanks in advance
    Regards
    Bill

    Here's my version of a simplified version of your code:
    import java.awt.*;
    import java.awt.event.*;
    import java.net.UnknownHostException;
    import javax.swing.*;
    @SuppressWarnings("serial")
    public class TestClass2 extends JFrame implements ActionListener
      JTextArea textArea;
      TestClass2()
        super();
        JPanel panel = new JPanel(new FlowLayout());
        textArea = new JTextArea();
        textArea.setPreferredSize(new Dimension(panel.getWidth(), 50));
        panel.setOpaque(false);
        getContentPane().add(panel, BorderLayout.NORTH);
        getContentPane().add(textArea);
        JButton clientButton = new JButton("client");
        clientButton.addActionListener(this);
        panel.add(clientButton);
        setLocationRelativeTo(null);
        pack();
        setVisible(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      @Override
      public void actionPerformed(ActionEvent e)
        if (e.getActionCommand().equals("client"))
          JOptionPane.showInputDialog(this,
              "Text", "Title",JOptionPane.QUESTION_MESSAGE);
          textArea.setText("should see text first");
          try
            try
              Thread.sleep(400);
            catch (InterruptedException e1)
            throw new UnknownHostException();
          catch (UnknownHostException ue)
            JOptionPane.showMessageDialog(this,
                "Error Text", "ERROR",
                JOptionPane.ERROR_MESSAGE);
      public static void main(String[] args)
        new TestClass2();
    }These lines:
    InetAddress.getByName(str);
    connectToHost(InetAddress.getByName(str));cause a little delay in your program which I mimicked with a Thread.sleep. This may be why you think you should be seeing the text but aren't.

  • 8 issues JavaFX needs to overcome to be truly successful

    JavaFX is excellent technology but I feel it will never be broadly successful until the following issues are addressed. Note, I am referring to JavaFX running inside a browser as an applet in all these remarks.
    1. Startup Times
    They are just way too slow. On the JavaFX.com home page, the strip of demo thumbnails at the bottom of the page takes over 30 seconds to start on both my Windows machines. I don't think too many people have the time to wait for them to load and will probably navigate to another page wondering what that blank blue strip at the bottom of the page is used for. The Flash versions on the full demos page load almost instantly.
    2. Performance
    It's just way too slow. All the JavaFX.com demos are designed as tiny little applet windows for a reason: as the size of the applet window increases the performance degrades significantly. As a result, JavaFX cannot be seriously considered for a "real" web application which would occupy the entire space available in the browser as it would be simply too sluggish.
    3. JRE
    Obviously JavaFX requires a JRE which has its own inherent problems.
    * Only a subset of desktop PCs have a JRE installed.
    * The JRE is large and takes a long time to download and install.
    * Installing the JRE requires the user to close the browser and then reopen it. If the user has 10 tabs open at the time, this is very inconvenient. Installing Flash does not require this.
    * I believe JavaFX requires Java 6 Update 10 or greater but a large number of people are very reluctant to keep upgrading their JREs and some are stuck on Java 5 or even 1.4.
    4. Progress Indicators
    Are there any? The JavaFX strip I referred to in (1) just appears as blank blue right up until the applet has fully loaded. It clearly needs some kind of progress indicator so that the user knows that something is actually happening. The same applies when a video is being downloaded like in the MediaBox demo. There is just a static screen while this is happening and the user has no way of knowing if the applet is even alive.
    5. Video
    I have tried the JavaFX.com demo MediaBox on 3 machines, a Windows Vista machine, a Windows XP machine and a Ubuntu machine. On the Vista machine running this demo actually crashes the JVM with a "The Java Runtime has stopped working" message and no video is displayed. On the XP machine it thinks for a couple of minutes and then displays a message "The video could not be played at this time". On the Ubuntu machine the demo crashes with a MediaNotSupported exception. That's 3 out of 3 machines that get no video. Does this ever work?
    On an XP machine where I managed to get video to work locally, there appears to be no proper buffering of the video before it's played. It appears to try to download the entire clip before it starts to play it. Clealy this is not going to be satisfactory over the internet.
    6. Dynamic Scipting
    To accomplish true dynamic scripting it appears the applet needs to download the full JavaFX Script compiler (yet another large JAR) and even then it appears to encounter security exceptions that prevent it from running in an applet context.
    7. Fonts
    They are not rendered clearly. Despite what many people claim, JavaFX fonts are not rendered with subpixel antialiasing on any platform I have tried and as a result look blurred and poor. Fonts in JavaFX are just not up to standard for a professional quality application.
    8. Quirks
    One such quirk is that every time I go to run a JavaFX demo it asks me to confirm installation of the JavaFX runtime. Surely once is enough. Another quirk is that when I want to view video I have to OK a security warning. A security warning just to play a video? Not exactly user friendly.
    Would anyone like to comment on these issues? I am very keen to commit to JavaFX as it has some truly excellent features but I need to know that these problems are going to be addressed in the near future.
    Jarrick Chagma

    Hi PhiLho,
    PhiLho wrote:
    Comparing JavaFX to Flash on the pervasiveness ground is a bit unfair. Adobe did a great marketing job in persuading browser makers to distribute it with them. Although if you make a Flash applet needing Flash 9 (for example), and only have Flash 6 installed, you might fall on the inconvenience you describe in 3.True, but the point about Java's pervasiveness was probably the least important of the 8 issues.
    Somehow, it would be fairer to compare JavaFX to Silverlight... :-)Agreed.
    Installing JavaFX runtime (and perhaps Java JRE) might be an issue for small, casual applets, less for "serious" applications where users are motivated to use them. And well, it is mostly true for lot of plugins.Yes but having to close the current browser window is not desirable and hopefully will be addressed.
    1) I agree and JavaFX team agree, looks like Sun is working hard to improve that (on the latest JRE versions) and it might even more improve with Java 7 (with the modularity feature).This really does need to be addressed. Java 6 Update N (10) did wonders for Java startup times in general but there still seems to be an issue here with JavaFX applets. I don't expect that they will ever be fully comparable to Flash and as you point out they don't really need to be but for many of the intended uses of JavaFX startup times need to improve significantly.
    2) Not very fair here. Full screen Flash applets are even more sluggish! Some benchmarks tend to show that JavaFX is much faster than Flash and Silverlight. It was true with 1.0, it is even more with 1.2 and it looks that the JavaFX team works hard to improve even further.I have seen some awesome full-screen Flash applets with no obvious performance issues, I am just not confident the same can be achieved with JavaFX and this is where it needs to excel IMHO. I have not worked with Silverlight so I cannot really comment on its relative performance. Do you have a link to an article detailing those benchmarks? I am not doubting your claim, I'd just like to see them.
    Beside, I don't think a "real" Web application need to do full screen animations, it is more about forms and simple graphical effects.Yes but, as I said, performance of all effects and even simple animations degrades significantly as the applet gets bigger. This is of course to be expected but still needs to improve as I don't see JavaFX being used very often for banners or tiny little applets.
    Of course, we all want better performance in any case.So true!
    3) According to Adobe itself, Java is installed on 81% of computers, which isn't too bad (but much less than the advertised 99% for Flash, but see my first paragraph...). Now, the JRE has to be not too antique, of course. At least Sun has an auto-update ensuring users (that follow it) are not left behind. Note that JavaFX requirement is to run with Java 1.5 (with degraded functionality: no drag to desktop, transparent window, etc.).Yes, it really needs 1.6u10 to perform properly. Java is very ubiquitous but, as I said, many people are still on 1.4, 5 or earlier versions of 6. I guess they have updating turned off or ignore the prompts. Many people are of the impression that their applet or application will only work with earlier versions of Java and not the most recent releases which is quite wrong of course. We need to somehow bust that myth!
    4) I have seen a loading screen in JavaFX, although it was more about progress of data loading than progress of applet loading...Well it's the applet loading that needs to be visualised especially given how long they take to start up. As I said, just clear your JAR cache and load the JavaFX.com homepage and you'll see what I mean.
    5) Not tried much video, can't comment on it.Video is critical in my usage of JavaFX.
    6) Not sure what you mean by dynamic scripting.Being able to create components, objects and effects and animations directly from source at run time. This can be done but doesn't work in applets and requires the full JavaFX Script compiler which is another large JAR to download.
    7) I have seen hacks to make that.Any references? I am extremely fussy about font rendering.
    8) I don't have your problem, it uses the installed runtime without asking. And early demos were heavy on the signing side, requesting unnecessary confirmations for simple animations. Good JNLP tuning avoids that.I get a notification for each applet I run. Clicking on OK or Accept doesn't seem to actually do anything.
    Cheers,
    Jarrick Chagma

  • Getting PetStore to run in WLS 6.1sp3 on Mac OS X 10.2.6?

    Hi all!
    I've read with great interest all the articles relating to WLS running on OS X.
    It's great to read this as I am pretty much the only guy in the entire organisation
    here trying to keep using his Mac.
    I was able to get WLS admin server to run on my PowerBook running OS X 10.2.6.
    However, after stopping the admin server and trying to start the PetStore demo
    server, I've got a few exceptions that prevent the server from starting.
    So, I was wondering how you people, running WLS 6.1 on OS X have configured your
    start scripts. When trying to use the standard jdk that comes with WLS, I'm getting
    an exception. When using the Apple 1.3.1 jdk, I'm getting another exception about
    a missing 'libmuxer' library. Basically, what set of libraries are you using?
    Thanks in advance!
    -Laurent.

    Thanks for the reply, Mark. I finally figured it out by replacing all references
    to the WebLogic provided 1.3.1 jdk by the one provided by Apple and all is well
    now!
    Thanks!
    -Laurent.
    "Mark Griffith" <[email protected]> wrote:
    All you should need (with 7.0 and 8.1) to start WLS is
    "java weblogic.Server"
    As long as your have your classpath set.
    export CLASSPATH=$WLHOME:$WLHOME/server/lib/weblogic.jar
    On my windoze box WLHOME=C:/bea/wls81/weblogic81
    Libmuxer is our native socket muxing code, you don't need it to run you'll
    just use java muxing.
    Sam just posted the libs on another thread.
    Any other exceptions?
    cheers
    mbg
    "Laurent Daudelin" <[email protected]> wrote in message
    news:3eccefbe$[email protected]..
    Hi all!
    I've read with great interest all the articles relating to WLS runningon
    OS X.
    It's great to read this as I am pretty much the only guy in the entireorganisation
    here trying to keep using his Mac.
    I was able to get WLS admin server to run on my PowerBook running OSX
    10.2.6.
    However, after stopping the admin server and trying to start the PetStoredemo
    server, I've got a few exceptions that prevent the server from starting.
    So, I was wondering how you people, running WLS 6.1 on OS X haveconfigured your
    start scripts. When trying to use the standard jdk that comes withWLS,
    I'm getting
    an exception. When using the Apple 1.3.1 jdk, I'm getting anotherexception about
    a missing 'libmuxer' library. Basically, what set of libraries areyou
    using?
    Thanks in advance!
    -Laurent.

  • Error In CMP Generated Code

    I have a CMP 2.0 local entity bean, and when I try to create one from a session bean, I get this:
    java.lang.IllegalStateException: Can not call getPrimaryKey() inside ejbCreate(...) methods, the entity does not have an identity yet, see the EJB 2.0 specification chapter 10.5.4
         at com.evermind.server.ejb.EJBUtils.throwGetPrimaryKeyInEJBCreateException(EJBUtils.java:963)
         at WebLine_EntityBeanWrapper2.getPrimaryKey(WebLine_EntityBeanWrapper2.java:2595)
         at WebLineHome_EntityHomeWrapper16.create(WebLineHome_EntityHomeWrapper16.java:497)In other words, the generated code for the home's create method is calling getPrimaryKey on the generated code for the entity, and this is failing because even the container can't call getPrimaryKey at that time. It doesn't seem to matter what's in my ejbCreate method, unless it throws an exception (which prevents this problem, of course). Looks like a problem with the generated code to me.

    Thanks for that tip. Looking at the generated code, I see:
              boolean imIt = false;
              try
                while(!imIt)
                  if(com.evermind.server.ApplicationServer.DEBUG) debug("In while(!imIt)\n");
                  WebLine_EntityBeanWrapper2 other;
                  other = (WebLine_EntityBeanWrapper2)getWrapperInstance(response.getPrimaryKey(), 90000l, false);That last line is where the error happens (line 520 in the stack trace above). It seems like getPrimaryKey is being called intentionally, to see if the entity is already in the cache or something? Anyway, the generated code for the instance call is:
      public Object getPrimaryKey()
        if(this.primaryKey == null) com.evermind.server.ejb.EJBUtils.throwGetPrimaryKeyInEJBCreateException();
        return this.primaryKey;
      }So that seems reasonable, I suppose. The question is, what is causing the instance to have no PK when the home thinks the PK should be there? I've tried a lot of variants of my code, with no improvement, but I could still be doing something wrong. Also, it only seems to be happening with one bean...

  • Validation of context attributes with adaptive webservice model

    Hi, I am creating a Web Dynpro Java application (on top of Netweaver AS 7.0) using an adaptive webservice model to invoke a webservice.
    The webservice has some request attributes of type string with limited length (for example limited to 1 character). I bound the model to component controller context and created a mapping between the component controller context and view context. In the view, I created a form which is bound to the context attributes.
    When user enters string values, which are longer than the maximum length specified in webservice WSDL, and submits the form, an exception is thrown when Web Dynpro runtime is trying to assign entered values into context attributes:
    com.sap.dictionary.runtime.DdCheckException: Length of character string "abcdef" must be smaller than or same as MaxLength 1;
        at com.sap.dictionary.runtime.DdTypeString.checkValid(DdTypeString.java:195)
        at com.sap.tc.webdynpro.model.webservice.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:304)
        at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.setAttributeValue(WSTypedModelClass.java:62)
        at at.gov.bmf.demo.comp.employee.model.OrganizationalAssignment.setEmployeeGroup(OrganizationalAssignment.java:52)
        at at.gov.bmf.demo.comp.employee.wdp.IPublicEmployeeDemo$IOrganizationalAssignmentElement.wdSetObject(IPublicEmployeeDemo.java:1552)
        ... 32 more
    This exception is thrown before my non-validating action is executed, so I am not able to prevent it or handle it.
    Is there any way how to catch this exception or prevent it?
    Does anyone know where these model restrictions are stored? I searched the XML files generated for the model, but I haven't found anything. Does the Web Dynpro runtime access WSDL everytime it needs to validate request parameters?
    Thanks,
    Tomas

    No ,This is the preferred and safer way to separate the Model Node and and Input Node and relationship between them by using mapping.
    You create your context structure for input and then on action set user input to model data.
    Safer it means  : Sometimes it happen that model data not populated properly due to network or wrong user input etc ,this time our presentation will be safe and display the proper error message rather the screen went away with null pointer exception.
    Regarding your - it require a lot of work. It too much convince for us that rather than writing 50 lines of code
    for only input length validation WebDynpro provides us a better model driven solution.
    Best Regards
    Satish Kumar

  • Firefox 26 not saving logins OR passwords after clicking "Remember me"?

    Problem:
    Began having this issue about a month ago, after altering some Google privacy settings. I then went on a rampage of cookie deleting and disabled all third party cookies... and managed, somehow, to disable Firefox's ability to remember /any/ website's "remember me".
    I constantly have to log in to every account each time I exit the webpage, even after clicking the remember me box.
    Passwords and login info are still stored; they auto-fill when I click on the fill-in bars; but accounts refuse to stay logged-in.
    Additional info:
    After toying around with the google settings, that didn't fix things.
    Re-enabling third party cookies didn't fix things.
    Privacy/Security Add Ons include: Ghostery 5.1, Adblock Plus 2.4.1, WOT
    Changing security settings in the Options -> Firefox Privacy didn't fix things.
    Resetting Firefox didn't fix things.
    "Remember form & search history" is on.
    Everything in privacy is currently checked EXCEPT "Use private browsing".
    Using Firefox 26.

    ''Soniahryn wrote:''
    Passwords and login info are still stored; they auto-fill when I click on the fill-in bars; but accounts refuse to stay logged-in.
    Then you have a problem with cookies.
    ''Soniahryn wrote:''
    Everything in privacy is currently checked EXCEPT "Use private browsing".
    Click the '''Exceptions''' button and delete any unwanted entries. ''Block'' exceptions will prevent cookies from the respective domain from being saved altogether, while ''Allow for Session'' exceptions will delete cookies from the respective domain once Firefox is closed.
    If you don't have any cookie exceptions, does the problem go away if you disable all your add-ons in the Add-ons Manager, Extensions category and restart Firefox? If yes, then see
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    If the problem persists with all extensions disabled, try the following.
    # Under '''[[Settings for privacy, browsing history and do-not-track|Options - Privacy]]''', set ''Firefox will: Remember history''.
    # Open '''[[Profiles - Where Firefox stores your bookmarks, passwords and other user data|your profile folder]]'''.
    # Exit Firefox.
    # Delete the ''cookies.sqlite'' file and if found, also ''cookies.sqlite-shm'' and ''cookies.sqlite-wal''. Note that this will discard any saved cookies you may have.

  • Tomcat memory performence issues

    Hi all,
    iam facing performence issues with tomcat 5.5.9.
    i have developed one webapllication which uses 20,000 employees...
    problem is tomcat not releasing the memory ...memory is growing up to some peek stage then it is not allowed any requests and it going down..
    plz see below cofigurations what iset for my tomcat....
    server.xml.
    <Connector
    port="8080"  maxHttpHeaderSize="8192" debug="0"
                   maxThreads="200" minSpareThreads="25" maxSpareThreads="200"
                   enableLookups="false" redirectPort="8443" acceptCount="20"
                   connectionTimeout="10000" disableUploadTimeout="true" />context.xml for connection pooling
    <Resource name="jdbc/Ids" auth="Container" type="javax.sql.DataSource" username="DATASYNC"password="DATASYNC"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.3.1.163:1521:ISPC" removeAbandoned="true" logAbandoned="true" removeAbandonedTimeout="300"
    maxActive="1000" maxIdle="50" maxWait="10000" />my server has 2GB of RAM
    i set heap size initially as 512 MB
    database is Oracle 9i in which max procees are set as 1000
    i closed all database connections in all servlets/jsp pages .....still problem persits...
    some times ...my databse is giving exception ORA-00020: maximum number of processes (1000) exceeed...once i restarted tomcat every thing working...
    is there any thing need to be done from my end . to improve the performence......
    Plz share your to improve my application performence.....Thanks in advance

    sorry, but if your connections are not being returned to the pool, you are not closing your connections everywhere. Do you close your connections in finally clauses everywhere? Otherwise a thrown exception might prevent the connection from being closed.

  • Activity/step in the workflow has a blinking red outline

    Symptom
    Activity/step blinks red in the diagram, and the workflow goes to the Paused state (default behavior.)
    The workflow Failed flag is set to Yes (true) which can be seen in an Explorer folder or view containing workflows or in the Home page Instance monitoring dashboard.
    Cause
    An uncaught exception during the processing of the activity/step.
    Fix
    To diagnose the exception, right-click on the activity/step and select Display logs. The fix will depend on the particular exception.
    Preventative
    In the future, avoid taking the action that caused the exception.
    Note:
    Specific exceptions will be described in subsequent discussions of this sub-forum.

    Antonise,
    The match/merge step is manual because In real time scenarios 'The person who have access to add records in Data Manager not necessarily can have access to approve or disapprove the new added records', so the case become one client say add records in Data Manager and the approval/disapproval, match/merge etc. steps will be performed by Admin or say DBO.
    Thats why match/merge step have manual execution.
    And your qyery if no match found then its should be automatic to next step "No because Admin still can refuse those new added records untill and unless he/she is not satisfied"
    Rewards if helpful.
    BR,
    Alok

Maybe you are looking for

  • Multi-language in one report

    Hi, I would just like to confirm that it is still not possible to show three languages in one report. We have description fields (segments of an account combination) that should have English values for the English language, Hebrew for the Hebrew lang

  • Routines

    Hi All, We have two external system that we want to extract data from. We are using UDconnect for the new system and will use flat files for the old system. Problem is product code defined in both systems are different. We want to define the products

  • Using multiple LTS

    Hi All, I have a few conceptual questions. I have found that I can use 2 dimension from physical layer in one logical table using two LTS or by just using one LTS. If i drag and drop the fields from physical table into logical table, new LTS is creat

  • Can I Add the User Defined Unit system?

    Can I add the User Defined Unit, Just like mm, inch..? My Clients are Korean. So. They want to use the Korean traditional Unit system which Not defined in Indesign. Pls Help me.

  • Bypass Filter on a 565 Content Engine

    Hello, I want to configure a bypass filter to bypass for a Windows update type program that does http downloads. When I configured the bypass (on the CE), the hosts can no longer kick off the transfer, its as if its been blocked..? Any ideas.. Do byp