Menu

#82 NullPointerException with RDi 9.6.0.7

3.0
closed
None
2020-02-25
2020-02-18
No

Confirmed to fail on 3.6.0r on RDi 9.6.0.7 but still works correctly on RDi 9.6.0.6. Both message file search and source file search fail with a null pointer exception. Console log error attached.

1 Attachments

Discussion

  • Thomas Raddatz

    Thomas Raddatz - 2020-02-19

    Sorry, but I cannot reproduce the problem. I also cannot understand why there is a NullPointerException (NPE), because technically that should be impossible.

    The NPE happens in class com.ibm.as400.data.PcmlDocRoot, statement 52. That is:

        public PcmlNode getElement(String qName) 
        {
            return (PcmlNode) m_hash.get(qName);
        }
    

    The only way to get a NPE there is when m_hash is null. But actually m_hash cannot be null, because it is initialized in the constructor of the class:

        PcmlDocRoot() 
        {
            m_hash = new Hashtable();
        }
    

    The source code of PcmlDocRoot can be found here:

    https://sourceforge.net/p/jt400/svn/3324/tree/trunk/src/com/ibm/as400/data/PcmlDocRoot.java#l52

    Can you install RDi a second time (parallel to your existing installation) and try the search again?

    Though I do not think that it is an iSphere plug-in or library issue, please also check that you use the right library.

    The NPE happens before the program call, so actually it cannot be a library issue.

    I am lost. Maybe '-clean' helps to get things fixed.

     
    • Samuel Hansen

      Samuel Hansen - 2020-02-20

      New instance of RDi with iSphere works as expected.

      With original instance I attempted -clean with same results. Attempted new workspace and removing all plugins except base RDi and iSphere. Different error now, attached.

       
  • Thomas Raddatz

    Thomas Raddatz - 2020-02-19
    • assigned_to: Thomas Raddatz
     
  • Thomas Raddatz

    Thomas Raddatz - 2020-02-23

    Samuel,

    since a new instance of RDi/iSphere works fine and since nobody else reported a similar problem I suggest to close the ticket. It seems as if something went wrong with the update on 9.6.0.7.

    Last but not least the relevant iSphere classes have not been changed for a long time.

    I do not know what to check further.

    Thomas.

     

    Last edit: Thomas Raddatz 2020-02-23
    • Samuel Hansen

      Samuel Hansen - 2020-02-24

      Thanks Tom, I'll have our development team reinstall RDi. We can close it out.

       
  • Thomas Raddatz

    Thomas Raddatz - 2020-02-25
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB