Examples of InvalidHandleException


Examples of javax.rules.InvalidHandleException

        if ( objectHandle instanceof FactHandle ) {
            this.session.update( (FactHandle) objectHandle,
                                             newObject );
        } else {
            throw new InvalidHandleException( "invalid handle" );

        }
    }
View Full Code Here

Examples of javax.rules.InvalidHandleException

        checkRuleSessionValidity();

        if ( handleObject instanceof FactHandle ) {
            this.session.retract( (FactHandle) handleObject );
        } else {
            throw new InvalidHandleException( "invalid handle" );
        }
    }
View Full Code Here

Examples of javax.rules.InvalidHandleException

       checkRuleSessionValidity();

        if ( handle instanceof FactHandle ) {
            return this.session.getObject( (FactHandle) handle );
        } else {
            throw new InvalidHandleException( "invalid handle" );
        }
    }
View Full Code Here

Examples of org.apache.jcs.access.exception.InvalidHandleException

        throws CacheException, InvalidHandleException
    {
        ICacheElement element = this.cacheControl.get( (Serializable) name );
        if ( element == null )
        {
            throw new InvalidHandleException( "Object for name [" + name + "] is not in the cache" );
        }

        // Although it will work currently, don't assume pass by reference here,
        // i.e. don't do this:
        // element.setElementAttributes( attr );
View Full Code Here

Examples of org.dspace.sword.client.exceptions.InvalidHandleException

            dso = HandleManager.resolveToObject(context, handle);
        }
        catch (SQLException e)
        {
            log.error("Unable to resolve handle " + handle);
            throw new InvalidHandleException("Unable to resolve handle " + handle);
        }

        if (dso == null)
        {
            log.error("Unable to resolve handle " + handle);
            throw new InvalidHandleException("Unable to resolve handle " + handle);
        }

        try
        {
            dip.disseminate(context, dso, pkgParams, file);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.