Skip to content
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

serializeException functionality issue #66

Closed
matejj opened this issue Feb 19, 2013 · 2 comments
Closed

serializeException functionality issue #66

matejj opened this issue Feb 19, 2013 · 2 comments
Assignees
Milestone

Comments

@matejj
Copy link

matejj commented Feb 19, 2013

Hi,
I am testing new serialize exception functionality included in 1.1.0-snapshot version. It works fine when I am trying it for example with curl like this:

curl http://<host>/jolokia/write/<object-name>/<variable>/<value>?serializeException=true

However, I don't know how to programmatically set this functionality on. I think it would be nice if org.jolokia.client.request.J4pQueryParameter enum would contains SERIALIZE_EXCEPTION constant (similarly like ConfigKey enum). Then I think it will be possible to perform call like this:

Map<J4pQueryParameter,String> pProcessingOptions = new HashMap<J4pQueryParameter,String>();
pProcessingOptions.put(J4pQueryParameter.SERIALIZE_EXCEPTION, "true");

J4pClient j4pClient = new J4pClient(jolokiaUrl);
J4pExecRequest execReq = new J4pExecRequest(objectName, operationName);
j4pClient.execute(execReq, "POST", pProcessingOptions);
@rhuss
Copy link
Member

rhuss commented Feb 20, 2013

Sorry, I forgot to add the new options to the Java client library. This will be fixed for 1.1.0.

Thanks for spotting this ...

@ghost ghost assigned rhuss Feb 20, 2013
rhuss added a commit that referenced this issue Feb 22, 2013
The options serializeException, canonicalNaming and includeStacktrace has been added to the set of allowed query parameters for the Java client lib. #66
@rhuss
Copy link
Member

rhuss commented Feb 26, 2013

Implemented and updated reference manual.

@rhuss rhuss closed this as completed Feb 26, 2013
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

2 participants