java.lang.IllegalArgumentException: Could not determine a repository key from /unites/search/with_params.

Spring JIRA | Sylvain LB | 5 months 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. 1

    Hello, I have this following code in my application : {code:java} @RepositoryRestController @RequestMapping("unites") @ExposesResourceFor(Unite.class) public class UniteController { .... @ResponseBody @RequestMapping(value = "/search/with_params", method = RequestMethod.GET) public PagedResources<?> searchWithParams(@Param("code") final String code ....) final Pageable pageRequest) { final Page<Unite> pages = uniteRepository.searchWithParams(code, designation, date, pageRequest); if (pages.hasContent()) { return assembler.toResource(pages); } return assembler.toEmptyResource(pages, Unite.class, null); } } {code} Seem like there is a regression with the last version of spring-boot@1.4.1 : With spring-data-rest-webmvc@2.5.3, I have got this error while asking the url {noformat} java.lang.IllegalArgumentException: Could not determine a repository key from /unites/search/with_params. at org.springframework.data.rest.webmvc.support.DomainClassResolver.resolve(DomainClassResolver.java:64) at org.springframework.data.rest.webmvc.json.JacksonMappingAwareSortTranslator.translateSort(JacksonMappingAwareSortTranslator.java:66) at org.springframework.data.rest.webmvc.json.MappingAwarePageableArgumentResolver.resolveArgument(MappingAwarePageableArgumentResolver.java:72) at org.springframework.data.rest.webmvc.json.MappingAwarePageableArgumentResolver.resolveArgument(MappingAwarePageableArgumentResolver.java:43) at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121) at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:161) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:128) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) {noformat}

    Spring JIRA | 5 months ago | Sylvain LB
    java.lang.IllegalArgumentException: Could not determine a repository key from /unites/search/with_params.
  2. 0

    RESTEasy / Mailing Lists

    sourceforge.net | 2 years ago
    java.lang.IllegalArgumentException: You did not supply enough values to fill path parameters at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
  3. 0

    jboss mysql connection validation

    Stack Overflow | 7 years ago | Marko
    java.lang.IllegalArgumentException: id to load is required for loading org.hibernate.event.LoadEvent.&lt;init&gt;(LoadEvent.java:74) org.hibernate.event.LoadEvent.&lt;init&gt;(LoadEvent.java:56) org.hibernate.impl.SessionImpl.get(SessionImpl.java:839) org.hibernate.impl.SessionImpl.get(SessionImpl.java:835) org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182) org.jboss.seam.persistence.EntityManagerProxy.find(EntityManagerProxy.java:87) com.klikmee.tc.providers.ProviderProxy.parseTransactionId(ProviderProxy.java:137) com.klikmee.tc.providers.ProviderProxy.cancel(ProviderProxy.java:382) com.klikmee.tc.providers.ProviderProxy.cancel(ProviderProxy.java:359) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet$RequestProcessor.processReverseTransaction(DatecsTerminalCommunicatorServlet.java:395) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet$RequestProcessor.process(DatecsTerminalCommunicatorServlet.java:123) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet.doPost(DatecsTerminalCommunicatorServlet.java:808) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet.doGet(DatecsTerminalCommunicatorServlet.java:862)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    openCRX - Enterprise Class CRM / Mailing Lists

    sourceforge.net | 1 year ago
    java.lang.IllegalArgumentException: DefaultDomain.BAD_PARAMETER > BasicException[0] > Class = org.w3c.spi.AlternativeDatatypeFactory > Method = newDateTime > Line = 117 > ExceptionClass = java.lang.IllegalArgumentException > ExceptionDomain = DefaultDomain > ExceptionCode = BAD_PARAMETER > Description = Could not parse as org::w3c::dateTime value > Timestamp = 2014-10-13T14:30:47.670Z > Parameters: > 0: value = 20150505T000000 > StackTrace: > at > org.w3c.spi.AlternativeDatatypeFactory.newDateTime(AlternativeDatatypeFactory.java:117) > at > org.w3c.spi.AlternativeDatatypeFactory.newDateTime(AlternativeDatatypeFactory.java:66) > at > org.w3c.spi.StandardPrimitiveTypeParser.parse(StandardPrimitiveTypeParser.java:140) > at org.w3c.spi2.Datatypes.create(Datatypes.java:94)
  6. 0

    [Tomcat-users] Deploying to a subfolder - Grokbase

    grokbase.com | 1 year ago
    java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\apps\myapp does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav a:141) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext. java:3957) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126 ) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:124 7) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet. java:604) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet. java:129)

    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

      Could not determine a repository key from /unites/search/with_params.

      at org.springframework.data.rest.webmvc.support.DomainClassResolver.resolve()
    2. Spring Data REST - WebMVC
      MappingAwarePageableArgumentResolver.resolveArgument
      1. org.springframework.data.rest.webmvc.support.DomainClassResolver.resolve(DomainClassResolver.java:64)
      2. org.springframework.data.rest.webmvc.json.JacksonMappingAwareSortTranslator.translateSort(JacksonMappingAwareSortTranslator.java:66)
      3. org.springframework.data.rest.webmvc.json.MappingAwarePageableArgumentResolver.resolveArgument(MappingAwarePageableArgumentResolver.java:72)
      4. org.springframework.data.rest.webmvc.json.MappingAwarePageableArgumentResolver.resolveArgument(MappingAwarePageableArgumentResolver.java:43)
      4 frames
    3. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)
      2. org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:161)
      3. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:128)
      3 frames
    4. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
      8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
      8 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      1 frame
    6. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame