Examples of AnnotationException


Examples of de.dfki.util.xmlrpc.annotation.AnnotationException

            //isConvertable = the parameter does the work itself
            boolean isConvertable = !usesConvertable && !usesConverter;
           
            if (usesConvertable && usesConverter)
            {
                throw( new AnnotationException( "Parameter can only be either a convertable or use a parameter converter, not both at a time!" ) );
            }
           
            if (isConvertable)
            {
                convertableCls = validateConvertableClass( apiParameterClass, xmlRpcType );
View Full Code Here

Examples of net.csdn.annotation.AnnotationException

                        }
                        logger.info("util load :    "+ctClass.getName());
                        final Class clzz = ctClass.toClass();
                        final Util util = (Util) clzz.getAnnotation(Util.class);
                        if (clzz.isInterface())
                            throw new AnnotationException(format("{} util should not be interface", clzz.getName()));
                        moduleList.add(new AbstractModule() {
                            @Override
                            protected void configure() {
                                bind(clzz).in(util.value());
                            }
View Full Code Here

Examples of net.csdn.annotation.AnnotationException

            }
            final Service service = (Service) clzz.getAnnotation(Service.class);

            if (service == null) continue;
            if (clzz.isInterface() && service.implementedBy() == null)
                throw new AnnotationException(format("{} no implemented class configured", clzz.getName()));

            moduleList.add(new AbstractModule() {
                @Override
                protected void configure() {
                    if (clzz.isInterface()) {
View Full Code Here

Examples of org.adoptopenjdk.jitwatch.model.AnnotationException

        if (inMethod || isC2)
        {
          if (!sanityCheckInline(currentInstruction))
          {
            throw new AnnotationException("Expected an invoke instruction (in INLINE_SUCCESS)", currentBytecode,
                currentInstruction);
          }

          String reason = tagAttrs.get(ATTR_REASON);
          String annotationText = InlineUtil.buildInlineAnnotationText(true, reason, callAttrs, methodAttrs);

          result.put(currentBytecode, new LineAnnotation(annotationText, Color.GREEN));
        }
      }
        break;
      case TAG_INLINE_FAIL:
      {
        if (inMethod || isC2)
        {
          if (!sanityCheckInline(currentInstruction))
          {
            throw new AnnotationException("Expected an invoke instruction (in INLINE_FAIL)", currentBytecode,
                currentInstruction);
          }

          String reason = tagAttrs.get(ATTR_REASON);
          String annotationText = InlineUtil.buildInlineAnnotationText(false, reason, callAttrs, methodAttrs);

          result.put(currentBytecode, new LineAnnotation(annotationText, Color.RED));
        }
      }
        break;
      case TAG_BRANCH:
      {
        if (!result.containsKey(currentBytecode))
        {
          if (inMethod || isC2)
          {
            if (!sanityCheckBranch(currentInstruction))
            {
              throw new AnnotationException("Expected a branch instruction (in BRANCH)", currentBytecode,
                  currentInstruction);
            }

            String branchAnnotation = buildBranchAnnotation(tagAttrs);

            result.put(currentBytecode, new LineAnnotation(branchAnnotation, Color.BLUE));
          }
        }
      }
        break;
      case TAG_INTRINSIC:
      {
        if (inMethod || isC2)
        {
          if (!sanityCheckIntrinsic(currentInstruction))
          {
            for (BytecodeInstruction ins : instructions)
            {
              logger.info("! instruction: {}", ins);
            }

            throw new AnnotationException("Expected an invoke instruction (IN INTRINSIC)", currentBytecode,
                currentInstruction);
          }

          StringBuilder reason = new StringBuilder();
          reason.append("Intrinsic: ").append(tagAttrs.get(ATTR_ID));
View Full Code Here

Examples of org.dbpedia.spotlight.exceptions.AnnotationException

        String query = String.format(ONTOS_QUERY_ENTITY, eid);
        try {
            query = URLEncoder.encode(query, "utf-8");
        } catch (UnsupportedEncodingException e) {
            LOG.error(e.getMessage());
            throw new AnnotationException(e);
        }
        JSONObject json = request(path+query);
        JSONObject entity = new JSONObject();
        try {
             entity = json.getJSONObject("result");
View Full Code Here

Examples of org.hibernate.AnnotationException

        log.info( "Hibernate Validator not found: ignoring" );
      }
      isValidatorNotPresentLogged = true;
    }
    catch ( NoSuchMethodException e ) {
      throw new AnnotationException( e );
    }
    if ( applyMethod != null ) {
      for ( PersistentClass persistentClazz : ( Collection<PersistentClass> ) classes.values() ) {
        //integrate the validate framework
        String className = persistentClazz.getClassName();
View Full Code Here

Examples of org.hibernate.AnnotationException

      String dependentTable = sp.getValue().getTable().getQuotedName();
      if ( dependentTable.compareTo( startTable ) == 0 ) {
        StringBuilder sb = new StringBuilder(
            "Foreign key circularity dependency involving the following tables: "
        );
        throw new AnnotationException( sb.toString() );
      }
      buildRecursiveOrderedFkSecondPasses( orderedFkSecondPasses, isADependencyOf, startTable, dependentTable );
      if ( !orderedFkSecondPasses.contains( sp ) ) {
        orderedFkSecondPasses.add( 0, sp );
      }
View Full Code Here

Examples of org.hibernate.AnnotationException

      for ( Column column : unboundNoLogical ) {
        sb.append( column.getName() ).append( ", " );
      }
      sb.setLength( sb.length() - 2 );
      sb.append( " not found" );
      throw new AnnotationException( sb.toString() );
    }
  }
View Full Code Here

Examples of org.hibernate.AnnotationException

        for ( String classname : classnames ) {
          try {
            annotatedClasses.add( reflectionManager.classForName( classname, this.getClass() ) );
          }
          catch ( ClassNotFoundException e ) {
            throw new AnnotationException( "Unable to load class defined in XML: " + classname, e );
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.hibernate.AnnotationException

      Object validateEventListener;
      try {
        validateEventListener = validateEventListenerClass.newInstance();
      }
      catch ( Exception e ) {
        throw new AnnotationException( "Unable to load Validator event listener", e );
      }
      {
        boolean present = false;
        PreInsertEventListener[] listeners = getEventListeners().getPreInsertEventListeners();
        if ( listeners != null ) {
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.