4 Replies Latest reply on Nov 3, 2009 2:37 PM by jgoodyea

    logisticx demo problems

    oscarmaimo

      Hi everybody:

      I am new to FUSE and i am trying logisticx demo tutorial. I installed tomcat 6. When a try to submit an order, according FUSE getting started guide i get the following error:

      "AjaxOrderService Failed: com.google.gwt.user.client.rpc.InvocationException: The call failed on the server; see server log for details"

      from servicemix console:

       

      smx@root:jbi> list

      Components

      -


         State                  Name                  Description

      Service Assemblies

      -


         State                  Name                  Description

           Order Processor SA

           Stock Processor SA

           Derby SA

       

      I seem the are two missings assemblies.

      I hope somebody could help me.

      Greetings

      Oscar

        • 1. Re: logisticx demo problems
          oscarmaimo

          my platform is RHEL 64 bits

          • 2. Re: logisticx demo problems
            jgoodyea

            Hi,

             

            Which version of FUSE ESB and Java are you using?

             

            As a quick solution I'd try stopping the ESB, removing the contents of the data directory, then restarting the ESB. Check the JBI application list then to see if the other two assemblies loaded properly. If this approach does not work then we'll need to start looking into any log messages in data/log/servicemix.log.

             

            J

            • 3. Re: logisticx demo problems
              oscarmaimo

              --My version are

              fuse-esb-4.1.0.2

              jdk1.6.0_16

               

              --I did that but it didn't resolve my problems, now there is four service assemblies:

              Service Assemblies

              -


                 State                  Name                  Description

                   Order Route SA

                   Derby SA

                   Stock Processor SA

                   Order Processor SA

               

              servicemix.log doesn't show anything but catalina.out:Nov 2, 2009 9:34:01 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept

              INFO: Interceptor has thrown exception, unwinding now

              org.apache.cxf.interceptor.Fault: Connection refused

                      at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:93)

                      at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)

                      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)

                      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)

                      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)

                      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)

                      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)

                      at $Proxy40.putOrder(Unknown Source)

                      at com.iona.fuse.demo.logisticx.web.customer.server.AjaxOrderServiceImpl.doSubmit(AjaxOrderServiceImpl.java:37)

                      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:597)

                      at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:528)

                      at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:265)

                      at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:187)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:46)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

                      at java.lang.Thread.run(Thread.java:619)

              Caused by: com.ctc.wstx.exc.WstxIOException: Connection refused

                      at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313)

                      at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:91)

                      ... 32 more

              Caused by: java.net.ConnectException: Connection refused

                      at java.net.PlainSocketImpl.socketConnect(Native Method)

                      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

                      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

                      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

                      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

                      at java.net.Socket.connect(Socket.java:525)

                      at sun.net.NetworkClient.doConnect(NetworkClient.java:158)

                      at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)

                      at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)

                      at sun.net.www.http.HttpClient.(HttpClient.java:233)

                      at sun.net.www.http.HttpClient.New(HttpClient.java:306)

                      at sun.net.www.http.HttpClient.New(HttpClient.java:323)

                      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)

                      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)

                      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)

                      at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:904)

                      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1803)

                      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1761)

                      at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:42)

                      at org.apache.cxf.io.CacheAndWriteOutputStream.write(CacheAndWriteOutputStream.java:68)

                      at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)

                      at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)

                      at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)

                      ... 33 more

              Any idea......

               

              Edited by: oscarmaimo on Nov 2, 2009 3:19 PM

              • 4. Re: logisticx demo problems
                jgoodyea

                Setting up the demo I'm seeing the following:

                 

                Service Assemblies
                ------------------
                   State                  Name                  Description
                [Started ] [derby-sa                      ]     Derby SA
                [Started ] [order-processor-sa            ]     Order Processor SA
                [Started ] [stock-processor-sa            ]     Stock Processor SA
                [Started ] [order-sa                      ]     Order SA
                

                 

                It would appear that there is a loading issue, resulting in some SAs not getting deployed. In the above case the order-route-sa failed due to an error deploying SU order-camel-cbr-su. Checking my logs there was an "Unrecognized xbean namespace mapping: http://activemq.apache.org/camel/schema/spring", which would be related to updates to the version of camel included in newer versions of SMX4 (Note: I ran logistix against a current source build instead of a release version).

                 

                The cxf error in your log trace however does not appear to be a version issue, in this case either service did not start up on a specified port or a port conflict had occurred.

                 

                Considering a clearing of the data folder seemed to allow you to load more SAs I'd try doing a clean setup once again, however this time setup the demo as follows:

                 

                1) clear the data folder

                2) clear the deploy folder

                3) start ESB, verify all the bundles & JBI apps are started

                4) copy logistix SAs to deploy folder

                5) check that all the SAs loaded. 

                 

                J