You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (Jira)" <ji...@apache.org> on 2022/06/20 19:01:00 UTC
[jira] [Assigned] (SLING-11374) Improve the details of the exceptions thrown by the BinaryOperator
[ https://issues.apache.org/jira/browse/SLING-11374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu reassigned SLING-11374:
------------------------------------
Assignee: Ashok Pelluru
> Improve the details of the exceptions thrown by the BinaryOperator
> ------------------------------------------------------------------
>
> Key: SLING-11374
> URL: https://issues.apache.org/jira/browse/SLING-11374
> Project: Sling
> Issue Type: Bug
> Components: HTL
> Reporter: PuzanovsP
> Assignee: Ashok Pelluru
> Priority: Minor
> Time Spent: 1h
> Remaining Estimate: 0h
>
> When exception occurs:
> org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: Operands are not of the same type: the equality operator can only be applied to String, Number and Boolean types.
>
> Trace:
> Caused by: org.apache.sling.scripting.sightly.compiler.SightlyCompilerException: Operands are not of the same type: the equality operator can only be applied to String, Number and Boolean types. at org.apache.sling.scripting.sightly.compiler.expression.nodes.BinaryOperator.strictEq(BinaryOperator.java:247) [org.apache.sling.scripting.sightly.compiler:1.0.22.1_4_0] at org.apache.sling.scripting.sightly.apps.frontdoor.components.content.twoResponsiveColumns.twoResponsiveColumns_html.render(twoResponsiveColumns_html.java:63)
>
> Please improve the log and tell us actually which property mismatched and which type it had.
> ---------------
> When we try to compare Long with Number would be great if it worked actually and not failed with this error.
> Thanks a lot!
--
This message was sent by Atlassian Jira
(v8.20.7#820007)