Jump to content
We have recently updated our Privacy Statement, available here ×


Recommended Posts

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.




Link to comment
Share on other sites

  • Create New...