error messages lack debug information

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

error messages lack debug information

Matthew Broadhead-2
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
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
     at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
     at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
     at
org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
     at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
     at
org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
     at
org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
     at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
     at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
     at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
     at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
     at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
     at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
     at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     at java.lang.Thread.run(Thread.java:748)

Reply | Threaded
Open this post in threaded view
|

Re: error messages lack debug information

Thomas Andraschko-4
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
<[hidden email]> 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
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>      at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>      at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>      at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>      at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>      at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
>      at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>      at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>      at
>
> org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
>      at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
>      at
>
> org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
>      at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
>      at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
>      at
>
> org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
>      at
>
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
>      at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
>      at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
>      at
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
>      at
>
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>      at
>
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
>      at
> org.apache.tomcat.util.net
> .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
>      at
> org.apache.tomcat.util.net
> .SocketProcessorBase.run(SocketProcessorBase.java:49)
>      at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>      at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>      at
>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>      at java.lang.Thread.run(Thread.java:748)
>
>
Reply | Threaded
Open this post in threaded view
|

Re: error messages lack debug information

Matthew Broadhead-2
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
> <[hidden email]> 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
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>       at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>       at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>>       at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>       at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>       at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
>>       at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>       at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>>       at
>>
>> org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
>>       at
>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
>>       at
>>
>> org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
>>       at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
>>       at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
>>       at
>>
>> org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
>>       at
>>
>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
>>       at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
>>       at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
>>       at
>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
>>       at
>>
>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>>       at
>>
>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
>>       at
>> org.apache.tomcat.util.net
>> .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
>>       at
>> org.apache.tomcat.util.net
>> .SocketProcessorBase.run(SocketProcessorBase.java:49)
>>       at
>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>       at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>       at
>>
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>       at java.lang.Thread.run(Thread.java:748)
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: error messages lack debug information

Thomas Andraschko-4
which line number?

Am Sa., 15. Dez. 2018 um 11:52 Uhr schrieb Matthew Broadhead
<[hidden email]>:

> 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
> > <[hidden email]> 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
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> >>       at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>       at
> org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
> >>       at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> >>       at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>       at
> >>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
> >>       at
> >>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
> >>       at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> >>       at
> >>
> >>
> org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
> >>       at
> >>
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
> >>       at
> >>
> >>
> org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
> >>       at
> >>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
> >>       at
> >>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
> >>       at
> >>
> >>
> org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
> >>       at
> >>
> >>
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
> >>       at
> >>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
> >>       at
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
> >>       at
> >>
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
> >>       at
> >>
> >>
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
> >>       at
> >>
> >>
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
> >>       at
> >> org.apache.tomcat.util.net
> >> .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
> >>       at
> >> org.apache.tomcat.util.net
> >> .SocketProcessorBase.run(SocketProcessorBase.java:49)
> >>       at
> >>
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> >>       at
> >>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> >>       at
> >>
> >>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> >>       at java.lang.Thread.run(Thread.java:748)
> >>
> >>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: error messages lack debug information

Matthew Broadhead-2
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
> <[hidden email]>:
>
>> 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
>>> <[hidden email]> 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
>>>>
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>        at
>> org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>>>        at
>> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>>>>        at
>>>>
>>>>
>> org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
>>>>        at
>>>>
>>>>
>> org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
>>>>        at
>>>>
>>>>
>> org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
>>>>        at
>>>>
>>>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
>>>>        at
>>>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
>>>>        at
>>>>
>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
>>>>        at
>>>>
>>>>
>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>>>>        at
>>>>
>>>>
>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
>>>>        at
>>>> org.apache.tomcat.util.net
>>>> .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
>>>>        at
>>>> org.apache.tomcat.util.net
>>>> .SocketProcessorBase.run(SocketProcessorBase.java:49)
>>>>        at
>>>>
>>>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>>>        at
>>>>
>>>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>>>        at
>>>>
>>>>
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>        at java.lang.Thread.run(Thread.java:748)
>>>>
>>>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: error messages lack debug information

Thomas Andraschko-4
thats probably in LocationValueExpression#location

Am Sa., 15. Dez. 2018 um 12:43 Uhr schrieb Matthew Broadhead
<[hidden email]>:

> 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
> > <[hidden email]>:
> >
> >> 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
> >>> <[hidden email]> 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
> >>>>
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>>>        at
> >> org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
> >>>>        at
> >> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> >>>>        at
> >>>>
> >>>>
> >>
> org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
> >>>>        at
> >>>>
> >>>>
> >>
> org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
> >>>>        at
> >>>>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
> >>>>        at
> >>>>
> >>
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
> >>>>        at
> >>>> org.apache.tomcat.util.net
> >>>> .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
> >>>>        at
> >>>> org.apache.tomcat.util.net
> >>>> .SocketProcessorBase.run(SocketProcessorBase.java:49)
> >>>>        at
> >>>>
> >>>>
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> >>>>        at
> >>>>
> >>>>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> >>>>        at
> >>>>
> >>>>
> >>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> >>>>        at java.lang.Thread.run(Thread.java:748)
> >>>>
> >>>>
> >>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: error messages lack debug information

Matthew Broadhead-2
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
> <[hidden email]>:
>
>> 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
>>> <[hidden email]>:
>>>
>>>> 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
>>>>> <[hidden email]> 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
>>>>>>
>>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>         at
>>>> org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>>>>>         at
>>>> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>>>>>>         at
>>>>>>
>>>>>>
>> org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
>>>>>>         at
>>>>>>
>>>>>>
>> org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
>>>>>>         at
>>>>>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
>>>>>>         at
>>>>>>
>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
>>>>>>         at
>>>>>> org.apache.tomcat.util.net
>>>>>> .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
>>>>>>         at
>>>>>> org.apache.tomcat.util.net
>>>>>> .SocketProcessorBase.run(SocketProcessorBase.java:49)
>>>>>>         at
>>>>>>
>>>>>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>>>>>         at
>>>>>>
>>>>>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>>>>>         at
>>>>>>
>>>>>>
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>>>         at java.lang.Thread.run(Thread.java:748)
>>>>>>
>>>>>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: error messages lack debug information

Thomas Andraschko-4
Feel free to implement something and provide a PR!

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Am Sa., 15. Dez. 2018 um 16:47 Uhr schrieb Matthew Broadhead
<[hidden email]>:

> 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
> > <[hidden email]>:
> >
> >> 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
> >>> <[hidden email]>:
> >>>
> >>>> 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
> >>>>> <[hidden email]> 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
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>>>>>         at
> >>>> org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
> >>>>>>         at
> >>>> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.keycloak.adapters.tomcat.AbstractAuthenticatedActionsValve.invoke(AbstractAuthenticatedActionsValve.java:67)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.keycloak.adapters.tomcat.AbstractKeycloakAuthenticatorValve.invoke(AbstractKeycloakAuthenticatorValve.java:181)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
> >>>>>>         at
> >>>>>>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
> >>>>>>         at
> >>>>>>
> >>
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
> >>>>>>         at
> >>>>>> org.apache.tomcat.util.net
> >>>>>> .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1471)
> >>>>>>         at
> >>>>>> org.apache.tomcat.util.net
> >>>>>> .SocketProcessorBase.run(SocketProcessorBase.java:49)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> >>>>>>         at
> >>>>>>
> >>>>>>
> >>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> >>>>>>         at java.lang.Thread.run(Thread.java:748)
> >>>>>>
> >>>>>>
> >>
>
>
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>