Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347819 - NPE in StatementProcessor with unbinded output variable(s)
Summary: NPE in StatementProcessor with unbinded output variable(s)
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 11:15 EDT by Matthias Zimmermann CLA
Modified: 2021-08-19 11:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Zimmermann CLA 2011-05-31 11:15:56 EDT
For SQL with unbinded output variable(s) the StatementProcess will throw an adequate ProcessingException (with text like "Cannot find output for ...", see StatementProcessor.createOutput(...):926). But while processing this ProcessingException a NullPointerException is thrown caused by accessing the uninitialized variable "m_currentInputBindMap".

StackTrace:
---
Caused by: java.lang.NullPointerException
	at org.eclipse.scout.rt.server.services.common.jdbc.internal.exec.StatementProcessor.createSqlDump(StatementProcessor.java:574)
	at org.eclipse.scout.rt.server.services.common.jdbc.internal.exec.StatementProcessor.<init>(StatementProcessor.java:160)
	at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.createStatementProcessor(AbstractSqlService.java:785)
	at org.eclipse.scout.rt.server.services.common.jdbc.AbstractSqlService.createPlainText(AbstractSqlService.java:758)
	at org.eclipse.scout.rt.server.services.common.jdbc.SQL.createPlainText(SQL.java:165)
Comment 1 Matthias Zimmermann CLA 2011-05-31 11:16:17 EDT
solved on 9.5.11, #101836
Comment 2 Matthias Zimmermann CLA 2011-06-28 09:20:42 EDT
shipped with eclipse scout 3.7.0