On Wednesday, March 21, 2012 06:50:05 PM rajesh babu wrote:
> I am struck for more than 3 days can anyone please help me out in this
> Issue?

How is the camel route defined?  How is the CXF client created?   Are you 
specifying a bus created from that config file?

Dan




> 
> Thanks in advance
> Rajesh
> ---------- Forwarded message ----------
> From: rajesh babu <rajeshv...@gmail.com>
> Date: Tue, Mar 20, 2012 at 12:11 PM
> Subject: Issue in Virgo Deployment
> To: iss...@cxf.apache.org
> 
> 
> Hi All,
> 
>      I have application that will act as webservices client and i need to
> submit to request to  my server which is having an "https" endpoint, my
> http-conduit looks like ,
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
>   Licensed to the Apache Software Foundation (ASF) under one
>   or more contributor license agreements. See the NOTICE file
>   distributed with this work for additional information
>   regarding copyright ownership. The ASF licenses this file
>   to you under the Apache License, Version 2.0 (the
>   "License"); you may not use this file except in compliance
>   with the License. You may obtain a copy of the License at
> 
>   http://www.apache.org/licenses/LICENSE-2.0
> 
>   Unless required by applicable law or agreed to in writing,
>   software distributed under the License is distributed on an
>   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>   KIND, either express or implied. See the License for the
>   specific language governing permissions and limitations
>   under the License.
> -->
> 
> <!--
>   ** This file configures the Wibble Client
>   -->
> <beans xmlns="http://www.springframework.org/schema/beans";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xmlns:sec="http://cxf.apache.org/configuration/security";
>   xmlns:http="http://cxf.apache.org/transports/http/configuration";
>   xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
>   xmlns:ctx="http://www.springframework.org/schema/context";
>   xmlns:camel="http://camel.apache.org/schema/spring";
>   xmlns:camel-cxf="http://camel.apache.org/schema/cxf";
>   xmlns:http-conf="http://cxf.apache.org/transports/http/configuration";
>   xsi:schemaLocation="
>            http://cxf.apache.org/configuration/security
>            http://cxf.apache.org/schemas/configuration/security.xsd
>            http://cxf.apache.org/transports/http/configuration
>            http://cxf.apache.org/schemas/configuration/http-conf.xsd
>            http://www.springframework.org/schema/beans
>            http://www.springframework.org/schema/beans/spring-beans.xsd
>     http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context.xsd
>     http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>     http://camel.apache.org/schema/osgi
> http://camel.apache.org/schema/osgi/camel-osgi.xsd
>     http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
>     http://cxf.apache.org/configuration/security
> http://cxf.apache.org/schemas/configuration/security.xsd";>
> 
>    <!--  <bean id="placeholderConfig"
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigu
> rer"> <property name="locations" value="classpath:/context.properties"/>
> </bean>-->
> 
>    <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-extension-http-jetty.xml"
> />
> 
> 
> 
>    <http-conf:conduit name="*.http-conduit">
>     <http-conf:tlsClientParameters secureSocketProtocol="TLS"
> disableCNCheck="true">
>       <sec:keyManagers keyPassword="initinit">
>             <sec:keyStore type="JKS" password="initinit"
>                 file="C:\\gehc-it\\ccg\\conf\\certs\\client.keystore"/>
>        </sec:keyManagers>
>       <sec:trustManagers>
>           <sec:keyStore type="JKS" password="initinit"
>                 file="C:\\gehc-it\\ccg\\conf\\certs\\ca.keystore"/>
>       </sec:trustManagers>
>        <sec:cipherSuitesFilter>
>         <!-- these filters ensure that a ciphersuite with
>           export-suitable or null encryption is used,
>            but exclude anonymous Diffie-Hellman key change as
>           this is vulnerable to man-in-the-middle attacks -->
>          <sec:include>.*_EXPORT_.*</sec:include>
>         <sec:include>.*_EXPORT1024_.*</sec:include>
>          <sec:include>.*_WITH_DES_.*</sec:include>
>         <sec:include>NULL-SHA</sec:include>
>          <sec:include>.*_WITH_NULL_.*</sec:include>
>         <sec:include>.*_RSA_.*</sec:include>
>          <sec:include>.*_NULL-SHA_.*</sec:include>
>         <sec:exclude>.*_DH_anon_.*</sec:exclude>
>        </sec:cipherSuitesFilter>
>   </http-conf:tlsClientParameters>
>    </http-conf:conduit>
> 
> </beans>
> 
> 
> 
> But when i am trying to send a request i get the following error,
> 
> 2012-03-19 23:34:09.043] INFO  l Thread 69 - MinaThreadPool System.out
>                                                    0000: 15 03 01 00 12 AA
> B4 0C   44 D5 99 BE 86 6C 3D 07  ........D....l=.
> [2012-03-19 23:34:09.051] INFO  l Thread 69 - MinaThreadPool System.out
>                                                    0010: 63 1B 8C 71 56 6C
> 8F                               c..qVl.
> [2012-03-19 23:34:09.052] INFO  l Thread 69 - MinaThreadPool System.out
>                                                    %% Invalidated:
>  [Session-13, SSL_RSA_WITH_RC4_128_MD5]
> [2012-03-19 23:34:09.052] INFO  l Thread 69 - MinaThreadPool System.out
>                                                    Camel Thread 69 -
> MinaThreadPool, called close()
> [2012-03-19 23:34:09.053] INFO  l Thread 69 - MinaThreadPool System.out
>                                                    Camel Thread 69 -
> MinaThreadPool, called closeInternal(true)
> [2012-03-19 23:34:09.063] WARN  l Thread 69 - MinaThreadPool
> org.apache.cxf.phase.PhaseInterceptorChain
>  Interceptor for
> {urn:ihe:iti:xds-b:2007}DocumentRepository_Service#{urn:ihe:iti:xds-b:2007
> }DocumentRepository_ProvideAndRegisterDocumentSet-b has thrown exception,
> unwinding now org.apache.cxf.interceptor.Fault: Marshalling Error: The
> https URL hostname does not match the Common Name (CN) on the server
> certificate.  To disable this check (NOT recommended for production) set
> the CXF client TLS configuration property "disableCNCheck" to true.
>  at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:25
> 2) at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:169)
> at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(Ab
> stractOutDatabindingInterceptor.java:111) at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterce
> ptor.java:68) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:243) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> at $Proxy199.documentRepositoryProvideAndRegisterDocumentSetB(Unknown
> Source)
> at
> org.openehealth.ipf.platform.camel.ihe.xds.iti41.component.Iti41Producer.c
> allService(Iti41Producer.java:42) at
> org.openehealth.ipf.platform.camel.ihe.xds.iti41.component.Iti41Producer.c
> allService(Iti41Producer.java:27) at
> org.openehealth.ipf.platform.camel.ihe.ws.DefaultItiProducer.process(Defau
> ltItiProducer.java:160) at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsy
> ncProcessorBridge.process(AsyncProcessorTypeConverter.java:50) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor
> .java:104) at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:2
> 72) at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.management.InstrumentationProcessor.process(Instrumentati
> onProcessor.java:68) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInter
> ceptor.java:99) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(Rede
> liveryErrorHandler.java:299) at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH
> andler.java:208) at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:78) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:78) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.management.InstrumentationProcessor.process(Instrumentati
> onProcessor.java:68) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInter
> ceptor.java:99) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(Rede
> liveryErrorHandler.java:299) at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH
> andler.java:208) at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
> at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor
> .java:113) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.management.InstrumentationProcessor.process(Instrumentati
> onProcessor.java:68) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.ja
> va:61) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor
> .java:104) at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:2
> 72) at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.management.InstrumentationProcessor.process(Instrumentati
> onProcessor.java:68) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInter
> ceptor.java:99) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(Rede
> liveryErrorHandler.java:299) at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH
> andler.java:208) at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:78) at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor
> .java:99) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:70) at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn
> cProcessor.java:98) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:89) at
> org.apache.camel.management.InstrumentationProcessor.process(Instrumentati
> onProcessor.java:68) at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja
> va:91) at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro
> cessor.java:85) at
> org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.messageReceive
> d(MinaConsumer.java:114) at
> org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageRec
> eived(AbstractIoFilterChain.java:570) at
> org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceiv
> ed(AbstractIoFilterChain.java:299) at
> org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractI
> oFilterChain.java:53) at
> org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageRe
> ceived(AbstractIoFilterChain.java:648) at
> org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter
> .java:220) at
> org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(E
> xecutorFilter.java:264) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
> java.lang.Thread.run(Unknown Source)
> Caused by: javax.xml.bind.MarshalException: null
> at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.write(Unknown
> Source) at
> com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.marshal(Unknown
> Source)
>  at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(Unknown Source)
> at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java
> :536) at
> org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:22
> 7) ... 91 common frames omitted
> Caused by: java.io.IOException: The https URL hostname does not match the
> Common Name (CN) on the server certificate.  To disable this check (NOT
> recommended for production) set the CXF client TLS configuration property
> "disableCNCheck" to true.
>  at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite
> (HTTPConduit.java:1932) at
> org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputS
> tream.java:42) at
> org.apache.cxf.io.AbstractThresholdOutputStream.unBuffer(AbstractThreshold
> OutputStream.java:89) at
> org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOut
> putStream.java:63) at
> com.sun.xml.internal.bind.v2.runtime.output.UTF8XmlOutput.write(Unknown
> Source)
> at com.sun.xml.internal.bind.v2.runtime.output.Encoded.write(Unknown
> Source) at
> com.sun.xml.internal.bind.v2.runtime.output.UTF8XmlOutput.doText(Unknown
> Source)
> at
> com.sun.xml.internal.bind.v2.runtime.output.UTF8XmlOutput.attribute(Unknow
> n Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.output.MTOMXmlOutput.attribute(Unknow
> n Source)
> at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.attribute(Unknown
> Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.property.AttributeProperty.serializeA
> ttributes(Unknown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeAttributes
> (Unknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown
> Source)
> at
> com.sun.xml.internal.bind.v2.runtime.property.ArrayElementNodeProperty.ser
> ializeItem(Unknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.property.ArrayElementProperty.seriali
> zeListBody(Unknown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.property.ArrayERProperty.serializeBod
> y(Unknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unkno
> wn Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unkno
> wn Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown
> Source)
> at
> com.sun.xml.internal.bind.v2.runtime.property.SingleElementNodeProperty.se
> rializeBody(Unknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(U
> nknown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(U
> nknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(Unk
> nown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(Unk
> nown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(Unk
> nown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.property.ArrayReferenceNodeProperty.s
> erializeListBody(Unknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.property.ArrayERProperty.serializeBod
> y(Unknown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unkno
> wn Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown
> Source)
> at
> com.sun.xml.internal.bind.v2.runtime.property.SingleElementNodeProperty.se
> rializeBody(Unknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unkno
> wn Source)
> at
> com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown
> Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.property.SingleElementNodeProperty.se
> rializeBody(Unknown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unkno
> wn Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown
> Source)
> at
> com.sun.xml.internal.bind.v2.runtime.property.SingleElementNodeProperty.se
> rializeBody(Unknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(U
> nknown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(U
> nknown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(Unk
> nown Source)
> at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(Unk
> nown Source)
>  at
> com.sun.xml.internal.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(Unk
> nown Source)
> at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsRoot(Unknown
> Source)
>  ... 96 common frames omitted
-- 
Daniel Kulp
dk...@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to