Re: error messages lack debug information

2018-12-15 Thread Thomas Andraschko
Feel free to implement something and provide a PR!


Virenfrei.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Am Sa., 15. Dez. 2018 um 16:47 Uhr schrieb Matthew Broadhead
:

> perfect!  thanks.  would be really helpful if it could output that info
> when the error occurs
>
> On 15/12/2018 12:45, Thomas Andraschko wrote:
> > thats probably in LocationValueExpression#location
> >
> > Am Sa., 15. Dez. 2018 um 12:43 Uhr schrieb Matthew Broadhead
> > :
> >
> >> i suppose the line number that is failing in the xhtml...
> >> i don't really understand what EL is trying to compare and why
> >>
> >> On 15/12/2018 12:39, Thomas Andraschko wrote:
> >>> which line number?
> >>>
> >>> Am Sa., 15. Dez. 2018 um 11:52 Uhr schrieb Matthew Broadhead
> >>> :
> >>>
>  if i look at ValueExpression.getExpressionString it says
>  #{cc.attrs.billTemplateSection.breakdown} which is a Boolean attribute
>  of BillTemplateSection.  but it is saying it is not equivalent to
>  BillTemplateSection.  is it possible to get a line number?
> 
>  On 15/12/2018 11:48, Thomas Andraschko wrote:
> > Try to debug the getExpressionString in the ValueExpression classes
> > So you should be able to find the causing el
> >
> > Am Sa., 15. Dez. 2018, 11:07 hat Matthew Broadhead
> >  geschrieben:
> >
> >> occasionally i get error messages that are very hard to debug
> because
> >> they don't give enough detail about where the problem occurred.  for
> >> instance i have pasted below one which i am currently struggling
> with.
> >> i have stepped through the myfaces code but it doesn't seem to help
> me
> >> understand where the error is occurring.
> >>
> >> javax.el.ELException: Cannot convert [false] of type [class
> >> java.lang.Boolean] to [class
> >> uk.me.kissy.database.entities.jpa.accounts.BillTemplateSection]
> >> at
> >> org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:576)
> >> at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
> >> at
> >>
> >> org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:263)
> >> at
> >>
> >>
> >>
> org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.view.facelets.el.LocationValueExpression.setValue(LocationValueExpression.java:157)
> >> at
> javax.faces.component.UIInput.updateModel(UIInput.java:418)
> >> at
> >> javax.faces.component.UIInput.processUpdates(UIInput.java:336)
> >> at
> >>
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> >> at
> >>
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> >> at
> >>
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
> >> at
> >>
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> >> at
> >>
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
> >> at
> javax.faces.component.UIForm.processUpdates(UIForm.java:264)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:792)
> >> at
> >>
> >>
> >>
> org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)
> >> at javax.faces.component.UIForm.visitTree(UIForm.java:314)
> >> at
>  javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> >> at
> >>
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> >> at
>  javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> >> at
> >>
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> 

Re: error messages lack debug information

2018-12-15 Thread Matthew Broadhead
perfect!  thanks.  would be really helpful if it could output that info 
when the error occurs


On 15/12/2018 12:45, Thomas Andraschko wrote:

thats probably in LocationValueExpression#location

Am Sa., 15. Dez. 2018 um 12:43 Uhr schrieb Matthew Broadhead
:


i suppose the line number that is failing in the xhtml...
i don't really understand what EL is trying to compare and why

On 15/12/2018 12:39, Thomas Andraschko wrote:

which line number?

Am Sa., 15. Dez. 2018 um 11:52 Uhr schrieb Matthew Broadhead
:


if i look at ValueExpression.getExpressionString it says
#{cc.attrs.billTemplateSection.breakdown} which is a Boolean attribute
of BillTemplateSection.  but it is saying it is not equivalent to
BillTemplateSection.  is it possible to get a line number?

On 15/12/2018 11:48, Thomas Andraschko wrote:

Try to debug the getExpressionString in the ValueExpression classes
So you should be able to find the causing el

Am Sa., 15. Dez. 2018, 11:07 hat Matthew Broadhead
 geschrieben:


occasionally i get error messages that are very hard to debug because
they don't give enough detail about where the problem occurred.  for
instance i have pasted below one which i am currently struggling with.
i have stepped through the myfaces code but it doesn't seem to help me
understand where the error is occurring.

javax.el.ELException: Cannot convert [false] of type [class
java.lang.Boolean] to [class
uk.me.kissy.database.entities.jpa.accounts.BillTemplateSection]
at

org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:576)

at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
at


org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:263)

at



org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95)

at



org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)

at



org.apache.myfaces.view.facelets.el.LocationValueExpression.setValue(LocationValueExpression.java:157)

