tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Broadhead (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TOMEE-1793) PostConstruct and PreRenderView called twice on load
Date Sun, 01 May 2016 11:25:12 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265724#comment-15265724
] 

Matthew Broadhead edited comment on TOMEE-1793 at 5/1/16 11:24 AM:
-------------------------------------------------------------------

how can it work for weeks and then suddenly stop working?  i am not doing anything except
trying to use standard features.

i have not been able to run the webapps on TomEE-7.0.0-M3 it runs postconstruct twice the
second time blowing up on these lines
{code}
FacesContext context = FacesContext.getCurrentInstance();
int additionalId = context.getApplication().evaluateExpressionGet(context, "#{param.additionalId}",
Integer.class);
{code}
with an inexplicable nullpointerexception.  surely this is a simple function which should
not cause this error?

Is TomEE recommended for development use by anyone?  It certainly does not seem like it should
be used in production.  There are numerous bugs at the core level.  Is there any advice for
people struggling with these issues?


was (Author: chongma):
how can it work for weeks and then suddenly stop working?  i am not doing anything except
trying to use standard features.

i have not been able to run the webapps on TomEE-7.0.0-M3 it runs postconstruct twice the
second time blowing up on these lines
{code}
int additionalId = context.getApplication().evaluateExpressionGet(context, "#{param.additionalId}",
Integer.class);
{code}
with an inexplicable nullpointerexception.  surely this is a simple function which should
not cause this error?

Is TomEE recommended for development use by anyone?  It certainly does not seem like it should
be used in production.  There are numerous bugs at the core level.  Is there any advice for
people struggling with these issues?

> PostConstruct and PreRenderView called twice on load
> ----------------------------------------------------
>
>                 Key: TOMEE-1793
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1793
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 1.7.3, 1.7.4
>            Reporter: Matthew Broadhead
>         Attachments: threadstack20160501.txt
>
>
> May have started after recent Oracle java update (1.8.0-92-b14) but suddenly all ManagedBeans
seem to be calling PostConstruct and PreRenderView twice on View load.  Second time it is
called the request parameters are empty.  Result is that any redirect in PreRenderView gets
executed.  Determined second request was a Partial Request so surrounded PreRenderView listener
with
> {code}
> if (!FacesContext.getCurrentInstance().getPartialViewContext().isPartialRequest()) {
> ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message