Imran Patan 2 Posted April 3, 2019 Posted April 3, 2019 I am trying to deploy a new application into the domain using BW Agent REST API, it requires the ear file to be uploaded first. when I am tried to upload an .ear file using POST method , URL : http://localhost:8079/bw/v1/domains/MYDOMAIN/archivesreplace=true Headers Content-type=multipart/form-data Attaching the EAR file as body of POST method this is failing with HTTP 500 error and NULL pointer exception in BWAGENT logs Caused by: java.lang.NullPointerException: null at com.tibco.bw.thor.admin.web.jaxrs.ArchiveResource.uploadArchive(ArchiveResource.java:319) ~[com.tibco.bw.thor.admin.web_1.4.900.061.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_144] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_144] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_144] the error in the bwagent log file is 2019-04-01 10:10:37.732 WARN [qtp2022768790-59] o.g.jersey.servlet.WebComponent - A servlet request to the URI http://localhost:8079/bw/v1/domains/Test/archivesfile=file%3AC%3A%5CUse... contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. Regards, Imran
Imran Patan 2 Posted April 4, 2019 Author Posted April 4, 2019 I tried with Content-type=multipart/form-data and attaching the EAR file but there was 500 internal error from BWAgent
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now