[ 
https://issues.apache.org/jira/browse/BEEHIVE-1185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chad Schoettger resolved BEEHIVE-1185.
--------------------------------------

    Resolution: Fixed
      Assignee: Jacob Danner  (was: Chad Schoettger)

Fixed, svn rev 523501

> 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, 1.0.1, 1.0.2
>            Reporter: Chad Schoettger
>         Assigned To: Jacob Danner
>             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.

Reply via email to