0 Replies Latest reply on Feb 10, 2011 12:13 PM by fsalceda

    java.lang.reflect.InvocationTargetException

    fsalceda

      Until now I was using FuseESB 4.2.0 and I never notice the following problems, when I moved to FuseESB 4.3.0-03 I detected that sometimes cxf-bc didnt export their endpoints.

       

      When I start FuseESB all seems be ok, provider is "started" but its endoint is not there.

       

      When I restart de cxfbc component, the endpoint appears on nmr list or fails with "[Fatal Error] RegistroWSPort?xsd=1:1:50: White spaces are required between publicId and systemId." and logs show:

       

      17:50:36,811 | INFO  | Timer-1          | OsgiBundleXmlApplicationContext  | ractOsgiBundleApplicationContext  365 | 65 - org.springframework.context - 3.0.3.RELEASE | Application Context service already unpublished

      17:50:36,811 | INFO  | Timer-1          | OsgiBundleXmlApplicationContext  | pport.AbstractApplicationContext 1002 | 65 - org.springframework.context - 3.0.3.RELEASE | Closing OsgiBundleXmlApplicationContext(bundle=PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0, config=osgibundle:/META-INF/spring/*.xml): startup date ; root of context hierarchy

      17:50:36,815 | INFO  | Timer-1          | DefaultListableBeanFactory       | ort.DefaultSingletonBeanRegistry  422 | 63 - org.springframework.beans - 3.0.3.RELEASE | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3f357ede: defining beans ; root of factory hierarchy

      17:50:36,815 | INFO  | Timer-1          | ContextLoaderListener            | BundleApplicationContextListener   60 | 76 - org.springframework.osgi.extender - 1.2.0 | Application context succesfully closed (OsgiBundleXmlApplicationContext(bundle=PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0, config=osgibundle:/META-INF/spring/*.xml))

      17:50:36,831 | INFO  | Thread-42        | ultOsgiApplicationContextCreator | ultOsgiApplicationContextCreator   67 | 76 - org.springframework.osgi.extender - 1.2.0 | Discovered configurations in bundle

      17:50:36,839 | INFO  | tenderThread-101 | OsgiBundleXmlApplicationContext  | pport.AbstractApplicationContext  456 | 65 - org.springframework.context - 3.0.3.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0, config=osgibundle:/META-INF/spring/*.xml): startup date ; root of context hierarchy

      17:50:36,839 | INFO  | tenderThread-101 | OsgiBundleXmlApplicationContext  | ractOsgiBundleApplicationContext  359 | 65 - org.springframework.context - 3.0.3.RELEASE | Unpublishing application context OSGi service for bundle PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0 (PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0)

      17:50:36,839 | INFO  | tenderThread-101 | XmlBeanDefinitionReader          | tory.xml.XmlBeanDefinitionReader  315 | 63 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from URL bundleentry://205.fwk2023306452/META-INF/spring/beans.xml

      17:50:36,851 | INFO  | tenderThread-101 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor  252 | 76 - org.springframework.osgi.extender - 1.2.0 | No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0, config=osgibundle:/META-INF/spring/*.xml)

      17:50:36,855 | INFO  | tenderThread-102 | DefaultListableBeanFactory       | pport.DefaultListableBeanFactory  549 | 63 - org.springframework.beans - 3.0.3.RELEASE | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5cd4c8b0: defining beans ; root of factory hierarchy

      17:50:36,951 | ERROR | tenderThread-102 | tServiceReferenceRecipe$Listener | tServiceReferenceRecipe$Listener  556 | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception

      java.lang.reflect.InvocationTargetException

           at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_20]

           at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_20]

           at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]

           at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:933)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:756)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:711)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:206)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:507)[osgi-3.6.0.v20100517.jar:]

           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:525)[osgi-3.6.0.v20100517.jar:]

           at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[94:servicemix-common:2010.02.0.fuse-02-00]

           at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:174)[94:servicemix-common:2010.02.0.fuse-02-00]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[65:org.springframework.context:3.0.3.RELEASE]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[76:org.springframework.osgi.extender:1.2.0]

           at java.lang.Thread.run(Thread.java:619)[:1.6.0_20]

      Caused by: javax.jbi.management.DeploymentException: java.lang.NullPointerException

           at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:488)

           at org.apache.servicemix.common.osgi.EndpointTracker$OsgiServiceUnit.(EndpointTracker.java:77)

           at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:58)

           ... 38 more

      Caused by: java.lang.NullPointerException

           at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:124)

           at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:426)

           ... 40 more

      17:50:36,983 | INFO  | tenderThread-102 | EndpointExporter                 | mix.common.osgi.EndpointExporter  125 | 94 - servicemix-common - 2010.02.0.fuse-02-00 | Waiting for all endpoints to be deployed before registering service assembly

      17:50:36,983 | INFO  | tenderThread-102 | OsgiBundleXmlApplicationContext  | ractOsgiBundleApplicationContext  327 | 65 - org.springframework.context - 3.0.3.RELEASE | Publishing application context as OSGi service with properties {org.springframework.context.service.name=PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0, Bundle-SymbolicName=PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0, Bundle-Version=1.0.0}

      17:50:36,995 | INFO  | tenderThread-102 | ContextLoaderListener            | BundleApplicationContextListener   45 | 76 - org.springframework.osgi.extender - 1.2.0 | Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=PielBackoffices-eRegistro-1.0.0-RegistroWS-Provider-1.0.0, config=osgibundle:/META-INF/spring/*.xml))

       

       

      I would appreciate an answer as soon as possible. Thx.