Skip to content

Cannot invoke method 'login' #1

@whitehat101

Description

@whitehat101

I'm trying to get your code working, and I'm getting errors that probably because I made an incorrect assumption.

Full:

[INFO]    response_router.rb:91         route_response                amf3: #<EventMachine::RTMP::Message:0x007fcfe90718e8 @command="_error", @transaction_id=3.0, @values=[nil, #<RocketAMF::Values::ErrorMessage:0x007fcfe906b948 @clientId="87C65E9B-749D-4923-D550-2366510CA0A3", @destination="loginService", @messageId="87C65EB8-C01F-6065-2391-53788C11DE7E", @timestamp=1394234172608.0, @timeToLive=0.0, @headers={}, @body=nil, @rootCause=#<RocketAMF::Values::ErrorMessage:0x007fcfe90522b8 @clientId=nil, @destination=nil, @messageId="87C65EB8-C02D-FB6A-C43F-9D6916562D82", @timestamp=1394234172608.0, @timeToLive=0.0, @headers={}, @body=nil, @rootCause=nil, @correlationId=nil, @faultDetail=nil, @faultString="Cannot convert type flex.messaging.io.amf.ASObject with remote type specified as 'null' to an instance of class com.riotgames.platform.login.AuthenticationCredentials", @extendedData=nil, @faultCode="Client.Message.Deserialize.InvalidType">, @correlationId="AC3FB6B4-B214-53FF-3D46-9C32E6220062", @faultDetail="The expected argument types are (com.riotgames.platform.login.AuthenticationCredentials) but the supplied types were (flex.messaging.io.amf.ASObject) and converted to (null).", @faultString="Cannot invoke method 'login'.", @extendedData=nil, @faultCode="Server.ResourceUnavailable">], @version=3>
#<RocketAMF::Values::ErrorMessage:0x007fcfe906b948 @clientId="87C65E9B-749D-4923-D550-2366510CA0A3", @destination="loginService", @messageId="87C65EB8-C01F-6065-2391-53788C11DE7E", @timestamp=1394234172608.0, @timeToLive=0.0, @headers={}, @body=nil, @rootCause=#<RocketAMF::Values::ErrorMessage:0x007fcfe90522b8 @clientId=nil, @destination=nil, @messageId="87C65EB8-C02D-FB6A-C43F-9D6916562D82", @timestamp=1394234172608.0, @timeToLive=0.0, @headers={}, @body=nil, @rootCause=nil, @correlationId=nil, @faultDetail=nil, @faultString="Cannot convert type flex.messaging.io.amf.ASObject with remote type specified as 'null' to an instance of class com.riotgames.platform.login.AuthenticationCredentials", @extendedData=nil, @faultCode="Client.Message.Deserialize.InvalidType">, @correlationId="AC3FB6B4-B214-53FF-3D46-9C32E6220062", @faultDetail="The expected argument types are (com.riotgames.platform.login.AuthenticationCredentials) but the supplied types were (flex.messaging.io.amf.ASObject) and converted to (null).", @faultString="Cannot invoke method 'login'.", @extendedData=nil, @faultCode="Server.ResourceUnavailable">[INFO]    response_router.rb:91         route_response                amf3: #<EventMachine::RTMP::Message:0x007f8a9c4b6b70 @command="_error", @transaction_id=75.0, @values=[nil, #<RocketAMF::Values::ErrorMessage:0x007f8a9c4b5388 @clientId="87B09D15-1D0E-49A0-E3FC-2F4E9EEC708C", @destination="loginService", @messageId="87B09D1E-E10E-CA91-08A1-F6468AE1EE50", @timestamp=1394233588593.0, @timeToLive=0.0, @headers={}, @body=nil, @rootCause={:message=>"An Authentication object was not found in the SecurityContext", :localizedMessage=>"An Authentication object was not found in the SecurityContext", :cause=>nil, :authentication=>nil, :extraInformation=>nil}, @correlationId="62A8A011-5EE2-C893-41D8-F57317319D31", @faultDetail=nil, @faultString="org.springframework.security.authentication.AuthenticationCredentialsNotFoundException : An Authentication object was not found in the SecurityContext", @extendedData=nil, @faultCode="Server.Processing">], @version=3>

Brief:

The expected argument types are (com.riotgames.platform.login.AuthenticationCredentials) but the supplied types were (flex.messaging.io.amf.ASObject) and converted to (null).
Cannot invoke method 'login'
An Authentication object was not found in the SecurityContext

I'm starting the web server like this:
ruby ./lib/riot2json.rb USERNAME PASSWORD na1 3000 4.3.14_03_04_17_09

Where USERNAME is my login (not in-game) name, 3000 is the local port for the webserver to bind, and 4.3.14_03_04_17_09 is the current version string I copied from the upper left corner of the LoLClient. Should these values work?

A working configuration example in the README would be appreciated.

If you can help me get your project running, I'd love to contribute back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions