You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Shawn Jiang (JIRA)" <ji...@apache.org> on 2011/05/03 04:58:03 UTC
[jira] [Created] (OPENEJB-1536) Potential NPE in TimerData
Potential NPE in TimerData
--------------------------
Key: OPENEJB-1536
URL: https://issues.apache.org/jira/browse/OPENEJB-1536
Project: OpenEJB
Issue Type: Bug
Components: ejb31
Affects Versions: (trunk/openejb3)
Reporter: Shawn Jiang
Attachments: 0001-fix-potential-NPE.patch
When timerConfig is null, following TimerData constructor will throw NPE.
public TimerData(long id, EjbTimerServiceImpl timerService, String deploymentId, Object primaryKey, Method timeoutMethod, TimerConfig timerConfig) {
this.id = id;
this.timerService = timerService;
this.deploymentId = deploymentId;
this.primaryKey = primaryKey;
this.info =timerConfig.getInfo();
this.persistent = timerConfig.isPersistent();
this.timer = new TimerImpl(this);
this.timeoutMethod = timeoutMethod;
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (OPENEJB-1536) Potential NPE in TimerData
Posted by "Ivan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan resolved OPENEJB-1536.
---------------------------
Resolution: Fixed
Fix Version/s: 4.0
> Potential NPE in TimerData
> --------------------------
>
> Key: OPENEJB-1536
> URL: https://issues.apache.org/jira/browse/OPENEJB-1536
> Project: OpenEJB
> Issue Type: Bug
> Components: ejb31
> Affects Versions: (trunk/openejb3)
> Reporter: Shawn Jiang
> Fix For: 4.0
>
> Attachments: 0001-fix-potential-NPE.patch
>
>
> When timerConfig is null, following TimerData constructor will throw NPE.
> public TimerData(long id, EjbTimerServiceImpl timerService, String deploymentId, Object primaryKey, Method timeoutMethod, TimerConfig timerConfig) {
> this.id = id;
> this.timerService = timerService;
> this.deploymentId = deploymentId;
> this.primaryKey = primaryKey;
> this.info =timerConfig.getInfo();
> this.persistent = timerConfig.isPersistent();
> this.timer = new TimerImpl(this);
> this.timeoutMethod = timeoutMethod;
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (OPENEJB-1536) Potential NPE in TimerData
Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shawn Jiang updated OPENEJB-1536:
---------------------------------
Attachment: 0001-fix-potential-NPE.patch
> Potential NPE in TimerData
> --------------------------
>
> Key: OPENEJB-1536
> URL: https://issues.apache.org/jira/browse/OPENEJB-1536
> Project: OpenEJB
> Issue Type: Bug
> Components: ejb31
> Affects Versions: (trunk/openejb3)
> Reporter: Shawn Jiang
> Attachments: 0001-fix-potential-NPE.patch
>
>
> When timerConfig is null, following TimerData constructor will throw NPE.
> public TimerData(long id, EjbTimerServiceImpl timerService, String deploymentId, Object primaryKey, Method timeoutMethod, TimerConfig timerConfig) {
> this.id = id;
> this.timerService = timerService;
> this.deploymentId = deploymentId;
> this.primaryKey = primaryKey;
> this.info =timerConfig.getInfo();
> this.persistent = timerConfig.isPersistent();
> this.timer = new TimerImpl(this);
> this.timeoutMethod = timeoutMethod;
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OPENEJB-1536) Potential NPE in TimerData
Posted by "Ivan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028031#comment-13028031 ]
Ivan commented on OPENEJB-1536:
-------------------------------
Commit the patch to trunk at rev.1098914. Thanks, Shawn.
> Potential NPE in TimerData
> --------------------------
>
> Key: OPENEJB-1536
> URL: https://issues.apache.org/jira/browse/OPENEJB-1536
> Project: OpenEJB
> Issue Type: Bug
> Components: ejb31
> Affects Versions: (trunk/openejb3)
> Reporter: Shawn Jiang
> Attachments: 0001-fix-potential-NPE.patch
>
>
> When timerConfig is null, following TimerData constructor will throw NPE.
> public TimerData(long id, EjbTimerServiceImpl timerService, String deploymentId, Object primaryKey, Method timeoutMethod, TimerConfig timerConfig) {
> this.id = id;
> this.timerService = timerService;
> this.deploymentId = deploymentId;
> this.primaryKey = primaryKey;
> this.info =timerConfig.getInfo();
> this.persistent = timerConfig.isPersistent();
> this.timer = new TimerImpl(this);
> this.timeoutMethod = timeoutMethod;
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira