beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "matt c (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (BEEHIVE-1185) SQLParameter of type OUT with null value causes NPE durning generation of log message
Date Fri, 25 May 2007 20:19:16 GMT

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

matt c reassigned BEEHIVE-1185:
-------------------------------

    Assignee: matt c  (was: Jacob Danner)

> 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: matt c
>             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