Bug 1018861

Summary: Broken demo quickstarts/switchyard/demos/multiApp
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Martin Vecera <mvecera>
Component: ExamplesAssignee: Keith Babo <kbabo>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Vecera <mvecera>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.0 GACC: ldimaggi, ppecka, soa-p-jira
Target Milestone: ER5   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1021040    
Bug Blocks:    
Attachments:
Description Flags
Screenshot none

Description Martin Vecera 2013-10-14 14:33:14 UTC
I deployed all the artifacts as described in quickstarts/switchyard/demos/multiApp/README.md

Then I opened http://localhost:8080/switchyard-quickstart-demo-multi-web and tried adding an item. This lead to an exception while it should have worked.

org.switchyard.component.bean.BeanComponentException: A service reference to service 'InventoryService' is not bound into this client proxy instance.  A reference configuration to the service may be required in the application configuration.
	org.switchyard.component.bean.ClientProxyBean$ClientProxyInvocationHandler.invoke(ClientProxyBean.java:270)
	com.sun.proxy.$Proxy306.createItem(Unknown Source)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:606)
	org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:45)
	org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)
	org.jboss.weld.proxies.InventoryService$1366014918$Proxy$_$$_WeldClientProxy.createItem(InventoryService$1366014918$Proxy$_$$_WeldClientProxy.java)
	org.switchyard.quickstarts.demo.multiapp.web.ItemEntry.create(ItemEntry.java:62)
	org.switchyard.quickstarts.demo.multiapp.web.ItemEntry$Proxy$_$$_WeldClientProxy.create(ItemEntry$Proxy$_$$_WeldClientProxy.java)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:606)
	org.apache.el.parser.AstValue.invoke(AstValue.java:258)
	org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
	org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
	org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
	com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:101)
	javax.faces.component.UICommand.broadcast(UICommand.java:315)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:786)
	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1251)
	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)

Comment 1 Keith Babo 2013-10-15 16:18:43 UTC
This is a bug in the switchyard.xml included with the web project.  It currently has an empty composite and it should have this instead:

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" 
    name="web" targetNamespace="urn:switchyard-quickstart-demo:multiapp:0.1.0">
    <component name="ItemEntryBean">
        <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" 
            class="org.switchyard.quickstarts.demo.multiapp.web.ItemEntry"/>
        <reference name="InventoryService">
            <interface.java 
                interface="org.switchyard.quickstarts.demo.multiapp.InventoryService"/>
        </reference>
    </component>
</composite>

Comment 2 JBoss JIRA Server 2013-10-16 14:55:54 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1774 to Resolved

Comment 3 JBoss JIRA Server 2013-10-16 14:55:54 UTC
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1774

pushed

Comment 4 Len DiMaggio 2013-10-21 16:16:12 UTC
See attached screenshot - problem is not present with ER6.

Comment 5 Len DiMaggio 2013-10-21 16:17:25 UTC
Created attachment 814699 [details]
Screenshot

Comment 6 JBoss JIRA Server 2014-06-16 23:51:02 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1774 to Closed