at javax.faces.component.UIInput.updateModel(UIInput.java:418)
at

javax.faces.component.UIInput.processUpdates(UIInput.java:336)

at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)

at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)

at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)

at



org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)

at



org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)

at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)

at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)

at



org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)

at



org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)

at javax.faces.component.UIForm.processUpdates(UIForm.java:264)
at



org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:792)

at



org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)

at javax.faces.component.UIForm.visitTree(UIForm.java:314)
at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

at



org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialExecute(PartialViewContextImpl.java:430)

at



org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:411)

at



org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)

at



javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:85)

at



org.omnifaces.context.OmniPartialViewContext.processPartial(OmniPartialViewContext.java:144)

at



javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1825)

 

Re: error messages lack debug information

2018-12-15 Thread Thomas Andraschko
thats probably in LocationValueExpression#location

Am Sa., 15. Dez. 2018 um 12:43 Uhr schrieb Matthew Broadhead
:

> i suppose the line number that is failing in the xhtml...
> i don't really understand what EL is trying to compare and why
>
> On 15/12/2018 12:39, Thomas Andraschko wrote:
> > which line number?
> >
> > Am Sa., 15. Dez. 2018 um 11:52 Uhr schrieb Matthew Broadhead
> > :
> >
> >> if i look at ValueExpression.getExpressionString it says
> >> #{cc.attrs.billTemplateSection.breakdown} which is a Boolean attribute
> >> of BillTemplateSection.  but it is saying it is not equivalent to
> >> BillTemplateSection.  is it possible to get a line number?
> >>
> >> On 15/12/2018 11:48, Thomas Andraschko wrote:
> >>> Try to debug the getExpressionString in the ValueExpression classes
> >>> So you should be able to find the causing el
> >>>
> >>> Am Sa., 15. Dez. 2018, 11:07 hat Matthew Broadhead
> >>>  geschrieben:
> >>>
>  occasionally i get error messages that are very hard to debug because
>  they don't give enough detail about where the problem occurred.  for
>  instance i have pasted below one which i am currently struggling with.
>  i have stepped through the myfaces code but it doesn't seem to help me
>  understand where the error is occurring.
> 
>  javax.el.ELException: Cannot convert [false] of type [class
>  java.lang.Boolean] to [class
>  uk.me.kissy.database.entities.jpa.accounts.BillTemplateSection]
> at
> org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:576)
> at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
> at
> 
> org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:263)
> at
> 
> 
> >>
> org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95)
> at
> 
> 
> >>
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)
> at
> 
> 
> >>
> org.apache.myfaces.view.facelets.el.LocationValueExpression.setValue(LocationValueExpression.java:157)
> at javax.faces.component.UIInput.updateModel(UIInput.java:418)
> at
> javax.faces.component.UIInput.processUpdates(UIInput.java:336)
> at
> 
> 
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> at
> 
> 
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> at
> 
> 
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
> at
> 
> 
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
> at
> 
> 
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
> at
> 
> 
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> at
> 
> 
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
> at
> 
> 
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
> at
> 
> 
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
> at javax.faces.component.UIForm.processUpdates(UIForm.java:264)
> at
> 
> 
> >>
> org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:792)
> at
> 
> 
> >>
> org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)
> at javax.faces.component.UIForm.visitTree(UIForm.java:314)
> at
> >> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> at
> 
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> at
> >> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> at
> 
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> at
> >> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> at
> 
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> at
> >> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> at
> 
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> at
> >> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> at
> 
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> at
> 
> 
> >>
> org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialExecute(PartialViewContextImpl.java:430)
> at
> 
> 
> 

Re: error messages lack debug information

2018-12-15 Thread Matthew Broadhead

i suppose the line number that is failing in the xhtml...
i don't really understand what EL is trying to compare and why

On 15/12/2018 12:39, Thomas Andraschko wrote:

which line number?

Am Sa., 15. Dez. 2018 um 11:52 Uhr schrieb Matthew Broadhead
:


if i look at ValueExpression.getExpressionString it says
#{cc.attrs.billTemplateSection.breakdown} which is a Boolean attribute
of BillTemplateSection.  but it is saying it is not equivalent to
BillTemplateSection.  is it possible to get a line number?

On 15/12/2018 11:48, Thomas Andraschko wrote:

Try to debug the getExpressionString in the ValueExpression classes
So you should be able to find the causing el

Am Sa., 15. Dez. 2018, 11:07 hat Matthew Broadhead
 geschrieben:


occasionally i get error messages that are very hard to debug because
they don't give enough detail about where the problem occurred.  for
instance i have pasted below one which i am currently struggling with.
i have stepped through the myfaces code but it doesn't seem to help me
understand where the error is occurring.

javax.el.ELException: Cannot convert [false] of type [class
java.lang.Boolean] to [class
uk.me.kissy.database.entities.jpa.accounts.BillTemplateSection]
   at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:576)
   at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
   at
org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:263)
   at



org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95)

   at



org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)

   at



org.apache.myfaces.view.facelets.el.LocationValueExpression.setValue(LocationValueExpression.java:157)

   at javax.faces.component.UIInput.updateModel(UIInput.java:418)
   at javax.faces.component.UIInput.processUpdates(UIInput.java:336)
   at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)

   at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)

   at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)

   at



org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)

   at



org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)

   at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)

   at



javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)

   at



org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)

   at



org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)

   at javax.faces.component.UIForm.processUpdates(UIForm.java:264)
   at



org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:792)

   at



org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)

   at javax.faces.component.UIForm.visitTree(UIForm.java:314)
   at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

   at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

   at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

   at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

   at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

   at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

   at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

   at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

   at

javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)

   at


javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)

   at



org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialExecute(PartialViewContextImpl.java:430)

   at



org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:411)

   at



org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)

   at



javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:85)

   at



org.omnifaces.context.OmniPartialViewContext.processPartial(OmniPartialViewContext.java:144)

   at



javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1825)

   at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1657)
   at
javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:918)
   at



org.apache.myfaces.lifecycle.UpdateModelValuesExecutor.execute(UpdateModelValuesExecutor.java:38)

   at




Re: error messages lack debug information

2018-12-15 Thread Thomas Andraschko
which line number?

Am Sa., 15. Dez. 2018 um 11:52 Uhr schrieb Matthew Broadhead
:

> if i look at ValueExpression.getExpressionString it says
> #{cc.attrs.billTemplateSection.breakdown} which is a Boolean attribute
> of BillTemplateSection.  but it is saying it is not equivalent to
> BillTemplateSection.  is it possible to get a line number?
>
> On 15/12/2018 11:48, Thomas Andraschko wrote:
> > Try to debug the getExpressionString in the ValueExpression classes
> > So you should be able to find the causing el
> >
> > Am Sa., 15. Dez. 2018, 11:07 hat Matthew Broadhead
> >  geschrieben:
> >
> >> occasionally i get error messages that are very hard to debug because
> >> they don't give enough detail about where the problem occurred.  for
> >> instance i have pasted below one which i am currently struggling with.
> >> i have stepped through the myfaces code but it doesn't seem to help me
> >> understand where the error is occurring.
> >>
> >> javax.el.ELException: Cannot convert [false] of type [class
> >> java.lang.Boolean] to [class
> >> uk.me.kissy.database.entities.jpa.accounts.BillTemplateSection]
> >>   at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:576)
> >>   at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
> >>   at
> >> org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:263)
> >>   at
> >>
> >>
> org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95)
> >>   at
> >>
> >>
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)
> >>   at
> >>
> >>
> org.apache.myfaces.view.facelets.el.LocationValueExpression.setValue(LocationValueExpression.java:157)
> >>   at javax.faces.component.UIInput.updateModel(UIInput.java:418)
> >>   at javax.faces.component.UIInput.processUpdates(UIInput.java:336)
> >>   at
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> >>   at
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> >>   at
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
> >>   at
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
> >>   at
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
> >>   at
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
> >>   at
> >>
> >>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
> >>   at
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
> >>   at
> >>
> >>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
> >>   at javax.faces.component.UIForm.processUpdates(UIForm.java:264)
> >>   at
> >>
> >>
> org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:792)
> >>   at
> >>
> >>
> org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)
> >>   at javax.faces.component.UIForm.visitTree(UIForm.java:314)
> >>   at
> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> >>   at
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> >>   at
> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> >>   at
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> >>   at
> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> >>   at
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> >>   at
> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> >>   at
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> >>   at
> javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
> >>   at
> >>
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
> >>   at
> >>
> >>
> org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialExecute(PartialViewContextImpl.java:430)
> >>   at
> >>
> >>
> org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:411)
> >>   at
> >>
> >>
> org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)
> >>   at
> >>
> >>
> javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:85)
> >>   at
> >>
> >>
> org.omnifaces.context.OmniPartialViewContext.processPartial(OmniPartialViewContext.java:144)
> >>   at
> >>
> >>
> javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1825)
> >>   at 

Re: error messages lack debug information

