cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zarar Siddiqi (JIRA)" <>
Subject [jira] Created: (CXF-896) Aegis binding with @WebFault causes AegisDatabinding to throw UnsupportedOperationException
Date Tue, 07 Aug 2007 19:25:59 GMT
Aegis binding with @WebFault causes AegisDatabinding to throw UnsupportedOperationException

                 Key: CXF-896
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.1
         Environment: Platform independent.
            Reporter: Zarar Siddiqi

I posted about this issue on the mailing list:

I'm getting an UnsupportedOperationException using Aegis binding and JAX-WS frontend.  Here's
my setup starting with the Spring beans:

    <bean id="aegisBean"

            <bean class="">
                <property name="dataBinding" ref="aegisBean"/>
                <property name="serviceConfigurations">
                        <bean class=""/>
                        <bean class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/>
                        <bean class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/>

Here's the exception class:

public class WebServiceException extends RuntimeException {

   // constructors hidden for brevity

    public Object getFaultInfo() { .... }


Here's the stacktrace:

  at org.apache.cxf.aegis.databinding.AegisDatabinding.createWriter(
  at org.apache.cxf.jaxws.interceptors.WebFaultOutInterceptor.handleMessage(
  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
  at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(
  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
  at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
  at org.apache.cxf.transport.servlet.ServletDestination.doMessage(
  at org.apache.cxf.transport.servlet.ServletController.invokeDestination(

I can actually see this exception coming.  In WebFaultOutInterceptor.handleMessage() the line

DataWriter writer = service.getDataBinding().createWriter(Node.class) ;

invokes AegisDatabinding.createWriter() where Node.class isn't being looked for:

    public <T> DataWriter<T> createWriter(Class<T> cls) {
        if (cls.equals(XMLStreamWriter.class)) {
            return (DataWriter<T>)new XMLStreamDataWriter(this);
        } else {
            throw new UnsupportedOperationException();

Any ideas how to avoid this exception? I think my configuration is correct and this might
be a bug.


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message