NEED HELP Suddenly Got " isShowSignUp in LoginAction for Application NullPointerException"
Asked by Rick Li:

hello guys I really need your help on this :

**Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction**

**threw exception java.lang.NullPointerException: Application cannot be null at /login.vm\[line 6, column 28\]**

**Application cannot be null**

<br />

<br />

it was not during a backup time or return system proc,

the confluence suddenly got the problem.

how can we solve it ?

My team would greatly appreciate your help ?? [@Shannon S](/t5/user/viewprofilepage/user-id/510046) [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100)

![isShowSignUp.png](https://community.atlassian.com/t5/image/serverpage/image-id/290297i6BD9B2ED7E4EC246/image-size/large?v=v2&px=999 "isShowSignUp.png")

Method I tried with my team so far:

* <https://confluence.atlassian.com/confkb/confluence-returns-system-error-due-to-invocation-of-method-isshowsignup-in-class-com-atlassian-confluence-user-actions-loginaction-threw-exception-java-lang-nullpointerexception-at-login-vm-693899125.html>   
  `SELECT * FROM cwd_app_dir_mapping ORDER BY 5;`

my cwd_app_dir_mapping's index is ++correct++ as 0,1 Asc

Also

`I got `++unempty++` cwd_app_dir_mapping and `

* cwd_app_dir_group_mapping
* cwd_app_dir_mapping
* cwd_app_dir_operation


Answers:
author: John Stafford
body: My tables are also empty. I've had to restore my DB from backup... It worked fine for a couple of days, and then it happened again!

comments: author: Rick Li
body: Now no available solution we too restore my DB from backup...

However the character in content and. BodyContent have been ? instead of original Chinese words.   

Trying to fix it....

Please keep us updated ! hope everything is fine for both our confluence


author: arthurnurislamov
body: I tried using the suggested sql statement on my MS SQL server, and it says the statement is wrong. What am I doing wrong?

I tried the following statement:

    UPDATE cwd_app_dir_mappingSET LIST_INDEX=0WHERE ID=<first_id>;

comments: author: Rick Li
body: Yes to use the statement the other answer give us, we should replace the   

    <first_id>

with our own id ,

You can do following steps:

1

to connect to your database and look for the id by :

    SELECT * FROM cwd_app_dir_mapping;

and you will see the id (e.g. 1200000)

2

Then conduct the sql:

    UPDATE cwd_app_dir_mappingSET LIST_INDEX=0WHERE ID=1200000;

3

And if you have more than one rows,

just repeat the update sql until you get the `list_index` of the directories are in proper incremental order (i.e., 0, 1, 2, ...)

    UPDATE cwd_app_dir_mappingSET LIST_INDEX=0WHERE ID= 1200000;UPDATE cwd_app_dir_mappingSET LIST_INDEX=1WHERE ID=12000001;UPDATE cwd_app_dir_mappingSET LIST_INDEX=2WHERE ID=12000002;

with


author: arthurnurislamov
body: Perhaps, it's strange, but my `cwd_app_dir_mapping table is empty. It doesn't have any data.`

`I started getting this error only yesterday, just like you`


author: arthurnurislamov
body: In fact, all of the following tables

* cwd_app_dir_group_mapping
* cwd_app_dir_mapping
* cwd_app_dir_operation

are empy


author: Rick Li
body: It seems that yesterday during searching I have encountered the QA for empty tables, you can search for it. Mostly it happens during back up/return system for your situation


author: arthurnurislamov
body: Thank you!

I followed the instructions provided, I was able to create the admin/admin account.

But now all of the spaces are gone and I don't know how to recover them


author: Rick Li
body: **In this case , you can check your back-up**

**and found the last one with biggest usage ?40kb?43kb?50M?**

and restore the 50M back-up

**I dont think you deleted them if you didnt run such command, so they must be here**


author: zcb
body: ?????????????????????

comments: author: Rick Li
body: It suddenly happened to us yesterday in the evening

????????????????????????????????????<https://confluence.atlassian.com/confkb/confluence-returns-system-error-due-to-invocation-of-method-isshowsignup-in-class-com-atlassian-confluence-user-actions-loginaction-threw-exception-java-lang-nullpointerexception-at-login-vm-693899125.html> ??????


author: Rick Li
body: ????????????????????


author: Rick Li
body: reboot and ./start-confluence.sh \& ./startup.sh could not solve the problem


Tags: cloud

confluence-cloud