SightlyCompilerException: BinaryOperator.strictEq(BinaryOperator.java:238) | Community
Skip to main content
kabelol26243436
Level 2
Sep 29, 2017 7:52 AM UTC
Solved

SightlyCompilerException: BinaryOperator.strictEq(BinaryOperator.java:238)

Hi all

After upgrading from 6.1 to 6.3, my HTML page is not rendering. A sightly compiler exception is thrown when browser sends request for this page.

This exeption ony occurs on publish, the author instance can render the page just fine.

My component is of type wcm/foundation/components/page

27.09.2017 10:15:31.272 ERROR [10.5.2.154 [1506500131064] GET /content/suninternational/properties/table-bay.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException 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:238) at org.apache.sling.scripting.sightly.apps.suninternational.components.content.flyoutCompone nt.flyoutComponent_html.render(flyoutComponent_html.java:81)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Sep 29, 2017 2:23 PM UTC

can't you do ${list}?

4 replies

kabelol26243436
Level 2
Oct 3, 2017 7:54 AM UTC

Thanks guys

feike_visser​ made the change as you've suggested. Works fine.

Translate
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Sep 29, 2017 2:23 PM UTC

can't you do ${list}?

Translate
kabelol26243436
Level 2
Sep 29, 2017 1:47 PM UTC

The cause was this line of code:
data-sly-test="${list[0] !=null}"

Replaced it with:

data-sly-test="${list.size != null}"

I am not seeing adverse effects from this change. Any issues you can think of with this change?

Translate
smacdonald2008
Level 10
Sep 29, 2017 1:36 PM UTC

This should not be happening and appears to be a upgrade bug. Please open a support ticket as you may require a hotfix.

Translate