Examples of ResourceUnknownException


Examples of io.crate.exceptions.ResourceUnknownException

    private Streamer<?> resolveStreamer(Aggregation aggregation, Aggregation.Step step) {
        Streamer<?> streamer;
        AggregationFunction<?> aggFunction = (AggregationFunction<?>)functions.get(aggregation.functionIdent());
        if (aggFunction == null) {
            throw new ResourceUnknownException("unknown aggregation function");
        }
        switch (step) {
            case ITER:
                assert aggFunction.info().ident().argumentTypes().size() == 1;
                streamer = aggFunction.info().ident().argumentTypes().get(0).streamer();
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

        Resource resource = createInstance( key );
        LOG.debug( MSG.getMessage( Keys.LOADING_RESOURCE_FROM_PERSISTENCE, String.valueOf( key ) ) );
        ( (PersistenceCallback) resource ).load( key );
        if ( ResourceSweeper.isExpired( resource ) )
        {
            throw new ResourceUnknownException( getLookupKey( key ), getServicePortName() );
        }
        return resource;
    }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

        Resource resource = (Resource) m_resources.get( lookupKey );
        if ( resource == null )
        {
            if ( !m_resourceIsPersistent )
            {
                throw new ResourceUnknownException( lookupKey, getServicePortName() );
            }
            addResource( key, createNewInstanceAndLoad( key ) );
        }
        return resource;
    }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

         createPrinterResponse.setPrinterReference( (EndpointReferenceType) prop.toXmlObjects(  )[0] );
      }
      catch ( Exception e )
      {
         throw new ResourceUnknownFaultException( new NamespaceVersionHolderImpl(  ),
                                                  new ResourceUnknownException( null,
                                                                                "An error occurred when invoking CreatePrinter" ) );
      }

      return responseDocument;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

         resource = find( key );
      }
      catch ( ResourceException re )
      {
         throw new ResourceUnknownFaultException( new NamespaceVersionHolderImpl(  ),
                                                  new ResourceUnknownException( null, "An error occurred" ) );
      }

      return resource;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

         createPrinterResponse.setPrinterReference( (EndpointReferenceType) prop.toXmlObjects(  )[0] );
      }
      catch ( Exception e )
      {
         throw new ResourceUnknownFaultException( new NamespaceVersionHolderImpl(  ),
                                                  new ResourceUnknownException( null,
                                                                                "An error occurred when invoking CreatePrinter" ) );
      }

      return responseDocument;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

         resource = find( key );
      }
      catch ( ResourceException re )
      {
         throw new ResourceUnknownFaultException( new NamespaceVersionHolderImpl(  ),
                                                  new ResourceUnknownException( null, "An error occurred" ) );
      }

      return resource;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

            resource = createNewInstanceAndLoad( key );
            addResource( key, resource );
            if ( ResourceSweeper.isExpired( resource ) )
            {
               remove( key );
               throw new ResourceUnknownException();
            }
         }
         else
         {
            throw new ResourceUnknownException();
         }
      }

      return resource;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

                    throw new ResourceException(e);
                }
            }
            else
            {
                throw new ResourceUnknownException(id,
                                                   resourceContext.getServiceName());
            }
        }

        return resource;
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

                }
                add(key, resource);
            }
            else
            {
                throw new ResourceUnknownException(id,
                                                   resourceContext.getServiceName());
            }
        }
        return resource;
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.