8 Replies Latest reply on Oct 30, 2009 8:15 AM by marsanm2

    Error using cxfse:proxy

    eruiz_eruiz

      Hi all,

       

      I have a CXF Endpoint that uses a cxfse:proxy to consume services from an internal JBI provider.

       

      My problem arises when we deploy the consumer before the provider, in that cases the ServiceMix process spins to 100% CPU.

       

      Sure I have an error in my deployment because ActiveMQ's InactivityMonitory is who consumes the CPU.

       

      Any help to set up deployment sequence, runtime dependencies, etc. will be welcome.

       

      Thanks

        • 1. Re: Error using cxfse:proxy
          davestanley

          Hi,

          Can you paste your cxf-se configuration. Maybe we will be able to spot something. Also did you make any changes to your /conf/activemq.xml?

           

          Thanks

          /Dave

          • 2. Re: Error using cxfse:proxy
            eruiz_eruiz

            Hi Dave,

             

            Below our changes in activemq.xml:

             

            Line 50 changed to

             

            <amq:transportConnector uri="tcp://localhost:61616" />

             

            Line 54 commented auto discover the other brokers:

             

            <!-- 

                  <amq:networkConnector uri="multicast://default"/>

                  <amq:networkConnector uri="static://(tcp://host1:61616,tcp://host2:61616)"/>

            -->

             

            Below our CXF-SE xbean.xml

             

            <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"

                   xmlns="http://www.springframework.org/schema/beans"

                   xmlns:grt="http://ws.cit.gva.es/Greeter">

                    

              <cxfse:proxy id="greeterProxy" service="grt:GreeterService"

                context="#context" type="ws.greeter.GreeterPortType" />

             

              <cxfse:endpoint>

                <cxfse:pojo>

                  <bean class="helloconsumer.HelloConsumerPortTypeImpl" autowire="false">

                    <property name="greeter" ref="greeterProxy" />

                  </bean>

                </cxfse:pojo>

              </cxfse:endpoint>

             

            Thank you very much.

            • 3. Re: Error using cxfse:proxy
              davestanley

              Hi,

              It looks ok. If possible can you capture a thread dump of when the esb is spinning @100% and attach it... Maybe also try and remove the #context and see if that helps.

               

              Regards

              /Dave

              • 4. Re: Error using cxfse:proxy
                davestanley

                Also, did you add the codegen plugin to your cxf-bc? See ESB-219.

                 

                Regards

                /Dave

                • 5. Re: Error using cxfse:proxy
                  eruiz_eruiz

                  Thank you very much Dave,

                   

                  Yes we followed the doc at  ESB

                   

                  Attached is a little Maven project containing one CXF SE SU and one SA, when I deploy this SA the CPU spins to 100%.

                   

                  Please test the attached SU / SA. To deploy it:

                   

                  unzip cpu-overload.zip

                  cd cpu-overload

                  mvn install

                  cd cpu-overload-sa

                  mvn jbi:projectDeploy

                   

                  King regards.

                  • 6. Re: Error using cxfse:proxy
                    eruiz_eruiz

                    Hi Dave,

                     

                    Did you test the attached code?

                     

                    Let me know if you need something else or if there was any error in attached code.

                     

                    Thanks

                    • 7. Re: Error using cxfse:proxy
                      marsanm2

                      Hi all !

                       

                      I am a DiSiD company worker like eruiz user.

                       

                      We can not find the problem to the 100% CPU spin.

                      Did you test the attached code ?

                       

                      We are interested in to buy the HQ tool, but first need to resolve this problem.

                       

                      Thanks !

                      • 8. Re: Error using cxfse:proxy
                        marsanm2

                        Hi all !

                         

                        We have found a solution to this error, but we cannot fix the source problem.

                         

                        The error is placed on the xbean.xml file of components that use the cxfse:proxy tag. In this tag, the attribute context="#context" causes an overload and finally the system crash.

                         

                        Another related problem can be found when the JAVA_OPTS environment variable is setted on servicemix startup because some servicemix default memory configurations are not established.

                         

                        Bye !