java.lang.IllegalStateException

The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web24473

  • via Stack Overflow by Filipe Carvalho
    , 11 months ago
    The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded
  • The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded
  • The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded
  • Stack trace

    • java.lang.IllegalStateException: The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded at org.glassfish.jersey.server.internal.inject.FormParamValueFactoryProvider$FormParamValueFactory.ensureValidRequest(FormParamValueFactoryProvider.java:183)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.internal.inject.FormParamValueFactoryProvider$FormParamValueFactory.getForm(FormParamValueFactoryProvider.java:167)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.internal.inject.FormParamValueFactoryProvider$FormParamValueFactory.provide(FormParamValueFactoryProvider.java:118)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.spi.internal.ParamValueFactoryWithSource.provide(ParamValueFactoryWithSource.java:71)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:90)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:127)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[jersey-common-2.22.1.jar:na] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[jersey-common-2.22.1.jar:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[jersey-common-2.22.1.jar:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[jersey-common-2.22.1.jar:na] at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[jersey-common-2.22.1.jar:na] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[jersey-common-2.22.1.jar:na] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[jersey-server-2.22.1.jar:na] at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)[jersey-container-servlet-core-2.22.1.jar:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    2 times, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    7 more bugmates