java.lang.IllegalArgumentException: Only ONE Relations container is allowed in a Mapping Coding Scheme.

GitHub | leetal | 3 months ago
  1. 0

    GitHub comment 8#243436668

    GitHub | 3 months ago | leetal
    java.lang.IllegalArgumentException: Only ONE Relations container is allowed in a Mapping Coding Scheme.
  2. 0

    Application startup failed with org.hibernate:hibernate-search-orm.XYZ on class path

    GitHub | 2 years ago | dirkrathje
    java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)
  3. 0

    Issue of pagination in Spring Data JPA

    Stack Overflow | 5 years ago | Tom
    java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SubProtocolWebSocketHandler - No handlers

    Stack Overflow | 2 years ago
    org.springframework.web.context.ContextLoaderListener: org.springframework.context.ApplicationContextException: Failed to start bean 'subProtocolWebSocketHandler'; nested exception is java.lang.IllegalArgumentException: No handlers
  6. 0

    Given the following method signature {code}@Override public Page<SolrMediaEntity> findMediaByFilter(String type, PageRequest pageRequest); {code} I receive the following error: {code}Caused by: java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.domain.Page <package>.ICustomSolrMediaRepository.findMediaByFilter(java.lang.String,org.springframework.data.domain.PageRequest) at org.springframework.util.Assert.isTrue(Assert.java:65) at org.springframework.data.repository.query.QueryMethod.<init>(QueryMethod.java:84) {code} Debugging into class Parameters suggests the cause may be due to this line: {code} this.pageableIndex = types.indexOf(Pageable.class); {code} one of the parameter types is {{org.springframework.data.domain.PageRequest}}, which implements Pageable, but since indexOf will not match on PageRequest, property {{pageableIndex}} becomes -1 which causes o.s.d.r.q.Parameters#hasPageableParameter to return false in the constructor of QueryMethod: {code} Assert.isTrue(this.parameters.hasPageableParameter(), ... {code} and triggers the exception. I would expect iterating the parameter types and checking for {{Pageable.class.isAssignableFrom(parameterType)}} might be required. But maybe I am missing something?

    Spring JIRA | 6 months ago | David Rekowski
    java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.domain.Page <package>.ICustomSolrMediaRepository.findMediaByFilter(java.lang.String,org.springframework.data.domain.PageRequest)

  1. batwalrus76 1 times, last 1 week ago
  2. kjhdofjosvs 1 times, last 3 weeks ago
  3. j.kienzle 1 times, last 1 month ago
  4. Luka 2 times, last 2 months ago
  5. andyglick 1 times, last 3 months ago
4 more registered users
29 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Only ONE Relations container is allowed in a Mapping Coding Scheme.

    at org.springframework.util.Assert.isTrue()
  2. Spring Core
    Assert.isTrue
    1. org.springframework.util.Assert.isTrue(Assert.java:65)
    1 frame
  3. edu.mayo.cts2
    LexEvsMapVersionReadService.read
    1. edu.mayo.cts2.framework.plugin.service.lexevs.service.mapversion.CodingSchemeToMapVersionTransform.getFromToCodingSchemes(CodingSchemeToMapVersionTransform.java:150)
    2. edu.mayo.cts2.framework.plugin.service.lexevs.service.mapversion.CodingSchemeToMapVersionTransform.transformFullDescription(CodingSchemeToMapVersionTransform.java:92)
    3. edu.mayo.cts2.framework.plugin.service.lexevs.service.mapversion.LexEvsMapVersionReadService.transform(LexEvsMapVersionReadService.java:68)
    4. edu.mayo.cts2.framework.plugin.service.lexevs.service.mapversion.LexEvsMapVersionReadService.transform(LexEvsMapVersionReadService.java:43)
    5. edu.mayo.cts2.framework.plugin.service.lexevs.service.AbstractLexEvsCodeSystemService.getByVersionIdOrTag(AbstractLexEvsCodeSystemService.java:65)
    6. edu.mayo.cts2.framework.plugin.service.lexevs.service.mapversion.LexEvsMapVersionReadService.read(LexEvsMapVersionReadService.java:114)
    7. edu.mayo.cts2.framework.plugin.service.lexevs.service.mapversion.LexEvsMapVersionReadService.read(LexEvsMapVersionReadService.java:43)
    7 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. edu.mayo.cts2
    AbstractServiceAwareBean$1.invoke
    1. edu.mayo.cts2.framework.webapp.service.AbstractServiceAwareBean$1.invoke(AbstractServiceAwareBean.java:125)
    1 frame
  6. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    2 frames
  7. com.sun.proxy
    $Proxy60.read
    1. com.sun.proxy.$Proxy60.read(Unknown Source)
    1 frame
  8. edu.mayo.cts2
    MapVersionController$$FastClassByCGLIB$$9a17962f.invoke
    1. edu.mayo.cts2.framework.webapp.rest.controller.AbstractMessageWrappingController.doRead(AbstractMessageWrappingController.java:299)
    2. edu.mayo.cts2.framework.webapp.rest.controller.MapVersionController.getMapVersionByName(MapVersionController.java:479)
    3. edu.mayo.cts2.framework.webapp.rest.controller.MapVersionController$$FastClassByCGLIB$$9a17962f.invoke(<generated>)
    3 frames
  9. IDEA
    MethodProxy.invoke
    1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
    1 frame
  10. Spring AOP
    Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    3. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
    4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    5. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
    5 frames
  11. edu.mayo.cts2
    MapVersionController$$EnhancerByCGLIB$$a7d633ef.getMapVersionByName
    1. edu.mayo.cts2.framework.webapp.rest.controller.MapVersionController$$EnhancerByCGLIB$$a7d633ef.getMapVersionByName(<generated>)
    1 frame
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  13. Spring
    HandlerMethodInvoker.invokeHandlerMethod
    1. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
    1 frame
  14. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
    2. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
    3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
    4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
    5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    6 frames
  15. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    2 frames
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  17. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  19. edu.mayo.cts2
    AcceptHeaderAdjustingFilter.doFilter
    1. edu.mayo.cts2.framework.webapp.rest.filter.AcceptHeaderAdjustingFilter.doFilter(AcceptHeaderAdjustingFilter.java:63)
    1 frame
  20. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  21. edu.mayo.cts2
    AcceptHeaderAdjustingFilter.doFilter
    1. edu.mayo.cts2.framework.webapp.rest.filter.AcceptHeaderAdjustingFilter.doFilter(AcceptHeaderAdjustingFilter.java:63)
    1 frame
  22. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  23. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    2 frames
  24. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  25. edu.mayo.cts2
    JsonpCallbackFilter.doFilter
    1. edu.mayo.cts2.framework.webapp.rest.filter.jsonp.JsonpCallbackFilter.doFilter(JsonpCallbackFilter.java:95)
    1 frame
  26. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    2 frames
  27. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  28. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    2 frames
  29. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  30. edu.mayo.cts2
    OsgiExtensionPointFilterProxy.doFilter
    1. edu.mayo.cts2.framework.webapp.rest.osgi.OsgiExtensionPointFilterProxy.doFilter(OsgiExtensionPointFilterProxy.java:94)
    1 frame
  31. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  32. UrlRewriteFilter
    UrlRewriteFilter.doFilter
    1. org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
    2. org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    3. org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    4. org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
    4 frames
  33. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
    10 frames
  34. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
    3 frames
  35. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    2 frames
  36. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  37. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame