On the JSP page, I am doing like this ${records.size}
where records is of Set type. Then I am getting this error.
I check the documentation and size() method is available in org.hibernate.collection.internal.PersistentSet.
So what could be possible reason for this error?
org.hibernate.collection.internal.PersistentSet' does not have the property 'size'
1.5k views Asked by ruturaj powar At
1
There are 1 answers
Related Questions in JSP
- Unable to compile the class for JSP in tomcat 8.5.95
- Liberty doesn't compile JSP
- Why ${message} appear as it is in View and not the real message passed in Spring MVC controller
- How can i connect my 4 objects in my jsp file so it can run perfectly
- An error occurred: Cannot run program "C:\Users\ford\AppData\Local\Programs\Python\Python311\python.exe": CreateProcess error=5, Access is denied
- Issue with dropdown menu in the jsp page(cannot import the choice in the db)
- java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.ImportTab_jsp
- javascript function changes when used with jsp
- Database ConnectionError
- Where should i place my index.jsp and index.jsp1 for my app to run in tomcat app
- How to fix checkmarx reflected XSS attack in JSP page?
- JSP: "object cannot be resolved to a variable" when used in nested tag
- How to use JSTL in JSP: jakarta.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- How to setup jsp Pages on a Webserver
- File uploaded from jsp is not making it to servlet
Related Questions in EL
- Why ${message} appear as it is in View and not the real message passed in Spring MVC controller
- jakarta.el.PropertyNotWritableException: Illegal Syntax for Set Operation for the PrimeFaces <p:selectOneMenu /> component
- PrimeFaces menuItem #{component}
- The server does not display the answer when calculating
- How to define variable with namespace in EL processor?
- EL expressions are not evaluated in JSP
- I can invoke static methods in EL, is this as per the spec?
- Property [login] not found on type [com.app.dev.controller.LoginController]
- Access JavaBean object and pass argument to JSP using EL
- How to remove previous request parameter from URL query string
- How to evaluate a scriptlet variable in EL
- How to pass item of h:dataTable with ResultSetDataModel to action method?
- JSP question about accessing keys in an object?
- Upgrading Apache Tomcat from 7.0.50 JSTL stops working
- JSF EL overload method inheritance
Related Questions in PROPERTYNOTFOUNDEXCEPTION
- Extending p:fileUpload throws jakarta.el.PropertyNotFoundException: The class does not have the property 'upload'
- Property [login] not found on type [com.app.dev.controller.LoginController]
- JSF 2.0 PropertyNotFoundException ManageBean
- javax.faces.component.UpdateModelException: javax.el.PropertyNotFoundException. Target Unreachable, identifier resolved to null
- /index.xhtml @11,63 value="#{user.name}": Target Unreachable, identifier 'user' resolved to null
- javax.el.PropertyNotFoundException: Target Unreachable, identifier 'IndexBacking' resolved to null
- JSP Error in ForEach Loop and PropertyNotFoundExceptions
- org.hibernate.collection.internal.PersistentSet' does not have the property 'size'
- Java PropertyNotFoundException in JSP
- Property '{nameOfProperty}' not found on type Bean
- jsf target unreachable, identifier [bean] resolved to null
- WebSphere JSF property not found (on a setup equivalent to one that works)
- JSF 2.3 first time, viewScoped managedBean not found
- Running working JSF application as Spring Boot throws javax.el.PropertyNotFoundException: Target Unreachable, identifier resolved to null
- Attribute that can be null in JSF form
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?
Popular Tags
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)
The syntax
${records.size}basically tells EL to print thesizeproperty (not method!) of the bean as identified by${records}. When EL needs to obtain a property, then it will look up the getter method in the class behind the bean. So when the property name issizethen the expected getter method isgetSize(). If this method is absent, then you will face exactly the exception you're currently facing. See also javax.el.PropertyNotFoundException: Property 'foo' not found on type com.example.Bean.And indeed, the
org.hibernate.collection.internal.PersistentSetdoes not have thegetSize()method. I.e. it does indeed not have thesizeproperty at all. So the exception is completely right.Basically you want to invoke the
size()method instead, not the getter method behind thesizeproperty. Fix your EL expression accordingly: