For some reason I'm getting an ExpressionSyntaxException: Malformed OGNL expression when using Thymeleaf's safe navigation operator (${inter.someObj?.field}). No issues if I get rid of the operator. Spring-boot 2.6.2, thymeleaf 3.0.14. Project is setup using Thymeleaf's OGNL and not the spring-boot-starter-thymeleaf with SpEl apparently. Does somebody know why am I getting this? And (hopefully) how to get rid of it?
Why am I getting an "ExpressionSyntaxException: Malformed OGNL expression" when using Thymeleaf's safe navigation operator?
996 Views Asked by Aspiring Dev At
1
There are 1 best solutions below
Related Questions in SPRING-BOOT
- Multi Tenancy in Spring - Partitioned Data Approach
- I have created a spring boot application with spring data JPA, Rest ,oracle and i am getting this ORA-00933: SQL command not properly ended
- Springboot: How to get an entity optional property and check null?
- How to create jasper report in spring boot rest api with jpa
- JSON Body is Not Passing Certain Strings
- Unresolved reference error is showing up after adding the dgs codegen plugin successfully
- Transaction silently rolled back
- JPA buddy error when generating JPA Entities from DB
- Migrating Spring Boot 2 to 3 throws org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
- Hibernate SQL Error: Missing FROM-clause entry for table "th1_1"
- Appwrite and / or Spring Boot Backend
- Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. I'm using Postgresql
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- springboot class org.hibernate.mapping.Bag cannot be cast to class org.hibernate.mapping.SimpleValue
- Spring security causing 404 with message "No static resource login"
Related Questions in THYMELEAF
- How to format Dates in Thymeleaf
- CSS applied for one endpoint but not for another in Thymeleaf
- th:style isn't working in my project depending on case true:false
- Thymeleaf does not use UTF-8 to transmit form data to rest endpoint
- Unresloved dependency in maven
- Can you help a tag look at the static resource path without looking at the controller
- style tag with Thymeleaf
- Can JSTL or Custom Tag Libraries be Called from Thymeleaf?
- I can't get redirected to my update page in Spring Boot 3 using Thymeleaf
- thymeleaf utext unescaped html not interpreted by browser
- How to register a formatter for a type in ThymeLeaf (non-web environment)
- Dynamically adding "active" class to a link based on the current url in thymeleaf and spring boot 3
- How object passes from controller to html page in Thymeleaf
- How do I specify user properties with Thymeleaf?
- Creating and filling the parts and subparts of a file
Related Questions in OGNL
- Error uplifting OGNL from 3.3.4 to 3.4.2 with struts2(6.3.0.2)
- Unable to access enum in Thymeleaf
- Radio button selection is not being saved on the front end in Struts2 upgrade to Struts 6.3.0.2
- Static method Math#random invocation in Thymeleaf using OGNL gets OgnlException: source is null for getProperty(null, "lang")
- How to use struts2 s:set variable inside s:select tag for list values?
- OGNL Indexing issue after migration to JBoss 7
- Struts OGNL expression
- OGNL 3.3.3: not compatible with spring boot 2.7.2 because of thymeleaf?
- Access and process field in an Apache Camel exchange
- How to get source path and alternate text values from properties file in Struts2 for inserting images? In Struts1 altKey and srcKey were used for this
- struts2 s:if tag behaves differently for string and boolean
- Why am I getting an "ExpressionSyntaxException: Malformed OGNL expression" when using Thymeleaf's safe navigation operator?
- arthas ognl map return null
- Display selected values in dropdown box in struts 2 page
- Unexpected result using Thymeleaf arithmetic
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
According to https://northcoder.com/post/thymeleaf-vs-spel-vs-ognl/ the safe navigation operator is only available when using the Spring Expression Language: