Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347819

Summary: NPE in StatementProcessor with unbinded output variable(s)
Product: z_Archived Reporter: Matthias Zimmermann <zimmermann>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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