message java.lang.NullPointerException description The server encountered an internal error

Product:
Cognos TM1 10.2.2
Windows 2012 R2 server

Symptom:
When try to login to TM1 Application web (pmpsvc) you get an error 500 message.
To surf to TM1WEB is works fine, and you can enter the TM1 application from TM1 architect.

Error message:
HTTP Status 500 –
type Exception report
message java.lang.NullPointerException
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause
java.lang.NullPointerException
com.ibm.cognos.fpmsvc.config.FPMConfig.getResourceManager(FPMConfig.java:612)
com.ibm.cognos.fpmsvc.exception.FPMSVCException.getMessageText(FPMSVCException.java:93)
com.ibm.cognos.fpmsvc.exception.FPMSVCException.getMessageText(FPMSVCException.java:89)
com.ibm.cognos.fpmsvc.exception.FPMSVCException.(FPMSVCException.java:30)
com.ibm.cognos.fpmsvc.session.FPMSessionManager.checkSessionPassport(FPMSessionManager.java:555)
com.ibm.cognos.fpmsvc.session.FPMSessionManager.checkSessionPassport(FPMSessionManager.java:439)
org.apache.jsp.applications_jsp._jspService(applications_jsp.java:188)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35

Solution:
On the TM1 server – stop the IBM Cognos TM1 Application server.
In windows explorer go to folder C:\Program Files\ibm\cognos\tm1_64\webapps\pmpsvc\WEB-INF\configuration\

Rename the file fpmsvc_config.xml to fpmsvc_config.xml.old
Rename the file fpmsvc_config.xml.new to fpmsvc_config.xml
Start the IBM Cognos TM1 Application server.

Surf to http://localhost:9510/pmpsvc
And enter new TM1 applications to the server.

The file fpmsvc_config.xml can have been corrupt when you added a new TM1 instance.