Package com.kurento.kmf.common.exception

Examples of com.kurento.kmf.common.exception.KurentoException


    } catch (GoogleJsonResponseException e) {
      log.error("GoogleJsonResponseException code: "
          + e.getDetails().getCode() + " : "
          + e.getDetails().getMessage());
      throw new KurentoException(e);
    } catch (IOException e) {
      log.error("IOException: " + e.getMessage());
      throw new KurentoException(e);
    } catch (Throwable t) {
      log.error("Throwable: " + t.getMessage());
      throw new KurentoException(t);
    }

    return uploadedVideo;
  }
View Full Code Here


      return createNoCustomizationCustomizer();
    }

    final String keystorePass = env.getProperty("keystore.pass");
    if (keystorePass == null) {
      throw new KurentoException(
          "Property 'keystore.pass' is mandatory with keystore.file");
    }

    int httpsPort = 8443;
    try {
View Full Code Here

    httpManager.disposeHttpRepoItemElemByItemId(item,
        "Repository Item removed");
    File file = fileItem.getFile();
    boolean success = file.delete();
    if (!success) {
      throw new KurentoException("The file can't be deleted");
    }
  }
View Full Code Here

          .getInputStream(), "UTF-8"));

      return output;

    } catch (IOException e) {
      throw new KurentoException(
          "Exception executing command on the shell: "
              + Arrays.toString(command), e);
    }
  }
View Full Code Here

    Collection<String> mappings = servletConfig.getServletContext()
        .getServletRegistration(servletConfig.getServletName())
        .getMappings();

    if (mappings.isEmpty()) {
      throw new KurentoException("There is no mapping for servlet "
          + RepositoryHttpServlet.class.getName());
    }

    String mapping = mappings.iterator().next();
View Full Code Here

            events.add(result);
          }

          @Override
          public void onError(Throwable cause) {
            throw new KurentoException(cause);
          }
        });
    jackVader = events.poll(4, SECONDS);
    Assert.assertNotNull(jackVader);
  }
View Full Code Here

            events.add(result);
          }

          @Override
          public void onError(Throwable cause) {
            throw new KurentoException(cause);
          }
        });
    filter = events.poll(4, SECONDS);
    Assert.assertNotNull(filter);
  }
View Full Code Here

        events.add(result);
      }

      @Override
      public void onError(Throwable cause) {
        throw new KurentoException(cause);
      }
    });
    pipeline = events.poll(3, TimeUnit.SECONDS);

    if (pipeline == null) {
View Full Code Here

          latch.countDown();
        }

        @Override
        public void onError(Throwable cause) {
          throw new KurentoException(cause);
        }
      });
      Assert.assertTrue("Timeout of 25s releasing object",
          latch.await(25, TimeUnit.SECONDS));
    }
View Full Code Here

            latch.countDown();
          }

          @Override
          public void onError(Throwable cause) {
            throw new KurentoException(cause);
          }
        });
    latch.await(500, MILLISECONDS);
    player.connect(detector);
    player.play();
View Full Code Here

TOP

Related Classes of com.kurento.kmf.common.exception.KurentoException

Copyright © 2018 www.massapicom. 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.