Mule
  1. Mule
  2. MULE-5627

Notifications Example: "anonymous" error message not reaching the browser.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 3.2.0, 3.2.x
    • Fix Version/s: 3.6.0
    • Component/s: Examples / Tutorials
    • Labels:
      None
    • Environment:

      Mule OOTB running notifications example. Safari (at least).

    • User impact:
      Medium
    • Similar Issues:
      MULE-5625CEP Example: Quartz error messages
      MULE-5770Secure echo does not work in Notifications example
      MULE-4696geomail, gpswalker, and notifications example don't build
      MULE-5580Some examples from the distribution do not work in old version of Explorer (older than IE 9)
      MULE-759HTTPS Error
      MULE-3222Create a new wiki space for anonymously-accessible docs
      MULE-1065Put some error handling into the Hello Http example
      MULE-5074errorhandler example error
      MULE-6553MESSAGE-PROCESSOR notification events are not detected by the notification publisher
      MULE-4804Exception in notifications example

      Description

      1. Install mule.
      2. Run notifications example.
      3. Go to http://localhost:8082/services/notifications/
      4. Try to send a message as anonymous. You get nothing in the browser.
      5. See the console output. You will see an exception as follows.
      Interesting fact: This is showing up on CONSOLE, but not on PER-APP-LOGS.

      {"timestamp":"Thu, 30 Jun 2011 19:29:44 GMT","id":"17","data":{},"channel":"/services/echo","clientId":"swwzr1bae4xf2pv82y"}
      java.lang.reflect.InvocationTargetException
      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 org.mortbay.cometd.BayeuxService.doInvoke(BayeuxService.java:357)
      at org.mortbay.cometd.BayeuxService.invoke(BayeuxService.java:309)
      at org.mortbay.cometd.BayeuxService.access$400(BayeuxService.java:59)
      at org.mortbay.cometd.BayeuxService$AsyncListen.deliver(BayeuxService.java:393)
      at org.mortbay.cometd.ClientImpl.notifyMessageListener(ClientImpl.java:214)
      at org.mortbay.cometd.ClientImpl.doDelivery(ClientImpl.java:194)
      at org.mortbay.cometd.ChannelImpl.deliverToSubscriber(ChannelImpl.java:502)
      at org.mortbay.cometd.ChannelImpl.doDelivery(ChannelImpl.java:464)
      at org.mortbay.cometd.ChannelImpl.doDelivery(ChannelImpl.java:494)
      at org.mortbay.cometd.ChannelImpl.doDelivery(ChannelImpl.java:494)
      at org.mortbay.cometd.AbstractBayeux$PublishHandler.handle(AbstractBayeux.java:1293)
      at org.mortbay.cometd.AbstractBayeux.handle(AbstractBayeux.java:287)
      at org.mortbay.cometd.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:171)
      at org.mule.transport.ajax.container.MuleAjaxServlet.service(MuleAjaxServlet.java:107)
      at org.mortbay.cometd.AbstractCometdServlet.service(AbstractCometdServlet.java:265)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      Caused by: org.mule.api.security.UnauthorisedException: Authentication failed for principal anonymous. Message payload is of type: HashMap
      at org.mule.example.notifications.DummySecurityFilter.authenticate(DummySecurityFilter.java:44)
      at org.mule.security.AbstractAuthenticationFilter.doFilter(AbstractAuthenticationFilter.java:59)
      at org.mule.processor.SecurityFilterMessageProcessor.process(SecurityFilterMessageProcessor.java:57)
      at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:88)
      at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
      at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:63)
      at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
      at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:94)
      at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:88)
      at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
      at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:63)
      at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:89)
      at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:94)
      at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:185)
      at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:158)
      at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:145)
      at org.mule.transport.ajax.AjaxMessageReceiver$ReceiverService.route(AjaxMessageReceiver.java:76)
      ... 32 more
      Caused by: org.mule.api.security.UnauthorisedException: Authentication failed for principal anonymous. Message payload is of type: HashMap
      at org.mule.example.notifications.DummySecurityFilter.authenticate(DummySecurityFilter.java:39)
      ... 48 more

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          5d 17h 1m 1 Dirk Olmes 06/Jul/11 07:32 AM
          In Progress In Progress Open Open
          2h 38m 1 Dirk Olmes 06/Jul/11 10:11 AM
          Open Open Closed Closed
          1239d 4h 1m 1 Mariano Gonzalez 26/Nov/14 01:12 PM

            People

            • Assignee:
              Mariano Gonzalez
              Reporter:
              Victor Bonillo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development