java.lang.IllegalArgumentException: name cannot be null or empty

mkyong.com | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Google App Engine + Spring MVC, CRUD example with datastore low level api

    mkyong.com | 1 month ago
    java.lang.IllegalArgumentException: name cannot be null or empty
  2. 0

    How to specify legacy incremental IDs with Java

    Stack Overflow | 4 years ago | Amorgos
    java.lang.IllegalArgumentException: id cannot be zero
  3. 0

    Confirmed Errata | O'Reilly Media Programming Google App Engine with Java

    oreilly.com | 1 year ago
    java.lang.IllegalArgumentException: id cannot be zero
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Restlet with many @Get in my server side

    Stack Overflow | 5 years ago | Tyvain
    java.lang.IllegalArgumentException: id cannot be zero
  6. 0
    samebug tip
    You didn't provide enough information to auto-configure a DataSource. You have to add some properties to application.properties with the spring.datasource prefix. You'll need to provide an appropriate url and driver class name.

    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

      name cannot be null or empty

      at com.google.appengine.api.datastore.KeyFactory.createKey()
    2. Google AppEngine
      KeyFactory.createKey
      1. com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java:70)
      2. com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java:57)
      2 frames
    3. com.mkyong.controller
      CustomerController.add
      1. com.mkyong.controller.CustomerController.add(CustomerController.java:42)
      1 frame
    4. 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
    5. com.google.appengine
      Runtime.invoke
      1. com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:114)
      1 frame
    6. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
      2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
      2 frames
    7. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      8. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      8 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    9. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      2 frames
    10. AppEngine Testing
      HeaderVerificationFilter.doFilter
      1. com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
      1 frame
    11. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    12. com.google.appengine
      ServeBlobFilter.doFilter
      1. com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60)
      1 frame
    13. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    14. Google AppEngine
      TransactionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
      1 frame
    15. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    16. AppEngine Testing
      StaticFileFilter.doFilter
      1. com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
      1 frame
    17. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    18. AppEngine Testing
      BackendServersFilter.doFilter
      1. com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
      1 frame
    19. Jetty Server
      WebAppContext.handle
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      6 frames
    20. AppEngine Testing
      DevAppEngineWebAppContext.handle
      1. com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:78)
      1 frame
    21. Jetty Server
      HandlerWrapper.handle
      1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      1 frame
    22. AppEngine Testing
      JettyContainerService$ApiProxyHandler.handle
      1. com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:369)
      1 frame
    23. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      2. org.mortbay.jetty.Server.handle(Server.java:326)
      3. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      4. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
      5. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
      6. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      7. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      8. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      8 frames
    24. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame