Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 28. Generic Fault Handling

download PDF

Abstract

The JAX-WS specification defines two types of faults. One is a generic JAX-WS runtime exception. The other is a protocol specific class of exceptions that is thrown during message processing.

28.1. Runtime Faults

Overview

Most of the JAX-WS APIs throw a generic javax.xml.ws.WebServiceException exception.

APIs that throw WebServiceException

Table 28.1, “APIs that Throw WebServiceException lists some of the JAX-WS APIs that can throw the generic WebServiceException exception.
Table 28.1. APIs that Throw WebServiceException
APIReason
Binding.setHandlerChain()There is an error in the handler chain configuration.
BindingProvider.getEndpointReference()The specified class is not assigned from a W3CEndpointReference.
Dispatch.invoke()There is an error in the Dispatch instance's configuration or an error occurred while communicating with the service.
Dispatch.invokeAsync()There is an error in the Dispatch instance's configuration.
Dispatch.invokeOneWay()There is an error in the Dispatch instance's configuration or an error occurred while communicating with the service.
LogicalMessage.getPayload()An error occurred when using a supplied JAXBContext to unmarshall the payload. The cause field of the WebServiceException contains the original JAXBException.
LogicalMessage.setPayload()An error occurred when setting the payload of the message. If the exception is thrown when using a JAXBContext, the cause field of the WebServiceException contains the original JAXBException.
WebServiceContext.getEndpointReference()The specified class is not assigned from a W3CEndpointReference.
Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.