I have solved this by the following, I basically forgot to configure Aegis
databinding on the provider end:

http://www.nabble.com/Still-using-JAXB-databinding-when-Aegis-enabled--tf4552160.html#a12991459




kayteeem wrote:
> 
> I am also getting the same sort of error, when using Aegis databinding, it
> seems to be using jaxB also when I thought i turned on Aegis.
> Sorry i dont know how to solve this for you, however I can include my
> Spring config file for how I enabled Aegis. I am also stuck at this point
> at the moment.
> 
> <beans xmlns="http://www.springframework.org/schema/beans";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xmlns:aop="http://www.springframework.org/schema/aop";
>     xmlns:jaxws="http://cxf.apache.org/jaxws";
>     xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
> 
>     <import resource="classpath:META-INF/cxf/cxf.xml" />
>     <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>     <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>               
>     <!-- Aegis data binding  -->
>     <bean id="aegisDatabinding"
>               class="org.apache.cxf.aegis.databinding.AegisDatabinding"/> 
>     
>     <!-- Definition of AccountService client bean -->
>     <bean id="services.appln.accountClient"
> class="com.axa.demo.ws.shared.service.AccountService"
> factory-bean="accountClientFactory" factory-method="create"/>
>     <bean id="accountClientFactory"
> class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
>         <property name="serviceClass"
> value="com.axa.demo.ws.shared.service.AccountService"/>       
>         <property name="address"
> value="http://localhost:7001/demoWeb/ws/AccountService"/>      
>          
>         <property name="dataBinding" ref="aegisDatabinding"/>
>         
>     </bean>
>     
> </beans>
> 
> 
> srinivasch wrote:
>> 
>> Hi,
>> 
>>    Anybody got the following error, I am using aegis databinding, but I
>> understand from the below exception that it is still using JAXB.
>> Appreciate if anyone could help me in resolving this issue.
>> 
>> Sep 28, 2007 2:11:14 PM org.apache.cxf.phase.PhaseInterceptorChain
>> doIntercept
>> INFO: Interceptor has thrown exception, unwinding now
>> org.apache.cxf.interceptor.Fault: Unmarshalling Error : Unexpected EOF;
>> was expecting a close tag for element <componentUUID>
>>  at [row,col {unknown-source}]: [1,211788] 
>>      at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:401)
>>      at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:307)
>>      at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
>>      at
>> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:101)
>>      at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>>      at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:395)
>>      at
>> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1932)
>>      at
>> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1790)
>>      at
>> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:576)
>>      at
>> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>>      at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>>      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
>>      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
>>      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>>      at
>> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
>>      at $Proxy26.getNetwork(Unknown Source)
>>      at
>> org.projectcordoba.xcr.controller.ws.Configuration_ConfigurationPort_Client.main(Configuration_ConfigurationPort_Client.java:52)
>> Caused by: javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close
>> tag for element <componentUUID>
>>  at [row,col {unknown-source}]: [1,211788]]
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:396)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:334)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:311)
>>      at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:387)
>>      ... 17 more
>> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was
>> expecting a close tag for element <componentUUID>
>>  at [row,col {unknown-source}]: [1,211788]
>>      at
>> com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
>>      at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2730)
>>      at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
>>      at
>> org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamReader.java:215)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:151)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:332)
>>      ... 19 more
>> Exception in thread "main" javax.xml.ws.soap.SOAPFaultException:
>> Unmarshalling Error : Unexpected EOF; was expecting a close tag for
>> element <componentUUID>
>>  at [row,col {unknown-source}]: [1,211788] 
>>      at
>> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
>>      at $Proxy26.getNetwork(Unknown Source)
>>      at
>> org.projectcordoba.xcr.controller.ws.Configuration_ConfigurationPort_Client.main(Configuration_ConfigurationPort_Client.java:52)
>> Caused by: org.apache.cxf.interceptor.Fault: Unmarshalling Error :
>> Unexpected EOF; was expecting a close tag for element <componentUUID>
>>  at [row,col {unknown-source}]: [1,211788] 
>>      at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:401)
>>      at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:307)
>>      at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
>>      at
>> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:101)
>>      at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>>      at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:395)
>>      at
>> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1932)
>>      at
>> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1790)
>>      at
>> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:576)
>>      at
>> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>>      at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>>      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
>>      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
>>      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>>      at
>> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
>>      ... 2 more
>> Caused by: javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close
>> tag for element <componentUUID>
>>  at [row,col {unknown-source}]: [1,211788]]
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:396)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:334)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:311)
>>      at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:387)
>>      ... 17 more
>> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was
>> expecting a close tag for element <componentUUID>
>>  at [row,col {unknown-source}]: [1,211788]
>>      at
>> com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
>>      at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2730)
>>      at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
>>      at
>> org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamReader.java:215)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:151)
>>      at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:332)
>>      ... 19 more
>> 
>> 
>> WSDL file as follows
>> 
>> <?xml version="1.0" encoding="utf-8"?>
>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>>      xmlns:tns="http://ws.controller.xcr.projectcordoba.org/";
>>      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>>      xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>>      name="ConfigurationService"
>>      targetNamespace="http://ws.controller.xcr.projectcordoba.org/";>
>>      <wsdl:types>
>>              <xsd:schema xmlns:ns0="http://controller.xcr.projectcordoba.org";
>>                      attributeFormDefault="qualified" 
>> elementFormDefault="qualified"
>>                      
>> targetNamespace="http://ws.controller.xcr.projectcordoba.org/";>
>>                      <xsd:import
>>                              
>> namespace="http://controller.xcr.projectcordoba.org"; />
>>                      <xsd:complexType name="ArrayOfBoolean">
>>                              <xsd:sequence>
>>                                      <xsd:element maxOccurs="unbounded" 
>> minOccurs="0"
>>                                              name="boolean" 
>> type="xsd:boolean" />
>>                              </xsd:sequence>
>>                      </xsd:complexType>
>>                      <xsd:complexType name="ArrayOfString">
>>                              <xsd:sequence>
>>                                      <xsd:element maxOccurs="unbounded" 
>> minOccurs="0"
>>                                              name="string" nillable="true" 
>> type="xsd:string" />
>>                              </xsd:sequence>
>>                      </xsd:complexType>
>>                      <xsd:element name="getNetwork" type="tns:getNetwork" />
>>                      <xsd:complexType name="getNetwork">
>>                              <xsd:sequence />
>> 
>>                      </xsd:complexType>
>>                      <xsd:element name="getNetworkResponse"
>>                              type="tns:getNetworkResponse" />
>>                      <xsd:complexType name="getNetworkResponse">
>>                              <xsd:sequence>
>>                                      <xsd:element minOccurs="0" name="return"
>>                                              type="ns0:XCRNetwork" />
>>                              </xsd:sequence>
>>                      </xsd:complexType>
>>              </xsd:schema>
>> 
>>              <xsd:schema
>>                      
>> xmlns:tns="http://domain.controller.xcr.projectcordoba.org";
>>                      attributeFormDefault="qualified" 
>> elementFormDefault="qualified"
>>                      
>> targetNamespace="http://domain.controller.xcr.projectcordoba.org";>
>>                      <xsd:simpleType name="ComponentType">
>>                              <xsd:restriction base="xsd:string">
>>                                      <xsd:enumeration value="ADMIN" />
>>                                      <xsd:enumeration value="ARCHIVER" />
>>                                      <xsd:enumeration value="CATALOG" />
>>                                      <xsd:enumeration value="CONTROLLER" />
>>                                      <xsd:enumeration value="RECEIVER" />
>>                                      <xsd:enumeration value="STACK" />
>> 
>>                              </xsd:restriction>
>>                      </xsd:simpleType>
>>              </xsd:schema>
>> 
>> 
>>              <xsd:schema attributeFormDefault="qualified"
>>                      elementFormDefault="qualified"
>>                      targetNamespace="http://www.w3.org/2001/XMLSchema";>
>>                      <xsd:complexType name="ArrayOfAnyType">
>>                              <xsd:sequence>
>>                                      <xsd:element maxOccurs="unbounded" 
>> minOccurs="0"
>>                                              name="anyType" nillable="true" 
>> type="xsd:anyType" />
>>                              </xsd:sequence>
>> 
>>                      </xsd:complexType>
>>                      <xsd:complexType name="ArrayOfArrayOfAnyType">
>>                              <xsd:sequence>
>>                                      <xsd:element maxOccurs="unbounded" 
>> minOccurs="0"
>>                                              name="ArrayOfAnyType" 
>> nillable="true" type="xsd:ArrayOfAnyType" />
>>                              </xsd:sequence>
>>                      </xsd:complexType>
>>              </xsd:schema>
>> 
>> 
>>              <xsd:schema xmlns:ns1="http://cert.security.java";
>>                      
>> xmlns:ns2="http://domain.controller.xcr.projectcordoba.org";
>>                      xmlns:tns="http://controller.xcr.projectcordoba.org";
>>                      attributeFormDefault="qualified" 
>> elementFormDefault="qualified"
>>                      
>> targetNamespace="http://controller.xcr.projectcordoba.org";>
>>                      <xsd:import
>>                              
>> namespace="http://domain.controller.xcr.projectcordoba.org"; />
>>                      <xsd:complexType name="XCRSite">
>>                              <xsd:sequence>
>>                                      <xsd:element minOccurs="0" 
>> name="allComponents"
>>                                              nillable="true" 
>> type="tns:ArrayOfXCRComponent" />
>>                                      <xsd:element minOccurs="0" 
>> name="operational"
>>                                              type="xsd:boolean" />
>>                                      <xsd:element minOccurs="0"
>>                                              name="operationalArchivers" 
>> type="xsd:int" />
>>                                      <xsd:element minOccurs="0"
>>                                              name="operationalCatalogs" 
>> type="xsd:int" />
>>                                      <xsd:element minOccurs="0"
>>                                              name="operationalReceivers" 
>> type="xsd:int" />
>>                                      <xsd:element minOccurs="0" 
>> name="operationalStacks"
>>                                              type="xsd:int" />
>>                                      <xsd:element minOccurs="0" 
>> name="siteLocation"
>>                                              nillable="true" 
>> type="xsd:string" />
>>                                      <xsd:element minOccurs="0" 
>> name="siteName"
>>                                              nillable="true" 
>> type="xsd:string" />
>>                                      <xsd:element minOccurs="0" 
>> name="siteUUID"
>>                                              nillable="true" 
>> type="xsd:string" />
>>                              </xsd:sequence>
>>                      </xsd:complexType>
>>                      <xsd:complexType name="ArrayOfXCRComponent">
>>                              <xsd:sequence>
>>                                      <xsd:element maxOccurs="unbounded" 
>> minOccurs="0"
>>                                              name="XCRComponent" 
>> nillable="true" type="tns:XCRComponent" />
>>                              </xsd:sequence>
>> 
>>                      </xsd:complexType>
>>                      <xsd:complexType name="XCRNetwork">
>>                              <xsd:sequence>
>>                                      <xsd:element minOccurs="0" 
>> name="operational"
>>                                              type="xsd:boolean" />
>>                                      <xsd:element minOccurs="0" 
>> name="siteList"
>>                                              nillable="true" 
>> type="tns:ArrayOfXCRSite" />
>>                              </xsd:sequence>
>>                      </xsd:complexType>
>>                      <xsd:complexType name="XCRComponent">
>>                              <xsd:sequence>
>>                                      <xsd:element minOccurs="0" 
>> name="componentType" nillable="true"
>> type="ns2:ComponentType"></xsd:element>
>>                                      <xsd:element minOccurs="0" 
>> name="componentUUID" nillable="true"
>> type="xsd:string" ></xsd:element>
>>                                      <xsd:element minOccurs="0" 
>> name="lastHeartbeat"
>> type="xsd:long"></xsd:element>
>>                                      <xsd:element minOccurs="0" 
>> name="operational"
>> type="xsd:boolean"></xsd:element>
>>                                      <xsd:element minOccurs="0" 
>> name="registered"
>> type="xsd:boolean"></xsd:element>
>>                                      <xsd:element minOccurs="0" name="site" 
>> nillable="true"
>> type="tns:XCRSite"></xsd:element>
>>                              </xsd:sequence>
>> 
>>                      </xsd:complexType>
>>                      <xsd:complexType name="ArrayOfXCRSite">
>>                              <xsd:sequence>
>>                                      <xsd:element maxOccurs="unbounded" 
>> minOccurs="0"
>>                                              name="XCRSite" nillable="true" 
>> type="tns:XCRSite" />
>>                              </xsd:sequence>
>>                      </xsd:complexType>
>>              </xsd:schema>
>>      </wsdl:types>
>>      <wsdl:message name="getNetworkResponse">
>>              <wsdl:part element="tns:getNetworkResponse" name="result" />
>>      </wsdl:message>
>>      <wsdl:message name="getNetwork">
>> 
>>              <wsdl:part element="tns:getNetwork" name="parameters" />
>>      </wsdl:message>
>>      <wsdl:portType name="Configuration">
>>              <wsdl:operation name="getNetwork">
>>                      <wsdl:input message="tns:getNetwork" name="getNetwork" 
>> />
>>                      <wsdl:output message="tns:getNetworkResponse"
>>                              name="getNetworkResponse" />
>>              </wsdl:operation>
>>      </wsdl:portType>
>>      <wsdl:binding name="ConfigurationServiceSoapBinding"
>>              type="tns:Configuration">
>> 
>>              <soap:binding style="document"
>>                      transport="http://schemas.xmlsoap.org/soap/http"; />
>>              <wsdl:operation name="getNetwork">
>>                      <soap:operation soapAction="" style="document" />
>>                      <wsdl:input name="getNetwork">
>>                              <soap:body use="literal" />
>>                      </wsdl:input>
>>                      <wsdl:output name="getNetworkResponse">
>>                              <soap:body use="literal" />
>>                      </wsdl:output>
>> 
>>              </wsdl:operation>
>>      </wsdl:binding>
>>      <wsdl:service name="ConfigurationService">
>>              <wsdl:port binding="tns:ConfigurationServiceSoapBinding"
>>                      name="ConfigurationPort">
>>                      <soap:address
>>                              
>> location="http://localhost:8080/digs-controller/configuration"; />
>>              </wsdl:port>
>>      </wsdl:service>
>> </wsdl:definitions>
>> 
>> spring context.xml file entry
>> 
>> <bean id="aegisBean"
>> class="org.apache.cxf.aegis.databinding.AegisDatabinding"/> 
>>      <bean id='jaxws-and-aegis-service-factory'
>> class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> 
>>         <property name="dataBinding" ref="aegisBean"/>
>>                  <property name="serviceConfigurations">
>>                      <list>
>>                        <bean
>> class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/>
>>                        <bean
>> class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/>
>>                        <bean
>> class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/> 
>>                     </list>
>>                 </property>
>>      </bean>
>> 
>>      
>>      <jaxws:endpoint id="epr.configuration" implementor="#ws.configuration"
>> address="/configuration">
>>      <jaxws:serviceFactory>
>>              <ref bean='jaxws-and-aegis-service-factory' />
>>      </jaxws:serviceFactory>
>>      </jaxws:endpoint>
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Interceptor-has-thrown-exception%2C-unwinding-now-tf4536022.html#a12991481
Sent from the cxf-issues mailing list archive at Nabble.com.

Reply via email to