Bug 1018861 - Broken demo quickstarts/switchyard/demos/multiApp
Summary: Broken demo quickstarts/switchyard/demos/multiApp
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Examples
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER5
: ---
Assignee: Keith Babo
QA Contact: Martin Vecera
URL:
Whiteboard:
Depends On: 1021040
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-14 14:33 UTC by Martin Vecera
Modified: 2014-06-16 23:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot (26.47 KB, image/png)
2013-10-21 16:17 UTC, Len DiMaggio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1774 0 Major Closed Broken switchyard.xml in demo/multiApp 2016-06-07 07:59:56 UTC

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


Note You need to log in before you can comment on or make changes to this bug.