Announcement Announcement Module
Collapse
No announcement yet.
TraversableResolver.isReachable() and UnsupportedOperationException in resin 4 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • TraversableResolver.isReachable() and UnsupportedOperationException in resin 4

    Hi!

    I get a TraversableResolver.isReachable() when saving objects when running resin 4.0.6. I'm using Spring 3.0.2.RELEASE.

    Some of my dependencies:

    Code:
    <dependency>
    	<groupId>javax.persistence</groupId>
    	<artifactId>com.springsource.javax.persistence</artifactId>
    	<version>1.99.0</version>
    </dependency>
    
    <dependency>
    	<groupId>org.hibernate</groupId>
    	<artifactId>com.springsource.org.hibernate.validator</artifactId>
    	<version>4.0.2.GA</version>
    </dependency>
    
    <dependency>
    	<groupId>javax.annotation</groupId>
    	<artifactId>com.springsource.javax.annotation</artifactId>
    	<version>1.0.0</version>
    </dependency>
    <dependency>
    	<groupId>org.hibernate</groupId>
    	<artifactId>com.springsource.org.hibernate.annotations</artifactId>
    	<version>3.4.0.GA</version>
    </dependency>
    
    <dependency>
    	<groupId>org.hibernate</groupId>
    	<artifactId>com.springsource.org.hibernate.ejb</artifactId>
    	<version>3.4.0.GA</version>
    </dependency>
    When running mvn jetty:run with jetty 6.1.10 it works just fine to save objects to the database. With resin 4.0.6 I get the following stacktrace:

    Code:
    ERROR 12.05 10:12:12:701 (ErrorHandler.java:resolveException:25) - javax.validation.ValidationException: Call to TraversableResolver.isReachable() threw an exception
    	at org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:773)
    	at org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:331)
    	at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForRedefinedDefaultGroup(ValidatorImpl.java:278)
    	at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:260)
    	at org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:213)
    	at org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:119)
    	at org.springframework.validation.beanvalidation.SpringValidatorAdapter.validate(SpringValidatorAdapter.java:74)
    	at org.springframework.validation.DataBinder.validate(DataBinder.java:692)
    	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doBind(HandlerMethodInvoker.java:797)
    	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:349)
    	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:169)
    	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:421)
    	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:409)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:158)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:96)
    	at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)
    	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:88)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:88)
    	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:88)
    	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183)
    	at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:103)
    	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:286)
    	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:783)
    	at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:647)
    	at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:613)
    	at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:566)
    	at com.caucho.network.listen.TcpSocketLink$AcceptTask.doTask(TcpSocketLink.java:1147)
    	at com.caucho.network.listen.TcpSocketLink$ConnectionReadTask.runThread(TcpSocketLink.java:1084)
    	at com.caucho.network.listen.TcpSocketLink$AcceptTask.run(TcpSocketLink.java:1115)
    	at com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901)
    	at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)
    Caused by: java.lang.UnsupportedOperationException
    	at javax.persistence.Persistence.getPersistenceUtil(Persistence.java:114)
    	at org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33)
    	at org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112)
    	at org.hibernate.validator.engine.resolver.SingleThreadCachedTraversableResolver.isReachable(SingleThreadCachedTraversableResolver.java:47)
    	at org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:764)
    	... 61 more

    I have also tried with javax.persistance 2.0.0 and get the same stacktrace with resin 4.0.6 and with jetty 6.1.10 I then get the following stacktrace:


    Code:
    HTTP ERROR: 500
    
    org.hibernate.ejb.HibernatePersistence.getProviderUtil()Ljavax/persistence/spi/ProviderUtil;
    RequestURI=/medark/radiologi/diagnosis/edit.html
    
    Caused by:
    
    java.lang.AbstractMethodError: org.hibernate.ejb.HibernatePersistence.getProviderUtil()Ljavax/persistence/spi/ProviderUtil;
    	at javax.persistence.Persistence$PersistenceUtilImpl.isLoaded(Persistence.java:110)
    	at org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33)
    	at org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112)
    	at org.hibernate.validator.engine.resolver.SingleThreadCachedTraversableResolver.isReachable(SingleThreadCachedTraversableResolver.java:47)
    	at org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:764)
    	at org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:331)

    The full stacktrace can be found at https://vortex.uio.no/brukere/kajh/t...ackstrace2.txt

    Any ideas on how to solve this issue(s)?


    -Kaj
Working...
X