Announcement Announcement Module
Collapse
No announcement yet.
Unable to use flex:exception-translator inside flex:message-broker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to use flex:exception-translator inside flex:message-broker

    Hi,

    I am ussing latest 1.5.x version of spring-flex, and I have came accross this issue:

    when I include <flex:exception-translator ref="giviExceptionTranslator"/> inside message-broker tag I get XSD error durring deployment :

    Invalid content was found starting with element 'flex:exception-translator'. No child element is expected at this point.
    here is the spring config:

    HTML Code:
         <bean id="giviExceptionTranslator" class="xxx.xxx.MyExceptionTranslator"/>
    
    <flex:message-broker mapping-order="1"    >
            <flex:mapping pattern="/messagebroker/*" />
            <flex:message-service
                    default-channels="my-secure-amf,my-amf" />
            <flex:secured >
                <flex:secured-channel channel="my-secure-amf" access="ROLE_USER" />
    
            </flex:secured>
            <flex:exception-translator ref="giviExceptionTranslator"/>
        </flex:message-broker>
    I tried all options, the only way its working if I create a new second </flex:message-broker> tag,


    this way:
    HTML Code:
         <bean id="giviExceptionTranslator" class="xxx.xxx.MyExceptionTranslator"/>
    
    <flex:message-broker mapping-order="1"    >
            <flex:mapping pattern="/messagebroker/*" />
            <flex:message-service
                    default-channels="my-secure-amf,my-amf" />
           ......
    
     </flex:message-broker>
    
    <flex:message-broker>
            <flex:exception-translator ref="giviExceptionTranslator"/>
        </flex:message-broker>

    in this way everything works but then my regular my-amf channel does not work only my-secure-amf


    bTW:
    in web.xml I have url-mappings done following way:

    HTML Code:
      <servlet>
            <servlet-name>flex</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>0</load-on-startup>
        </servlet>
    
        <servlet-mapping>
            <servlet-name>flex</servlet-name>
            <url-pattern>/messagebroker/amf</url-pattern>
        </servlet-mapping>
    
        <servlet-mapping>
            <servlet-name>flex</servlet-name>
            <url-pattern>/messagebroker/amfsecure</url-pattern>
        </servlet-mapping>
    the reason I did with two url mappings was because it would not work with

    <url-pattern>/messagebroker/*</url-pattern>
    at all, for some reason.

    so now I have a puzzling question, why can not include flex:exception-translator inside flex:message-broker when I have other tags in it, I looked in schema, and looks like there is a option of either have secure tag or flex:exception-translator tag, what is the reason for the limitation and how can i overcome this?

  • #2
    bump
    wow, lack of response, makes me wonder if there is any active development going on with flex spring?

    Comment


    • #3
      hair loss buy viagra

      of dynamism necessary to mad regime and malapropos lifestyle patterns are the power supply reasons for the benefit of the increasing numbers of impotency cases. The incapability of men of not being skilful to carry on the privy session allowing for regarding long duration is a horror of disquietude and Cialis flow. PDE5 counteracts cGMP, breaks it down, and prevents erection in the process. As a PDE5-inhibiting panacea, Viagra fights the enzyme PDE5 and hinders the fall of cGMP.
      cialis-viagra-sverige.net There are lots of sources to establish in Viagra and Viagra solutions on-line. Nonetheless any trap leaf not providing consultation with a registered healthfulness disquiet provider emergency to be avoided. Hugh Hefner, the possessor of Debauchee munitions dump, doesn't need a

      Comment


      • #4
        New generation of legal stimulants for cns

        New generation of legal stimulants for cns

        Our days exist a lot of problems associated with regular heavy loads and the necessity to make a lot of things at once. Bad
        environment just enhances the harmful effects of external factors. Of course we take vitamins, but is it really help relax? As for me, No!

        Every day when I go to home, I feel myself broken, I can't feel happines and joyfulness, those I should feel, when play with my kid and when I spending time with my wife. If we talk about my startups, I can't find time for these. My life is like in the movie "Groundhog Day".

        This note I wrote two month ago, before I started taking "Nootropil". This pills took only a day to I could feel the effect. In just one day, I was able to finish the work by 3 hours earlier, went with my son to the zoo and developed startup with my friend (now this startup brings profit as much, as my job in office).
        May be it looks like an advertisement, but it's absolutely true and I just want told to you about this pills.
        Causes no addiction and depression, already two month I feel myself exelent!

        P.S. Nootropil is expensive drug if you wants to buy it in pharmacy near with your home. But at our age of Internet we can buy pills using just a computer and it will be really cheap! I can recommend for you shop, where I buy it. medshoponline.net. Ofcourse you can buy Nootropil in another pharmacy, but trust me and my experience Free worldwide shipping, 100% delivery and a lot of positive comments from doctors (my friends) and, who purchased here.
        Oh, right! Link:
        Nootropil:
        <a rel="nofollow" href=http://tinyurl.com/nootropil>http://tinyurl.com/nootropil</a>

        Comment

        Working...
        X