rest-api-samples icon indicating copy to clipboard operation
rest-api-samples copied to clipboard

exception on initialize doesn't print completely

Open mattdotgreenlake opened this issue 5 years ago • 1 comments

see exception handling here https://github.com/tableau/rest-api-samples/blob/master/java/src/com/tableausoftware/documentation/api/rest/util/RestApiUtils.java#L129 we put exceptions into the variable 'ex', but on the next line where we send the exception string, we don't include the variable to print the specific exceptions that were caught.

mattdotgreenlake avatar Nov 19 '19 19:11 mattdotgreenlake

After downloaded the git code. 1.download the right xsd xml according you tableau server. https://help.tableau.com/v2020.1/api/rest_api/en-us/REST/rest_api_ref.htm 2.replace classes under binging package. generate new complex type Java Classes use java xjc command. i think the root cause is that git complex type classes are not match the xsd. you may try it.

hqren avatar Jul 01 '20 01:07 hqren