Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: Wickford
-
Fix Version/s: Wickford
-
Component/s: Other / Misc.
-
Labels:None
-
Environment:
AML QA Environment 1
• Sapi = Bamboo Build #6
• Reseller UI = Pulse Build #27
• Merchant UI #27
• SMB-Core-SaaS = build #77
• SMB-Core-BidManager= build# 75
-
Sprint:Wickford - Sprint 4
Description
Unable to change the order status with groovy script "change-order-state"
1. Create an order having status "processed"
2. Try deleting this order using groovy scripts.
groovy change-order-state.groovy -ah http://aq-qa-tomcat1:8080/sapi/rest/ -ll TRACE --orderUUID ad9cef42-bcbe-4fc2-978e-bd92d64da54f -s DELETED -ru atulsanagar@rediffmail.com -rp Testing123 -ra qaamlntttest
Actual result:
[atul.sanagar@aq-qa-tomcat1 groovy]$ groovy change-order-state.groovy -ah http://aq-qa-tomcat1:8080/sapi/rest/ -ll TRACE --orderUUID ad9cef42-bcbe-4fc2-978e-bd92d64da54f -s DELETED -ru atulsanagar@rediffmail.com -rp Testing123 -ra qaamlntttest
INFO - API Host: http://aq-qa-tomcat1:8080/sapi/rest/
.
.
.
DEBUG - Setting order status to DELETED
ERROR - Error setting state of order 'ad9cef42-bcbe-4fc2-978e-bd92d64da54f' to DELETED
ERROR - Unexpected response error: 404
Caught: java.lang.NullPointerException: Cannot get property 'text' on null object
java.lang.NullPointerException: Cannot get property 'text' on null object
at change-order-state.run(change-order-state.groovy:244)
Snippet of tomcat log:
Address: http://aq-qa-tomcat1:8080/sapi/rest/orders/DELETED
Encoding: ISO-8859-1
Http-Method: POST
Content-Type: text/plain
Headers:
Payload: ad9cef42-bcbe-4fc2-978e-bd92d64da54f
--------------------------------------
2013-07-08 11:06:39,055-402602809 [http-8080-10] WARN com.thesearchagency.database.storage.jdbc.BaseJDBCStorageManager [] - No value found for property Birthday
2013-07-08 11:06:39,055-402602809 [http-8080-10] WARN com.thesearchagency.database.storage.jdbc.BaseJDBCStorageManager [] - No value found for property HomePage
2013-07-08 11:06:39,170-402602924 [http-8080-10] WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper [timezone=UTC, principalId=bb7483ae-1eae-4513-9412-1917cb635a9f, requestId=2a0f2573-7c7a-456d-836a-f33f88d269e5, locale=en_US, authToken=X2CU34D5NWDJVN277FZX6MA6BRSEHZUPEPHWI54F3HZ6EFQ3BUKAIRSCEJWRO762KRQEYFX2CFEKH4KBLDGMMVKLJ4RG4SCVT27IE6XSY7SN4LZY2TSKEEJCRTYSVB5HDF5IZDC2DKKFVESWZOQHLLYX6LYZ4ZFZRNGFHZPZE7KA7FLXN6DLCC7WDZTNVCG4PDRAG2S7PKOZZHR5UJIEYLVDEYGQYPBKT3QLVFOQ3JKFVZCG732HOUZM3RE3JZOVMCWZ6YRUFYPY3KXECJWZZDUH2A======, hostname=10.180.11.144, ipAddress=10.180.11.144] - javax.ws.rs.WebApplicationException
at com.thesearchagency.sapi.services.order.OrderService.retrieveContentOrder(OrderService.java:461)
at com.thesearchagency.sapi.services.order.OrderService.getOrder(OrderService.java:329)
at com.thesearchagency.sapi.services.order.OrderService.setOrderState(OrderService.java:209)
at sun.reflect.GeneratedMethodAccessor356.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:198)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
Expected:
Tech operators should be able to Delete the order using groovy scripts.
Attachments
Issue Links
- blocks
-
AML-1629 Pausing campaigns via Groovy scripts also pauses budget accrual
- Closed