Error:null pointer exception in jsp

I try to write a programme for copying from one file to another file in a text format.but it is displaying the error.why the null pointer exception is coming.also i want to write the contents from combobox and text box to that same file.for that what to do? can u explain.
the code is like that.... the disining part in another page..
<%@ page language="java"%>
<%@ page import="java.io.*"%>
<%@ page import="java.text.*"%>
<html>
<head>
<title>
</title>
</head>
<body>
<%
String cname=request.getParameter("cname");
String category=request.getParameter("category");
String submit=request.getParameter("submit");
%>
<%
try
File f1=new File(request.getParameter("file"));
File f2=new File("/ee/file1.txt");
InputStream is=new FileInputStream(f1);
OutputStream os=new FileOutputStream(f2);
byte buf[]=new byte[1024];
int len;
if(submit.equals("submit"))
%>
Company Name is:<%out.println(cname);%>
Category :<%out.println(category);%>
<%
while((len=is.read(buf))>0)
os.write(buf,0,len);
out.println("file copied");
else
out.println("invalid data");
is.close();
os.close();
out.println("file copied");
catch(FileNotFoundException ex)
out.println(ex);
catch(IOException eo)
out.println(eo);
catch(Exception e)
     out.println(e);
     finally
     out.println("");
     %>
     </body>
     </html>

Hi,
Am not getting exception now.In the jsp wer I ve written connection,am taking some values using request.getParameter("msg") . I had opened the connection statement before getting these parameter values.Think I ws getting null pointer exception due to this.Now I have opened connection after getting these parameter values...anyway am not getting the exception now...
Thanks.

