java.lang.IllegalArgumentException: The MultiPartConfig instance we expected is not present. Have you registered the MultiPartConfigProvider class?

Java.net JIRA | cowwoc | 5 years ago
  1. 0

    [GLASSFISH-18482] WEB9031: WebappClassLoader unable to load resource - Java.net JIRA

    java.net | 11 months ago
    java.lang.IllegalArgumentException: The MultiPartConfig instance we expected is not present. Have you registered the MultiPartConfigProvider class?
  2. 0

    I don't know if this is related to GLASSFISH-14416 but every time I deploy my webapp on a fresh Glassfish instance I get this error: {code} INFO: Scanning for root resource and provider classes in the packages: com.homesforhumans.resource INFO: Root resource classes found: class com.homesforhumans.resource.PostalCodesResource INFO: No provider classes found. INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM' INFO: WEB0671: Loading application [com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT] at [/context] INFO: com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT was successfully deployed in 2,238 milliseconds. INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] INFO: Grizzly Framework 1.9.46 started in: 3ms - bound to [0.0.0.0:8181] SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [javax.ws.rs.core.Response$Status], because it has not yet been started, or was already stopped at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1401) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at com.sun.jersey.core.spi.factory.ResponseBuilderImpl.<init>(ResponseBuilderImpl.java:67) at com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.createResponseBuilder(AbstractRuntimeDelegate.java:99) at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:356) at javax.ws.rs.core.Response.status(Response.java:104) at com.sun.jersey.api.Responses.status(Responses.java:127) at com.sun.jersey.api.Responses.notFound(Responses.java:103) at com.sun.jersey.api.NotFoundException.<init>(NotFoundException.java:68) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1484) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:895) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:843) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:804) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) {code} I'm attaching my project file for your review.

    Java.net JIRA | 5 years ago | cowwoc
    java.lang.IllegalArgumentException: The MultiPartConfig instance we expected is not present. Have you registered the MultiPartConfigProvider class?
  3. 0

    I don't know if this is related to GLASSFISH-14416 but every time I deploy my webapp on a fresh Glassfish instance I get this error: {code} INFO: Scanning for root resource and provider classes in the packages: com.homesforhumans.resource INFO: Root resource classes found: class com.homesforhumans.resource.PostalCodesResource INFO: No provider classes found. INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM' INFO: WEB0671: Loading application [com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT] at [/context] INFO: com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT was successfully deployed in 2,238 milliseconds. INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] INFO: Grizzly Framework 1.9.46 started in: 3ms - bound to [0.0.0.0:8181] SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [javax.ws.rs.core.Response$Status], because it has not yet been started, or was already stopped at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1401) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at com.sun.jersey.core.spi.factory.ResponseBuilderImpl.<init>(ResponseBuilderImpl.java:67) at com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.createResponseBuilder(AbstractRuntimeDelegate.java:99) at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:356) at javax.ws.rs.core.Response.status(Response.java:104) at com.sun.jersey.api.Responses.status(Responses.java:127) at com.sun.jersey.api.Responses.notFound(Responses.java:103) at com.sun.jersey.api.NotFoundException.<init>(NotFoundException.java:68) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1484) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:895) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:843) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:804) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) {code} I'm attaching my project file for your review.

    Java.net JIRA | 5 years ago | cowwoc
    java.lang.IllegalArgumentException: The MultiPartConfig instance we expected is not present. Have you registered the MultiPartConfigProvider class?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    dropwizard users mailing list ()

    gmane.org | 6 months ago
    java.lang.IllegalArgumentException: The MultiPartConfig instance we expected is not present. Have you registered the MultiPartConfigProvider class?

    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

      The MultiPartConfig instance we expected is not present. Have you registered the MultiPartConfigProvider class?

      at com.sun.jersey.multipart.impl.MultiPartReaderClientSide.<init>()
    2. jersey-multipart
      MultiPartReaderServerSide.<init>
      1. com.sun.jersey.multipart.impl.MultiPartReaderClientSide.<init>(MultiPartReaderClientSide.java:102)
      2. com.sun.jersey.multipart.impl.MultiPartReaderServerSide.<init>(MultiPartReaderServerSide.java:71)
      2 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      4 frames
    4. jersey-core
      MessageBodyFactory.init
      1. com.sun.jersey.core.spi.component.ComponentConstructor._getInstance(ComponentConstructor.java:209)
      2. com.sun.jersey.core.spi.component.ComponentConstructor.getInstance(ComponentConstructor.java:179)
      3. com.sun.jersey.core.spi.component.ProviderFactory.__getComponentProvider(ProviderFactory.java:166)
      4. com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:137)
      5. com.sun.jersey.core.spi.component.ProviderServices.getComponent(ProviderServices.java:256)
      6. com.sun.jersey.core.spi.component.ProviderServices.getServices(ProviderServices.java:160)
      7. com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:176)
      8. com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)
      8 frames
    5. Jersey
      WebApplicationImpl$13.f
      1. com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1287)
      2. com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:171)
      3. com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:777)
      4. com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:773)
      4 frames
    6. jersey-core
      Errors.processWithErrors
      1. com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
      1 frame
    7. Jersey
      WebApplicationImpl.initiate
      1. com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:773)
      1 frame
    8. jersey-guice
      GuiceContainer.initiate
      1. com.sun.jersey.guice.spi.container.servlet.GuiceContainer.initiate(GuiceContainer.java:121)
      1 frame
    9. Jersey
      ServletContainer.init
      1. com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)
      2. com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:607)
      3. com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:208)
      4. com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
      5. com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:719)
      5 frames
    10. Guice - Servlet
      GuiceFilter.init
      1. com.google.inject.servlet.FilterDefinition.init(FilterDefinition.java:114)
      2. com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:98)
      3. com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:172)
      3 frames
    11. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
      2. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
      3. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4857)
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:5549)
      4 frames
    12. Glassfish
      WebModule.start
      1. com.sun.enterprise.web.WebModule.start(WebModule.java:499)
      1 frame
    13. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:936)
      2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:920)
      3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
      3 frames
    14. Glassfish
      WebApplication.start
      1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2010)
      2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1660)
      3. com.sun.enterprise.web.WebApplication.start(WebApplication.java:107)
      3 frames
    15. Private APIs of Glassfish
      ApplicationInfo.start
      1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
      2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
      3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
      3 frames
    16. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:512)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)
      2 frames
    17. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:414)
      1 frame
    18. Kernel Classes
      AdminAdapter.onMissingResource
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:351)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:366)
      3. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1075)
      4. com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:98)
      5. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1308)
      6. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1276)
      7. com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:479)
      8. com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:223)
      8 frames
    19. Grizzly Server
      StaticHttpHandler.service
      1. org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:293)
      1 frame
    20. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
      2 frames
    21. Grizzly Server
      HttpServerFilter.handleRead
      1. org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:163)
      2. org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:164)
      2 frames
    22. Grizzly
      AbstractThreadPool$Worker.run
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:78)
      7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:816)
      8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
      9. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      10. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      11. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      12. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:567)
      13. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:547)
      13 frames
    23. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame