3 Replies Latest reply on May 28, 2009 1:29 AM by *Prashant Shelke*

    Getting fault while Login.

    *Prashant Shelke* Level 4
      Eclipse 3.2.2\
      MyEclipse 5.5.1
      JBoss 4.0.1
      Flex 3.0(Beta 3.0 plugin)
      Flex 3.0 compiler(having WEB-INF/flex internal.)

      Hi,

      I have deployed .war with JBoss after successful removing all warnings for "using deprecated APIs for resourceBundle.getString" replaced with ResourceManager.getInstance().getString().

      Now, I am facing one problem:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at AppName/fault()
      at com.AppName.client.login.commands::LoginCommand/fault()
      at mx.rpc::AsyncToken/ http://www.adobe.com/2006/flex/mx/internal::applyFault()
      at mx.rpc.events::FaultEvent/ http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
      at mx.rpc::AbstractOperation/ http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
      at mx.rpc::Responder/fault()
      at mx.rpc::AsyncRequest/fault()
      at mx.messaging::ChannelSet/faultPendingSends()
      at mx.messaging::ChannelSet/channelFaultHandler()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.messaging::Channel/connectFailed()
      at mx.messaging.channels::PollingChannel/connectFailed()
      at mx.messaging.channels::AMFChannel/statusHandler()
      Can anyone suggest any solution for this ???

      Thanks,
      Prashant D Shelke.
        • 1. Re: Getting fault while Login.
          *Prashant Shelke* Level 4
          One more important thing I forgot to add,
          I am using Cairngorm 2.2.1(to point Services to cairngorm:EnterpriseServiceLocator) + cairngorm 2.2Is this feasible way ???
          • 2. Re: Getting fault while Login.
            *Prashant Shelke* Level 4
            Problem mention in first point is resolved by adding following node:
            <servlet>
            <servlet-name>MessageBrokerServlet</servlet-name>
            <display-name>MessageBrokerServlet</display-name>
            <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
            <init-param>
            <param-name>services.configuration.file</param-name>
            <param-value>/WEB-INF/flex/services-config.xml</param-value>
            </init-param>
            <init-param>
            <param-name>flex.write.path</param-name>
            <param-value>/WEB-INF/flex</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
            </servlet>

            But now facing problem like:
            18:25:01,828 INFO [STDOUT] 2008-02-19 18:25:01,828 ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/smartLMS] - StandardWrapper.Throwable
            flex.messaging.config.ConfigurationException: Attribute 'per-client-authentication' must be specified for element 'login-command'.
            at flex.messaging.config.AbstractConfigurationParser.requiredAttributesOrElements(AbstractCo nfigurationParser.java:329)
            at flex.messaging.config.ServerConfigurationParser.securitySection(ServerConfigurationParser .java:133)
            at flex.messaging.config.ServerConfigurationParser.parseTopLevelConfig(ServerConfigurationPa rser.java:53)
            at flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java: 68)
            at flex.messaging.config.ConfigurationManager.getMessagingConfiguration(ConfigurationManager .java:77)
            at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:90)

            While start-up of JBoss 4.0.1

            Is there any additional setting is thr ???

            Please help.

            Thanks,
            Prashant D Shelke.
            • 3. Re: Getting fault while Login.
              *Prashant Shelke* Level 4

              Problem resolved!


              It was due to conflict in jar files & web.xml servlet mapping.