Examples of InvalidNameException


Examples of javax.naming.InvalidNameException

   public Object lookup(String name) throws NamingException
   {
      Object binding = null;
      if( name == null || name.length() == 0 )
         throw new InvalidNameException("name cannot be null or empty");

      if( name.equals(ACTIVE_SUBJECT) )
         binding = getSubject();
      else if( name.equals(AUTHENTICATION_MGR) || name.equals(SECURITY_MGR))
         binding = securityMgr;
View Full Code Here

Examples of javax.naming.InvalidNameException

   public Object lookup(String name) throws NamingException
   {
      Object binding = null;
      if( name == null || name.length() == 0 )
         throw new InvalidNameException("name cannot be null or empty");

      if( name.equals(ACTIVE_SUBJECT) )
         binding = getSubject();
      else if( name.equals(AUTHENTICATION_MGR) || name.equals(SECURITY_MGR))
         binding = securityMgr;
View Full Code Here

Examples of lv.odylab.evemanage.application.exception.validation.InvalidNameException

    @Override
    @Caching
    public BlueprintDetailsDto getBlueprintDetailsForTypeName(String typeName) throws EveDbException, InvalidNameException {
        try {
            if (typeName.length() == 0) {
                throw new InvalidNameException(typeName, ErrorCode.NAME_CANNOT_BE_EMPTY);
            }
            lv.odylab.evedb.rpc.dto.BlueprintDetailsDto blueprintDetailsDto = client.getBlueprintDetailsForTypeName(typeName);
            return mapper.map(blueprintDetailsDto, BlueprintDetailsDto.class);
        } catch (BadRequestException e) {
            logger.error("Caught BadRequestException", e);
            throw new InvalidNameException(typeName, ErrorCode.INVALID_NAME);
        } catch (RuntimeException e) {
            logger.error("Caught RuntimeException", e);
            throw new EveDbException(e);
        }
    }
View Full Code Here

Examples of org.arch.dns.exception.InvalidNameException

        }
        // Check for empty labels:  may have only one, and only at end.
        int len = comp.length();
        if ((pos > 0 && len == 0) ||
            (pos == 0 && hasRootLabel())) {
                throw new InvalidNameException(
                        "Empty label must be the last label in a domain name");
        }
        // Check total name length.
        if (len > 0) {
            if (octets + len + 1 >= 256) {
                throw new InvalidNameException("Name too long");
            }
            octets += (short) (len + 1);
        }

        int i = size() - pos;   // index for insertion into "labels"
View Full Code Here

Examples of org.richfaces.cdk.model.InvalidNameException

                if (indexOfDot > 0) {
                    path = path.substring(0, indexOfDot);
                }
                return path;
            } else {
                throw new InvalidNameException("Invalid taglib uri, no path defined " + uri);
            }
        } catch (IllegalArgumentException e) {
            throw new InvalidNameException("Invalid taglib uri " + uri + " , " + e.getMessage());
        }
    }
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.