[ http://issues.apache.org/jira/browse/TUSCANY-595?page=all ]

Jim Marino reassigned TUSCANY-595:
----------------------------------

    Assignee: Jim Marino

> NPE on service binding registering autowire.
> --------------------------------------------
>
>                 Key: TUSCANY-595
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-595
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: Rick Rineholt
>         Assigned To: Jim Marino
>            Priority: Blocker
>
> When loading Web Service binding I'm see the following NPE.  It seems inbound 
> wire is null at this point. Should it have been already set? My first 
> inclination is no.  But on a wsdl binding what interface needs to be 
> registered for autowire?  Do I need to from wsdl synthesize the interface ?  
> Not sure what to do for this.
> Thanks
> =-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-=
>    public Class<T> getInterface() {
>        assert inboundWire != null : "Inbound wire not set";
>        return inboundWire.getBusinessInterface(); //   
> Axis2Service<T>(ServiceExtension<T>).getInterface() line: 62   
>    }
> =-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-=
>    protected void registerAutowire(CompositeComponent<?> component) {
>        List<Service> services = component.getServices();
>        for (Service service : services) {
>            registerAutowireInternal(service.getInterface(), service); //   
> CompositeComponentImpl<T>(AbstractCompositeComponent<T>).registerAutowire(CompositeComponent<?>)
>  line: 224           }
>    }
> =-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-=
>        } else if (child instanceof CompositeComponent) {
>            CompositeComponent component = (CompositeComponent) child;
>            if (lifecycleState == RUNNING && component.getLifecycleState() == 
> UNINITIALIZED) {
>                component.start();
>            }
>            registerAutowire(component); // 
> CompositeComponentImpl<T>(AbstractCompositeComponent<T>).register(SCAObject) 
> line: 142               addListener(component);
>        }
> Thread [main] (Suspended (exception NullPointerException))       
> Axis2Service<T>(ServiceExtension<T>).getInterface() line: 62      
> CompositeComponentImpl<T>(AbstractCompositeComponent<T>).registerAutowire(CompositeComponent<?>)
>  line: 224      
> CompositeComponentImpl<T>(AbstractCompositeComponent<T>).register(SCAObject) 
> line: 142       DeployerImpl.deploy(CompositeComponent<?>, 
> ComponentDefinition<I>) line: 97       Launcher.bootApplication(URL) line: 
> 163       ServletLauncherListener.contextInitialized(ServletContextEvent) 
> line: 112       StandardContext.listenerStart() line: 3729       
> StandardContext.start() line: 4187       
> StandardHost(ContainerBase).addChildInternal(Container) line: 759       
> StandardHost(ContainerBase).addChild(Container) line: 739       
> StandardHost.addChild(Container) line: 524       HostConfig.deployWAR(String, 
> File, String) line: 809       HostConfig.deployWARs(File, String[]) line: 698 
>       HostConfig.deployApps() line: 472       HostConfig.start() line: 1122   
>     HostConfig.lifecycleEvent(LifecycleEvent) line: 310       
> LifecycleSupport.fireLifecycleEvent(String, Object) line: 119       
> StandardHost(ContainerBase).start() line: 1021       StandardHost.start() 
> line: 718       StandardEngine(ContainerBase).start() line: 1013       
> StandardEngine.start() line: 442       StandardService.start() line: 450      
>  StandardServer.start() line: 709       Catalina.start() line: 551       
> NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
> available [native method]       NativeMethodAccessorImpl.invoke(Object, 
> Object[]) line: 39       DelegatingMethodAccessorImpl.invoke(Object, 
> Object[]) line: 25       Method.invoke(Object, Object...) line: 585       
> Bootstrap.start() line: 294       Bootstrap.main(String[]) line: 432    

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to