[teiid-issues] [JBoss JIRA] (TEIID-2137) NPE in ExecutionContext.getCommandContext()

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Fri Aug 10 08:16:06 EDT 2012


     [ https://issues.jboss.org/browse/TEIID-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-2137.
-----------------------------------

    Resolution: Rejected


The examples were just showing that the executioncontext was logically finished when any of those methods are called.  You do not have to follow that convention.

For close, the reset method will associate another executioncontext prior to the execute call.  

If you are terminating your execution prematurely however cancel (and then dispose) may be called concurrently with execute resulting in an NPE if you are still referencing the null value.
                
> NPE in ExecutionContext.getCommandContext()
> -------------------------------------------
>
>                 Key: TEIID-2137
>                 URL: https://issues.jboss.org/browse/TEIID-2137
>             Project: Teiid
>          Issue Type: Bug
>    Affects Versions: 8.1
>         Environment: Java(TM) SE Runtime Environment (build 1.7.0_05-b05) , Windows 7, Teiid 8.1.CR1
>            Reporter: Andriy Rokhmanov
>            Assignee: Steven Hawkins
>         Attachments: server.log.txt
>
>
> I start 10 simultaneous continuous executions against my custom ResultSetExecution translator.
> This piece of code causes NPE once per several seconds:
> public void execute() throws TranslatorException {
> ...
> CommandContext ctx = executionContext.getCommandContext();
> ...
> }
> Exception dump from server.log attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list