Similar Messages

  • Null pointer exception in jsp ,data missing in chat application

    Hi all....
    I have a chat application in jsp using ajax.I have opened a d/b connection in a jsp which is called each time I sent a message.But sometimes I get null pointer exception in this page when msgs are sent so fast...also I miss some of the msgs I sent....I can't avoid that connection ther..When I commented all those d/b connection statements...everything is working fine..Please suggest me any solution...
    Thanks in advance.

    Hi,
    Am not getting exception now.In the jsp wer I ve written connection,am taking some values using request.getParameter("msg") . I had opened the connection statement before getting these parameter values.Think I ws getting null pointer exception due to this.Now I have opened connection after getting these parameter values...anyway am not getting the exception now...
    Thanks.

  • 500 Internal Server Error - Null Pointer Exception

    Hi,
    I am using a Struts application. I get the following error while clicking a button in a JSP page. The mapping has been provided in the struts config.xml file. What could be the possible cause?
    java.lang.NullPointerException
         at org.apache.commons.beanutils.PropertyUtils.setIndexedProperty(PropertyUtils.java:1458)
         at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1013)
         at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
         at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
         at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
         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.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
         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 am using a Struts application. I get the following error while clicking a button in a JSP page. The mapping has been provided in the struts config.xml file. What could be the possible cause?
    java.lang.NullPointerException
    at org.apache.commons.beanutils.PropertyUtils.setIndexedProperty(PropertyUtils.java:1458)

  • Jsp mail error null pinter exception

    hi all
    below is the code to sending mail from jsp (mailer.jsp) and html form
    i get an null pointer exception in jsp when i try to get the values by
    request.getParameter("xxx");
    pls tell me how to get this done
    i dont want the files to be uploaded to the server
    here are some of the tries i did
    1) i removed the form setting of enctype="multipart/form-data"
    then the error goes but the attachments are not found
    the error is filenotfound exception
    it will be gr8 help if some one correct my code
    please help
    <%@ page import="  javax.activation.*,  java.util.*, java.io.*,
    javax.mail.internet.*,  javax.mail.* " %>
    <html>
    <head>
    <title&gtSend an email ans File with jsp page</title>
    </head>
    <body bgcolor="#C0C0C0" text="#CC0000" >
    <%
    if(request.getMethod().equals("POST")  )
      boolean status = true;
      // enter here the smtp mail server address
      // ask your ISP to get the proper name
      String mailServer = "mail.econify.com";
      String fromEmail    = request.getParameter("from");
      String toEmail      = request.getParameter("to");
      String messageEnter = request.getParameter("message");
      String fileName     = request.getParameter("theFile");
    try
        Properties props = new Properties();
        props.put("mail.smtp.host", mailServer);
        Session s = Session.getInstance(props,null);
        MimeMessage message = new MimeMessage(s);
        InternetAddress from = new InternetAddress(fromEmail);
        message.setFrom(from);
        InternetAddress to = new InternetAddress(toEmail);
        message.addRecipient(Message.RecipientType.TO, to);
        message.setSubject("Send Email with jsp");
        //message.setText(messageEnter);
        // Create the message part
        BodyPart messageBodyPart = new MimeBodyPart();
        // Fill the message
        messageBodyPart.setText(messageEnter);
           // Part two is attachment
        Multipart multipart = new MimeMultipart();
        messageBodyPart = new MimeBodyPart();
        DataSource source = new FileDataSource(fileName);
        messageBodyPart.setDataHandler(new DataHandler(source));
         System.out.println("file anem : "+fileName);
        messageBodyPart.setFileName(fileName);
        multipart.addBodyPart(messageBodyPart);
       // Put parts in message
       message.setContent(multipart);
       Transport.send(message);
    // ENCTYPE="multipart/form-data"
      catch (Exception e)
         System.out.println(e.getMessage() );
         out.println("ERROR, your message failed, reason is: " + e);
         status = false;
      if (status == true)
         out.println("Your message to " + toEmail + " was sent successfully!");
    else
    %>
    <h1>Send email and attatchment file with jsp</h1>
    <form method="post" name="mail" action="mailer.jsp" enctype="multipart/form-data">
    <table BORDER="0">
    <tr>
        <td>To :</td>
        <td><input type="text" name="to" size=24></td>
    </tr>
    <p>
    <tr>
        <td>From :</td>
        <td><input type="text" name="from" size=24></td>
    </tr>
    <p>
    <tr>
        <td>Message :</td>
        <td><TEXTAREA name="message" ROWS = "5" COLS="65"></TEXTAREA></td>
    </tr>
    <p>
    <tr>
        <td>File attachment: </td>
        <td><input TYPE="FILE" name="theFile"></td>
    </tr>
    <tr>
         <td></td>
         <td><input TYPE="submit" value="submit" name="Command"></td>
    </tr>
    </table>
    </form>
    <%
    %>
    </body>
    </html>

    hi all
    below is the code to sending mail from jsp (mailer.jsp) and html form
    i get an null pointer exception in jsp when i try to get the values by
    request.getParameter("xxx");
    pls tell me how to get this done
    i dont want the files to be uploaded to the server
    here are some of the tries i did
    1) i removed the form setting of enctype="multipart/form-data"
    then the error goes but the attachments are not found
    the error is filenotfound exception
    it will be gr8 help if some one correct my code
    please help
    <%@ page import="  javax.activation.*,  java.util.*, java.io.*,
    javax.mail.internet.*,  javax.mail.* " %>
    <html>
    <head>
    <title&gtSend an email ans File with jsp page</title>
    </head>
    <body bgcolor="#C0C0C0" text="#CC0000" >
    <%
    if(request.getMethod().equals("POST")  )
      boolean status = true;
      // enter here the smtp mail server address
      // ask your ISP to get the proper name
      String mailServer = "mail.econify.com";
      String fromEmail    = request.getParameter("from");
      String toEmail      = request.getParameter("to");
      String messageEnter = request.getParameter("message");
      String fileName     = request.getParameter("theFile");
    try
        Properties props = new Properties();
        props.put("mail.smtp.host", mailServer);
        Session s = Session.getInstance(props,null);
        MimeMessage message = new MimeMessage(s);
        InternetAddress from = new InternetAddress(fromEmail);
        message.setFrom(from);
        InternetAddress to = new InternetAddress(toEmail);
        message.addRecipient(Message.RecipientType.TO, to);
        message.setSubject("Send Email with jsp");
        //message.setText(messageEnter);
        // Create the message part
        BodyPart messageBodyPart = new MimeBodyPart();
        // Fill the message
        messageBodyPart.setText(messageEnter);
           // Part two is attachment
        Multipart multipart = new MimeMultipart();
        messageBodyPart = new MimeBodyPart();
        DataSource source = new FileDataSource(fileName);
        messageBodyPart.setDataHandler(new DataHandler(source));
         System.out.println("file anem : "+fileName);
        messageBodyPart.setFileName(fileName);
        multipart.addBodyPart(messageBodyPart);
       // Put parts in message
       message.setContent(multipart);
       Transport.send(message);
    // ENCTYPE="multipart/form-data"
      catch (Exception e)
         System.out.println(e.getMessage() );
         out.println("ERROR, your message failed, reason is: " + e);
         status = false;
      if (status == true)
         out.println("Your message to " + toEmail + " was sent successfully!");
    else
    %>
    <h1>Send email and attatchment file with jsp</h1>
    <form method="post" name="mail" action="mailer.jsp" enctype="multipart/form-data">
    <table BORDER="0">
    <tr>
        <td>To :</td>
        <td><input type="text" name="to" size=24></td>
    </tr>
    <p>
    <tr>
        <td>From :</td>
        <td><input type="text" name="from" size=24></td>
    </tr>
    <p>
    <tr>
        <td>Message :</td>
        <td><TEXTAREA name="message" ROWS = "5" COLS="65"></TEXTAREA></td>
    </tr>
    <p>
    <tr>
        <td>File attachment: </td>
        <td><input TYPE="FILE" name="theFile"></td>
    </tr>
    <tr>
         <td></td>
         <td><input TYPE="submit" value="submit" name="Command"></td>
    </tr>
    </table>
    </form>
    <%
    %>
    </body>
    </html>

  • Null pointer Exception in Standard Controller Extension

    Hi All,
    I extend the controller, The controller is related to two Standard pages.
    My code is working fine for one controller, but where as for the other page it throws an error null pointer exception.
    Please help me as this is very urgent issue.
    My code is as follows:
    // This Controller is used to display Item Description and manufacturer name, which is extended from Standard Controller EgoItemDetailPageLayoutCO
    package oracle.apps.eng.changemgmt.webui;
    import com.sun.java.util.collections.ArrayList;
    import com.sun.java.util.collections.HashMap;
    import java.io.IOException;
    import java.io.Serializable;
    import java.net.URLEncoder;
    import java.util.Dictionary;
    import java.util.Vector;
    import oracle.apps.eng.changemgmt.nir.util.DisplayUtils;
    import oracle.apps.eng.changemgmt.util.*;
    import oracle.apps.eng.changemgmt.util.server.ActionServerUtil;
    import oracle.apps.eng.changemgmt.util.webui.ChangeRouteUIUtil;
    import oracle.apps.eng.changemgmt.util.webui.EngChangeUtil;
    import oracle.apps.eng.util.server.WorkflowUtil;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.*;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.webui.*;
    import oracle.apps.fnd.framework.webui.beans.OAImageBean;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OAFormValueBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.layout.*;
    import oracle.apps.fnd.framework.webui.beans.message.*;
    import oracle.apps.fnd.framework.webui.beans.nav.*;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.fnd.framework.webui.beans.OAFormattedTextBean;
    import oracle.cabo.ui.BaseMutableUINode;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.beans.*;
    import oracle.cabo.ui.beans.form.SubmitButtonBean;
    import oracle.cabo.ui.beans.form.TextInputBean;
    import oracle.cabo.ui.beans.layout.*;
    import oracle.cabo.ui.beans.message.MessageBoxBean;
    import oracle.cabo.ui.beans.message.MessageStyledTextBean;
    import oracle.cabo.ui.beans.nav.LinkBean;
    import oracle.jbo.*;
    import oracle.jbo.domain.Number;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import oracle.apps.ego.item.eu.util.EgoItemContext;
    import oracle.apps.ego.item.eu.util.EgoOrganizationContext;
    import oracle.apps.fnd.framework.OAApplicationModule;
                   public class XXNRChangeDetailPageEXTCO extends ChangeDetailPageCO
                        public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
                             super.processRequest(oapagecontext, oawebbean);
                             XXNRchangeDetailIncontext(oapagecontext,oawebbean);
                   public void XXNRchangeDetailIncontext(OAPageContext oapagecontext,OAWebBean oawebbean)
                             int x=2;
                   int y=3;
                                  EgoItemContext egoitemcontext = EgoItemContext.getItemContextObject(oapagecontext);
                                  OAApplicationModule am=oapagecontext.getApplicationModule(oawebbean);
                             EgoOrganizationContext egoorganizationcontext = EgoOrganizationContext.getOrganizationContextObject(oapagecontext);
                                  int invitemid=egoitemcontext.getItemId();
                             int organizationid=egoorganizationcontext.getOrganizationId();
                             StringBuffer stringbuffer = new StringBuffer();
                             String s = EngChangeUtil.getItemPageContextFlag(oapagecontext);
                             OAPageLayoutBean oapagelayoutbean = oapagecontext.getPageLayoutBean();
                                  String manufacturer=XXNRgetManufactuer(am,invitemid,organizationid);
                   String s1 = null;
                   String s2 = "";
                   String s3 = EngChangeUtil.getChangeNumber(oapagecontext) != null ? EngChangeUtil.getChangeNumber(oapagecontext) : "";
                             if(EngChangeUtil.getChangeName(oapagecontext) != null)
                                  EngChangeUtil.getChangeName(oapagecontext);
                             if(EngChangeUtil.getItemNumber(oapagecontext) != null)
                                  EngChangeUtil.getItemNumber(oapagecontext);
                   String s4 = EngChangeUtil.getOrgCodeContext(oapagecontext) != null ? EngChangeUtil.getOrgCodeContext(oapagecontext) : "";
                   String s5 = EngChangeUtil.getOrgNameContext(oapagecontext) != null ? EngChangeUtil.getOrgNameContext(oapagecontext) : "";
                   String s6 = EngChangeUtil.getOrgIdContext(oapagecontext) != null ? EngChangeUtil.getOrgIdContext(oapagecontext) : "";
                             if(!"Y".equals(s))
                                  if(s3 != null && !s3.trim().equals(""))
                                            s1 = "NORMAL";
                                            s2 = "<b>" + EngChangeUtil.getOriginalChangeMgmtTypeName(oapagecontext) + ": " + s3 + "</b>";
                                       } else
                                                 s1 = "CREATE";
                   String s7 = "<b>" + oapagecontext.getMessage("ENG", "ENG_ORGANIZATION_TEXT", null) + ": " + s5 + " (" + s4 + ")</b>";
                   if(!"-1".equals(s6) && !"".equals(s4) && !"Y".equals(s))
    //StringBuffer stringbuffer = new StringBuffer();
                   if(s1 != null && !s1.equals("CREATE"))
                             stringbuffer.append(s2 + "<br>");
                             if(egoitemcontext != null)
                             stringbuffer.append("<b>");
                             stringbuffer.append(oapagecontext.getMessage("EGO", "EGO_ITEM", null));
                             stringbuffer.append(": ");
                             stringbuffer.append(egoitemcontext.getItemNumber());
                             stringbuffer.append("  ");
                             stringbuffer.append(oapagecontext.getMessage("EGO", "EGO_REVISION_CODE", null));
                             stringbuffer.append(": ");
                             stringbuffer.append(egoitemcontext.getRevisionLabel());
                             stringbuffer.append("</b><br>");          
                             if(x==2)
                                            stringbuffer.append(oapagecontext.getMessage("EGO", "EGO_ITEM_DESC", null));
                                  stringbuffer.append(": ");
                                  stringbuffer.append(egoitemcontext.getItemDescription());
                                  stringbuffer.append("</b><br>");
                             if(y==3)
                             stringbuffer.append("<b>");
                             stringbuffer.append(oapagecontext.getMessage("EGO", "EGO_MANUFACTURER", null));
                             stringbuffer.append(": ");
                             stringbuffer.append(manufacturer);
                             stringbuffer.append("</b><br>");
                                  stringbuffer.append(s7+"<br>");
              OAFormattedTextBean oaformattedtextbean = (OAFormattedTextBean)createWebBean(oapagecontext, "FORMATTED_TEXT_BEAN");
              oaformattedtextbean.setCSSClass("OraTipLabel");
              oaformattedtextbean.setText(stringbuffer.toString());
              oapagelayoutbean.setInContextBranding(oaformattedtextbean);
              return;     
                        OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
                        if(oaapplicationmodule.getOADBTransaction().getResponsibilityApplicationId() == 242 && s2 != null && !"".equals(s2))
                             OAFormattedTextBean oaformattedtextbean1 = (OAFormattedTextBean)createWebBean(oapagecontext, "FORMATTED_TEXT_BEAN");
                             oaformattedtextbean1.setStyleUsage("inContextBranding");
                             oaformattedtextbean1.setText(s2);
                             oapagelayoutbean.setInContextBranding(oaformattedtextbean1);
                   public String XXNRgetManufactuer(OAApplicationModule am,int invitemid ,int organizationid)
                        String manufacturer=null;
                             try
                                  PreparedStatement ps=am.getOADBTransaction().getJdbcConnection().prepareStatement("Select XXNRgetManufacturer(?,?) from dual");
                                  ps.setInt(1,invitemid);
                                  ps.setInt(2,organizationid);
                                  ResultSet rs=ps.executeQuery();
                                  while (rs.next())
                             manufacturer=rs.getString(1);
              catch(SQLException e)
                   e.printStackTrace();
    return manufacturer;
    My Error is as follows:
    java.lang.NullPointerException
         at oracle.apps.eng.changemgmt.webui.XXNRChangeDetailPageEXTCO.XXNRchangeDetailIncontext(XXNRChangeDetailPageEXTCO.java:65)
         at oracle.apps.eng.changemgmt.webui.XXNRChangeDetailPageEXTCO.processRequest(XXNRChangeDetailPageEXTCO.java:55)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2336)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1735)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:92)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    Thanks and Regards
    Zaheer

    Hi,
    Can you paster your error log here, also during which execution flow are you getting the error.
    Thanks,
    Ankul

  • Null Pointer Exception while Retrieving Records using Java API

    Hi,
        I am using the Class RetrieveLimitedRecords, to retrieve he records from the main table.
    While using this class I am getting an error Null Pointer Exception, when there are no records matching the search criteriea.
    Could anybody tell me how to ignore this error.
    Thanks,
    Priya.

    Hi,
    Thanks for the reply.
        There is no any class which automatically handles, so we should handle exceptions individually.
    Thanks,
    Priya.

  • JFrame will not close giving null pointer exception

    Hello ev1, Heres what I'm doing, I have a menu with JButtons that when pressed will take you to a game (this works fine). When your done with the game, you press a button that closes the JFrame(game) and starts the menu again (this gives the error null pointer exception). Heres a brief summary of the design:
    FullScreenSetup class
    has openWindow() that sets up a new full screen JFrame. (works)
    has closeWindow() that removes everything in the contentPane and sets
    visible(false).
    GameMenu class
    uses FullScreenSetup via FullScreenSetup window;
    uses window.openWindow() to set up the window.
    also sets up the buttons and handles them when pressed
    VideoPoker class (the game)
    uses FullScreenSetup via FullScreenSetup window;
    runs the game and has the button that should close the window and go
    back to the menu.
    heres how i thought it should work, in the actionPerformed method I have
    window.closeWindow(); <- this gives me the error
    new GameMenu(); <- this is my ultimate goal (hopefully brings me
    back to the menu screen to choose another game)
    I hope what I have written is enough for someone to help me because I know what it is like to read through hundreds of lines of code to help someone. Thx.

    What I cannot understand is that when going from the menu to the game I use window.closeWindow(); so that I can clear the menu and paste the game on the screen this works fine. so why does it not work a second time?

  • ViewDocument.jsp gets null pointer exception when using report token instead of docid for DHTML

    <p>The following command gets a null pointer error showing up in Tomcat log:</p><p>../../viewers/cdz_adv/viewDocument.jsp?sEntry=<%=strEntry%>&lang=en&iDocID=830&ViewType=I&kind=Webi</p><p>where sEntry is a valid report token </p><p>but works fine if the ViewType is H  or id=830 is used instead of sEntry.  When the above command is issued the drill columns are displayed correctly but no report is shown and a null pointer exception is encountered.</p>

    There is a Consulting Solution called BOInterface that Business Objects Global Services sells and that may help you if you are implementing your own "InfoView".
    A description is <a href="http://www.mnsoft.org/bointerface0.0.html">here</a>.
    Particularly, see the <a href="http://www.mnsoft.org/pmiv.0.html">Poor Man's InfoView</a> web application.
    Contact me via direct email for more information if this is interesting for you.
    HTH,
    M
    Matthias Nott -  Business Objects
    Service Line Leader Products EMEA
    [email protected]

  • Error 500 Java.Lang.Null.Pointer Exception

    Please help me:
    I have problem with starting my portlet under portal.
    Provider is registred correctly ,portlet is added corectly on
    Portal Page ,but when I test my page I have :
    The Listener Returned the folowing message-
    Error 500 Java.Lang.Null.Pointer Exception
    Note:Portlet is compiled in JDeveloper 2.0 and there look Ok.
    Thanks

    we encountered the same error on aix4.3.3. in fact the error comes from a variable, that has not been initialized, jserv error log says the following:
    [07/11/2001 10:00:54:098 GMT+00:00] esvportal/init
    [07/11/2001 10:01:08:668 GMT+00:00] esvportal/Response status: 500 : java.lang.NullPointerException
         at oracle.portal.provider.v1.http.ServletProviderRequest.getAcceptLanguage(ServletProviderRequest.java:162)
         at oracle.portal.provider.v1.http.ServletProviderResponse.showPortlet(ServletProviderResponse.java:521)
         at oracle.portal.provider.v1.http.HttpProvider.dispatchProviderAction(HttpProvider.java:662)
         at oracle.portal.provider.v1.http.HttpProvider.service(HttpProvider.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:402)
         at org.apache.jserv.JServConnection.run(JServConnection.java:260)
         at java.lang.Thread.run(Thread.java:481)
    i habe a public page with 4 jsp portlets and one pl/sql portlet. the plsql ist working, every one of the jsp portlets gets the "getAcceptLanguage" error

  • Why am I receiving Null pointer Exception Error.

    why am I receiving Null pointer Exception Error.
    Hi I am developing a code for login screen. There is no syntex error as such ut I am receving the aove mentioned error. Can some one please help me ??
    ------------ Main.java------------------
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class Main implements ActionListener
    Frame mainf;
    MenuBar mb;
    MenuItem List,admitform,inquiry,exit,helpn;
    Menu newm,update,help;
    Inquiry iq;
    Admit ad;
    // HosHelp hp;
    Howuse hu;
    Register reg;
    Main()
    mainf=new Frame(" Engg College V/S Mumbai University ");
         mb=new MenuBar();
         newm=new Menu(" New ");
         update=new Menu(" Update ");
         help=new Menu(" Help ");
         List=new MenuItem("List");
         admitform=new MenuItem("Admit");
         inquiry=new MenuItem("Inquiry");
         exit=new MenuItem("Exit");
         helpn=new MenuItem("How to Use?");
    newm.add(List);
                   newm.add(admitform);
    newm.add(inquiry);
                   newm.add(exit);
         help.add(helpn);
              mb.add(newm);
              mb.add(update);
              mb.add(help);
    mainf.setMenuBar(mb);
                   exit.addActionListener(this);
                   List.addActionListener(this);
         inquiry.addActionListener(this);
         admitform.addActionListener(this);
    helpn.addActionListener(this);
         mainf.setSize(400,300);
         mainf.setVisible(true);
    public void actionPerformed(ActionEvent ae)
    if (ae.getSource()==List)
              reg=new Register();
         if(ae.getSource()==inquiry)
         iq=new Inquiry();
    if(ae.getSource()==admitform)
         ad=new Admit();
              if(ae.getSource()==helpn)
              hu=new Howuse();
              if(ae.getSource()==exit)
         mainf.setVisible(false);
    public static void main(String args[])
              new Main();
    -------------Register.java---------------------------
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class Register implements ActionListener//,ItemListener
    Label id,name,login,pass,repass;
    Button ok,newu,cancel,check;
    Button vok,iok,lok,mok,sok; //buttons for dialog boxes
    TextField idf,namef,loginf,passf,repassf;
    Dialog valid,invlog,less,mismat,acucreat;
    Frame regis;
    Checkbox admin,limit;
    CheckboxGroup type;
    DBconnect db;
    Register()
         db=new DBconnect();
    regis=new Frame("Registeration Form");
              type=new CheckboxGroup();
              admin=new Checkbox("Administrator",type,true);
              limit=new Checkbox("Limited",type,false);
              id=new Label("ID :");
    name=new Label("Name :");
         login=new Label("Login :");
         pass=new Label("Password :");
         repass=new Label("Retype :");
    idf =new TextField(20); idf.setEnabled(false);
         namef=new TextField(30); namef.setEnabled(false);
    loginf=new TextField(30); loginf.setEnabled(false);
         passf=new TextField(30); passf.setEnabled(false);
         repassf=new TextField(30); repassf.setEnabled(false);
    ok=new Button("OK"); ok.setEnabled(false);
         newu=new Button("NEW");
    cancel=new Button("Cancel");
         check=new Button("Check Login"); check.setEnabled(false);
    vok=new Button("OK");
         iok=new Button("OK");
              lok=new Button("OK");
              mok=new Button("OK");
              sok=new Button("OK");
    valid=new Dialog(regis,"Login name is valid !");
         invlog=new Dialog(regis,"Login name already exist!");
         less=new Dialog(regis,"Password is less than six characters !");
    mismat=new Dialog(regis,"password & retyped are not matching !");
    acucreat=new Dialog(regis,"You have registered successfully !");
         regis.setLayout(null);
    //     regis.setBackground(Color.orange);
    valid.setLayout(new FlowLayout());
         invlog.setLayout(new FlowLayout());
         less.setLayout(new FlowLayout());
         mismat.setLayout(new FlowLayout());
    acucreat.setLayout(new FlowLayout());
    id.setBounds(35,50,80,25); //(left,top,width,hight)
    idf.setBounds(125,50,40,25);
    name.setBounds(35,85,70,25);
    namef.setBounds(125,85,150,25);
    login.setBounds(35,120,80,25);
    loginf.setBounds(125,120,80,25);
    check.setBounds(215,120,85,25);
         pass.setBounds(35,155,80,25);
    passf.setBounds(125,155,80,25);
    repass.setBounds(35,190,80,25);
    repassf.setBounds(125,190,80,25);
    admin.setBounds(35,225,100,25);
    limit.setBounds(145,225,100,25);
              ok.setBounds(45,265,70,25);
         newu.setBounds(135,265,70,25);
    cancel.setBounds(225,265,70,25);
         passf.setEchoChar('*');
    repassf.setEchoChar('*');
         regis.add(id);
         regis.add(idf);
    regis.add(name);
         regis.add(namef);
         regis.add(login);
         regis.add(loginf);
         regis.add(check);
    regis.add(pass);
         regis.add(passf);
    regis.add(repass);
         regis.add(repassf);
         regis.add(ok);
         regis.add(newu);
         regis.add(cancel);
    regis.add(admin);
         regis.add(limit);
    valid.add(vok);
         invlog.add(iok);     
         less.add(lok);
         mismat.add(mok);
    acucreat.add(sok);
    ok.addActionListener(this);
         newu.addActionListener(this);
    check.addActionListener(this);
    cancel.addActionListener(this);
         // limit.addItemListener(this);
         //admin.addItemListener(this);
              vok.addActionListener(this);
              iok.addActionListener(this);
         lok.addActionListener(this);
         mok.addActionListener(this);
         sok.addActionListener(this);
    regis.setLocation(250,150);
    regis.setSize(310,300);
    regis.setVisible(true);
         public void actionPerformed(ActionEvent ae)
         if(ae.getSource()==check)
              try{
                   String s2=loginf.getText();
    ResultSet rs=db.s.executeQuery("select* from List");
                        while(rs.next())
                   if(s2.equals(rs.getString(2).trim()))
    //                    invlog.setBackground(Color.orange);
                             invlog.setLocation(250,150);
                             invlog.setSize(300,100);
                   cancel.setEnabled(false);
    ok.setEnabled(false);
    check.setEnabled(false);
                        invlog.setVisible(true);
                             break;
                        else
                        //     valid.setBackground(Color.orange);
                             valid.setLocation(250,150);
                             valid.setSize(300,100);
                   cancel.setEnabled(false);
    ok.setEnabled(false);
    check.setEnabled(false);
                   valid.setVisible(true);
                        }catch(Exception e)
                   e.printStackTrace();
    if(ae.getSource()==newu)
         try{
              ResultSet rs=db.s.executeQuery("select max(ID) from List");
         while(rs.next())
    String s1=rs.getString(1).trim();
                   int i=Integer.parseInt(s1);
    i++;
                   String s2=""+i;
    idf.setText(s2);
                   newu.setEnabled(false);
                   namef.setText(""); namef.setEnabled(true);
              loginf.setText(""); loginf.setEnabled(true);
              passf.setText(""); passf.setEnabled(true);
              repassf.setText(""); repassf.setEnabled(true);
              ok.setEnabled(true);
                   check.setEnabled(true);
                   }catch(Exception e)
              e.printStackTrace();
         if(ae.getSource()==ok)
              try
              String s1=idf.getText();
              String s2=loginf.getText();
              String s3=passf.getText();
         String s4=repassf.getText();
         int x=Integer.parseInt(s1);
         int t;
         if(type.getSelectedCheckbox()==admin)
              t=1;
              else
              t=0;
    ResultSet rs=db.s1.executeQuery("select* from List");
                   while(rs.next())
                   if(s2.equals(rs.getString(2).trim()))
                        invlog.setBackground(Color.orange);
                        invlog.setLocation(250,150);
                        invlog.setSize(300,100);
                   cancel.setEnabled(false);
    ok.setEnabled(false);
    check.setEnabled(false);
                        invlog.setVisible(true);
                        break;
                   else
                        if (s3.length()<6)
                        less.setBackground(Color.orange);
                             less.setLocation(250,150);
                             less.setSize(300,100);
                   ok.setEnabled(false);
                        cancel.setEnabled(false);
                        check.setEnabled(false);
                        less.setVisible(true);
    else if(!(s3.equals(s4)))
                        mismat.setBackground(Color.orange);
                        mismat.setLocation(250,150);
                        mismat.setSize(300,100);
                        ok.setEnabled(false);
                        cancel.setEnabled(false);
                        check.setEnabled(false);
                        mismat.setVisible(true);
                        else
    db.s1.execute("insert into User values("+x+",'"+s2+"','"+s3+"',"+t+")");
                        acucreat.setBackground(Color.orange);
                        acucreat.setLocation(250,150);
                        acucreat.setSize(300,100);
                        regis.setVisible(false);
                        acucreat.setVisible(true);
                   }//else
              }//while
                   } //try
              catch(Exception e1)
              // e1.printStackTrace();
              if (ae.getSource()==cancel)
              regis.setVisible(false);
              if (ae.getSource()==vok)
              ok.setEnabled(true);
                   cancel.setEnabled(true);
    check.setEnabled(true);
                   valid.setVisible(false);
              if (ae.getSource()==iok)
              ok.setEnabled(true);
                   cancel.setEnabled(true);
    check.setEnabled(true);
                   invlog.setVisible(false);
              if (ae.getSource()==lok)
              less.setVisible(false);
                   cancel.setEnabled(true);
    ok.setEnabled(true);
    check.setEnabled(true);
              if (ae.getSource()==mok)
              mismat.setVisible(false);
                   cancel.setEnabled(true);
    ok.setEnabled(true);
    check.setEnabled(true);
    if (ae.getSource()==sok)
              acucreat.setVisible(false);
              ok.setEnabled(false);
                   newu.setEnabled(true);
                   regis.setVisible(true);
         public static void main(String args[])
         new Register();
    -----------DBConnect.java------------------------------------
    import java.sql.*;
    public class DBconnect
    Statement s,s1;
    Connection c;
    public DBconnect()
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              c=DriverManager.getConnection("jdbc:odbc:Sonal");
              s=c.createStatement();
    s1=c.createStatement();
         catch(Exception e)
         e.printStackTrace();
    ----------Login.java----------------
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    public class Login implements ActionListener
    Frame log;
    Label login,pass;
    TextField loginf,passf;
    Button ok,cancel;
    Dialog invalid;
    Button iok;
    Register reg;
    DBconnect db;
    Main m;
    Login()
    db=new DBconnect();
         log=new Frame();
         log.setLocation(250,210);
         login=new Label("Login :");
    pass=new Label("Password :");
         loginf=new TextField(20);
         passf=new TextField(20);
         passf.setEchoChar('*');
         ok=new Button("OK");
         // newu=new Button("New User");
         cancel=new Button("CANCEL");
         iok=new Button(" OK ");
    invalid=new Dialog(log,"Invalid User!");
    //log.setBackground(Color.cyan);
    //log.setForeground(Color.black);
         log.setLayout(null);
         // iok.setBackground(Color.gray);
         invalid.setLayout(new FlowLayout());
         login.setBounds(35,50,70,25); //(left,top,width,hight)
         loginf.setBounds(105,50,100,25);
         pass.setBounds(35,85,70,25);
         passf.setBounds(105,85,70,25);
         ok.setBounds(55,130,70,25);
    // newu.setBounds(85,120,80,25);
    cancel.setBounds(145,130,70,25);
    log.add(login);
    log.add(loginf);
    log.add(pass);
    log.add(passf);
    log.add(ok);
    // log.add(newu);
    log.add(cancel);
         invalid.add(iok);//,BorderLayout.CENTER);
    ok.addActionListener(this);
    // newu.addActionListener(this);
    cancel.addActionListener(this);
         iok.addActionListener(this);
    log.setSize(300,170);
    log.setVisible(true);
    public void actionPerformed(ActionEvent a)
    if(a.getSource()==ok)
         try{
              String l=loginf.getText();
              String p=passf.getText();
              ResultSet rs=db.s.executeQuery("select * from List");
              while(rs.next())
              if(l.equals(rs.getString(2).trim())&& p.equals(rs.getString(3).trim()))
                        String tp=rs.getString(4).trim();
                             int tp1=Integer.parseInt(tp);
    log.setVisible(false);
    if(tp1==1)
                             m=new Main();
                        // m.List.setEnabled(true);
                             else
                             m=new Main();
                             m.List.setEnabled(false);
                        break;
    else
                   invalid.setBackground(Color.orange);
                   invalid.setSize(300,100);
                   invalid.setLocation(250,210);
                   cancel.setEnabled(false);
              ok.setEnabled(false);
                   invalid.setVisible(true);
                   }catch(Exception e1)
                   e1.printStackTrace();
         if (a.getSource()==cancel)
         log.setVisible(false);
         if (a.getSource()==iok)
         invalid.setVisible(false);
         loginf.setText("");
         passf.setText("");
         cancel.setEnabled(true);
    ok.setEnabled(true);
         public static void main(String[] args)
         new Login();
    -------------inquiry.java---------------------------------
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.util.Date;
    import java.text.*;
    import java.sql.*;
    public class Inquiry implements ActionListener
    Frame inqry;
    Label name,addr;
    TextField namef,addrf;
    Button ok,cancel,dok;
    Dialog invalid;
    Frame result; //Result of the inquiry....
    Label lrname,lraddr,lward,lrdate,lcdate;
    TextField rname,raddr,ward,rdate,cdate;
    Date d;
    DateFormat df;
    Button rok,rcancel;
    Dialog success;
    Button rdok;
    DBconnect db;
    Inquiry()
              db=new DBconnect();
              inqry=new Frame("Inquiry Form");
              inqry.setLayout(null);
    inqry.setBackground(Color.cyan);
              name=new Label(" NAME ");
              addr=new Label("ADDRESS");
              namef=new TextField(20);
              addrf=new TextField(20);
              ok=new Button("OK");
              cancel=new Button("CANCEL");
              dok=new Button("OK");
              invalid=new Dialog(inqry,"Invalid Name or Address !");
              invalid.setSize(300,100);
         invalid.setLocation(300,180);
              invalid.setBackground(Color.orange);
              invalid.setLayout(new FlowLayout());
    result=new Frame(" INQUIRY RESULT "); //Result Window......
    result.setLayout(null);
    result.setBackground(Color.cyan);
    lcdate=new Label(" DATE ");
         lrname=new Label(" NAME ");
    lraddr=new Label(" ADDRESS ");
         lward=new Label(" WARD ");
         lrdate=new Label(" ADMIT-DATE ");
    cdate=new TextField(10);
         rname=new TextField(20);
    rname.setEnabled(false);
         raddr=new TextField(20);
         raddr.setEnabled(false);
         ward=new TextField(20);
         ward.setEnabled(false);
         rdate=new TextField(10);
         rdate.setEnabled(false);
         cdate=new TextField(20);
         d=new Date();
         df=DateFormat.getDateInstance(DateFormat.MEDIUM,Locale.KOREA);
         cdate.setText(df.format(d));
         cdate.setEnabled(false);
    rok=new Button(" OK ");
         rcancel=new Button("CANCEL");
              name.setBounds(40,50,50,25);
    namef.setBounds(120,50,130,25);
    addr.setBounds(40,100,60,25);
    addrf.setBounds(120,100,80,25);
    ok.setBounds(60,145,70,25);
              cancel.setBounds(140,145,70,25);
              lcdate.setBounds(200,50,60,25); //Result Window......
    cdate.setBounds(270,50,80,25);      
    lrname.setBounds(35,85,70,25);
    rname.setBounds(140,85,180,25);
    lraddr.setBounds(35,120,80,25);
         raddr.setBounds(140,120,100,25);
    lward.setBounds(35,155,80,25);
    ward.setBounds(140,155,100,25);
    lrdate.setBounds(30,190,80,25);
    rdate.setBounds(140,190,80,25);
    rok.setBounds(70,240,70,25);
    rcancel.setBounds(170,240,70,25);
              inqry.add(name);
              inqry.add(namef);
              inqry.add(addr);
              inqry.add(addrf);
              inqry.add(ok);
              inqry.add(cancel);
    invalid.add(dok);
         result.add(lcdate); //Result Window......
         result.add(cdate);
              result.add(lrname);
              result.add(rname);
              result.add(lraddr);
              result.add(raddr);
              result.add(lward);
              result.add(ward);
              result.add(lrdate);
              result.add(rdate);
              result.add(rok);
              result.add(rcancel);
         ok.addActionListener(this);
         cancel.addActionListener(this);
         dok.addActionListener(this);
    rok.addActionListener(this); //Result Window......
         rcancel.addActionListener(this);
         inqry.setSize(280,180);
         inqry.setLocation(300,180);
         inqry.setVisible(true);
              result.setSize(400,280); //Result Window......
         result.setLocation(200,150);
         result.setVisible(false);
              public void actionPerformed(ActionEvent ae)
                   if(ae.getSource()==ok)
                   try
                             String nm=namef.getText();
                             String ad=addrf.getText();
                             inqry.setVisible(false);
                             ResultSet rs=db.s.executeQuery("select * from Billinformation");
                             while(rs.next())
                                  String nm1=rs.getString(2).trim();
                                  String ad1=rs.getString(3).trim();
                                  int k=0;
                                  if((nm1.equals(nm))&&(ad1.equals(ad)))
                             String adm=rs.getString(5).trim();
                             String wr=rs.getString(6).trim();
                             String bd=rs.getString(8).trim();
                                  String wrb=wr+"-"+bd;
    result.setVisible(true);
                                  rname.setText(nm1);
                             raddr.setText(ad1);
                             ward.setText(wrb);
                             rdate.setText(adm);
    k=1;
                                  break;
                                  }//if
                             else if(k==1)
                             invalid.setVisible(true);
                             }//while
    }//try
                             catch(Exception e)
                             e.printStackTrace();
                        } //getsource ==ok
                   if(ae.getSource()==cancel)
    inqry.setVisible(false);
                        if(ae.getSource()==rok) //Result Window......
                        namef.setText("");
                             addrf.setText("");
                             result.setVisible(false);
                        inqry.setVisible(true);
    if(ae.getSource()==rcancel)
    result.setVisible(false);
                        if(ae.getSource()==dok)
                        namef.setText("");
                             addrf.setText("");
                             invalid.setVisible(false);
                             inqry.setVisible(true);
         public static void main(String args[])
              new Inquiry();
    PLease Help me !!
    I need this urgently.

    can you explain what your program tries to do... and
    at where it went wrong..Sir,
    We are trying to make an project where we can make a person register in our data base & after which he/she can search for other user.
    The logged in user can modify his/her own data but can view other ppl's data.
    We are in a phase of registering the user & that's where we are stuck. The problem is that after the login screen when we hit register (OK- button) the data are not getting entered in the data base.
    Can u please help me??
    I am using "jdk1.3' - studnet's edition.
    I am waiting for your reply.
    Thanks in advance & yr interest.

  • Null pointer exception in native code. error 52 in Weblogic8.1

    Hi all,
    I'm using WLS 8.1SP5 with 1.4.2_08 and having this dump once a day, when people is working. I tryed google, but no luck. Can someone can help please?
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 5 days, 00:39:42 on Mon Oct 01 16:59:00 2007
    Additional information is available in:
    D:\web\bea\user_projects\domains\APIA_Prod\jrockit.2188.dump
    D:\web\bea\user_projects\domains\APIA_Prod\jrockit.2188.mdmp
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Error code: 52
    Error Message: Null pointer exception in native code
    Version : BEA WebLogic JRockit(TM) 1.4.2_08 JVM R24.5.0-61 ari-49095-20050826-1856-win-ia32
    Threads / GC : Native Threads, GC strategy: parallel
    : mmHeap->data = 0x00B60000, mmHeap->top = 0x40B60000
    : mmStartCompaction = 0x1EB60000, mmEndCompaction = 0x23B60000
    CPU : Intel Pentium 4 (HT)
    Number CPUs : 8
    Tot Phys Mem : 4025999360
    OS version : Microsoft Windows Server 2003 Service Pack 1 (Build 3790)
    State : JVM is shutting down
    Command Line : -Djava.class.path=.;C:\Program Files\Java\j2re1.4.2_05;C:\Program Files\Java\j2re1.4.2_05\lib;C:\Program Files\Java\j2re1.4.2_05\lib\tools.jar -Djrockit.launcher.type=jrockit.shipment -Xms1024m -Xmx1024m -Xgc:parallel -Xcleartype:local -Dweblogic.management.server=http://10.128.12.23:7001 -Dbea.home=D:\web\bea -Dweblogic.RootDirectory=D:\web\bea\user_projects\domains\APIA_Prod -Djava.class.path=.;D:\web\bea\jdk142_08\lib\tools.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic.jar -Djava.security.policy==D:\web\bea\WEBLOG~1\server\lib\weblogic.policy -Dweblogic.Name=Apia_Svr1 -Dweblogic.system.BootIdentityFile=D:\web\bea\WEBLOG~1\common\nodemanager\NodeManagerLogs\NodeManagerInternal\bootFile_APIA_Prod_Apia_Svr1 -Dweblogic.system.NodeManagerBoot=true -Dweblogic.system.NodeManagerAddress=null::5555 -Dweblogic.nodemanager.ServerStartTime=1190834358456 -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Dsun.java.command=weblogic.Server
    Environment : JAVA_HOME=C:\Program Files\Java\j2re1.4.2_05, java.home=d:\web\bea\jrockit81sp5_142_08\jre, java.class.path=.;D:\web\bea\jdk142_08\lib\tools.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic.jar, java.library.path=d:\web\bea\jrockit81sp5_142_08\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\web\bea\WEBLOG~1\server\bin;D:\web\bea\jdk142_08\bin;D:\web\bea\jdk142_08\jre\bin;C:\Program Files\VERITAS\NetBackup\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\j2re1.4.2_05\bin
    C Heap : Good; no memory allocations have failed
    Registers (from context struct at 0x41D6F488/0x41D6F5A4):
    Converted EIP: 41eafe45
    EAX = 00001e90 EBX = 009db42c
    ECX = 003c1e90 EDX = 00000000
    ESI = 71c14280 EDI = 00000000
    EIP = 41eafe45 ESP = 41d6f870
    EBP = 41d6f880 EFL = 00010a03
    CS = 001b DS = 0023 ES = 0023
    SS = 0023 FS = 003b GS = 0000
    Stack:
    41d6f870 :00000000 00000000 003c95a8 003c1e90 00000000 004e91e1
    41d6f888 :0000008f 00000000 41d6f8c4 009db42c 00000001 00000000
    41d6f8a0 :41b802e0 4cfa3940 012b5068 4d87a5cc 012b5068 00000000
    41d6f8b8 :012b5068 41b81710 4ccfcdda 009b9ba8 004e9244 012b5310
    41d6f8d0 :0054deca 012b5315 4ccfc945 0000008f 50a0f1e8 009db42c
    41d6f8e8 :00000000 012b5258 4ccfcb33 012b5315 0000008f 012b5258
    41d6f900 :4ccfca44 012b525d 00000000 009b9ba8 41d6f918 41b823f8
    41d6f918 :4ccfc980 00553ff5 ffffffff 00000010 00000000 41d6f9e4
    41d6f930 :4d1126e8 009b9c34 41d6fa48 41d6f978 009b9c34 437faab0
    41d6f948 :fffffffe 00000002 fffffffe 00000000 41d6f978 00570b50
    41d6f960 :00000000 009b9ba8 00090000 009b9c34 00000001 7c8302e7
    41d6f978 :00000000 00570b50 fffffff8 00000001 0000008f 0000008c
    41d6f990 :437faaf0 00000000 00000000 00000000 00000000 41d6f918
    41d6f9a8 :41b823c0 ffffffff 437f9fc0 437faab0 009b9c34 4ccfc980
    41d6f9c0 :0000008f 41d6f918 00000001 00000001 00000010 00000000
    41d6f9d8 :00000000 41d6f918 009b9c34 009b9ba8 00533bb1 009b9c34
    41d6f9f0 :50a0f1b8 4d1126e8 00000000 41d6fa44 005539c0 41d6fa48
    41d6fa08 :009b9ba8 437f9fc0 41d6fa50 009b9c34 0059065c 50a0f1b8
    41d6fa20 :00535583 009b9c34 437faab0 00000000 41d6fa44 005539c0
    41d6fa38 :00000001 41d6fa48 00533729 41d6fa68 00000000 00000000
    41d6fa50 :0000008f 00569db2 009b9c34 437f9fd4 437faab0 0000008f
    41d6fa68 :009b9ba8 009b9c34 0000000f 00000002 00569ef7 0000008f
    41d6fa80 :009b9ba8 0056a38d 009b9ba8 009b9ba8 41d6ff80 009b9ba8
    41d6fa98 :7ffde000 009b9c34 41d6ff98 00525ca0 00572cf0 00000000
    41d6fab0 :00000000 00000000 00000000 00000000 00000000 00000000
    41d6fac8 :00000000 00000000 00000000 00000000 00000000 00000000
    41d6fae0 :00030178 00000269 00000000 00000000 00000000 00000000
    41d6faf8 :00000000 00000000 00000000 00000000 00000000 00000000
    41d6fb10 :00000000 00000000 00000000 00000000 00000000 00000000
    41d6fb28 :00000000 00000000 00037c28 00000000 00000000 00000000
    41d6fb40 :00000000 00000013 00000000 00037c20 00030168 00000042
    41d6fb58 :00037c20 00000013 00030178 00000000 00000098 00000000
    41d6fb70 :00030000 009d6850 00000210 4100fbbc 00000098 4100f980
    41d6fb88 :00380000 41d6f988 00000000 41d6fbd4 7c82f680 7c82fb28
    41d6fba0 :ffffffff 7c82fb23 7c3423aa 771f123c 00000000 00000002
    41d6fbb8 :771f0000 41d6fc10 00095e70 00000001 00000000 41d6fca8
    41d6fbd0 :771f46c9 771f1240 ffffffff 771f123c 771f11e8 771f0000
    41d6fbe8 :00000002 00000000 00000000 41d6fc10 00000001 41d6fc1c
    41d6fc00 :7c82257a 771f0000 00000001 00000000 00000001 00000000
    41d6fc18 :00097f98 00000001 00000000 41d6fcb8 7c81a81b 7c889d94
    41d6fc30 :7c81b26f 00000000 7ffdc000 00000000 00000000 00000000
    41d6fc48 :00000000 00000000 00000000 00000000 00000000 00000000
    41d6fc60 :00000000 00000024 00000001 00000000 00000000 00000070
    41d6fc78 :ffffffff ffffffff 7c81a7dc 7c81a7a4 00000000 00000000
    41d6fc90 :00097f98 771f11a0 00000418 000000f5 009dc120 41d6fecc
    41d6fca8 :7c82fda6 7c82fb23 0000040c 0000040c 009b9ba8 7c822054
    41d6fcc0 :7c81b23f 41d6fd28 00000000 009dbad8 00000000 00000000
    41d6fcd8 :00000000 00000000 00000000 00000000 00000000 00000000
    41d6fcf0 :00000000 00000000 00000000 41d6fcc4 00000000 41d6fff4
    41d6fd08 :7c82f680 009dc530 ffffffff 7c81b23f 7c8211b4 0000000c
    41d6fd20 :41d6fd28 00000001 00010017 00000000 00000000 00380178
    41d6fd38 :00000000 00000000 00000000 00000005 f7547000 0000010d
    41d6fd50 :000007ff 00000001 624e4d43 00000060 ae19faa4 009dc120
    41d6fd68 :e4d11360 e24e4d43 00000005 0000000e e310e008 ffffffff
    41d6fd80 :3b9aca07 e33dd7e8 3b9aca07 3b9aca07 00380178 1a30eb0a
    41d6fd98 :009dc538 8093d69b 009d99e8 00000000 00380178 c0000034
    41d6fdb0 :808ad480 00000000 00000038 009d99f0 00000023 00000000
    41d6fdc8 :00000000 009dbad8 00000000 00000000 0056f660 00000000
    41d6fde0 :77e6b5f3 0000001b 00000200 41d6fffc 00000023 00000698
    41d6fdf8 :0000076a e47bbbf0 00000090 00000006 00000005 f7547000
    41d6fe10 :ae19fbd4 e131ec08 ae19fbd8 d3f0fe22 d3f0fe22 000000f5
    41d6fe28 :8093cb16 e131ec08 e105bf1c 00000025 ae19fbd0 009d99f0
    41d6fe40 :e105bfb0 ae19fbd4 8093cb6e 3b9aca07 e131ec08 8083a8f5
    41d6fe58 :00000000 00000000 80a78be3 badb0d00 80010031 00000005
    41d6fe70 :009dc120 00000005 c0502000 009dccd8 77ce8221 00000083
    41d6fe88 :00000000 009dc118 ae19fba8 00000418 009dc118 009dc120
    41d6fea0 :00380178 00000001 00000418 0000ad58 00380000 41d6fcb0
    41d6feb8 :f772fa00 41d6fefc 7c82f680 7c82fb28 ffffffff 7c82fb23
    41d6fed0 :7c3416b3 00380000 00000000 7c3416b8 0000040c 00000000
    41d6fee8 :009b9ba8 ffffffff 41d6ff3c 41d6fee0 41d6ff40 41d6ff98
    41d6ff00 :7c34240d 7c37a2a8 ffffffff 7c3416b8 7c3416db 0000040c
    41d6ff18 :7c3416f8 0000040c 00000000 00504b4d 0000040c 0107e577
    41d6ff30 :41d6ff6c 0057de91 009b9ba8 009b9ba8 00003000 00000140
    41d6ff48 :41d6ff64 41d6ffa0 0056f1f9 41c70000 00003000 009b9ba8
    41d6ff60 :009db8b0 009b9ba8 0056e9c2 7c821dd4 009b9ba8 009b9ba8
    41d6ff78 :009b9ba8 00572ce9 41d6ffa0 00572ded 77e6eccd 009dbad8
    41d6ff90 :009dbad8 7ffde000 41d6ffdc 00525ca0 41d6ffec 0056f6c7
    41d6ffa8 :009b9ba8 00000000 00000000 00000740 009dbaf4 77e6608b
    41d6ffc0 :00000740 00000000 00000000 009dbad8 c9792963 41d6ffc4
    41d6ffd8 :000d4193 ffffffff 77e6b7d0 77e66098 00000000 00000000
    Code:
    41eafd45 :00000000 00000000 00000000 00000000 00000000 00000000
    41eafd5d :00000000 00000000 ff4e4be0 00ffffff 007ffdc0 00000000
    41eafd75 :34001590 0041eafd 98000000 d041eaff 0077e6b7 0077e6bb
    41eafd8d :a4000000 4241eafd 2877e6ba ff000007 00ffffff 68000000
    41eafda5 :0c41d6f8 280056e6 ff000007 0fffffff 48001d1a 8000aece
    41eafdbd :00006093 987ffda0 c0005710 98004fe0 38009da3 0041eafe
    41eafdd5 :40000000 9841eafe f8009da3 0001c83c e0000000 0001c83c
    41eafded :17000000 80004f66 38006093 3841eafe 2041eafe 00f7c4ca
    41eafe05 :da7ffda0 20004f20 c0f7c4ca 00004fe0 00000000 b5000000
    41eafe1d :98004f2e 98009da3 00009da3 9841eaff 58009da3 00303fe0
    41eafe35 :00000000 50000000 0000570b 98000000 00009da3 00000000
    41eafe4d :80000000 f5006093 388083a8 5041eafe 0000570b 98000000
    41eafe65 :31009da3 00800100 60000000 00005c0e 58000000 5041eafe
    41eafe7d :0000570b 98000000 00009da3 00000000 d0000000 00005c0e
    41eafe95 :31000000 00800100 00000000 00000000 ff000000 00ffffff
    41eafead :00000000 cc000000 0080a78b e0f7757a 78adbbab 5041eafe
    41eafec5 :0000570b 98000000 b7009da3 608083e6 2888736a 90005c0e
    41eafedd :7888736a 5041eafe 0000570b 98000000 3c009da3 0041eaff
    41eafef5 :20000000 00005c0f 80000010 f041eaff 0000572c 84000000
    41eaff0d :917c8218 ff77e41a 3cffffff 4041eaff 4041eaff 64000001
    41eaff25 :f041eaff 6c009de2 2d41eaff 0600540a 98000000 f0009da3
    41eaff3d :00009de2 40000030 64000001 a041eaff f941eaff 000056f1
    Loaded modules:
    (* denotes the module causing the exception)
    0x7c800000-0x7c8bffff C:\WINDOWS\system32\ntdll.dll
    0x77e40000-0x77f41fff C:\WINDOWS\system32\kernel32.dll
    0x77f50000-0x77febfff C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000-0x77ceefff C:\WINDOWS\system32\RPCRT4.dll
    0x77ba0000-0x77bf9fff C:\WINDOWS\system32\MSVCRT.dll
    0x00410000-0x0061afff d:\web\bea\jrockit81sp5_142_08\jre\bin\jrockit\jvm.dll
    0x76aa0000-0x76accfff C:\WINDOWS\system32\WINMM.dll
    0x77c00000-0x77c47fff C:\WINDOWS\system32\GDI32.dll
    0x77380000-0x77411fff C:\WINDOWS\system32\USER32.dll
    0x7c8d0000-0x7d0d3fff C:\WINDOWS\system32\SHELL32.dll
    0x77da0000-0x77df1fff C:\WINDOWS\system32\SHLWAPI.dll
    0x71c00000-0x71c16fff C:\WINDOWS\system32\WS2_32.dll
    0x71bf0000-0x71bf7fff C:\WINDOWS\system32\WS2HELP.dll
    0x7c340000-0x7c395fff C:\WINDOWS\system32\MSVCR71.dll
    0x71bc0000-0x71bc7fff C:\WINDOWS\system32\rdpsnd.dll
    0x771f0000-0x77200fff C:\WINDOWS\system32\WINSTA.dll
    0x71c40000-0x71c97fff C:\WINDOWS\system32\NETAPI32.dll
    0x76b70000-0x76b7afff C:\WINDOWS\system32\PSAPI.DLL
    0x77420000-0x77522fff C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.2778_x-ww_A8F04F11\comctl32.dll
    0x76f50000-0x76f62fff C:\WINDOWS\system32\Secur32.dll
    0x00b30000-0x00b48fff d:\web\bea\jrockit81sp5_142_08\jre\bin\java.dll
    0x00b50000-0x00b5dfff d:\web\bea\jrockit81sp5_142_08\jre\bin\verify.dll
    0x71b20000-0x71b60fff C:\WINDOWS\System32\mswsock.dll
    0x76ed0000-0x76efefff C:\WINDOWS\system32\DNSAPI.dll
    0x76f80000-0x76f87fff C:\WINDOWS\system32\rasadhlp.dll
    0x42c30000-0x42c34fff D:\web\bea\weblogic81\server\bin\wlntio.dll
    0x68000000-0x6802efff C:\WINDOWS\system32\rsaenh.dll
    0x00a90000-0x00a95fff D:\web\bea\jrockit81sp5_142_08\jre\bin\ioser12.dll
    0x02800000-0x028c0fff d:\web\bea\jrockit81sp5_142_08\jre\bin\dbghelp.dll
    0x77b90000-0x77b97fff C:\WINDOWS\system32\VERSION.dll
    Java Thread ID = 0x00000100, lastJavaFrame = 0x41D6F8E0, Name = (Signal Handler)
    Thread Stack Trace:
    at _vmShutdown+225()@0x004E91E1
    at java/lang/Shutdown.halt(Native Method)@0x4CCFC910
    at java/lang/Shutdown.exit(Unknown Source)@0x4CCFCA44

    You would need to get BEA support, after verifying you are on a supported configuration (http://edocs.bea.com/jrockit/jrdocs/suppPlat/supp_142.html).
    Otherwise you may need to try update 10, or use Sun JVM.

  • Null Pointer Exception Error's in WebDynpro Java

    Hi All,
    How Types are coming Null Pointer Exception Error's in WebDynpro Java, Please provide the types.of Errors.
    Ex. Cardinality Type not correct etc...
    Thanks,
    Bye,
    Vijay Hari.

    HI
      Null Pointer Exception can occur in may instances , for suppose
      1) when  you create a Value Node with some attribute which has cardinality , and you have not
      initialized the Node , then it would through  Null Pointer exception ,
      2) when you integrate the RFC and parameters you pass as input to the RFC are not set correctly
          then there could be null pointer when you execute the RFC
      3>or may be when you doesnot bind the node when using webservice then there could be null pointer exception
    and there could be many occurances  for the exception

  • Xi 3.1 SP3 giving java null pointer exception error on scheduling webi

    after we have the system uptime running for a few days and have schedule webi jobs successfully for a few days, we constant get the message java null pointer exception error on scheduling webi.
    This only have days after restarting the environment.
    Seems to be coming up after scheduling a certain amount of webi reports.
    Only doing a stop all services and restart resolves the issue.
    XI 3.1 SP3
    SAP IK Sp3
    Tomcat55
    HPUX-IA64 (Hpunix) platform.

    Hello, I have the same issue.  If someone gives you an answer please let me know how to fix it.

  • Incomplete instances for multiuser login giving null pointer exception error

    Hi
    I am facing one problem about Weblogic workflow. We have developed an application
    where number of users logs in simultaneouly.
    When a user logs in, one instance of workflow gets created. So when more than one
    user logs in, that many instanaces gets created. But it gives us the error like "Null
    pointerexception". This is beacuse The instanaces which gets created were not getting
    completed, they are incomplete. And when I delete these incomplete instances and
    try to login one after another user, it works fine. But again when two or more users
    logs in at same time we get the same error.
    Can you please help me out solving this problem.
    Regards,
    Rajesh Patil

    I have just found out that when this error appear, a folder called splash is created in the same directory as my project folder and the application that I just ran has appeared in there and I can run it from the files in that folder. I can't see anywhere in my code which specifies sending these files to a splash folder.
    Does anyone know why this might happen and if this is related to the Null Pointer Exception Error?
    -Mark

  • Null Point Exception Error

    Hi All
            I have to add an input field which will accept email Id from users. This field has to be kept mandatory. I have kept a check on the value entered. If the user does not enter any value, an error message should be displayed. Below is the code that I have written. Whenever, the user keeps this field blank and submits the form, null point exception error is displayed.
    Please help how to overcome this problem
    email = wdContext.currentContextElement().getEmail_Id();     
             try{
              if (wdContext.currentContextElement().getEmail_Id().equals("") )
                   IWDMessageManager msg = wdThis.wdGetAPI().getComponent().getMessageManager();
                   msg.reportMessage(IMessageTender_ResignationComp.PERSONAL_EMAIL_ID,new Object[]{"Please enter correct Email Id"},true);
         else 

    Hi,
    Change the following code to
    email = wdContext.currentContextElement().getEmail_Id();
    try{
    if (wdContext.currentContextElement().getEmail_Id().equals("") )
    IWDMessageManager msg = wdThis.wdGetAPI().getComponent().getMessageManager();
    msg.reportMessage(IMessageTender_ResignationComp.PERSONAL_EMAIL_ID,new Object[]{"Please enter correct Email Id"},true);
    if (wdContext.currentContextElement() != null)
        email = wdContext.currentContextElement().getEmail_Id();
    if ( email.equals("") )
    IWDMessageManager msg = wdThis.wdGetAPI().getComponent().getMessageManager();
    msg.reportMessage(IMessageTender_ResignationComp.PERSONAL_EMAIL_ID,new Object[]{"Please enter correct Email Id"},true);
    Regards
    Ayyapparaj

Maybe you are looking for