BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

nullpointer exception when token mismatch

Open nelsonmunoz opened this issue 8 years ago • 2 comments

When testing lowlevelinterface i can login repeatedly (for example, once from ap, once from console), apparently both tokens are valid simultaneously, but when using set or add methods a java nullpointer exception is raised. I know I should not allow my app to try to log in again while the user is valid, but it may be nice to catch this error properly (would have saved me a lot of time)

nelsonmunoz avatar May 23 '18 13:05 nelsonmunoz

Actually, I don't seem to be able to log out:

{"request":{"interface":"AuthInterface","method":"logout","parameters":{}},"token":"6d282acb99a151472429a5e3cdcb1333df2adc5bd0365cfc97a4b3bc4d64b9e304b435c7b412f53cf15429d7af32d503"}

{"response":{"result":{}}}

Then

{"request":{"interface":"AuthInterface","method":"isLoggedIn","parameters":{}},"token":"6d282acb99a151472429a5e3cdcb1333df2adc5bd0365cfc97a4b3bc4d64b9e304b435c7b412f53cf15429d7af32d503"}

{"response":{"result":true}}

What am I doing wrong?

Any subsequent call works normally

nelsonmunoz avatar May 23 '18 14:05 nelsonmunoz

Hi for the second issue I have created a new issue: https://github.com/opensourceBIM/BIMserver/issues/884

The initial problem needs a bit more info, at least a stacktrace.

rubendel avatar Nov 23 '18 08:11 rubendel