You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by mattrpav <ma...@airband.com> on 2008/02/06 23:50:21 UTC

WSDL2Java error message 2.0.4-INCUBATOR

Looks to be a cosmetic issue.. not sure what wsdl2java is trying to do with
the binding manager.

 * The service and objects are all created correctly 
 * Running wsdl2java with CXF 2.0.4-INCUBATOR.  
 * Same WSDL has no error when running wsdl2java with CXF-2.0.2.  

[Interesting part of error message]
WARNING: method annotated by @PostConstruct throws exception when invoked
...
Caused by: java.lang.NullPointerException
	at
org.apache.cxf.binding.soap.SoapTransportFactory.registerWithBindingManager(SoapTransportFactory.java:175)
	... 35 more
..

Full maven output:

[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   SiteWS
[INFO]   SiteWS :: CXF SE
[INFO]   SiteWS :: CXF BC
[INFO]   SiteWS :: SA
[INFO]
----------------------------------------------------------------------------
[INFO] Building SiteWS
[INFO]    task-segment: [generate-sources]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL com.airband:sitews:pom:1.0 (  task-segment:
[generate-sources] )
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 0 second
[INFO] Finished at: Wed Feb 06 16:38:45 CST 2008
[INFO] Memory 1M/4M
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[INFO] Building SiteWS :: CXF SE
[INFO]    task-segment: [generate-sources]
[INFO]
----------------------------------------------------------------------------
[INFO] cxf-codegen:wsdl2java
Feb 6, 2008 4:38:54 PM org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading plugin
jar:file:/c:/sm-eclipse/apache-maven-2.0.8/repo/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.0.4-incubator/cxf-tools-wsdlto-frontend-jaxws-2.0.4-incubator.jar!/META-INF/tools-plugin.xml
Feb 6, 2008 4:38:55 PM org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Found 1 frontends in <jaxws> plugin.
Feb 6, 2008 4:38:55 PM org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading <jaxws> frontend from <jaxws> plugin.
Feb 6, 2008 4:38:55 PM org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading plugin
jar:file:/c:/sm-eclipse/apache-maven-2.0.8/repo/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/2.0.4-incubator/cxf-tools-wsdlto-databinding-jaxb-2.0.4-incubator.jar!/META-INF/tools-plugin.xml
Feb 6, 2008 4:38:55 PM org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Found 1 databindings in <jaxb> plugin.
Feb 6, 2008 4:38:55 PM org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading <jaxb> databinding from <jaxb> plugin.
Feb 6, 2008 4:38:56 PM
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@126965a:
display name [org.apache.cxf.bus.spring.BusApplicationContext@126965a];
startup date [Wed Feb 06 16:38:56 CST 2008]; root of context hierarchy
Feb 6, 2008 4:38:56 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
Feb 6, 2008 4:38:56 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-soap.xml]
Feb 6, 2008 4:38:56 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-xml.xml]
Feb 6, 2008 4:38:56 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-jbi.xml]
Feb 6, 2008 4:38:56 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-jbi-binding.xml]
Feb 6, 2008 4:38:57 PM
org.springframework.context.support.AbstractApplicationContext
obtainFreshBeanFactory
INFO: Bean factory for application context
[org.apache.cxf.bus.spring.BusApplicationContext@126965a]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@1c0a077
Feb 6, 2008 4:38:57 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not
eligible for getting processed by all BeanPostProcessors (for example: not
eligible for auto-proxying)
Feb 6, 2008 4:38:57 PM
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not
eligible for getting processed by all BeanPostProcessors (for example: not
eligible for auto-proxying)
Feb 6, 2008 4:38:57 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1c0a077:
defining beans
[cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.transport.jbi.JBITransportFactory,org.apache.cxf.binding.jbi.JBIBindingFactory];
root of factory hierarchy
Feb 6, 2008 4:38:57 PM
org.apache.cxf.tools.validator.internal.WSDL11Validator getWSDLDoc
INFO: Validate wsdl
file:/C:/sm-eclipse/workspace/SiteWS/sitews-cxfse-su/src/main/resources/SiteWS.wsdl
Feb 6, 2008 4:38:59 PM org.apache.cxf.common.injection.ResourceInjector
invokePostConstruct
WARNING: method annotated by @PostConstruct throws exception when invoked
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.apache.cxf.common.injection.ResourceInjector.invokePostConstruct(ResourceInjector.java:305)
	at
org.apache.cxf.common.injection.ResourceInjector.construct(ResourceInjector.java:86)
	at
org.apache.cxf.bus.spring.Jsr250BeanPostProcessor.postProcessAfterInitialization(Jsr250BeanPostProcessor.java:58)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:312)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1180)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
	at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
	at
org.apache.cxf.configuration.spring.AbstractSpringBeanMap.get(AbstractSpringBeanMap.java:136)
	at
org.apache.cxf.configuration.spring.AbstractSpringBeanMap$SpringBeanMapWrapper.get(AbstractSpringBeanMap.java:236)
	at
org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:104)
	at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildEndpoint(WSDLServiceBuilder.java:293)
	at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:255)
	at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:147)
	at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:136)
	at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:139)
	at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:229)
	at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
	at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:292)
	at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:202)
	at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:578)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:328)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813)
	at
org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85)
Caused by: java.lang.NullPointerException
	at
org.apache.cxf.binding.soap.SoapTransportFactory.registerWithBindingManager(SoapTransportFactory.java:175)
	... 35 more
Feb 6, 2008 4:39:02 PM
org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing org.apache.cxf.bus.spring.BusApplicationContext@126965a:
display name [org.apache.cxf.bus.spring.BusApplicationContext@126965a];
startup date [Wed Feb 06 16:38:56 CST 2008]; root of context hierarchy
Feb 6, 2008 4:39:02 PM
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
INFO: Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1c0a077:
defining beans
[cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.transport.jbi.JBITransportFactory,org.apache.cxf.binding.jbi.JBIBindingFactory];
root of factory hierarchy
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
com.airband.sitews:sitews-cxfse-su:jbi-service-unit:1.0 (  task-segment:
[generate-sources] )
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 17 second
[INFO] Finished at: Wed Feb 06 16:39:03 CST 2008
[INFO] Memory 19M/43M
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[INFO] Building SiteWS :: CXF BC
[INFO]    task-segment: [generate-sources]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
com.airband.sitews:sitews-cxfbc-su:jbi-service-unit:1.0 (  task-segment:
[generate-sources] )
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 0 second
[INFO] Finished at: Wed Feb 06 16:39:03 CST 2008
[INFO] Memory 19M/43M
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[INFO] Building SiteWS :: SA
[INFO]    task-segment: [generate-sources]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
com.airband.sitews:sitews-sa:jbi-service-assembly:1.0 (  task-segment:
[generate-sources] )
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 0 second
[INFO] Finished at: Wed Feb 06 16:39:03 CST 2008
[INFO] Memory 19M/43M
[INFO]
----------------------------------------------------------------------------

-- 
View this message in context: http://www.nabble.com/WSDL2Java-error-message-2.0.4-INCUBATOR-tp15319961p15319961.html
Sent from the cxf-user mailing list archive at Nabble.com.