Examples of ResourceNotFoundException


Examples of de.danet.an.workflow.spis.rms.ResourceNotFoundException

            con = conFac.getConnection();
            RmsEntry e = con.lookupUserByAccountName (principal.getName());
            return new DefaultUserResource(rasCtx, e.getKey(), e.getDisplayName());
        } catch (ResourceException e) {
            maybeMapToRemoteException (e);
            throw new ResourceNotFoundException("Not found: " + e.getMessage());
        } catch (NameNotFoundException e) {
            throw new ResourceNotFoundException
                ("No user \"" + principal.getName() + "\" found: "
                 + e.getMessage());
        } finally {
            closeConnection(con);
        }
View Full Code Here

Examples of edu.mit.simile.fresnel.selection.ResourceNotFoundException

          addInstanceLens(out);
        } else if (conn.hasStatement(identifier, FresnelCore.classLensDomain, (Value) null, false)) {
          out = new Lens(this._source, identifier, this);
          addLens(out);
        } else {
          throw new ResourceNotFoundException("Explicitly named lens not found in configuration");
        }
      } catch (RepositoryException e) {
        throw new UnresolvableException("Problem connecting to repository: " + e.getLocalizedMessage());
      }
      finally {
View Full Code Here

Examples of edu.ubb.warp.exception.ResourceNotFoundException

      statement.setInt(1, user.getUserID());
      ResultSet result = statement.executeQuery();
      if (result.next()) {
        resource = getResourceFromResult(result);
      } else {
        throw new ResourceNotFoundException();
      }
    } catch (SQLException e) {
      throw new DAOException();
    }
    return resource;
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.ResourceNotFoundException

            return javaClass;
        } catch (RuntimeException e) {
            throw new RuntimeException("Unable to parse classfile for " + descriptor, e);
        } catch (IOException e) {
            throw new ResourceNotFoundException(descriptor.toResourceName(), e);
        }
    }
View Full Code Here

Examples of gnu.testlet.ResourceNotFoundException

    {
      return new FileInputStream(getSourceDirectory() + File.separator
              + realName);
    }
    catch (FileNotFoundException ex) {
      throw new ResourceNotFoundException(ex.getLocalizedMessage() +
                ": " + getSourceDirectory() + File.separator + realName);
    }
  }
View Full Code Here

Examples of net.baguajie.exceptions.ResourceNotFoundException

  @RequestMapping(value="/track/{targetId}", method=RequestMethod.GET)
  public @ResponseBody AjaxResult follow(@PathVariable String targetId,
      @ModelAttribute(ApplicationConstants.SESSION_SIGNIN_USER) User signInUser,
      Model model, HttpServletRequest request, HttpSession session){
    if(!ajaxUtil.isAjaxRequest(request)){
      throw new ResourceNotFoundException();
    }
    Spot target = spotRepository.findOne(targetId);
    if(target==null){
      throw new RuntimeException("Invalid spot id : " + targetId);
    }
View Full Code Here

Examples of net.dryanhild.resources.ResourceNotFoundException

    @Override
    public InputStream getResource(String path) {
        InputStream in = loadFromDelegates(path);

        if (in == null) {
            throw new ResourceNotFoundException(path);
        }

        return in;
    }
View Full Code Here

Examples of net.infopeers.restrant.ResourceNotFoundException

     
      return method;
    }
   
    if(defaultMethod == null){
      throw new ResourceNotFoundException("Method not found: " + cls.getName() + "#" + methodName);
    }
   
    return defaultMethod;
  }
View Full Code Here

Examples of net.rootnode.loomchild.util.exceptions.ResourceNotFoundException

   */
  public static InputStream getResourceStream(String name) {
    InputStream inputStream = Util.class.getClassLoader()
        .getResourceAsStream(name);
    if (inputStream == null) {
      throw new ResourceNotFoundException(name);
    }
    return inputStream;
  }
View Full Code Here

Examples of org.ajax4jsf.resource.ResourceNotFoundException

         * @see org.ajax4jsf.resource.ResourceBuilderImpl#getResourceDataForKey(java.lang.String)
         */
    public Object getResourceDataForKey(String key) {
  ResourceBean bean = (ResourceBean) cache.get(key);
  if (null == bean) {
      throw new ResourceNotFoundException("Resource for key " + key
        + "not present in cache");
  }
  return bean.getData();
    }
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.