An error occurred during authentication: java.lang.NullPointerException in AssetManager Web

  • KM546376
  • 09-Feb-2009
  • 09-Feb-2009

Summary

After logging into AssetManager Web, when clicking on Portfolio items get the following error: An error occurred during authentication: java.lang.NullPointerException. Seems to have been caused by a space in a SQL Name of a screen.

Error

o Removed AM 5.10 from Web/App Server
o Installed AM 5.11 Build 6637 on Web/App Server (Tomcat/Apache)
o Rebuilt Web Service Tier and Web Client Tier
o Web service page looks correct…
o Login page is available but now I get the following error when logging in with Admin

“An error occurred during authentication: java.lang.NullPointerException”

o When I log in with my ID the application opens up but if I try to open a page like ‘Portfolio Items’ I get the error message listed at the very bottom of this ticket. (errorWhileRetrievingMetadata)

Check web service definitions wizard comes back clean

Tagging the web service comes back clean

Cause

For the views, we found that having a space in the SQL Name causes a problem. When using the wizard in AM to change a custom view to shared, the wizard should replace a space with an underscore (that's the idea at least), but existing views with a space in the SQL Name seem to cause a problem.

Fix

  1. Login into AssetManager Application Designer
  2. Select the table that is causing the error
  3. Click on the botton for Edit screens
  4. Select the SQL name that has the space in it
  5. Rename it so there is no space or repace the space with a underscore
  6. Save the changes to your database