Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1465

CNFE in Hibernate Validator 4.2: org.joda.time.ReadableInstant

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      See above description for workaround

      Show
      See above description for workaround

    Description

      Jenkins build 1471 provides Hibernate Validator 4.2 which has a regression so that a CNFE regarding org.joda.time.ReadableInstant is thrown. This wasn't the case for HV 4.1.

      The issue goes away, when I do the following in modules\org\hibernate\validator\main

      • add joda-time-1.6.2.jar and
      • edit module.xml inside the section <resources> and add the line <resource-root path="joda-time-1.6.2.jar"/>

      Stacktrace:
      10:27:16,474 Schwerwiegend [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-2) Error Rendering View[/kundenverwaltung/updatePrivatkunde.xhtml]: java.lang.TypeNotPresentException: Type org.joda.time.ReadableInstant not present
      at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) [:1.7.0]
      at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) [:1.7.0]
      at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [:1.7.0]
      at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) [:1.7.0]
      at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) [:1.7.0]
      at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [:1.7.0]
      at sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:100) [:1.7.0]
      at java.lang.Class.getGenericInterfaces(Class.java:814) [:1.7.0]
      at org.hibernate.validator.util.ValidatorTypeHelper.resolveTypeForClassAndHierarchy(ValidatorTypeHelper.java:127) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.util.ValidatorTypeHelper.resolveTypes(ValidatorTypeHelper.java:88) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.util.ValidatorTypeHelper.extractType(ValidatorTypeHelper.java:64) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.util.ValidatorTypeHelper.getValidatorsTypes(ValidatorTypeHelper.java:56) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.engine.ConstraintTree.<init>(ConstraintTree.java:99) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.engine.ConstraintTree.<init>(ConstraintTree.java:79) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.MetaConstraint.<init>(MetaConstraint.java:59) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.BeanMetaConstraint.<init>(BeanMetaConstraint.java:43) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.BeanMetaDataImpl.createBeanMetaConstraint(BeanMetaDataImpl.java:721) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.BeanMetaDataImpl.initFieldConstraints(BeanMetaDataImpl.java:615) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.BeanMetaDataImpl.initClass(BeanMetaDataImpl.java:547) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.BeanMetaDataImpl.createMetaData(BeanMetaDataImpl.java:540) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.BeanMetaDataImpl.<init>(BeanMetaDataImpl.java:209) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.metadata.BeanMetaDataImpl.<init>(BeanMetaDataImpl.java:163) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.engine.ValidatorImpl.getBeanMetaData(ValidatorImpl.java:1211) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.hibernate.validator.engine.ValidatorImpl.getConstraintsForClass(ValidatorImpl.java:251) [hibernate-validator-4.2.0.Final.jar:4.2.0.Final]
      at org.richfaces.validator.BeanValidatorServiceImpl.processBeanAttribute(BeanValidatorServiceImpl.java:77) [richfaces-components-ui-4.0.0.Final.jar:]
      at org.richfaces.validator.BeanValidatorServiceImpl.getConstrains(BeanValidatorServiceImpl.java:65) [richfaces-components-ui-4.0.0.Final.jar:]
      at org.richfaces.component.behavior.ClientValidatorImpl.getValidators(ClientValidatorImpl.java:294) [richfaces-components-ui-4.0.0.Final.jar:]
      at org.richfaces.renderkit.html.ClientValidatorRenderer.createValidatorScript(ClientValidatorRenderer.java:145) [richfaces-components-ui-4.0.0.Final.jar:]
      at org.richfaces.renderkit.html.ClientValidatorRenderer.buildAndStoreValidatorScript(ClientValidatorRenderer.java:130) [richfaces-components-ui-4.0.0.Final.jar:]
      at org.richfaces.renderkit.html.ClientValidatorRenderer.getScript(ClientValidatorRenderer.java:64) [richfaces-components-ui-4.0.0.Final.jar:]
      at javax.faces.component.behavior.ClientBehaviorBase.getScript(ClientBehaviorBase.java:103) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at org.richfaces.component.behavior.ClientValidatorImpl.getScript(ClientValidatorImpl.java:98) [richfaces-components-ui-4.0.0.Final.jar:]
      at com.sun.faces.renderkit.RenderKitUtils.getSingleBehaviorHandler(RenderKitUtils.java:1590) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.RenderKitUtils.renderHandler(RenderKitUtils.java:1690) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.RenderKitUtils.renderOnchange(RenderKitUtils.java:370) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.TextRenderer.getEndTextToRender(TextRenderer.java:134) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:170) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:883) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:388) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at java.lang.Thread.run(Thread.java:722) [:1.7.0]
      Caused by: java.lang.ClassNotFoundException: org.joda.time.ReadableInstant from [Module "org.hibernate.validator:main" from local module loader @57f993 (roots: C:\Software\jboss-7.1.0.Alpha1-b1471\modules)]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
      at java.lang.Class.forName0(Native Method) [:1.7.0]
      at java.lang.Class.forName(Class.java:264) [:1.7.0]
      at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) [:1.7.0]
      ... 73 more

      Attachments

        Issue Links

          Activity

            People

              smarlow@redhat.com Scott Marlow
              juergen.zimmermann Juergen Zimmermann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: