Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1621

Lifecycle of entity gets missed when prism and falcon server communicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10
    • None
    • None

    Description

      Hi All,

      When ever communication happens between Prism and falcon server in distributed mode methods related to lifecycle will never get called because of :

      private String pathValue(Method method, Object... args) throws FalconException {
      
              Path pathParam = method.getAnnotation(Path.class);
              if (pathParam == null) {
                  throw new FalconException("No path param mentioned for " + method);
              }
              String pathValue = pathParam.value();
      
              Annotation[][] paramAnnotations = method.getParameterAnnotations();
              StringBuilder queryString = new StringBuilder("?");
              for (int index = 0; index < args.length; index++) {
                  if (args[index] instanceof String || args[index] instanceof Boolean || args[index] instanceof Integer) {
                      String arg = String.valueOf(args[index]);
                      for (int annotation = 0; annotation < paramAnnotations[index].length; annotation++) {
                          Annotation paramAnnotation = paramAnnotations[index][annotation];
                          String annotationClass = paramAnnotation.annotationType().getName();
      
                          if (annotationClass.equals(QueryParam.class.getName())) {
                              queryString.append(getAnnotationValue(paramAnnotation, "value")).
                                      append('=').append(arg).append("&");
                          } else if (annotationClass.equals(PathParam.class.getName())) {
                              pathValue = pathValue.replace("{"
                                      + getAnnotationValue(paramAnnotation, "value") + "}", arg);
                          }
                      }
                  }
              }
              return pathValue + queryString.toString();
          }
      

      Attachments

        Activity

          People

            praveen Praveen Rachabattuni
            praveen Praveen Rachabattuni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: