[ 
https://issues.apache.org/jira/browse/CXF-7817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16591098#comment-16591098
 ] 

Suthee Phaiphinit commented on CXF-7817:
----------------------------------------

I upload eclipse sample project to Gdrive 
[https://drive.google.com/open?id=13f3b_9I55SUqZic-UqtqYAhOS2-2ctPt]. You can 
run with Stater class and data send to program look like below in JSON format

{
    "name":"DDAgent",
    "data":{
        "method":"PUT",
        "transactionId":"123456789"
    }
}

 

> JAXBException: org.apache.cxf.configuration.security.KeyManagersType is not 
> known to this context
> -------------------------------------------------------------------------------------------------
>
>                 Key: CXF-7817
>                 URL: https://issues.apache.org/jira/browse/CXF-7817
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAX-RS Security, JAXB Databinding
>    Affects Versions: 3.2.3
>         Environment: Windows 7 32-bit
> IBM JDK8
> jetty-9.4.8.v20171121
>            Reporter: Suthee Phaiphinit
>            Priority: Major
>         Attachments: agent.xml, console-DDAgentUpload.zip, debug.zip
>
>
> Hello,
> I'm a newbie for cxf framework. My project is desktop application that 
> received request and pass request to external server with Restful or SOAP 
> webservices. But i found sometimes when i call webclient method put or post 
> for send messsage it has Exception like below
>  
> 14:15:48.317 [DEBUG] CONSOLE.doUpload() - Error creating bean with name 
> 'https://192.168.47.17:19443/ssbagt/.*': Cannot create inner bean '(inner 
> bean)#9c2bc6cd' of type 
> [org.apache.cxf.configuration.jsse.TLSClientParametersConfig] while setting 
> bean property 'tlsClientParameters'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name '(inner bean)#9c2bc6cd': Cannot create inner bean '(inner 
> bean)#f422e659' of type 
> [org.apache.cxf.configuration.jsse.TLSClientParametersConfig$TLSClientParametersTypeInternal]
>  while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name '(inner bean)#f422e659': Cannot create inner bean '(inner 
> bean)#4927727e' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] 
> while setting bean property 'keyManagers'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name '(inner bean)#4927727e': Bean instantiation via factory method 
> failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [java.lang.Object]: Factory method 'createJAXBBean' threw exception; nested 
> exception is java.lang.RuntimeException: javax.xml.bind.JAXBException: 
> org.apache.cxf.configuration.security.KeyManagersType is not known to this 
> context
> 14:15:48.323 [DEBUG] CONSOLE.printStackTrace() - 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'https://192.168.47.17:19443/ssbagt/.*': Cannot create inner bean 
> '(inner bean)#9c2bc6cd' of type 
> [org.apache.cxf.configuration.jsse.TLSClientParametersConfig] while setting 
> bean property 'tlsClientParameters'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name '(inner bean)#9c2bc6cd': Cannot create inner bean '(inner 
> bean)#f422e659' of type 
> [org.apache.cxf.configuration.jsse.TLSClientParametersConfig$TLSClientParametersTypeInternal]
>  while setting constructor argument; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name '(inner bean)#f422e659': Cannot create inner bean '(inner 
> bean)#4927727e' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] 
> while setting bean property 'keyManagers'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name '(inner bean)#4927727e': Bean instantiation via factory method 
> failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [java.lang.Object]: Factory method 'createJAXBBean' threw exception; nested 
> exception is java.lang.RuntimeException: javax.xml.bind.JAXBException: 
> org.apache.cxf.configuration.security.KeyManagersType is not known to this 
> context
>     at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
>     at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)
>     at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
>     at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
>     at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:324)
>     at 
> org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:147)
>     at 
> org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:177)
>     at 
> org.apache.cxf.configuration.spring.ConfigurerImpl.configureWithWildCard(ConfigurerImpl.java:202)
>     at 
> org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:151)
>     at 
> org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(ConfigurerImpl.java:135)
>     at 
> org.apache.cxf.transport.http.HTTPTransportFactory.configure(HTTPTransportFactory.java:185)
>     at 
> org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTransportFactory.java:248)
>     at 
> org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTransportFactory.java:215)
>     at 
> org.apache.cxf.endpoint.AbstractConduitSelector.createConduit(AbstractConduitSelector.java:146)
>     at 
> org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:108)
>     at 
> org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
>     at 
> org.apache.cxf.jaxrs.client.ClientConfiguration.prepareConduitSelector(ClientConfiguration.java:109)
>     at 
> org.apache.cxf.jaxrs.client.AbstractClient.prepareConduitSelector(AbstractClient.java:917)
>     at 
> org.apache.cxf.jaxrs.client.AbstractClient.createMessage(AbstractClient.java:1026)
>     at 
> org.apache.cxf.jaxrs.client.WebClient.finalizeMessage(WebClient.java:1075)
>     at 
> org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1048)
>     at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:897)
>     at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:866)
>     at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:334)
>     at org.apache.cxf.jaxrs.client.WebClient.put(WebClient.java:352)
>     at 
> th.co.loxbit.ssb.broker.request.RequestDDAgent.doUpload(RequestDDAgent.java:129)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to