Class NoFactoryAvailableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.camel.NoFactoryAvailableException
All Implemented Interfaces:
Serializable

public class NoFactoryAvailableException extends IOException
Thrown by the Camel FactoryFinder mechanism when no implementation class can be located for a given service URI.

The FactoryFinder scans the classpath for service descriptor files under META-INF/services/org/apache/camel/ to discover pluggable implementations of Camel SPIs (components, data formats, languages, dumpers, etc.). When the required JAR is absent from the classpath, or when the service descriptor file is missing or misconfigured, this exception is thrown with the full service URI that could not be resolved. It extends IOException so callers that use the raw I/O-based discovery path can catch it at the right level; higher-level Camel code typically wraps it in a RuntimeCamelException for propagation across unchecked API boundaries.

See Also:
  • Constructor Details

    • NoFactoryAvailableException

      public NoFactoryAvailableException(String uri)
      Parameters:
      uri - the URI for which no factory class could be found
    • NoFactoryAvailableException

      public NoFactoryAvailableException(String uri, Throwable cause)
      Parameters:
      uri - the URI for which no factory class could be found
      cause - the cause of the failure
  • Method Details

    • getUri

      public String getUri()