2018-12-15 Thread Matthew Broadhead
if i look at ValueExpression.getExpressionString it says 
#{cc.attrs.billTemplateSection.breakdown} which is a Boolean attribute 
of BillTemplateSection.  but it is saying it is not equivalent to 
BillTemplateSection.  is it possible to get a line number?


On 15/12/2018 11:48, Thomas Andraschko wrote:

Try to debug the getExpressionString in the ValueExpression classes
So you should be able to find the causing el

Am Sa., 15. Dez. 2018, 11:07 hat Matthew Broadhead
 geschrieben:


occasionally i get error messages that are very hard to debug because
they don't give enough detail about where the problem occurred.  for
instance i have pasted below one which i am currently struggling with.
i have stepped through the myfaces code but it doesn't seem to help me
understand where the error is occurring.

javax.el.ELException: Cannot convert [false] of type [class
java.lang.Boolean] to [class
uk.me.kissy.database.entities.jpa.accounts.BillTemplateSection]
  at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:576)
  at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
  at
org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:263)
  at

org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95)
  at

org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)
  at

org.apache.myfaces.view.facelets.el.LocationValueExpression.setValue(LocationValueExpression.java:157)
  at javax.faces.component.UIInput.updateModel(UIInput.java:418)
  at javax.faces.component.UIInput.processUpdates(UIInput.java:336)
  at

javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
  at

javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
  at

javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
  at

org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
  at

org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
  at

javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
  at

javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
  at

org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
  at

org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
  at javax.faces.component.UIForm.processUpdates(UIForm.java:264)
  at

org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:792)
  at

org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)
  at javax.faces.component.UIForm.visitTree(UIForm.java:314)
  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
  at
javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
  at
javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
  at
javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
  at
javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
  at
javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
  at

org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialExecute(PartialViewContextImpl.java:430)
  at

org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:411)
  at

org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)
  at

javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:85)
  at

org.omnifaces.context.OmniPartialViewContext.processPartial(OmniPartialViewContext.java:144)
  at

javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1825)
  at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1657)
  at
javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:918)
  at

org.apache.myfaces.lifecycle.UpdateModelValuesExecutor.execute(UpdateModelValuesExecutor.java:38)
  at

org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196)
  at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  at


Re: error messages lack debug information

2018-12-15 Thread Thomas Andraschko
Try to debug the getExpressionString in the ValueExpression classes
So you should be able to find the causing el

Am Sa., 15. Dez. 2018, 11:07 hat Matthew Broadhead
 geschrieben:

> occasionally i get error messages that are very hard to debug because
> they don't give enough detail about where the problem occurred.  for
> instance i have pasted below one which i am currently struggling with.
> i have stepped through the myfaces code but it doesn't seem to help me
> understand where the error is occurring.
>
> javax.el.ELException: Cannot convert [false] of type [class
> java.lang.Boolean] to [class
> uk.me.kissy.database.entities.jpa.accounts.BillTemplateSection]
>  at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:576)
>  at org.apache.el.parser.AstValue.setValue(AstValue.java:202)
>  at
> org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:263)
>  at
>
> org.apache.webbeans.el22.WrappedValueExpression.setValue(WrappedValueExpression.java:95)
>  at
>
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)
>  at
>
> org.apache.myfaces.view.facelets.el.LocationValueExpression.setValue(LocationValueExpression.java:157)
>  at javax.faces.component.UIInput.updateModel(UIInput.java:418)
>  at javax.faces.component.UIInput.processUpdates(UIInput.java:336)
>  at
>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
>  at
>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
>  at
>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
>  at
>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
>  at
>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
>  at
>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1506)
>  at
>
> javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1499)
>  at
>
> org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:939)
>  at
>
> org.apache.myfaces.view.facelets.component.UIRepeat.processUpdates(UIRepeat.java:1245)
>  at javax.faces.component.UIForm.processUpdates(UIForm.java:264)
>  at
>
> org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:792)
>  at
>
> org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:213)
>  at javax.faces.component.UIForm.visitTree(UIForm.java:314)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at javax.faces.component.UIComponent.visitTree(UIComponent.java:1047)
>  at
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1192)
>  at
>
> org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialExecute(PartialViewContextImpl.java:430)
>  at
>
> org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:411)
>  at
>
> org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)
>  at
>
> javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:85)
>  at
>
> org.omnifaces.context.OmniPartialViewContext.processPartial(OmniPartialViewContext.java:144)
>  at
>
> javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1825)
>  at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1657)
>  at
> javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:918)
>  at
>
> org.apache.myfaces.lifecycle.UpdateModelValuesExecutor.execute(UpdateModelValuesExecutor.java:38)
>  at
>
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196)
>  at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143)
>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
>  at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>  at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>  at
>
>