org.xwiki.properties.PropertyException: Failed to validate bean: [must be greater than or equal to 1]

XWiki.org JIRA | Tran Hung Phong | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [Steps] 1. Adding macro "Table of contents" 2. Enter not-number-value to "Depth" or "Start" parameter. Press "Insert Macro" button. [Expect results] Generate a "warning message" macro to screen instead of printing stack trace to screen. [Actual results] 1. Can not add macros 2. Throw exception: Invalid macro parameters used for the "toc" macro org.xwiki.properties.PropertyException: Failed to validate bean: [must be greater than or equal to 1] at org.xwiki.properties.internal.DefaultBeanManager.validateBean(DefaultBeanManager.java:178) at org.xwiki.properties.internal.DefaultBeanManager.populate(DefaultBeanManager.java:113) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:170) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:58) at org.exoplatform.wiki.rendering.impl.RenderingServiceImpl.convert(RenderingServiceImpl.java:236) at org.exoplatform.wiki.rendering.impl.RenderingServiceImpl.render(RenderingServiceImpl.java:130) at org.exoplatform.wiki.service.impl.WikiRestServiceImpl.getWikiPageContent(WikiRestServiceImpl.java:167) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exoplatform.services.rest.impl.method.DefaultMethodInvoker$1.run(DefaultMethodInvoker.java:188) at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedExceptionAction(SecurityHelper.java:309) at org.exoplatform.services.rest.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:184) at org.exoplatform.services.rest.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:177) at org.exoplatform.services.rest.impl.RequestDispatcher.invokeSubResourceMethod(RequestDispatcher.java:657) at org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.java:602) at org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.java:507) at org.exoplatform.services.rest.impl.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:148) at org.exoplatform.services.rest.servlet.RestServlet.onService(RestServlet.java:85) at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:114) at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84) at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:421) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662)

    XWiki.org JIRA | 6 years ago | Tran Hung Phong
    org.xwiki.properties.PropertyException: Failed to validate bean: [must be greater than or equal to 1]

    Root Cause Analysis

    1. org.xwiki.properties.PropertyException

      Failed to validate bean: [must be greater than or equal to 1]

      at org.xwiki.properties.internal.DefaultBeanManager.validateBean()
    2. org.xwiki.properties
      DefaultBeanManager.populate
      1. org.xwiki.properties.internal.DefaultBeanManager.validateBean(DefaultBeanManager.java:178)
      2. org.xwiki.properties.internal.DefaultBeanManager.populate(DefaultBeanManager.java:113)
      2 frames
    3. org.xwiki.rendering
      DefaultTransformationManager.performTransformations
      1. org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:170)
      2. org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
      3. org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
      4. org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:58)
      4 frames
    4. org.exoplatform.wiki
      WikiRestServiceImpl.getWikiPageContent
      1. org.exoplatform.wiki.rendering.impl.RenderingServiceImpl.convert(RenderingServiceImpl.java:236)
      2. org.exoplatform.wiki.rendering.impl.RenderingServiceImpl.render(RenderingServiceImpl.java:130)
      3. org.exoplatform.wiki.service.impl.WikiRestServiceImpl.getWikiPageContent(WikiRestServiceImpl.java:167)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. org.exoplatform.services
      DefaultMethodInvoker$1.run
      1. org.exoplatform.services.rest.impl.method.DefaultMethodInvoker$1.run(DefaultMethodInvoker.java:188)
      1 frame
    7. org.exoplatform.commons
      SecurityHelper.doPrivilegedExceptionAction
      1. org.exoplatform.commons.utils.SecurityHelper.doPrivilegedExceptionAction(SecurityHelper.java:309)
      1 frame
    8. org.exoplatform.services
      RestServlet.onService
      1. org.exoplatform.services.rest.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:184)
      2. org.exoplatform.services.rest.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:177)
      3. org.exoplatform.services.rest.impl.RequestDispatcher.invokeSubResourceMethod(RequestDispatcher.java:657)
      4. org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.java:602)
      5. org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.java:507)
      6. org.exoplatform.services.rest.impl.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:148)
      7. org.exoplatform.services.rest.servlet.RestServlet.onService(RestServlet.java:85)
      7 frames
    9. org.exoplatform.container
      AbstractHttpServlet.service
      1. org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    12. org.exoplatform.web
      GenericFilter.doFilter
      1. org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:114)
      2. org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
      3. org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:78)
      3 frames
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    14. org.exoplatform.web
      CacheUserProfileFilter.doFilter
      1. org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
      1 frame
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    16. org.exoplatform.frameworks
      ThreadLocalSessionProviderInitializedFilter.doFilter
      1. org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
      1 frame
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    18. org.exoplatform.services
      SetCurrentIdentityFilter.doFilter
      1. org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88)
      1 frame
    19. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    20. org.exoplatform.web
      ClusteredSSOFilter.doFilter
      1. org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73)
      1 frame
    21. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    22. org.exoplatform.container
      PortalContainerFilter.doFilter
      1. org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:69)
      1 frame
    23. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      8. org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:421)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      10 frames
    24. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      3 frames
    25. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame