java - Resource class com.x.x.xresource class can not be instantiated due to InvocationTargetException when testing from PostMan -


i have been trying test java adapter postman tool (the 1 suggested ibm mobilefirst), when testing java adapter getting below error message

resource class com.x.x.xresource can not instantiated due invocationtargetexception when testing postman

this sounds similar issue had well. if recall correctly, in our case issue missing, required java classes/libraries. regrettably, in mfp "swallowed" exception without logging anything, stderr.

i wrapped relevant adapter resource class' methods in try {} catch (throwable t) {} blocks, , printed out stack trace myself, catch. in our case, had both constructor , http request methods had find root cause. if have custom logic in application class, might need there well.

it's odd, because uncaught exceptions log details in mfp/java ee server's logs, others not.

update: product support telling me might specific resource class constructors. if uncaught exception thrown constructor, no details returned or logged.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -