Thanks to visit codestin.com
Credit goes to github.com

Skip to content

POST parameters not recognized #11

@Stefku

Description

@Stefku

I deployed the console embedded and I face the problem that I cannot send commands (operations in language of jmx).

Debugging shows, that stringParams here https://github.com/lbovet/jminix/blob/master/src/main/java/org/jminix/console/resource/OperationResource.java#L79 has no value.

The params are available though. The console is working right with the following patch

Map<String, String[]> parameterMap = ((ServletCall) ((HttpRequest) ((OperationResource) this).getRequest()).getHttpCall()).getRequest().getParameterMap();
String[] params = parameterMap.get("param");
stringParams = params;

I try to find out if I have a problem with my configuration, but without success. Does anyone has a hint what the problem could be?

Cheers
Stefku

My configuration for spring boot

<dependency>
    <groupId>org.jminix</groupId>
    <artifactId>jminix</artifactId>
    <version>1.2.0</version>
</dependency>
@Configuration
public class JMinixConfig {
    @Bean
    public ServletRegistrationBean jminixServlet() {
        ServletRegistrationBean servletBean = new ServletRegistrationBean();
        servletBean.addUrlMappings("/admin/jminix/*");
        servletBean.setServlet(new org.jminix.console.servlet.MiniConsoleServlet());
        return servletBean;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions