Thank you, Nuthana. We’ll discuss the other errors in later.
Can you share your code StockMovementController around lines 170-180?
Here’s the relevant stacktrace:
2020-12-19 18:43:56,897 [http-8080-4] INFO inventory.StockMovementService - Get stock movements: [id:null, name:null, description:null, statusCode:null, identifier
:null, origin:Boston Headquarters, destination:null, hasManageInventory:true, stocklist:[id:null, name:null], dateRequested:null, dateShipped:null, shipmentType:null
, shipmentStatus:null, trackingNumber:null, driverName:null, comments:null, requestedBy:null, lineItems:[], associations:[requisition:[id:null, requestNumber:null, s
tatus:null], shipment:[id:null, shipmentNumber:null, status:null], shipments:null, documents:null], isFromOrder:false, isShipped:false, isReceived:false, shipped:fal
se, received:false, requestType:null]
2020-12-19 18:43:56,897 [http-8080-4] INFO inventory.StockMovementService - Stock movement: PENDING
2020-12-19 18:44:04,604 [http-8080-4] ERROR errors.GrailsExceptionResolver - Exception occurred when processing request: [GET] /openboxes/stockMovement/list - param
eters:
direction: OUTBOUND
Stacktrace follows:
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:598)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at org.apache.http.client.HttpClient$execute.call(Unknown Source)
at org.pih.warehouse.core.ApiClientService.execute(ApiClientService.groovy:66)
at org.pih.warehouse.core.ApiClientService$execute.callCurrent(Unknown Source)
at org.pih.warehouse.core.ApiClientService.get(ApiClientService.groovy:34)
at org.pih.warehouse.core.ApiClientService$get.call(Unknown Source)
at org.pih.warehouse.inventory.StockMovementController$_closure10.doCall(StockMovementController.groovy:175)
at org.pih.warehouse.inventory.StockMovementController$_closure10.doCall(StockMovementController.groovy)
at grails.plugin.springcache.web.GrailsFragmentCachingFilter.doFilter(GrailsFragmentCachingFilter.groovy:66)
at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)
at org.grails.plugin.resource.DevModeSanityFilter.doFilter(DevModeSanityFilter.groovy:44)
at java.lang.Thread.run(Thread.java:748)
2020-12-19 18:44:04,624 [http-8080-4] INFO filters.AccessLogFilters - errors.handleException: [user:admin, location:Boston Headquarters]
2020-12-19 18:44:05,672 [http-8080-4] INFO filters.AccessLogFilters - Request duration for (errors/handleException): 10ms/1035ms
2020-12-19 18:44:05,673 [http-8080-4] INFO filters.AccessLogFilters - Request duration for (errors/handleException): 10ms/1036ms