String problem java.lang.NullPointerException

Hii all :)
How are u?? :)
I have a little a problem with String object in this class (You can say its a homework ^__^ ).
public class Personne {
     private String nom;
     private String prenom;
     private int age;
     public Personne(){
          this(null, null, 0);
     public Personne(String nom, String prenom, int age){
          setNom(nom);
          setPrenom(prenom);
          setAge(age);
     public void setNom(String nom){
          this.nom = new String(nom);
     public void setPrenom(String prenom){
          this.prenom = new String(prenom);
     public void setAge(int age){
          this.age = age;
     public String getNom(){
          return this.nom;
     public String getPrenom(){
          return this.prenom;
     public int getAge(){
          return this.age;
     public String toString(){
          System.out.print("Nom : " + this.getNom() + ", Penom : " + this.getPrenom() + ", Age : " + this.getAge() + " ");
          return null;
}When i call the class personne with the Personne() i get these errors in compiling-time :
Exception in thread "main" java.lang.NullPointerException
     at java.lang.String.<init>(Unknown Source)
     at Personne.setNom(Personne.java:18)
     at Personne.<init>(Personne.java:12)
     at Personne.<init>(Personne.java:8)
     at Main.main(Main.java:4) // The line wich i inisialize my object in my main method.
can someone help me??
Thank you alll ^__^
Edited by: La VloZ on 18 mai 2013 22:50
Edited by: La VloZ on 18 mai 2013 22:51
Edited by: La VloZ on 18 mai 2013 22:51
Edited by: La VloZ on 18 mai 2013 22:53
Edited by: La VloZ on 18 mai 2013 22:55

Why the error? Because you invoke the constructor String(String s), with s null. The constructor would produce a new String with the same character sequence as s, but if s is null, it cannot do this, so it throws NullPointerException. What else could it do? Without throwing an exception, a constructor has to create a new object, but there is no raw material, so to speak, for the creation. Think what would/could you do if you had to write such a 'copy constructor' for your own class and you would be passed null.
Now, the String copy constructor is probably useless, as the javadoc hints. When you have a String already, you don't need to create an identical one, as the original will:
- Not be garbage collected, if you keep a reference to it
- Never be modified, as strings are immutable
You are right that the code you show would 'copy the reference of nom to this.nom' and this is ok. It's exactly what you need, for the reasons above.

Similar Messages

  • JSP AND BEAN PROBLEm   java.lang.nullpointerexception   help me please

    hello i have a problem, when i open login.jsp and enter the form i have nullpointerexception. i don't understand where i wrong... i use tomcat 5.5 ... sorry for my english i'm italian and i speak only italian :(
    login.jsp this is the code of the java server page
    <html>
    <%@ page language="java" import="java.sql.*" %>
    <jsp:useBean id="lavoro" scope="page" class="Ok.Dino"/>
    <%@ page session="false" %>
    <style type="text/css">
    <!--
    body {
         background-color: #003366;
    a:link {
         color: #CCCCCC;
    .style1 {
         color: #000000;
         font-weight: bold;
         font-size: x-large;
    .style4 {font-size: 18px}
    -->
    </style>
    <body>
    <%if(request.getMethod()=="GET"){
    %>
    <form action="login.jsp" method= "POST" name="frmlogin" id="frmlogin">
         <div align="center">
           <p class="style1">AUTENTICAZIONE</p>
           <p> </p>
           <table width="318" height="140" border="1">
            <tr>
              <td width="95" height="60" bordercolor="#000000" bgcolor="#0066CC"><p align="center"><strong>USER</strong></p>          </td>
              <td width="207" bgcolor="#0099CC"><p align="center">
                <input type="text" name="txtnome"></p>
              </td>
            </tr>
            <tr>
              <td height="72" bordercolor="#000000" bgcolor="#0066CC"><strong>PASSWORD</strong> </td>
              <td width="207" bgcolor="#0099CC"><div align="center">
                <input name="pwdtxt" type="password">
              </div></td>
            </tr>
          </table>
           <table width="318" border="1">
            <tr>
              <td width="318" height="87"> <div align="center">
                <input name="submit" type="submit" value="invia"  >
              </div>
              <p align="center"><strong><span class="style4">Se non sei registrato fallo <a href="file:///C|/Documents and Settings/access/Documenti/My Received Files/registrazione.jsp">adesso </a></span></strong></p></td>
            </tr>
          </table>
           <p> </p>
           <p> </p>
      </div>
    </form>
    <%}else {  %>
    <%lavoro.settxtnome(request.getParameter("txtnome"));%>
    <%!ResultSet rs=null;
         String x=null;
    %>
    <% lavoro.cn_db("dbutenti");%>
    <% rs=lavoro.run_query("SELECT user FROM utenti");%>
    <%}%>
    </body>
    </html>and this is the bean code
    package Ok;
    import java.sql.*;
    public class Dino
    private String txtnome,pwdtxt;
    private Connection cn=null;
    private Statement st=null;
    private ResultSet Rs=null;
    public String gettxtnome()
    return txtnome;
    public String getpwdtxt()
    return pwdtxt;
    public void settxtnome(String n)
    this.txtnome=n;
    public void setpwdtxt(String n)
    this.pwdtxt=n;
    public void cn_db(String db)
              if(cn==null){
              //1. Caricamento del driver
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              }catch(ClassNotFoundException cnfe){
                   System.out.println("impossibile caricare il driver");
                   System.exit(1);
              try{
                   //2. Connessione al DB
                   cn = DriverManager.getConnection("jdbc:odbc:"+db);
                   //3. creazione degli oggetti Statement e ResultSet
                   st =cn.createStatement();
              }catch(SQLException e){
                   System.out.println(e+"jjj");
    }else{
         System.out.print("errore database gi�� creato");
    public ResultSet run_query(String qr)
         try{
    Rs=st.executeQuery(qr);
         }catch(SQLException e)
         System.out.print(e+"ecco l'error");
         return Rs;
    }

    Do you understand when a NullPointerException will be thrown? This will be thrown if you want to access an uninstantiated Object.
    So look to the stacktrace and go to the line where the NPE is been thrown and doublecheck if the object reference is actually instantiated.
    Or add a null-check to the object reference:if (someObject != null) {
        someObject.doSomething();
    }or just instantiate it:if (someObject == null) {
        someObject = new SomeObject();
    someObject.doSomething();

  • Java.lang.NullPointerException errors when creating an object in Int.Build.

    We are on XI 7.0 AIX 64bit
    When we try to create an object in Integration Builder we get following errors:
    Internal Problem Occured (Internal Problem)
    java.lang.NullPointerException
    I have seen similar topics reported. They pointed to problems with SDK 1.4.2_10
    We have downgraded our Java 64 on AIX from SR6 back to SR5. So I guess we are back on SDK 1.4.2_2 (in AIX versions are slightly different and the version of SDK is shown as 1.4.2.75 as oposed to previous 1.4.2.100)
    Unfortunately downgrade of JAVA did not fix our problem. Did anyone managed to fix this? This is pretty much stopping us from doing anything on XI:(
    Here is the detailed log we are getting:
    #12 11:33:53 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.utilxi.swing.framework.FrameworkException: com.sap.aii.utilxi.swing.framework.FrameworkException: Internal problem occurred
         at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.init(ExceptionDialog.java:116)
         at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.<init>(ExceptionDialog.java:93)
         at com.sap.aii.utilxi.swing.toolkit.Guitilities.showExceptionDialog(Guitilities.java:1137)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:162)
         at com.sap.aii.ibdir.gui.scenario.wizard.CACreatePanel.postCreate(CACreatePanel.java:201)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.doFakeCreate(CreateDialog.java:408)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.doCreate(CreateDialog.java:392)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.access$100(CreateDialog.java:50)
         at com.sap.aii.utilxi.swing.framework.CreateDialog$CreateAction.actionPerformed(CreateDialog.java:382)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog.show(Unknown Source)
         at com.sap.aii.utilxi.swing.toolkit.BaseDialog.show(BaseDialog.java:320)
         at java.awt.Component.show(Unknown Source)
         at java.awt.Component.setVisible(Unknown Source)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.showDialog(CreateDialog.java:149)
         at com.sap.aii.utilxi.swing.framework.cmd.CreateCommand.execute(CreateCommand.java:110)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    #11 11:33:53 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.utilxi.swing.framework.FrameworkException: Internal problem occurred
    #10 11:33:53 [AWT-EventQueue-0] FINE AutoLog.created.java.lang.NullPointerException: java.lang.NullPointerException
         at com.sap.aii.ibdir.gui.scenario.wizard.page.PageFactory.createPageById(PageFactory.java:477)
         at com.sap.aii.ibdir.gui.scenario.wizard.page.PageFactory.getPageById(PageFactory.java:516)
         at com.sap.aii.ibdir.gui.scenario.wizard.page.PageFactory.getPageByNumber(PageFactory.java:527)
         at com.sap.aii.ibdir.gui.scenario.wizard.page.ProxyPage.update(ProxyPage.java:55)
         at com.sap.aii.ibdir.gui.scenario.wizard.core.WizardContext.publishPage(WizardContext.java:2022)
         at com.sap.aii.ibdir.gui.scenario.wizard.core.WizardContext.processPageEvent(WizardContext.java:285)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizard.firePageEvent(BasicWizard.java:64)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizard.setCurrentPage(BasicWizard.java:123)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog$WizardSelect.valueChanged(BasicWizardDialog.java:308)
         at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
         at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog$StepListModel.setSelectionInterval(BasicWizardDialog.java:337)
         at javax.swing.JList.setSelectedIndex(Unknown Source)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog.setInitPages(BasicWizardDialog.java:152)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog.showDialog(BasicWizardDialog.java:74)
         at com.sap.aii.ibdir.gui.scenario.wizard.ConfigurationWizardCommand.execute(ConfigurationWizardCommand.java:80)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.ibdir.gui.scenario.wizard.CACreatePanel.postCreate(CACreatePanel.java:201)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.doFakeCreate(CreateDialog.java:408)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.doCreate(CreateDialog.java:392)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.access$100(CreateDialog.java:50)
         at com.sap.aii.utilxi.swing.framework.CreateDialog$CreateAction.actionPerformed(CreateDialog.java:382)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog.show(Unknown Source)
         at com.sap.aii.utilxi.swing.toolkit.BaseDialog.show(BaseDialog.java:320)
         at java.awt.Component.show(Unknown Source)
         at java.awt.Component.setVisible(Unknown Source)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.showDialog(CreateDialog.java:149)
         at com.sap.aii.utilxi.swing.framework.cmd.CreateCommand.execute(CreateCommand.java:110)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    #9 11:33:53 [AWT-EventQueue-0] DEBUG AutoLog.created.java.lang.NullPointerException: null
    #8 11:33:53 [AWT-EventQueue-0] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throwable
    Thrown:
    java.lang.NullPointerException: null
         at com.sap.aii.ibdir.gui.scenario.wizard.page.PageFactory.createPageById(PageFactory.java:477)
         at com.sap.aii.ibdir.gui.scenario.wizard.page.PageFactory.getPageById(PageFactory.java:516)
         at com.sap.aii.ibdir.gui.scenario.wizard.page.PageFactory.getPageByNumber(PageFactory.java:527)
         at com.sap.aii.ibdir.gui.scenario.wizard.page.ProxyPage.update(ProxyPage.java:55)
         at com.sap.aii.ibdir.gui.scenario.wizard.core.WizardContext.publishPage(WizardContext.java:2022)
         at com.sap.aii.ibdir.gui.scenario.wizard.core.WizardContext.processPageEvent(WizardContext.java:285)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizard.firePageEvent(BasicWizard.java:64)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizard.setCurrentPage(BasicWizard.java:123)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog$WizardSelect.valueChanged(BasicWizardDialog.java:308)
         at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
         at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog$StepListModel.setSelectionInterval(BasicWizardDialog.java:337)
         at javax.swing.JList.setSelectedIndex(Unknown Source)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog.setInitPages(BasicWizardDialog.java:152)
         at com.sap.aii.utilxi.swing.framework.wizard.BasicWizardDialog.showDialog(BasicWizardDialog.java:74)
         at com.sap.aii.ibdir.gui.scenario.wizard.ConfigurationWizardCommand.execute(ConfigurationWizardCommand.java:80)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.ibdir.gui.scenario.wizard.CACreatePanel.postCreate(CACreatePanel.java:201)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.doFakeCreate(CreateDialog.java:408)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.doCreate(CreateDialog.java:392)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.access$100(CreateDialog.java:50)
         at com.sap.aii.utilxi.swing.framework.CreateDialog$CreateAction.actionPerformed(CreateDialog.java:382)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog.show(Unknown Source)
         at com.sap.aii.utilxi.swing.toolkit.BaseDialog.show(BaseDialog.java:320)
         at java.awt.Component.show(Unknown Source)
         at java.awt.Component.setVisible(Unknown Source)
         at com.sap.aii.utilxi.swing.framework.CreateDialog.showDialog(CreateDialog.java:149)
         at com.sap.aii.utilxi.swing.framework.cmd.CreateCommand.execute(CreateCommand.java:110)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
         at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    #7 11:33:23 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "ConfAsstntHelp" is not registered in the service class Type Service - Type Information
         at com.sap.aii.ib.core.service.ServiceBase.getServiceImpl(ServiceBase.java:71)
         at com.sap.aii.ib.bom.gen.TypeServiceImpl.getTypeInformation(TypeServiceImpl.java:82)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.getTypeInfo(InternalXiItemService.java:23)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.createEmptyXiItem(InternalXiItemService.java:92)
         at com.sap.aii.ib.gui.xiitem.services.XiItemServiceProvider.createEmptyXiItem(XiItemServiceProvider.java:97)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemServiceBase.<init>(InternalXiItemServiceBase.java:38)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemServiceBase.<init>(InternalXiItemServiceBase.java:25)
         at com.sap.aii.ibdir.gui.xiitem.DirInternalXiItemService$ForConfAssistantHelp.<init>(DirInternalXiItemService.java:607)
         at com.sap.aii.ibdir.gui.applcomp.StartupCodeEntry.localStartup(StartupCodeEntry.java:119)
         at com.sap.aii.ibdir.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:73)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
         at com.sap.aii.ib.gui.login.SplashLoginFrame$6.run(SplashLoginFrame.java:429)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    #6 11:33:23 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "ConfAsstntHelp" is not registered in the service class Type Service - Type Information
    #5 11:33:23 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "TypeGroupFolder" is not registered in the service class Type Service - Type Information
         at com.sap.aii.ib.core.service.ServiceBase.getServiceImpl(ServiceBase.java:71)
         at com.sap.aii.ib.bom.gen.TypeServiceImpl.getTypeInformation(TypeServiceImpl.java:82)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.getTypeInfo(InternalXiItemService.java:23)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.createEmptyXiItem(InternalXiItemService.java:92)
         at com.sap.aii.ib.gui.xiitem.services.XiItemServiceProvider.createEmptyXiItem(XiItemServiceProvider.java:97)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemServiceBase.<init>(InternalXiItemServiceBase.java:38)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemServiceBase.<init>(InternalXiItemServiceBase.java:25)
         at com.sap.aii.ibdir.gui.xiitem.DirInternalXiItemService$ForFolder.<init>(DirInternalXiItemService.java:752)
         at com.sap.aii.ibdir.gui.applcomp.StartupCodeEntry.localStartup(StartupCodeEntry.java:113)
         at com.sap.aii.ibdir.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:73)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
         at com.sap.aii.ib.gui.login.SplashLoginFrame$6.run(SplashLoginFrame.java:429)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    #4 11:33:23 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "TypeGroupFolder" is not registered in the service class Type Service - Type Information
    #3 11:33:22 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "TypeConntestObj" is not registered in the service class Type Service - Type Information
         at com.sap.aii.ib.core.service.ServiceBase.getServiceImpl(ServiceBase.java:71)
         at com.sap.aii.ib.bom.gen.TypeServiceImpl.getTypeInformation(TypeServiceImpl.java:82)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.getTypeInfo(InternalXiItemService.java:23)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.createEmptyXiItem(InternalXiItemService.java:92)
         at com.sap.aii.ib.gui.xiitem.services.XiItemServiceProvider.createEmptyXiItem(XiItemServiceProvider.java:97)
         at com.sap.aii.ib.gui.xiitem.InternalXiItemServiceForNameNamespaceObjects.addType(InternalXiItemServiceForNameNamespaceObjects.java:68)
         at com.sap.aii.ib.gui.xiitem.InternalXiItemServiceForNameNamespaceObjects.<init>(InternalXiItemServiceForNameNamespaceObjects.java:55)
         at com.sap.aii.ib.gui.applcomp.StartupCodeEntry.guiStartup(StartupCodeEntry.java:151)
         at com.sap.aii.ib.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:108)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ibdir.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:52)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
         at com.sap.aii.ib.gui.login.SplashLoginFrame$6.run(SplashLoginFrame.java:429)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    #2 11:33:22 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "TypeConntestObj" is not registered in the service class Type Service - Type Information
    #1 11:33:22 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "versConflList" is not registered in the service class Type Service - Type Information
         at com.sap.aii.ib.core.service.ServiceBase.getServiceImpl(ServiceBase.java:71)
         at com.sap.aii.ib.bom.gen.TypeServiceImpl.getTypeInformation(TypeServiceImpl.java:82)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.getTypeInfo(InternalXiItemService.java:23)
         at com.sap.aii.ib.gui.xiitem.services.InternalXiItemServiceBase.<init>(InternalXiItemServiceBase.java:44)
         at com.sap.aii.ib.gui.xiitem.CommonInternalXiItemService$ForVersionConflictList.<init>(CommonInternalXiItemService.java:326)
         at com.sap.aii.ib.gui.applcomp.StartupCodeEntry.guiStartup(StartupCodeEntry.java:147)
         at com.sap.aii.ib.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:108)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ibdir.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:52)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
         at com.sap.aii.ib.gui.login.SplashLoginFrame$6.run(SplashLoginFrame.java:429)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    #0 11:33:22 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "versConflList" is not registered in the service class Type Service - Type Information

    Hi Robert,
    For the same issue I follwed as below.Hope to sort out this problem.
    1)check after installing J2sdk1.4.2.13(you are with 1.42.75(might be some problem with upgrade version.I am not sure)
    2)Restart the J2EE engine.
    3)check the post installation steps again.
    Atlast, I solved this problem after Re-doing the post installation steps and above 2 process. I am not sure from which process it was resolved.
    Regards
    Sridhar

  • CF 10, Consistent java.lang.NullPointerException at cflogin after 20 minutes

    Fresh install of cf 10, using tested, mature code written for cf 9. Code is in production on cf 9 in several installations. Application is sitting on its home screen, where there are 4 areas that have ajax driven content that is updated every 5 minutes. After 20 minutes one of the alax driven areas generates an error. The error in is application.cfc, OnRequestStart, and is at the line where <cflogin> starts. Almost seems like a timeout, however it it throwing an error as indicate below. Anyone have any ideas how to go about troublshooting/solving this? Wrapping it in cftry and trying to get additional information does not provide any more detail, as a matter of fact the cfcatch info is all blank!
    EXCEPTION
    struct
    Cause
    struct
    Message
    [empty string]
    StackTrace
    java.lang.NullPointerException at  java.util.Hashtable.put(Hashtable.java:542) at  coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:23  5) at  coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:1  24) at  coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172)  at  cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM  SUAT\Application.cfc:560) at  cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\  CMSUAT\Application.cfc:500) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at  coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368  ) at  coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at  coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278)  at  coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417)  at  coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)  at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at  coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at  coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil  ter.java:28) at  coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at  coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at  coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at  coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at  coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at  coldfusion.CfmServlet.service(CfmServlet.java:219) at  coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:305) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilt  er.java:42) at  coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:243) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:  224) at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:  169) at  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja  va:472) at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)  at  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)  at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11  8) at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPr  otocol.java:539) at  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298  ) at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  at java.lang.Thread.run(Thread.java:722)
    Suppressed
    array [empty]
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    CFAUTHENTICATE
    LINE
    560
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM SUAT\Application.cfc:560)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_APPLICATION
    LINE
    500
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\ CMSUAT\Application.cfc:500)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    Type
    java.lang.NullPointerException
    Detail
    An exception occurred while invoking an event handler method from Application.cfc. The method name is: onRequestStart.
    Message
    Event handler exception.
    RootCause
    struct
    Message
    [empty string]
    StackTrace
    java.lang.NullPointerException at  java.util.Hashtable.put(Hashtable.java:542) at  coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:2  35) at  coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:1  24) at  coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172)  at  cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM  SUAT\Application.cfc:560) at  cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\  CMSUAT\Application.cfc:500) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at  coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368  ) at  coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at  coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278)  at  coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417)  at  coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)  at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at  coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at  coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil  ter.java:28) at  coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at  coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at  coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at  coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at  coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at  coldfusion.CfmServlet.service(CfmServlet.java:219) at  coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:305) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilt  er.java:42) at  coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:243) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:  224) at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:  169) at  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja  va:472) at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)  at  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)  at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11  8) at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPr  otocol.java:539) at  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298  ) at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  at java.lang.Thread.run(Thread.java:722)
    Suppressed
    array [empty]
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    CFAUTHENTICATE
    LINE
    560
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM SUAT\Application.cfc:560)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_APPLICATION
    LINE
    500
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\ CMSUAT\Application.cfc:500)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    Type
    java.lang.NullPointerException
    StackTrace
    coldfusion.runtime.EventHandlerException: Event handler exception. at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:286)  at  coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417)  at  coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)  at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at  coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at  coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil  ter.java:28) at  coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at  coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at  coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at  coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at  coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at  coldfusion.CfmServlet.service(CfmServlet.java:219) at  coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:305) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilt  er.java:42) at  coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)  at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil  terChain.java:243) at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain  .java:210) at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:  224) at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:  169) at  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja  va:472) at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)  at  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)  at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11  8) at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPr  otocol.java:539) at  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298  ) at  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  at java.lang.Thread.run(Thread.java:722) Caused by:  java.lang.NullPointerException at  java.util.Hashtable.put(Hashtable.java:542) at  coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:2  35) at  coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:1  24) at  coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172)  at  cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM  SUAT\Application.cfc:560) at  cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\  CMSUAT\Application.cfc:500) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at  coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368  ) at  coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at  coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at  coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at  coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at  coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278)  ... 33 more
    Suppressed
    array [empty]
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    CFAUTHENTICATE
    LINE
    560
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART._factor14(C:\inetpub\wwwroot\CM SUAT\Application.cfc:560)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_APPLICATION
    LINE
    500
    RAW_TRACE
    at cfApplication2ecfc1223778257$funcONREQUESTSTART.runFunction(C:\inetpub\wwwroot\ CMSUAT\Application.cfc:500)
    TEMPLATE
    C:\inetpub\wwwroot\CMSUAT\Application.cfc
    TYPE
    CFML
    Type
    Expression
    name
    onRequestStart

    One of my customers just started experiencing this as well. I am just getting into trying to resolve the issue.  I will report back here as soon as I have something to report.  In the meantime, has anyone made any progress?
    Below is the exception received:
    09/22/2014 08:25 PM.
    null null
    The error occurred on line 280.
    java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:542) at coldfusion.runtime.SecurityScopeTracker.setSecurity(SecurityScopeTracker.java:235) at coldfusion.runtime.SecurityScopeTracker.getSecurity(SecurityScopeTracker.java:124) at coldfusion.tagext.security.AuthenticateTag.doStartTag(AuthenticateTag.java:172) at cfApplication2ecfc1495732981$funcONREQUESTSTART._factor11(D:\somefolder\Application.cfc:2 80) at cfApplication2ecfc1495732981$funcONREQUESTSTART.runFunction(D:\somefolder\Application.cfc :266) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:278) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:417) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:97) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorR equestHandler.java:472) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest( FusionReactorRequestHandler.java:312) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(Fusio nReactorRequestHandler.java:192) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorR equestHandler.java:507) at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCor eFilter.java:36) at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:79) at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactor StaticFilter.java:53) at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChai nPointCut.java:41) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

  • Personal Data error - java.lang.NullPointerException

    Hi,
    When I access "Personal Data' from the "Personal Information' Area page in poral, i get an error:
    Failed to process request. Please contact your system administrator.
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
    we are using EP7 Sp12 and ECC6. Any idea on how to display the data ?
    Your help is much appreciated

    Hi Sathya,
    We are also facing the same problem java.lang.NullPointerException  when we try to Edit the Personal Data in ESS IViews.
    Can u pl explain, how you have solved this.
    I will award you full points.
    Regards,
    VENU

  • Java.lang.NullPointerException and ConnectionPool problem

    refresh page , problem gone
    java.lang.NullPointerException
    at Deferment.UpdatePostgraduate.getStatus(UpdatePostgraduate.java:278)
    at Deferment.UpdatePostgraduate.doPost(UpdatePostgraduate.java:175)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
    at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    UpdatePostgraduate.java:278
    ->while (rs.next()) {
    175-> tarCount=getStatus(userid);
    now I have
    Connection conn = null;
    CallableStatement calstat=null;
    ResultSet rs = null;
    in every of my function
    and my
    public Connection getConnection()         throws SQLException, ServletException       {           Connection conn = null;           try{           pool.getConnection();           }catch (SQLException sqle) {             throw new ServletException(sqle.getMessage());         }           return conn;       }

    private DataSource pool = null; 
        int tarCount;
        int sendMail;
        @Override
        public void init() throws ServletException {
            Context env = null;
            try {
                env = (Context) new InitialContext().lookup("java:comp/env");
                pool = (DataSource) env.lookup("jdbc/test");
                if (pool == null) {
                    throw new ServletException(
                            "'jdbc/test' is an unknown DataSource");            }
            } catch (NamingException ne) {
                throw new ServletException(ne);
          public Connection getConnection()
            throws SQLException, ServletException
              Connection conn = null;
              try{
             conn=pool.getConnection();
              }catch (SQLException sqle) {
                System.out.println("JDBC error:" + sqle.getMessage());
                sqle.printStackTrace();
              return conn;
          }then on every function I call it like
    private int getFound(String UNumber) throws Exception {
            Connection conn = null;
            CallableStatement calstat=null;
            ResultSet rs = null;
            try {
                conn = pool.getConnection();
                calstat = (CallableStatement) conn.prepareCall("{call DuplicatePost(?)}");
                calstat.setString(1, UNumber);
                rs = calstat.executeQuery();
                tarCount = 0;
                while (rs.next()) {
                    tarCount++;
            } catch (SQLException se) {
                System.out.println("JDBC error:" + se.getMessage());
                se.printStackTrace();
            } catch (Exception e) {
                System.out.println("other error:" + e.getMessage());
                e.printStackTrace();
            } finally {
                try {
                    if (rs != null) {
                        rs.close();
                    if (calstat != null) {
                        calstat.close();
                } catch (SQLException e) {
                    e.printStackTrace();
            } //end finally
            return tarCount;
        }// end function
    }// end

  • Java.lang.NullPointerException by parsing a string into an int

    Hi,
    I am trying to call a method with the first argument as an int.
    I have successfully tested to call it with normal int, it works.
    The problem is that the int i need to send has first to be casted from a string ( a jtext field basically)
    what i do is :
    destAddrInt = (int)Integer.parseInt(destAddr.trim());
    this.sendCommand(destAddrInt , cmdShortArray);but what ever i try it will not work, i always get the java.lang.NullPointerException.
    i have even tried to copy the value into an int:
    destAddrInt = (int)Integer.parseInt(destAddr.trim());
    int dum;
    dum = destAddrInt;
    this.sendCommand(dum, cmdShortArray);What can I do?
    Thanks for your help!

    Why do you need to typecast the int again into an integer after you have parsed it?This was actually my last try (I did several tries to find a solution)!
    Ok, know I did follow the stack trace with ex.printStackTrace(); and found that the exception was afterward (some uninitialized Set).
    And now it work, and of course even with
    Integer.parseInt(destAddr.trim())
    If I had to guess, I'd say it's in the call to the trim() method on destAddr.Trim has not be a problem).
    Thanks for your help!

  • Problem about "Exception in thread "main" java.lang.NullPointerException"

    This is t error message once i run the file
    Exception in thread "main" java.lang.NullPointerException
    at sendInterface.<init>(sendInterface.java:64)
    at sendInterface.main(sendInterface.java:133)
    * @(#)sendInterface.java
    * @author
    * @version 1.00 2008/7/18
    import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.GridLayout;
    import java.awt.Panel;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.DefaultListModel;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JRadioButton;
    import javax.swing.JScrollPane;
    import javax.swing.ListModel;
    import javax.swing.UIManager;
    import javax.swing.SwingConstants;
    import java.io.*;
    import java.sql.*;
    import java.net.*;
    public class sendInterface  /*implements ActionListener*/{
         JFrame frame = new JFrame();
         private Panel topPanel;
         private Panel sendMessagePanel;
         private Panel sendFilePanel;
         private JLabel senderID;
         private JLabel receiverID;
         private JLabel senderDisplay;
         private DefaultListModel receiverListModel = new DefaultListModel();
         private JList receiverID_lst = new JList(receiverListModel);
         private JRadioButton sendType;
         String userName;
         String[] userList = null ;
         int i=0;
         Connection con;     
        public sendInterface() {
             String ListName;
                 try
                     JFrame.setDefaultLookAndFeelDecorated( true );
              catch (Exception e)
               System.err.println( "Look and feel not set." );
           frame.setTitle( "Send Interface" );
             topPanel.setLayout( new GridLayout( 2 , 1 ) );                          //line 64*************************
             senderID = new JLabel( "Sender:", SwingConstants.LEFT );
             senderDisplay = new JLabel( "'+...+'", SwingConstants.LEFT );
             receiverID = new JLabel( "Receiver:", SwingConstants.LEFT);
    //         receiverID_lst = new JList( ListName );
              frame.add(senderID);
             frame.add(senderDisplay);
             frame.add(receiverID);
    //         frame.add(receiverListModel);
             frame.add(new JScrollPane(receiverID_lst), BorderLayout.CENTER);
             frame.setLocation(200, 200);
             frame.setSize(250, 90);
             frame.setVisible(true);
        public void setListName(String user)
             try{
                  userName = user;
                  Class.forName("com.mysql.jdbc.Driver");
                   String url = "jdbc:mysql://localhost:3306/thesis";
                   con = DriverManager.getConnection(url, "root", "");
                   Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   ResultSet rs = stmt.executeQuery("select * from user where User_ID!= '" + userName + "'");
                   System.out.println("Display all results:");
                   while(rs.next()){
                      String user_id = rs.getString("User_ID");
                      System.out.println("\tuser_id= " + user_id );
         //             receiverListModel.addElement(user_id);
                        userList=user_id;
                        i++;
              }//end while loop
              receiverListModel.addElement(userList);
         catch(Exception ex)
    ex.printStackTrace();
         finally
    if (con != null)
    try
    con.close ();
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors */ }
    public String getUserName()
         return userName;
    public String[] getUserList()
         return userList;
    public static void main(String[] args) {
    new sendInterface(); //line 133******************************************
    thank ur reply:D
    Edited by: ocibala on Aug 3, 2008 9:54 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    And where do you instantiate topPanel before you invoke setLayout?
    db

  • Java.lang.NullPointerException problem after installation

    Dear all,
    after i install the EP6.0 SP9 on AIX 5.3 ORACLE 9.2 ,when i want to create role ,i hit the IE error message like "operation aborted" .in the log viewer i found the error
    Time : 16:26:50:119
    Category : /System/Server
    Date : 06/22/2005
    Message :  [com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorCompContextHandler] getPriority() failed
    [EXCEPTION]
    java.lang.NullPointerException
    at com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorJndi.getPriority(RoleEditorJndi.java:1622)
    at com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorJsTree.createTreeNode(RoleEditorJsTree.java:784)
    at com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorJsTree.getChildTreeNodes(RoleEditorJsTree.java:646)
    at com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorJsTree.createJScriptTree(RoleEditorJsTree.java:96)
    at com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorJsTree.createJScriptTree(RoleEditorJsTree.java:106)
    at com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorJsTree.buildRoleEditorJsTree(RoleEditorJsTree.java:56)
    at com.sapportals.portal.pcd.admintools.roleeditor.misc.RoleEditorPage2.createContentStudioPage2(RoleEditorPage2.java:1501)
    at com.sapportals.portal.pcd.admintools.roleeditor.misc.RoleEditorPage2.createPage2(RoleEditorPage2.java:1425)
    at com.sapportals.portal.pcd.admintools.roleeditor.RoleEditorMain.doContent(RoleEditorMain.java:129)
    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:646)
    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:232)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged1(Native Method)
    it seems to be java problem ,anybody could give some suggestion?thanks

    Hi,
    I have similar problem.
    If you have solved this issue please let me know how.
    Thanks
    Arun

  • Problem with debug java.lang.NullPointerException

    Hi All,
    i am having a very strage issue with Flash Builder 4.5.1.
    If I create a Flex Mobile Application, i am able to debug the app with no problems.
    if I create a Flex Mobile and PHP Project, and then connect to a data service, i am not able to debug the app. i am having the following error:
    An internal error occurred during: "Launching Main_App".
    java.lang.NullPointerException
    SO: Windows 7
    Flash Builder 4.5.1
    Any ideas on this?
    Thanks a lot,
    Joe

    Hi Steven,
    I turned on debugger on oracle.jheadstart.controller.strutsadf.JhsRequestProcessor.
    The exception is rised in method :
    processActionPerform
    at statement :
    ActionForward forward = super.processActionPerform(request, response, action, form, mapping);
    I hope it is helpful.
    Cezary

  • faultstring java.lang.NullPointerException /faultstring problem

    Have been successfully working on a project using pl/sql web services. Everything has been working great until today. When I deploy a new version of my web services all looks good.
    Command = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 89be090571294c0b27350d54e06a0c98648307c0c09
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=89be090571294c0b27350d54e06a0c98648307c0c09
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has not finished yet
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=89be090571294c0b27350d54e06a0c98648307c0c09
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    DCM command completed successfully.
    Output:
    Exit status of DCM servlet client: 0
    Elapsed time for deployment: 21 seconds
    ---- Deployment finished. ---- Aug 22, 2006 8:05:34 AM
    But when trying to execute any procedure in the package that is exposed as a web service I now get the following error:
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.lang.NullPointerException</faultstring>
    <faultactor>/TAS-TAS_WEBSERVICE-context-root/TAS_WebService1</faultactor>
    </SOAP-ENV:Fault>
    As far as I can tell nothing has changed. These are procecures that have been working for months now that generate this error. I am using JDEV 9052 to deploy to our OAS 10g.
    Any ideas? I am at a loss

    I have fixed the problem, but still not sure what caused it. I redeployed the app from a different machine and it all works again. Not sure what caused it to stop working when deployed from the original machine.

  • Java.lang.NullPointerException problems

    I have noticed i cannot make a Point P = new Point(null); it throws this exception. However i have made a function that returns a point, or null, depending on whether two line segments collide. Here is what happens:
    this is where the error occours, and where i need to use the method:
    if (LineIntersect(variables) != null);
         Point P = new Point(LineIntersect(variables) );
            // do whatever i need
    }with the method along the lines of:
    Point LineIntersect(variables)
            if (collides)
                Point P = new Point();
                   //P = whatever i want....
            else
                   return null;
    }however i get an java.lang.NullPointerException at
    Point P = new Point(LineIntersect(variables) );
    and i dont know why, as i am only declairing this if LineIntersect(variables) is NOT null.... I dont think this is a syntax error, will post more code if needed
    thanks for the help!

    My 0.02c
    You are calling the LineIntersect method (should be lineIntersect) twice. Plus that method returns a Point object so no need to use the new operator again. I would do this:
    Point p = lineIntersect(variables);
    if(p != null) {
        // do something with the Point
    }

  • Problem Creating Analytical Workspace - java.lang.NullPointerException

    I can't seem to create a new analytical workspace using AWM on machine that doesn't allow me admin privileges, so I am really stumped.
    Here is the error that I keep on getting:
    =========================================
    oracle.AWXML.AWException: java.lang.NullPointerException
    at oracle.AWXML.AW.readAWDefinitions(AW.java:1339)
    at oracle.olap.awm.dataobject.aw.WorkspaceDO.getModelAW(WorkspaceDO.java:739)
    at oracle.olap.awm.dataobject.aw.WorkspaceDO.getModelAW(WorkspaceDO.java:701)
    at oracle.olap.awm.navigator.node.WorkspaceNode.getModelerViewChildren(WorkspaceNode.java:361)
    at oracle.olap.awm.navigator.node.WorkspaceNode.getChildren(WorkspaceNode.java:342)
    at oracle.olap.awm.navigator.node.BaseNodeModel.refreshData(BaseNodeModel.java:74)
    at oracle.olap.awm.navigator.node.BaseNodeModel.dTreeItemExpanding(BaseNodeModel.java:221)
    at oracle.bali.ewt.dTree.DTreeDeferredParent.__fireExpansionChanging(Unknown Source)
    at oracle.bali.ewt.dTree.DTreeDeferredParent.setExpanded(Unknown Source)
    at oracle.olap.awm.navigator.node.BaseNode.expandHelper(BaseNode.java:1921)
    at oracle.olap.awm.navigator.node.BaseNode.access$000(BaseNode.java:93)
    at oracle.olap.awm.navigator.node.BaseNode$ExpansionThread.run(BaseNode.java:1871)
    Caused by: java.lang.NullPointerException
    at oracle.AWXML.AW.readAWDefinitions(AW.java:1313)
    ... 11 more
    =========================================
    Importing from a template also produces an error that is different from the above, so importing is not an option. Won't post my error on importing as I want to concentrate on this one.
    Just in case, the machine's version details for OLAP are as follows:
    OLAP Analytic Workspace - 10.2.0.2.0 VALID
    OLAP Catalog - 10.2.0.2.0 VALID
    Oracle OLAP API - 10.2.0.2.0 VALID
    Please help.

    Hi,
    iam trying to install oracle 8i in fedora 4 with kernel version 2.6.11 and glibc-2.3.6-3
    when iam trying to run ./runinstaller it is giving the following error.
    And i want to know whether oracle 8i is supported on fedora 4. Plse tell me what all the linux flavours are supported for oracle 8i and also it is compatable for php4 or php5.
    as we are trying to use php with oracle 8i database...!
    ######## error:
    [oracle@localhost linux]$ ./runInstaller
    Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
    Exception java.lang.NullPointerException occurred..
    java.lang.NullPointerException
    at sun.awt.motif.MComponentPeer.setFont(MComponentPeer.java:192)
    at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:68)
    at sun.awt.motif.MToolkit.createFrame(MToolkit.java:137)
    at java.awt.Frame.addNotify(Frame.java:196)
    at java.awt.Window.show(Window.java:138)
    at java.awt.Component.show(Component.java:528)
    at java.awt.Component.setVisible(Component.java:490)
    at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:419)
    Plse help me...!
    Thanks in advance..

  • Deployment problems - faultstring java.lang.NullPointerException /faultstr

    I am fairly new to JDDEV, but have been successfully working on a project using pl/sql web services. Everything has been working great until today. When I deploy a new version of my web services all looks good.
    Command = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 89be090571294c0b27350d54e06a0c98648307c0c09
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=89be090571294c0b27350d54e06a0c98648307c0c09
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has not finished yet
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=89be090571294c0b27350d54e06a0c98648307c0c09
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    DCM command completed successfully.
    Output:
    Exit status of DCM servlet client: 0
    Elapsed time for deployment: 21 seconds
    ---- Deployment finished. ---- Aug 22, 2006 8:05:34 AM
    But when trying to execute any procedure in the package that is exposed as a web service I now get the following error:
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.lang.NullPointerException</faultstring>
    <faultactor>/TAS-TAS_WEBSERVICE-context-root/TAS_WebService1</faultactor>
    </SOAP-ENV:Fault>
    As far as I can tell nothing has changed. These are procecures that have been working for months now that generate this error. I am using JDEV 9052 to deploy to our OAS 10g.
    Any ideas? I am at a loss

    I have it working again. I deployed from a different machine with JDEV installed and everything works again! Not sure why it doesn't work anymore from my original machine where I have been developing from for months.

  • Java.lang.NullPointerException - not quite sure what the problem is

    Can anyone give me a good guess as to what is causing this?
    Matt
    java.lang.NullPointerException
         at java.io.File.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at com.initiainc.client.services.network.Network.jmsAllocateClient(Network.java:391)
         at com.initiainc.client.services.network.Network.jmsInitialize(Network.java:304)
         at com.initiainc.client.services.network.Network.initialize(Network.java:179)
         at com.initiainc.client.services.InitiaClient.initialize(InitiaClient.java:229)
         at com.initiainc.client.Operator.app.App.initialize(App.java:105)
         at com.initiainc.client.Operator.Application.<init>(Application.java:42)
         at com.initiainc.client.Operator.Application.main(Application.java:101)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    First guess is that you are trying to use a file within the trusted environment and that will fail with obscure messages like the only mentioned.
    Another thing could be that you are using a path relatively, note that probably won't work.
    Hope these comments help you a bit, if not, include more details ;)

Maybe you are looking for