beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Schoettger (JIRA)" <j...@apache.org>
Subject [jira] Created: (BEEHIVE-1185) SQLParameter of type OUT with null value causes NPE durning generation of log message
Date Wed, 28 Mar 2007 15:50:25 GMT
SQLParameter of type OUT with null value causes NPE durning generation of log message
-------------------------------------------------------------------------------------

                 Key: BEEHIVE-1185
                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1185
             Project: Beehive
          Issue Type: Bug
          Components: System Controls
    Affects Versions: 1.0.2, 1.0.1, 1.0
            Reporter: Chad Schoettger
         Assigned To: Chad Schoettger
             Fix For: V.Next


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>




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message