Skip to content

REST URL 404 not found #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bernard01 opened this issue Apr 9, 2016 · 0 comments
Open

REST URL 404 not found #34

bernard01 opened this issue Apr 9, 2016 · 0 comments

Comments

@bernard01
Copy link

I cloned the GIT repo and ran the JavaFX app against a NetBeans registered GlassFish 4.1.1.
Then I started the JavaFX app and clicked the Start button which caused the error.

In the GlassFish log:

Info: Retrieved JsonObject: null for InboundJaxrsResponse{context=ClientResponse{method=GET, uri=http://localhost:4848/monitoring/domain/server/jvm/thread-system/deadlockedthreads, status=404, reason=Not Found}} deadlockedthreads
Warning: A system exception occurred during an invocation on EJB MonitoringController, method: public void org.lightfish.business.servermonitoring.boundary.MonitoringController.gatherAndPersist()

The problem clearly is the 404 error for the REST URL.

BTW earlier catching of the 404 could be:

RestDataCollector

public Response getResponse(String serverInstance, String uri) {
    String fullUri = getBaseURI(serverInstance) + uri;
    final Response response = getResponse(fullUri);
    if(response.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL){
        throw new RuntimeException("Invalid response: " + response);
    }
    return response;
}

Now it works after I activated monitoring. It appears that GlassFish has an initial state after installation where deadlockedthreads does not work. I could not reproduce the error later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant