Java.lang.NullPointerException in a servlet

I'm having a problem, and need help as quick as I can get it.
I'm coding a program that takes input from an HTML file, gives it to a servlet, which processes the information and spits it back out to the web browser in HTML.
I'm using NetBeans 3.6 with Java 1.5.0.
The error that TomCat is giving me is:
java.lang.NullPointerException
     java.util.Hashtable.get(Hashtable.java:333)
     org.apache.tomcat.util.http.Parameters.getParameterValues(Parameters.java:231)
     org.apache.tomcat.util.http.Parameters.getParameter(Parameters.java:276)
     org.apache.coyote.tomcat5.CoyoteRequest.getParameter(CoyoteRequest.java:1094)
     org.apache.coyote.tomcat5.CoyoteRequestFacade.getParameter(CoyoteRequestFacade.java:312)
     org.netbeans.modules.web.monitor.server.MonitorRequestWrapper.getParameter(MonitorRequestWrapper.java:177)
     edu.usf.CCC.doPost(CCC.java:57)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)I don't understand why it's giving me the NullPointerException at the first "request.getParamter(name)" line, but it is.
Any Suggestions?
My servlet code:
package edu.usf;
import java.net.*;
import java.lang.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
public class CCC extends HttpServlet {
  float drive_cost = 0.00f;
  float engine_cost = 0.00f;
  float sunroof_cost = 0.00f;
  float brakes_cost = 0.00f;
  float interior_cost = 0.00f;
  float style_cost = 0.00f;
  float roofrack_cost = 0.00f;
  String name,style,engine,drive,brakes,interior,sunroof,roofrack,basecost,totalcost;
  String namevar,stylevar,enginevar,drivevar,brakesvar,interiorvar,sunroofvar,roofrackvar,basecostvar,totalcostvar;
  String namastr,stylestr,enginestr,drivestr,brakesstr,interiorstr,sunroofstr,roofrackstr,basecoststr,totalcoststr;
  String name_field,style_option,engine_option,brakes_option,drive_option,interior_option;
  float base_cost = 15000.00f;
  float total_cost = base_cost;
  //static final String CONTENT_TYPE = "text/html";
  public void init() throws ServletException {
  protected void doPost(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException {
  response.setContentType( "text/html" );
  PrintWriter out = response.getWriter();
  namevar = request.getParameter(name);
  stylevar = request.getParameter(style);
  enginevar = request.getParameter(engine);
  drivevar = request.getParameter(drive);
  brakesvar = request.getParameter(brakes);
  interiorvar = request.getParameter(interior);
  sunroofvar = request.getParameter(sunroof);
  roofrackvar = request.getParameter(roofrack);   
  //Time to do some work
  //Check to see what style of car was selected.
  { if ( stylevar.equals("hatch") )
      {style_option = "Hatchback";
      style_cost = 0.00f;}
     if ( stylevar.equals("sedan") )
      {style_option = "Sedan";
      style_cost = 800.00f;}
     if ( stylevar.equals("wagon") )
      {style_option = "Wagon";
      style_cost = 1400.00f;}
  //Drivetrain calculation time
    { if ( drivevar.equals("2") )
      {drive_option = "2-Wheel Drive";
       drive_cost = 0.00f;}
      else if (drivevar.equals("4") )
       drive_option = "4-Wheel Drive";
       drive_cost = 7000.00f;}
   //Engine calculation time
    { if ( enginevar.equals("4"))
      {engine_option = "4-Cylinder";
       engine_cost = 0.00f;}
      else if ( enginevar.equals("6"))
      {engine_option = "6-Cylinder";
       engine_cost = 2200.00f;}
   //Brake calculation time
    { if ( brakesvar.equals("s") )
       {brakes_option = "Standard";
        brakes_cost = 0.00f;}
      else if ( brakesvar.equals("a") )
        {brakes_option = "Anti-Lock";
         brakes_cost = 900.00f;}
   //Sunroof calculation time
    { if ( sunroofvar.equals("1") )
        sunroof_cost = 800.00f;
   //Interior calculation time
    { if ( interiorvar.equals("deluxe"))
      {interior_option = "Deluxe";
      interior_cost = 0.00f;}
    { if ( interiorvar.equals("luxury") )
      {interior_option = "Luxury";
      interior_cost = 800.00f;}
    { if ( interiorvar.equals("executive") )
      {interior_option = "Executive";
      interior_cost = 1400.00f;}
   //Roofrack calculation time
    { if ( roofrackvar.equals("1") )
        roofrack_cost = 200.00f;
   //Total cost calculation time
      total_cost = style_cost + drive_cost + engine_cost +  brakes_cost +
                sunroof_cost + interior_cost + roofrack_cost;
//OUTPUT HTML SECTION
    //Print up HTML Header section
    out.println("<html>");
    out.println("<head><title>Tri-C: Results</title></head>");
    out.println("<body bgcolor=\"#FFFFFF\">");
    out.println("<center>");
    out.println("<p>Tri-C: ResultsCar Calculation</p>");
    out.println("<table border=1>");
    out.println("<tr><td> </td><td>Option</td><td>Cost</td></tr>");
    //Print up name
    namastr = ("<tr><td>Name:</td><td>" + name + "</td></tr>");
    out.println(namastr);
    out.println("<tr><td> </td><td> </td><td> </td></tr>");
    //Print up Base Cost
    basecoststr = ("<tr><td>Base Cost:</td><td> </td><td>$" + base_cost + "</td></tr>");
    out.println(basecoststr);
    //Print up Style selection
    stylestr = ("<tr><td>Style:</td><td>" + style_option + "</td><td>$" + style_cost + "</td></tr>");
    out.println(stylestr);
    //Print up Engine selection
    enginestr = ("<tr><td>Engine:</td><td>" + engine_option + "</td><td>$" + engine_cost + "</td></tr>");
    out.println(enginestr);
    //Print up Drivetrain selection
    drivestr = ("<tr><td>Drivetrain:</td><td>" + drive_option + "</td><td>$" + drive_cost + "</td></tr>");
    out.println(drivestr);
    //Print up Brakes selection
    brakesstr = ("<tr><td>Brakes:</td><td>" + brakes_option + "</td><td>$" + brakes_cost + "</td></tr>");
    out.println(brakesstr);
    //Print up Sunroof Selection
    sunroofstr = ("<tr><td>Sunroof:</td><td> </td><td>$" + sunroof_cost + "</td></tr>");
    out.println(sunroofstr);
    //Print up Interior Selection
    interiorstr = ("<tr><td>Interior:</td><td>" + interior_option + "</td><td>$" + interior_cost + "</td></tr>");
    out.println(interiorstr);
    //Print up Roofrack Selection
    roofrackstr = ("<tr><td>Roofrack:</td><td> </td><td>$" + roofrack_cost + "</td></tr>");
    out.println(roofrackstr);
    //Print up Total Cost section
    out.println("<tr><td> </td></tr>");
    totalcoststr = ("<tr><td>Total Cost:</td><td> </td><td>$" + total_cost + "</td></tr>");
    out.println(totalcoststr);
    //Print up HTML Footer section
    out.println("</table>");
    out.println("</body>");
    out.println("</html>");
And here is the HTML file that calls it:
<html>
<head>
<title>Tri-C: Car Cost Calculator</title>
</head>
<body background="#000000">
<form action="CCC" method="post">
<center>
<table border=1>
<tr><td>Enter your name:</td><td><input type="text" name="name" /></td></tr>
<tr><td> </td><td> </td></tr>
<tr><td>Style:</td><td><SELECT name="style">
<OPTION SELECTED value="hatch">Hatchback</OPTION>
<OPTION value="sedan">Sedan (+$800.00)</OPTION>
<OPTION value="wagon">Wagon (+$1400.00)</OPTION>
</SELECT></td></tr>
<tr><td>Drivetrain:</td><td>
<input type="radio" name="drive" value="2">2-Wheel Drive</input><br>
<input type="radio" name="drive" value="4">4-Wheel Drive (+$7000.00)</input>
</td></tr>
<tr><td>Engine:</td><td>
<input type="radio" name="engine" value="4">4-Cylinder</input><br>
<input type="radio" name="engine" value="6">6-Cylinder (+$2200.00)</input>
</td></tr>
<tr><td>Brakes:</td><td>
<input type="radio" name="brakes" value="0">Standard</input><br>
<input type="radio" name="brakes" value="1">Anti-Lock (+$900.00)</input>
</td></tr>
<tr><td>Sunroof:</td><td>
<input type="checkbox" name="sunroof" value="1">Add Option (+$800.00)</input>
</td></tr>
<tr><td>Interior:</td><td><SELECT name="interior">
<OPTION SELECTED value="deluxe">Deluxe</OPTION>
<OPTION value="luxury">Luxury (+$800.00)</OPTION>
<OPTION value="executive">Executive (+$1400.00)</OPTION>
</SELECT></td></tr>
<tr><td>RoofRack:</td><td>
<input type="checkbox" name="roofrack" value="1">Add Option (+$200.00)</input>
</td></tr>
<tr><td></td><td><input type="SUBMIT" value="Process">    <input type="reset" name="Clear Form"></td></tr>
</form>
</body>
</html>

It's because name is null. You declared it but didn't initialize it, so it's null. What did you expect to happen there?
By the way, declaring instance variables in a servlet class is a bad practice. If you get two requests at the same time, they both share the same instance of the servlet so they are both accessing and updating the same variables. Make them local variables in your doPost() method and you should not have that problem.

Similar Messages

  • Java.lang.NullPointerException at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:292)

              Hi,
              intermittently we are seeing this exception in the server log files on weblogic 6.1
              sp2, I was wondering what the cause is:
              java.lang.NullPointerException
                   at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:292)
                   at weblogic.servlet.internal.HttpServer.log(HttpServer.java:835)
                   at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1002)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2209)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Did your C:\Lighthammer\Security\userdata\IlluminatorUsers.xml or other files in this directory get corrupted somehow?
    If you've rebooted the box or bounced the ServletExec-xMII service, do you see anything in the SYSTEM level messages that are forced during the initialization sequence in either the Lighthammer General log or the LHSecurity General log that would give any indications to the problem?
    Regards,
    Jeremy

  • Java.lang.NullPointerException with Tomcat  Servlet

    Hi,
    I have got in my database the year as a number (Integer) like 1973 whatever, and in my servlet i get the yearFrom and the yearTo. Then parse them into an integer but I get java.NullPointerException and I dunno why???
    Then I put them in my SQL statement:
    ageFrom = Integer.parseInt(strAgeFrom);
    ageTo = Integer.parseInt(strAgeTo);
    String SQL = "SELECT * FROM People where YearBirth >= " + ageFrom + "  AND YearBirth <= " + ageTo + " AND Gender like '%" + seekFor + "%' AND Interests like '%" + interest + "%' AND Address2 like '%" + suburb + "%';";Thank you

    Hi,
    I have got in my database the year as a number
    (Integer) like 1973 whatever, and in my servlet i get
    the yearFrom and the yearTo. Then parse them into an
    integer but I get java.NullPointerException and I
    dunno why???
    Then I put them in my SQL statement:
    ageFrom = Integer.parseInt(strAgeFrom);
    ageTo = Integer.parseInt(strAgeTo);
    String SQL = "SELECT * FROM People where YearBirth >=
    " + ageFrom + "  AND YearBirth <= " + ageTo + " AND
    Gender like '%" + seekFor + "%' AND Interests like
    '%" + interest + "%' AND Address2 like '%" + suburb +
    "%';";Thank youThat's simply because your strAgeFrom, strAgeTo return NULL.
    If it's possible that you'll get NULL values from those fields, you should do some data validation before using Integer.parseInt().
    Good luck :D

  • Error in executing servlet JSPRunner: java.lang.NullPointerException

    I have some problems with my jsp files.
    I am using iAS6sp4 and iWS 6 on W2K.
    I created a EJB jar file and an empty WAR file (No JSP, Servlet, just web.xml & ias-web.xml) and pack them into a ear file for deployment. It was successful.
    Then I copy some jsp files to <iasinstall>/ias6/ias/APPS/<app name>/<war name>
    and restart the ias and iws server.
    When I try the URL: "http://myserver/NASApp/<app name>/myjsp.jsp", I got this error message from kjs.
    JSPRunner: init
    Exception: SERVLET-execution_failed: Error in executing servlet JSPRunner: java.lang.NullPointerException
    My jsp didn't include any java code, just pure htm code. I want to give it a test. But even though I tried with a proper jsp i still got this message. pls advise.
    Alan

    Hi,
    I got this working. Here are the steps that I followed and the output...
    Steps
    1. Deployed the helloworld application
    2. Invoked the application to see if it works fine
    3. Copied the myjsp.jsp to the C:\iPlanet\ias6\ias\APPS\helloworld\helloworld directory
    4. Shutdown the iAS and iWS and started again
    5. Invoked the .jsp file by typing http://sundts2.india.sun.com:81/NASApp/helloworld/myjsp.jsp in the browser.
    Output of KJS
    [16/Mar/2002 14:46:06:5] info: ENGINE-ready: ready: 10819
    **********Registered ebnls interceptor ...!
    [16/Mar/2002 14:46:22:4] info: --------------------------------------
    [16/Mar/2002 14:46:22:4] info: JSPRunner: init
    [16/Mar/2002 14:46:22:4] info: --------------------------------------
    [16/Mar/2002 14:46:26:4] info: --------------------------------------
    [16/Mar/2002 14:46:26:4] info: jsp.APPS.helloworld.myjsp: init
    [16/Mar/2002 14:46:26:4] info: --------------------------------------
    The myjsp.jsp coding is...
    <HTML>
    <BODY>
    <H1>This is a .jsp file for testing</H1>
    </BODY>
    </HTML>
    I believe the problem in your case must be that the .jsp file has been placed in a directory where iAS is not able to recognise. I'm sure this will help. Please feel free to raise questions on this.
    Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Error: java.lang.NullPointerException in servlet deployment

    Hi!!!
    Im trying to deploy a servlet created in Jdeveloper on OC4J, but got the Error: java.lang.NullPointerException when the Jdeveloper is deploying the servlet.
    The containers are running, so I don't know what is the problem....
    Thanks

    If you could give a little more info it would help. The web.xml for example, if your mapping it correctly, etc...

  • Java.lang.NullPointerException in Servlet

    Hello Friends,
    I am getting java.lang.NullPointerException line 28
    I m enclosing the code
    Please check and let me know asap
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class ForwardServlet extends HttpServlet
    public void service(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
    try
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    String viewURL=response.encodeURL("/EmployeeTimesheetServlet"); String addURL=response.encodeURL("/Login.jsp");
    String loginURL=response.encodeURL("/ProjectServlet");
    RequestDispatcher rd=null;
    if(request.getParameter("view")!=null)
    request.getRequestDispatcher(viewURL);
    else if(request.getParameter("add")!=null)
    request.getRequestDispatcher(addURL);
    else if(request.getParameter("default")!=null)
    request.getRequestDispatcher(loginURL);
    rd.forward(request,response);---------------------->Line28
    catch(Exception e)
    e.printStackTrace();
    i have checked all servlets
    what could be the probelm?
    Thanx
    Pooja

    RequestDispatcher rd=null;
    if(request.getParameter("view")!=null)
    rd = request.getRequestDispatcher(viewURL);
    else if(request.getParameter("add")!=null)
    rd = request.getRequestDispatcher(addURL);
    else if(request.getParameter("default")!=null)
    rd = request.getRequestDispatcher(loginURL);
    rd.forward(request,response)

  • Java.lang.NullPointerException oracle.apps.xdo.servlet.GlobalContext.getPro

    Hi,
    We have installed BI Publisher as part of OBIEE 10.1.3.4.1. Our J2EE Application Server is Apache Tomcat 5.5.2.7
    After manually deploying the xmlpserver.war in Tomcat and doing the changes to xmlp-server-config.xml
    When i am trying access the URL, its resulting into following Tomcat Error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         oracle.apps.xdo.servlet.GlobalContext.getProperty(GlobalContext.java:182)
         oracle.apps.xdo.servlet.security.SecurityFilter.handleSSO(SecurityFilter.java:318)
         oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:108)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
    Before doing the changes, when i tried to access via URL, it was showing up BI Publisher Login Screen.
    Any idea whats wrong?
    I have also copied the fonts to the JRE/lib/fonts folder.
    Thanks,
    Shalabhsneha

    I went through Tomcat Logs & found following full trace in catalina.out
    - Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at oracle.apps.xdo.servlet.GlobalContext.getProperty(GlobalContext.java:182)
    at oracle.apps.xdo.servlet.security.SecurityFilter.handleSSO(SecurityFilter.java:318)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:595)

  • Javax.servlet.jsp.JspException: java.lang.NullPointerException

    hi,
    I try to view my presentation in jsp page.I use oracle jdeveloper 9.2.0.4 and bibeans 9.2.0.4 and once 1 month ago I did this taks (I view a presentation from bibdemo in jsp file)
    now I try to view my own presentation in jsp but I recieve error message in my own schema and bibdemo schema!!
    when I use windows xp I recieve following error :
    500 Internal Server Error
    javax.servlet.jsp.JspException: BIB-10310 An unknown exception occurred.
    BIB-10101 Handler failed to handle UserObject.
    BIB-14067 Persistable object threw exception during lookup on method setXMLAsString; component class oracle.dss.dataSource.client.QueryClient; exception oracle.dss.util.persistence.BIPersistenceException.
    BIB-9509 Oracle OLAP did not create cursor.
    oracle.olapi.data.source.UnmatchedInputsException
    BIB-9509 Oracle OLAP did not create cursor.
    oracle.olapi.data.source.UnmatchedInputsException
    oracle.olapi.data.source.UnmatchedInputsException
         at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:194)
         at test.jspService(test.jsp:6)
         [test.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    and when I use windows NT I recieve following error :
    500 Internal Server Error
    javax.servlet.jsp.JspException: java.lang.NullPointerException
         at oracle.dss.addins.jspTags.RenderTag.doEndTag(RenderTag.java:212)
         at kafa_report__7._jspService(kafa_report_7.jsp:18)
         [kafa_report_7.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    I
    what the problem is ????????
    thanks in advance,

    hi,
    here the result :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <BICheckConfig version="1.0.2.0">
    <Check key="JDEV_ORACLE_HOME" value="d:\jdev904" />
    <Check key="JAVA_HOME" value="C:\j2sdk1.4.2_01" />
    <Check key="JDeveloper version" value="9.0.4.0.1419" />
    <Check key="BI Beans release description" value="BI Beans 9.0.4 Production Release" />
    <Check key="BI Beans component number" value="9.0.4.23.0" />
    <Check key="BI Beans internal version" value="2.7.5.32" />
    <Check key="host" value="200.20.20.11" />
    <Check key="port" value="1521" />
    <Check key="sid" value="ora10g" />
    <Check key="user" value="dw_targetschema" />
    <Check key="Connecting to the database" value="Successful" />
    <Check key="JDBC driver version" value="9.2.0.4.0" />
    <Check key="JDBC JAR file location" value="D:\jdev904\jdev\lib\patches" />
    <Check key="Database version" value="10.1.0.2.0" />
    <Check key="OLAP Catalog version" value="10.1.0.2.0" />
    <Check key="OLAP AW Engine version" value="10.1.0.2.0" />
    <Check key="OLAP API Server version" value="10.1.0.2.0" />
    <Check key="BI Beans Catalog version" value="N/A; not installed in dw_targetschema" />
    <Check key="OLAP API JAR file version" value="9.2" />
    <Check key="OLAP API JAR file location" value="d:\jdev904\jdev\lib\ext" />
    <Check key="OLAP API Metadata Load" value="Successful" />
    <Check key="Number of metadata folders" value="2" />
    <Check key="Number of metadata measures" value="1" />
    <Check key="Number of metadata dimensions" value="3" />
    - <Check key="OLAP API Metadata">
    - <![CDATA[
    ==============================================================================
    Type      Name (S=Schema, C=Cube, M=Measure, D=Dimension)         Status   
    ========= ======================================================= ============
    Folder... ROOT
    Folder...   KAFA_COLLECTION
    Folder...   KAFA_COLLECTION2
    Measure..      SALARY                                             Unsuccessful
                   S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
                   Connection lost. Reconnect                         Successful
    Dimension      DEP_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=DEP_DIM
    Dimension      EMP_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=EMP_DIM
    Dimension      JOB_DIM                                            Successful
                   S=DW_TARGETSCHEMA, D=JOB_DIM
      ]]>
    </Check>
    - <Check key="StackTrace">
    - <![CDATA[
    ============================================================================
    Queries on the following measures or dimensions failed
    (S=Schema, C=Cube, M=Measure, D=Dimension)
    "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
    ============================================================================
    Exception stacktrace for "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
    ============================================================================
    1) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    2) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    1) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    ============================================================================
    oracle.dss.dataSource.common.QueryRuntimeException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
         at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:480)
         at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
         at BICheckConfig.printFolder(BICheckConfig.java:405)
         at BICheckConfig.printFolder(BICheckConfig.java:464)
         at BICheckConfig.checkConnection(BICheckConfig.java:350)
         at BICheckConfig.main(BICheckConfig.java:1348)
    2) BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
    ============================================================================
    java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.idl.util.OlapiException: No more data to read from socket
         at oracle.dss.dataSource.common.CubeCursor.clone(CubeCursor.java:387)
         at oracle.dss.dataSource.common.Query.addNewCubeCursorCopy(Query.java:2366)
         at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:477)
         at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
         at BICheckConfig.printFolder(BICheckConfig.java:405)
         at BICheckConfig.printFolder(BICheckConfig.java:464)
         at BICheckConfig.checkConnection(BICheckConfig.java:350)
         at BICheckConfig.main(BICheckConfig.java:1348)
      ]]>
    </Check>
    </BICheckConfig>
    when I was transfering the collection from warehouse builder to database I recieve some error messages.
    but when I try to connect to database from bibeans every thing was ok so I thougth maybe it is because of that.
    and that about bibdemo why it doesn't work???
    it works before and I check it with bi_checkconfig
    thanks ,
    shima

  • My servlet throws java.lang.NullPointerException when calling service()

    i can't determine which part exactly is null and the exception log is:
    Jun 28, 2009 1:28:11 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet CheckLog threw exception
    java.lang.NullPointerException
    at LoginSer.processRequest(LoginSer.java:37)
    at LoginSer.doPost(LoginSer.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:619)
    and here is the code can anyone help me please:
    import java.io.*;
    import java.net.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import com.microsoft.sqlserver.jdbc.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.ws.Dispatch;
    public class RegForm extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            String fName=request.getParameter("fName");
            String lName=request.getParameter("lName");
            String addr=request.getParameter("address");
            int x=0;
            if(!(fName.equals(null) && lName.equals(null) && addr.equals(null))){
            try {
                  Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                String url="jdbc:sqlserver://localhost:1433;databaseName=MyDB1;userName=sa;password=iszecson;";
                Connection conn=DriverManager.getConnection(url);
                Statement st=conn.createStatement();
            //System.out.println("----> "+conn.toString());  
          int rs=st.executeUpdate("insert into Employee (FirstName,LastName,Address) values ('"+fName+"','"+lName+"','"+addr+"')");
             x=rs; 
            } catch (Exception ex) {
                ex.printStackTrace();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Added</title>");
            out.println("</head>");
            out.println("<body>");
            out.println(x+" rows affected");
            out.println("</body>");
            out.println("</html>");
            out.close();
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        }

    abulseed wrote:
    if(!(fName.equals(null) && lName.equals(null) && addr.equals(null))){
    Is this line 37?
    If so, if any of fName, lName or addr are null you will get a NullPointerException.
    This is not how you check whether something is null.
    Use '=='.

  • Returning ResultSet from servlet to jsp - java.lang.NullPointerException

    Hey all, i've been stuck on this for too long now...just trying to return a ResultSet from a servlet to jsp page.
    Had a bunch of problems earlier...which i think were fixed but...now i get a "java.lang.NullPointerException" in my jsp page when i try to get elements from the ResultSet object.
    Here is the latest version of my code:
    Servlet:
    String QueryStr="select ProdName from products";
    Statement stmt=conn.createStatement();
    rs=stmt.executeQuery(QueryStr); //get resultset
    sbean.setInventory(rs); //set ResultSet in bean
    req.getSession(true).setAttribute("s_resbean",sbean); //create session/request variable, set to bean
    Bean:
    package beans;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    public class SearchBean extends HttpServlet{
         private int searchFlag=0;
         private ResultSet inventory;
         public SearchBean(){
         public int getSearchFlag(){
         return searchFlag;
         public ResultSet getInventory(){
              return inventory;
         public void setInventory(ResultSet rs){
              this.inventory=rs;
         public void setSearchFlag(){
              this.searchFlag=1;
    jsp:
    <%@ page language="java" import="java.lang.*,java.sql.*,javax.sql.*,PopLists.PopInvLists,beans.SearchBean"%>
    <jsp:useBean scope="session" id="s_resbean" class="beans.SearchBean" />
    <% ResultSet categories=PopInvLists.getCat();
    ResultSet manuf=PopInvLists.getManuf();
    ResultSet supplier=PopInvLists.getSupplier();
    ResultSet cars=PopInvLists.getCars();
    ResultSet search=(ResultSet)request.getAttribute("s_resbean");
    %>
    <%     while(search.next()){
         String pname=search.getString("ProdName");
    %>
    It craps out when i try to loop through the "search" ResultSet.
    I can loop through the rest of the ResultSets no problem....just this one doesn't work because it's set in a servlet, not a simple java class.
    Just to clarify, i am populating some dropdown lists on entry to the screen, which the user will use to perform a search. Once the search btn is clicked, the servlet is called, gets the request info for the search, performs search, and returns the resultset to the original screen. I want to eventually display the result under the search criteria.
    Someone....Please Please please tell me how to get this working...it should be very simple, but i just can't get it to work.
    Thanks in advance,
    Aditya

    req.getSession(true).setAttribute("s_resbean",sbean); //create session/request variable, set to beanHere you add an attribute to the session.
    ResultSet search=(ResultSet)request.getAttribute("s_resbean");Here you try to get the attribute from the request. Naturally it isn't there because you added it to the session, not the request. Despite your comment in the first line of code, a session is not a request. And vice versa.

  • Java.lang.NullPointerException while scheduling

    Hi All,
    I am trying to schedule my simple sql query based report ( no bursting) to email(email server is already configured). When I schedule through GUI and click on submit button , I get following error message
    java.lang.NullPointerException
    Error in Detail:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: java.lang.NullPointerException
             at oracle.apps.xdo.servlet.scheduler.toplink.ToplinkDataHandler.insertJob(ToplinkDataHandler.java:830)
             at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.scheduleJob(SchedulerServlet.java:1896)
             at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.doPost(SchedulerServlet.java:293)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
             at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
             at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
             at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
             at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
             at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
             at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
             at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
             at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
             at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
             at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
             at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
             at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
             at oracle.apps.xdo.servlet.scheduler.toplink.ToplinkDataHandler.insertJob(ToplinkDataHandler.java:821)
             ... 16 more
    Though the same report is working fine on one more computer. What could be the problem? Do I need to do some specific configurations?
    Thanks !
    -Sookie

    Thanks Hareesh,
    ya that  "callsapadapter"  was the culprit. It comes by itself, Once I removed that PGP was working fine.

  • Urgent - java.lang.NullPointerException when deploying a WAR file

    Hello
    I am trying to deploy a WAR file on 9iAS rel 2 using the Enterprise Manager. On the web page, I provide the .war file along with application name and url mapping. When I click on deploy, i get an error back which just says java.lang.NullPointerException. There is no stack trace.
    Until now, I have been working on my own PC using tomcat, and the war file works fine in tomcat.
    I am presuming that there will be a log file where more information will be available, but I do not know where the log file is kept. The Oracle 9iAS is installed on Solaris.
    Any help with this would be greatly appreciated.
    Thanks.
    Jay

    Problem Solved
    The problem was the web.xml file which contained some elements that are only valid for servlet 2.4 (used on tomcat) but not on 2.2(used in oracle).
    Jay.

  • BPEL Server java.lang.NullPointerException

    I have been getting a java.lang.NullPointerException after I try to add a Database adapter to a BPEL process. I get the exception even after I delete everything I added before I got the exception. Here is the text from the screen that the BPEL Console puts up:
    Oracle BPEL Process Manager Full Cycle
    An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize you can post the error to the OTN forum and we will get back to you as soon as possible.
    Attachments:
    Build Information:
    Oracle BPEL Server version 10.1.2.0.0
    Build: 1442
    Build time: Fri Apr 29 16:59:32 PDT 2005
    Build type: release
    Source tag: BPELPM_10_1_2_release_branch
    Exception Message:
    [java.lang.NullPointerException]
    null
    Exception Trace:
    java.lang.NullPointerException
         at com.collaxa.cube.engine.deployment.ProcessRevisionRegistry$RevisionTable.remove(ProcessRevisionRegistry.java:296)
         at com.collaxa.cube.engine.deployment.ProcessRevisionRegistry.delete(ProcessRevisionRegistry.java:112)
         at com.collaxa.cube.engine.deployment.CubeProcessLoader.destroy(CubeProcessLoader.java:596)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.reload(CubeProcessHolder.java:972)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.loadAndBind(CubeProcessHolder.java:922)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.getProcess(CubeProcessHolder.java:787)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.getProcess(CubeProcessHolder.java:765)
         at com.collaxa.cube.engine.deployment.CubeProcessHolder.getStatus(CubeProcessHolder.java:211)
         at com.collaxa.cube.engine.deployment.DeploymentHelper.lookupProcessStatus(DeploymentHelper.java:301)
         at com.collaxa.cube.ejb.impl.FinderBean.lookupProcess(FinderBean.java:86)
         at IFinderBean_StatelessSessionBeanWrapper42.lookupProcess(IFinderBean_StatelessSessionBeanWrapper42.java:228)
         at com.oracle.bpel.client.Locator.lookupProcess(Locator.java:245)
         at displayProcess.jspService(_displayProcess.java:88)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:138)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Please let me know if I am doing anything wrong.
    Thanks,
    Jeff

    A follow on to the last post, after I stopped and then restarted the BPEL Server, the process loaded correctly and the error did not reappear.

  • Portal Runtime Error - java.lang.NullPointerException in Role Permissions

    Hello All:
    I am getting a runtime error while trying to bring up permissions for copies of SAP delivered roles.
    Any help much appreciated.
    =================
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/com.sap.pct/admin.templates/iviews/editors/com.sap.portal.aclEditor
    Component class : com.sap.portal.admin.acleditor.ACLEditor
    User : TESTUSER
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:973)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.NullPointerException
         at com.sap.portal.admin.editor.pane.OutPane.calculatePEObjectId(OutPane.java:210)
         at com.sap.portal.admin.editor.pane.OutPane.createEditorLayout(OutPane.java:256)
         at com.sap.portal.admin.editor.pane.OutPane.setupComponent(OutPane.java:150)
         at com.sap.portal.admin.editor.pane.EditorPaneWrapper.mySetupComponent(EditorPaneWrapper.java:143)
         at com.sapportals.admin.wizardframework.components.FlowContainer.setupComponent(FlowContainer.java:129)
         at com.sapportals.admin.wizardframework.core.TrivialPaneFactory.getComponent(TrivialPaneFactory.java:35)
         at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:229)
         at com.sap.portal.admin.editor.Editor.doWizard(Editor.java:605)
         at com.sap.portal.admin.editor.Editor.run(Editor.java:150)
         at com.sap.portal.admin.editor.AbstractEditorComponent.doContent(AbstractEditorComponent.java:59)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         ... 29 more
    #1.5 #001125C00D9B007C000005E00017E09600044CCF2EFD55C4#1210352637138#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#TESTUSER#121429##mdt2ds111_SC1_1097250#TESTUSER#30ca97d01de611ddac19001125c00d9b#SAPEngine_Application_Thread[impl:3]_10##0#0#Error##Java###05:03_09/05/08_0167_1097250
    [EXCEPTION]
    #1#java.lang.NullPointerException
         at com.sap.portal.admin.editor.pane.OutPane.calculatePEObjectId(OutPane.java:210)
         at com.sap.portal.admin.editor.pane.OutPane.createEditorLayout(OutPane.java:256)
         at com.sap.portal.admin.editor.pane.OutPane.setupComponent(OutPane.java:150)
         at com.sap.portal.admin.editor.pane.EditorPaneWrapper.mySetupComponent(EditorPaneWrapper.java:143)
         at com.sapportals.admin.wizardframework.components.FlowContainer.setupComponent(FlowContainer.java:129)
         at com.sapportals.admin.wizardframework.core.TrivialPaneFactory.getComponent(TrivialPaneFactory.java:35)
         at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:229)
         at com.sap.portal.admin.editor.Editor.doWizard(Editor.java:605)
         at com.sap.portal.admin.editor.Editor.run(Editor.java:150)
         at com.sap.portal.admin.editor.AbstractEditorComponent.doContent(AbstractEditorComponent.java:59)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    =====================

    Praveen:
    I have already tried this and it did not fix the problem.
    Here is something more bizarre, I get the error when the copied roles are in 3rd folder level after Portal Content.
    For instance:
    1) Portal Content > Test Folder 1 (ZContentAdmin)  ....... NO ERROR
    2) Portal Content > Test Folder 1 > Test Folder 2 (ZContentAdmin) .......... NO ERROR
    3) Portal Content > Test Folder 1 > Test Folder 2 > Test Folder 3 (ZContentAdmin) ..... ERROR
    Just to reiterate, custom roles work fine, it is just when I do a Copy/Delta copy of SAP delivered content roles.....
    Looking for a solution.
    Khurram
    Edited by: Khurram Mahmudi on May 9, 2008 9:32 PM

  • Urgent :-Need Help in DOtnet Dll integration with CFM 8. for error "java.lang.NullPointerException"

    Hi Everyone,
    I am trying to intergrate Dotnet DLL with coldfusion. The basic perpose of this DLL is putting value in cache.
    My code is working fine on my local machine but it giving me problem on live server.
    It is throwing "java.lang.NullPointerException" error.
    Description of task:-
    DLL:-
    made in : Dotnet 3.0
    Functions:-
    setCache:- setting a string into cache.
    getCache:- getting value from cache.
    ClearCache:- Clearing all value from Cache.
    Local Machine:-
    OS: window server 2003
    Coldfusion version :MX8
    coldfusion Product level:-Developer
    Result:-Task is working fine.No error what so ever.
    Live server:-
    OS: window server 2003
    Coldfusion version :MX8
    coldfusion Product level:-Standred
    Result:-Task is throwing error "java.lang.NullPointerException"

    Thanks for your response, but surely if the .NET Services was not running how can CF instantiate and dump the object with all the correct methods?
    Anyway for some strange reason there is no Coldfusion .NET service in my services control panel even though I am running CF8. I have since downloaded the .NET service installer, run it and done a restart but I can still see no such service and the error continues?
    I am running CF8 Dev on IIS 6 – Window XP pro and here is debug
    java.lang.NullPointerException
                   at com.jnbridge.jnbcore.clientTransports.d$b.close(Unknown Source)
                   at java.net.Socket.<init>(Socket.java:368)
                   at java.net.Socket.<init>(Socket.java:209)
                   at com.jnbridge.jnbcore.clientTransports.d$b.<init>(Unknown Source)
                   at com.jnbridge.jnbcore.clientTransports.d.if(Unknown Source)
                   at com.jnbridge.jnbcore.clientTransports.c.a(Unknown Source)
                   at com.jnbridge.jnbcore.clientTransports.f.a(Unknown Source)
                   at com.jnbridge.jnbcore.DotNetSideProxy.int(Unknown Source)
                   at com.jnbridge.jnbcore.DotNetSideProxy.getObjectStaticProperty(Unknown Source)
                   at System.Environment.Get_CurrentDirectory()
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:87)
                   at coldfusion.runtime.dotnet.DotNetProxy.invoke(DotNetProxy.java:38)
                   at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)
                   at cftestDotNet2ecfm215937280.runPage(C:\Inetpub\wwwroot\his_clothing\testDotNet.cfm:20)
                   at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
                   at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
                   at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
                   at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273)
                   at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
                   at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
                   at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
                   at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
                   at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
                   at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
                   at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
                   at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
                   at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
                   at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
                   at coldfusion.CfmServlet.service(CfmServlet.java:175)
                   at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
                   at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
                   at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
                   at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
                   at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
                   at jrun.servlet.FilterChain.service(FilterChain.java:101)
                   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
                   at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
                   at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
                   at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
                   at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
                   at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
                   at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
                   at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
                   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Maybe you are looking for

  • Downloading and installing cs5 on a new computer

    bought photoshop cs5 back in 2010 which resided on my laptop but now that i've upgraded computers, i'm trying to download and install it onto my new HP.  using the akamai downloader, it just keeps cycling through the first of the 2 files (so it looks

  • IOS 7 Not Installing

    I am trying to install iOS 7 and I'm getting this message saying "Software update not available at this time. Please try again later." Is anyone else getting this message?

  • Settlement rule in WBS element

    Hi Team we are assigning General ledger accounts for settlement WBS element cost. system gives the below warning message. but we have three company codes we fallow the same steps for all company codes. but we are facing in one company code only why i

  • Please help to get rid of this strange rectangle appearing on interface!

    Hi, my iMac is a brand new which I have purchased Feb 18th, 2009. The problem is that there is a strange rectangle (black outlined, empty filled) keeps appearing on interface. It appears right now around the red circle button that closes this window.

  • Links for Oracle/Al BPM

    Hello Friends I'm Looking for the Best Links for Studying and practicing Oracle /Al BPM Links and forums( other than This Forum) . Thanks in advance .