Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1185

SQLParameter of type OUT with null value causes NPE durning generation of log message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 1.0.1, 1.0.2
    • V.Next
    • System Controls
    • None

    Description

      Steps to reproduce:

      1) In the JDBC control drts, in the
      o.a.b.c.s.j.u.results.StoredProcsDBResultsTest

      2) Modify the following line testSPOutParams,

      params[1] = new JdbcControl.SQLParameter(new String[8], Types.VARCHAR, JdbcControl.SQLParameter.OUT);

      to
      params[1] = new JdbcControl.SQLParameter(null, Types.VARCHAR, JdbcControl.SQLParameter.OUT);

      The following stack trace occurs:

      java.lang.NullPointerException
      at org.apache.beehive.controls.system.jdbc.parser.SqlStatement.createPreparedStatementString(SqlStatement.java:252)
      at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:280)
      at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.invoke(JdbcControlImpl.java:228)
      at org.apache.beehive.controls.system.jdbc.test.results.ResultsTestCtrlBean.getProductsByColor(ResultsTestCtrlBean.java:1329)
      at org.apache.beehive.controls.system.jdbc.units.results.StoredProcsDBResultsTest.testSPOutParams(StoredProcsDBResultsTest.java:117)
      </error>

      Attachments

        Activity

          People

            grunlowen matt c
            chad_s Chad Schoettger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: