New to jsp, login page errors

Hi
I'm totally new to using jsp and as part of a project I need to create a login page which compares the
entered email and password with those contained in a database.
I've created the java code and jsp pages, there's no obvious errors (to me anyway) but everytime I try to run it I get the same error.
The code for the login page is:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<body>
<form action="validate.jsp" method="POST">
email address - <input type="text" name="emailAddress">
<br>
password - <input type="password" name="passWord">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
<br>
new customer? To sign up <a href="new%20customer.jsp">Click here</a>
</body>
</html>The validation page code is:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<jsp:useBean id="idHandler" class="org.login" scope="request">
    <jsp:setProperty name="idHandler" property="*"/>
</jsp:useBean>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <body>
            <%
            String username=(String) session.getAttribute("username");
            String password = (String) session.getAttribute("password");
            String emailAddress = request.getParameter("emailAddress");
            String passWord = request.getParameter("passWord");
            if (idHandler.authenticate(emailAddress, passWord)) {
                response.sendRedirect("index.jsp");
            } else {
                response.sendRedirect("login.jsp");
            %>
    </body>
    </head>
</html>and the java code is:
package org;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class login {
    private DataSource getJdbcConnectionPool() throws NamingException {
        Context c = new InitialContext();
        return (DataSource) c.lookup("java:comp/env/jdbc/connectionPool");
//method that is called from validateuser.jsp and this checks for the authentic user and
    public boolean authenticate(String emailAdd, String pass)
            throws SQLException, IOException, IOException, NamingException {
        String emailAddress = null, Password = null;
        // connection instance
        Connection connection = null;
        try {
            DataSource dataSource = getJdbcConnectionPool();
            connection = dataSource.getConnection();
            String sql = "SELECT emailAdd, pword FROM customer WHERE emailAdd='" + emailAdd + "'" + "AND pword='" + pass + "'";
            PreparedStatement ps = connection.prepareStatement(sql);
            ResultSet rs = ps.executeQuery();
            if (rs.next()) {
                emailAddress = rs.getString("emailAdd");
                Password = rs.getString("pword");
            if (emailAddress != null && Password != null && emailAddress.equals(emailAddress) && pass.equals(Password)) {
                return true;
            } else {
                return false;
        }finally  {
            // close the connection so it can be returned to
            // the connection pool then return the list           
            connection.close();
}finally the error message I get is:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
     org.login.authenticate(login.java:56)
     org.apache.jsp.validate_jsp._jspService(validate_jsp.java:76)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
help?

login.java:56 is:
connection.close();right? So, it looks like the call to getJdbcConnectionPool within authenticate throws an exception and control is passed to the finally block where connection is still null, resulting in the NPE. You should probably catch any exceptions thrown by the lookup for your datasource so you can see what the "real' error is.

Similar Messages

  • Post-Install Error on EBS 12 - Login Page Error RW-50016 on Linux

    Hi All,
    Post-Install Error on EBS 12 - Login Page Error RW-50016 on Linux
    Thanks in advance.

    set hostnme correctly

  • JSP Login Page is slow in 11.5.10.2

    Hi,
    JSP Login Page is slow in 11.5.10.2 . But If we login through form login (dev60cgi/f60cgi).
    Forms are working fine, No issue from the DB Side.
    We have bounce the Apache and clear the cache as well , but no luck.
    Pls give us some pointer on this.
    Regards,

    Hi,
    It is a clone Instance..Did you review the log files?
    I have one doubt.. If we have lacs record in WF_NOTIFICATION..will the performace get impact bcz of this.It may have an impact on the performance, but I believe it should not affect the main login page.
    Regards,
    Hussein

  • Intermittent Indirect REference to login page error

    Hello,
    I am building a small web app in a mixed (java/microsoft) environment. We have no budget for a purchased single sign on solution, so I built one with the following architecture:
    ASP page with integrated windows security, this simply returns to the url passed in as'URL' the clients current logon name.
    This ASP page is called by the IntranetSSOServlet, which then builds and submit the vanilla logon page. This servlet is my logon page, it simply posts it's URL to the ASP page, and if a return is posted from ASP, the logon page is bult and submitted. The IntranetSSOServlet also sets a session variable called user to the current user's windows login.
    I have two secure files, these are .jsp passthrough pages (since accessing the servlet directly did not appear to trip the security requirement and call the logon request from the server, so no users were ever in any roles). These are simple pages with a javascript redirect to the two servlets, and the jsp is only used because the servlets do not seem to trip the security requirement in the App server.
    On my machine this works with no issues, single sign on is a success and all is well, on the machine next to mine it works fine also. However, on several client machines, I keep getting an invalie direct reference to login page.
    My question is this:
    Does anyone see any major issues with the architecture which are causing this?
    It appears that the browser on some clients is attempting to go 'Back'. Is this a standard function of any software packages (spyware, internet tracking software, etc.?)
    I am building with Netbeans 5.0, running Embedded Tomcat 5.5.9 and the pages are all accessed via windows XP/IE 6
    Again, whats weird is that this works fine on several workstations, but throws the invalid direct reference to login on others...
    I am quite confused.
    Code to follow:
    IntranetSSOServlet
    if(request.getParameter("user") != null)
    HttpSession session = request.getSession(true);
    session.setAttribute("user",request.getParameter("user"));
    //If SSO submission has returned a validated user name
    //out.println(request.getParameter("user"));
    //post this name and the default password to the logon
    //This servlet will become the logon page, which will handle the redirects easier
    out.println("<form METHOD=\"POST\" name = \"form\" action=\"../Intranet-WebModule/j_security_check\">");
    //Generate a div to hide all of the input fields
    out.println("<div style=\"display:;\">");
    out.println("<input type=\"text\" name=\"j_username\" value=\""+request.getParameter("user")+"\"/>");
    out.println("<input type=\"password\" name=\"j_password\" value=\"sas\"/></div>");
    out.println("<input type=\"submit\" value=\"Submit\"/></div>");
    request.getSession().setAttribute("user",request.getParameter("user"));
    //out.println("<input type=\"submit\"></form>");
    out.println("</form><script language=\"javascript\">//form.submit();</script>");
    else
    //call the SSO submission page
    out.write("<script language=\"javascript\">location.replace(\"http://HOSTNAME/SSO/SSO.asp?URL="+lookupIntranetGlobalsBean().getJSPSiteRoot()+"IntranetSSOServlet\");</script>");
    out.close();
    This Servlet simply returns from the ASP a string (the user's logon) and then creates the post page, which posts a single dummy password to the app server
    JSP passthrough page (secured resource)
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    </head>
    <body>
    <script language="javascript">
    location.replace('http://HOSTNAME:8080/Intranet-WebModule/HRTools/newEmployeeAccountServlet');
    </script>
    </body>
    </html>

    Another try besides
         <login-config>
            <auth-method>FORM</auth-method>
            <realm-name>userDatabase</realm-name>
            <form-login-config>
                <form-login-page>/pages_public/login.jsp</form-login-page>
                <form-error-page>/pages_public/loginError.jsp</form-error-page>
            </form-login-config>
        </login-config>is that I try to handle the error code in the web.xml with
    <error-page>
         <error-code>400</error-code>
         <location>/error.jsp</location>
      </error-page>It works when I say location = index.jsp, but it doesn't work when I try to redirect to error.jsp.
    But when I redirect to index.jsp I just reload the login page, but then the user gets no information what has happened, therefore I need the error,jsp.
    I have no idea why. If anybody has a hint or know why it is this way, please let me know!!
    Thanks.

  • Custom Login page error

    HI,
    I am trying to modify the Apps login page. I just renamed the page AppsLocalLogin.jsp to xxxAppsLocalLogin.jsp and try to access from the server. This gives me error
    java.lang.RuntimeException: Cannot access oracle.app.fnd.sso
    Here .app. access though in oracle apps folder structure there is not folder like app
    Can anybody help me on this why this error is coming.

    Security layer may display error messages which has no meaning and not helpful to to figure out what is the root cause. You can addres this to the Security forum if you hit there. But have the same question Ram asked. Any need to change the jsp name?

  • NEWBIE - creating a simple JSP login page

    Hi guys,
    I am really really stuck, and I would be so grateful if you guys could help me in any way. I am creating a simple application, but as part of the application i have to create a login / logout sub-application. It needs to verify the username and password by looking up a database in mySQL. I've had a look around on the internet to see if there is any simple way of doing it, but i can't understand most of it. I'm really new to JSP and only know how to do simple statement like <c:choose> and stuff like that. If anyone can help me in any way to create as simple a login / logout application that verifies the username and password from a database, I would be ever so grateful, thank you!
    Just to let you know, the security-roles and all that stuff together with the <tomcat-users> stuff has already been set up.
    I found this code by the author brain.compression, which seems to very useful, I've not tried it out yet, but was wondering, if somebody could help me split the code up into the separate JSP pages i will need, as I am not too sure which bits of the code need to go on what pages.
    Thank you to anyone that can help me out and thanks for brain.compression for providing this code. I'm sorry for posting this in a forum not related to JSP, its just that I am a complete newbie to JSP and nobody in that forum is helping me.
    brain.compression's code starts here...
    First for the page you are requesting you would need a verify if the user is logged in or not:
    <c:if test="${existingUser==null}">
    <jsp:forward page="login.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}"/>
    <jsp:param name="errorMsg" value="Please log in first" />
    </jsp:forward>
    </c:if>
    This will redirect you to the login page:
    <font color="red">
    ${fn:escapeXml(param.errorMsg)}
    </p>
    </font>
    <form method="post" action="authenticate.jsp">
    <table>
    <tr>
    <td>Please Enter the following information to log in:</td>
    </tr>
    </table>
    <table>
    <tr>
    <td>User ID:</td>
    <td><input name="userid" value="${fn:escapeXml(cookie.userid.value)}"></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><input type="password" name="password" value="${fn:escapeXml(cookie.password.value)}"></td>
    </tr>
    </table>
    After that you have to verify with your DB if the login info provided is correct:
    %-- Removing any scoped variables --%>
    <c:remove var="existingUser" />
    <c:if test ="${empty param.userid || empty param.password}" >
    <c:redirect url="login.jsp">
    <c:param name="errorMsg" value="Please enter a User Id and Password." />
    </c:redirect>
    </c:if>
    <%-- Checking if User Id and Password are valid --%>
    <sql:query var="anyvariable" dataSource="${data}">
    SELECT * FROM table WHERE user_id = ? AND pass = ?
    <sql:param value="${param.userid}"/>
    <sql:param value="${param.password}"/>
    </sql:query>
    <c:if test="${anyvariable.rowCount == 0}">
    <c:redirect url="login.jsp">
    <c:param name="errorMsg" value="Invalid User Id or Password"/>
    </c:redirect>
    </c:if>
    Also can somebody tell me if i am right. Do I need to create a page called login.jsp to put the actual form on, and a page called authenticate.jsp to verify the username and password are correct? Finally i see that brain.compression has used a variable called existingUser but has he actually declared it anywhere. Thanks again for anybody that can help me out!

    i am still a jsp noobie but i have done some applications using html javascript php asp and other languages. What you want to do is take the data from the login form then compare that to the db see if it actually exist and has the correct info. From there you want to write a cookie to the users computer to hold the username and password, which will be checked for at the begining of every page verifying it in the database. This is how i have done password verification in the past and it works fairly well and unless your server gets hacked your pages should be secure.

  • SSO Login Page Error

    Can anyone solve this issue??
    We are developing ASP.Net application with oracle 10g Application server for single sign-on.
    we need to map the IIS URL(eg /private/*), redirecting to Oracle Application server,authenticate it and get the result back
    to IIS.
    As of Oracle Document we installed and configured proxy plugin and SSO plugin in IIS,and registered a partner application
    using ossoreg.jar command and it was successfully redirecting to the Single Sign-on login page
    but the problem is, after I click Login button it gives "page not found" error
    and the URL read as "http://<host.domain>:<port>//sso/auth"
    A normal login through SSO doesnt give any error...
    Do we need to change some config in policy.properties configuration file??
    Please reply, if anyone identified the problem.
    Regards
    Guhan

    Hi,
    I have triued the same thing here ... linking to a protected url on an IIS server. Initially I had similar problems. Check your plugin.conf file and make sure your login server file is defined correctly ... no " and use the Windows path conventions.
    Also, I thought I had directed the config file (osso.conf) to be in the directory i had created but it showed up in oracle_home/apache/apache/conf/osso. You may need to move it.

  • New at SJSC - login page process

    Hi folks!
    I came from MS ASP.NET world and I'm trying to learn SJSC. I'd like to implement a login page process and restrict *.JSP internal pagas. Do you know where I can find an article or some tutorial do guide my on this learning process?
    Thanks!

    Hi!
    Maybe this tech tip will be usefull for you.
    http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/jaas_authentication.html
    Thanks,
    Roman.

  • FDM crashed after trying to open locations and mappings. Login page error

    Whilst trying to open mappings for a given location, FDM has crashed. We have restarted the FDM service, however despite the service running cannot log into FDM any more. Internet Explorer now displays the following error:
    Internet Explorer:
    "Application Error
    Description: An exception occurred during the execution of the current web request. Please contact the administrator to review the stack trace in the event log for more information about the error.
    Source:
    http://ibm-pr-mihdca-01.yodel.net/HyperionFDM/AuthorizedPages/LogonPage.aspx?ReturnUrl=/HyperionFDM/default.aspx"
    Event Viewer Application Logs:
    Exception Details:
    Retrieving the COM class factory for component with CLSID {00000535-0000-0010-8000-00AA006D2EA4} failed due to the following error: 800703fa.
    Stack Trace:
    at Hyperion.FDM.Classes.LanguageTranslator.LookupPreferredLanguageId(ArrayList listLanguages)
    at Hyperion.FDM.Pages.BasePage.OnInit(EventArgs e)
    at System.Web.UI.Control.InitRecursive(Control namingContainer)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at Hyperion.FDM.Classes.LanguageTranslator.LookupPreferredLanguageId(ArrayList listLanguages)
    at Hyperion.FDM.Pages.BasePage.OnInit(EventArgs e)
    at System.Web.UI.Control.InitRecursive(Control namingContainer)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    I have seen potential solutions at the following links, suggesting potential invalid reserved characters (such as &) in the mappings previous uploaded. We will look at trying to remove these rows via a SQL script, however we do not have any visibility at this stage and will require assistance from the DBA's.
    Error @ Deleting the existing FDM Account mappings.
    FDQM Mapping error
    Can anyone please suggest which tables we need to be looking at/guiding the DBA's too? Or even better, can anyone please provide a script? Or could this be a red herring, since the FDM login page is not even loading?

    Thanks for your response. Yes the exact same solution has worked for us too. FDM crashed last night, which was apparently caused by the flash recovery drive becoming full. This caused the Oracle RDBMS to freeze. After this was re-sized, we then had to restart the Hyperion services this morning. Everything then appeared to be fine, until the above errors occurred. A full reboot has since resolved the FDM issue, but we suspect an IIS restart might have been the answer.
    If the same issue occurs again I will update this thread with more info!

  • R12 login page error on windows 2003 (500 Internal Server Error)

    I am getting the following error while opening R12 home page.
    oracle.apps.fnd.cache.CacheException
         at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1485)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:354)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1259)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1114)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1083)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1050)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1037)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:941)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:926)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:891)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1027)
         at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:223)
         at OAErrorPage.jspService(_OAErrorPage.java:200)
         [OAErrorPage.jsp]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:761)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:727)
         at OA.jspService(_OA.java:254)
         [OA.jsp]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: Error in IAS Cache: java.lang.NullPointerException: null Connection
         at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:712)
         at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802)
         at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624)
         at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216)
         ... 53 more
    Caused by: oracle.apps.jtf.base.resources.FrameworkException:
    An exception occurred in the method CacheAccess.get
    null
    The base exception is:
    null Connection
         at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)
         at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)
         ... 57 more
    I am trying to implement solution as per doc id: 414170.1. However when i try to run autoconfig at database level, it was throwing error that it is unable to connect to database.
    Then I checked listener status using "lsnrctl status". I do see instance listener in BLOCKED status.
    When I check metalink for the BLOCKED status reason, they asked to restart the database in OPEN mode.
    I am trying to login to database but it says "ORA-12560 TNS:protocol adapter error". When I try to STOP and START (using lsnrctl start command), it shows as "The listener supports no services".
    ==========================
    I am copying the content of instance.log (vis.log) file...
    TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production on 16-FEB-2009 17:15:39
    Copyright (c) 1991, 2006, Oracle. All rights reserved.
    System parameter file is D:\oracle\VIS\db\tech_st\10.2.0\network\admin\VIS_navya\listener.ora
    Log messages written to D:\oracle\VIS\db\tech_st\10.2.0/network/admin\vis.log
    Trace information written to D:\oracle\VIS\db\tech_st\10.2.0/network/admin\vis.trc
    Trace level is currently 0
    Started with pid=2220
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCVISipc)))
    Error listening on: (ADDRESS=(PROTOCOL=TCP)(Host=navya.company.com)(Port=1521))
    TNS-12542: TNS:address already in use
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
    32-bit Windows Error: 48: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCVISipc)))
    ==========================
    =============================
    Here is content of listener.log file...
    TNSLSNR for 32-bit Windows: Version 10.1.0.5.0 - Production on 16-FEB-2009 17:35:13
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    System parameter file is D:\oracle\VIS\inst\apps\VIS_navya\ora\10.1.2\network\admin\listener.ora
    Log messages written to D:\oracle\VIS\apps\tech_st\10.1.2\network\log\listener.log
    Trace information written to D:\oracle\VIS\apps\tech_st\10.1.2\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=1388
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=navya.company.com)(PORT=1521)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    16-FEB-2009 17:35:13 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168822016)) * status * 0
    16-FEB-2009 17:35:15 * (CONNECT_DATA=(SID=VIS)(CID=(PROGRAM=D:\oracle\VIS\apps\apps_st\appl\fnd\12.0.0\bin\reviver.exe)(HOST=NAVYA)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.101)(PORT=1659)) * establish * VIS * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    16-FEB-2009 17:35:17 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168822016)) * status * 0
    ===============================
    Please help on how to resolve the issue.

    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCVISipc)))
    Error listening on: (ADDRESS=(PROTOCOL=TCP)(Host=navya.company.com)(Port=1521))
    TNS-12542: TNS:address already in use
    TNS-12560: TNS:protocol adapter error
    TNS-00512: Address already in use
    32-bit Windows Error: 48: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCVISipc)))Was this working before? If yes, what changes have been done recently?
    From the above errors, it seems the database port is used by some other application, so I would suggest the following:
    - Reboot the machine and see if you can start the listener
    - If you still get the same error, change the port number in listener.ora file to something other than 1521 (for example, 1522) and try to start the listener then

  • SSO Login page Error : Unexpected errors (WWC-41400)

    Hi,
    I downloaded the zip file ssosdk.zip from download section of OTN for SSO and followed the steps in the Install document. All the process went through without any error. But when i tried to access my login URL, i am getting this error :Unexpected errors (WWC-41400)
    .Even if i try to login using my ORCLADMIN username and its password i am getting the same error and remains in the same page.
    while configuring the partner application i did not encounter any error. Kindly suggest me how to proceed further.
    Vijay

    This also happened to me after I run ssodatan to change the logon_url port.
    Can anyone provide some help with this?!

  • Login page error in the ISA b2b 5.0 application.

    Hi all
    i deployed the CRM ISA b2b 5.0 application successfully in the j2ee engine and after that i have done the XCM configuration also successfully and i tested thru run test for both JCO and IPC components all are successful.
    now when i tried with the b2b application with the following URL it is giving some different error.it is not related to application it seems the different error related to some browser or i am not sure.
    URL : http://hsdnt24s15:50400/b2b/b2b/init.do when i press enter here
    then it showing the following error but the error it seems not related to application side, it is different error.after pressing the enter with the above URL then URL itself is changing in the browser as like the following URL
    browser URL : https://hsdnt24s15:${https.port.core.isa.sap.com}/b2b/user/secureSwitch.do
    Error Details:
    The page cannot be displayed
    The page you are looking for might have been removed or had its name changed.
    Please try the following:
    Open the hsdnt24s15:${https.port.core.isa.sap.com} home page, and then look for links to the information you want.
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    If you still cannot open the page, click the Internet Explorer
    Search button to look for similar sites.
    Internet Explorer 
    Please can you help me what is the solution to my problem.
    i will reward the maximun points.
    Regards
    Sunil

    Hi Mike
    i have some other problem now , can i you help me on this.
    i have the logon problem in the CRM ISA b2b 5.0 application when i have accessed thru the following URL.
    <b>http://hsdnt24s15.hclt.corp.hcl.in:50400/b2b/b2b/init.do</b>
    <u>it is giving the error as follows.</u>
    <b>Error while executing SAP E-Commerce Application with UME system; try again to log on. If the problem persists, call our hotline</b>.
    before that we have made the XCM configuration for CRM ISA b2b 5.0
    Can you guide was there any problem in the XCM configuration?
    Please help how to resolve this issue for logon problem in ISA b2b 5.0?
    Regards
    Sunil

  • Hyperion Workspace 9.3.1 Login page error

    When we launch the Workspace URL, it doesn't prompt for Login/Password, but comes out with error
    User Name:
    Custom Policy Defined:
    Password:
    Custom Policy Defined:
    and with this popup error:
    "You must supply a valid User Name and Password to log onto the system."
    Wondering is that something related to SSO error, but not sure. Can anyone out there faced similar issue.
    Thanks
    kvallala

    When we launch the Workspace URL, it doesn't prompt for Login/Password, but comes out with error
    User Name:
    Custom Policy Defined:
    Password:
    Custom Policy Defined:
    and with this popup error:
    "You must supply a valid User Name and Password to log onto the system."
    Wondering is that something related to SSO error, but not sure. Can anyone out there faced similar issue.
    Thanks
    kvallala

  • Login Page error after installing Oracle BI EE

    Hi,
    I finished installing OBIEE 10.1.3.2.1 with no errors in a Windows machine. I used the Basic installation using OC4J as Web server.
    After finishing the install and restarting the server, all services are started but I get the following when I try to access the http://localhost:<port>/analytics or http://localhost:<port>/analytics/saw.dll?
    web page:
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    Can anyone help me to resolve this issue?
    Thanks

    Have you actually started the OC4J? Test that your webservice is running by access the root home page.

  • Apps Login Page Error- Insufficient privileges for the current operation

    Hi Gurus,
    We migrated application node from HP-UNIX to SUN Solaris with 11.5.10.2 and 10.2.04 database. When i try to login as sysadmin, got the error You have insufficient privileges for the current operation.
    But i can able to go in with Forms URL and it works. I don't see any errors on IAS except
    Fatal error in parsing device registration file in jserv.log.
    Any help is appreciated.
    Thank You.

    I found 150 invalid objects in the database. Also i have question here my database and the application is on different domains.Where do you have those invalid objects? Under what schema?
    Using different domain names should be OK.
    Do you think that will work. If the application and database put it in the same domain( put the apps in same database domain), by running the autoconfig will update the domain name in application server globally.I cannot assure if it is going to work or not.
    Have you checked Apache log files?
    If not change the domain name globally what else need to be done to change it. Please suggest on that.These are the docs you need to access if you want to change the domain name.
    How to change the hostname of an Applications Tier using AutoConfig [ID 341322.1]
    How to change the hostname and/or port of the Database Tier using AutoConfig [ID 338003.1]
    Steps To Clean Nonexistent Nodes or IP Addresses From FND_NODES [ID 260887.1]
    Thanks,
    Hussein

Maybe you are looking for