Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: Wickford
-
Fix Version/s: Wickford
-
Component/s: Other / Misc., Security Framework
-
Labels:None
-
Sprint:Wickford - Sprint 5, Wickford - Sprint 6
Description
While pausing old campaigns using "change-order-state", it throws exception - java.lang.NullPointerException
Steps:
1.Select old account.
mysql> select * from merchants where id='75d4785f-e58f-4cd2-addd-587e4cb93b5a';
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
id | reseller_id | customer_id | realm_id | group_id | user_id | name | display | description | created_on | created_by | created_by_name | modified_on | modified_by | modified_by_name | active | comments | url | phone | contact_name | contact_phone | contact_email |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
75d4785f-e58f-4cd2-addd-587e4cb93b5a | 9abef394-494c-482c-83b4-e9256785bfee | perf2 | com.thesearchagency/9abef394-494c-482c-83b4-e9256785bfee/75d4785f-e58f-4cd2-addd-587e4cb93b5a | b41b04b7-5870-422c-ab55-a45cb2c9c207 | NULL | perf2 | perf2 | NULL | 2013-06-17 14:02:58 | bb7483ae-1eae-4513-9412-1917cb635a9f | QA Reseller Admin User | 2013-06-17 14:02:58 | bb7483ae-1eae-4513-9412-1917cb635a9f | QA Reseller Admin User | T | NULL | NULL | NULL |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
2.Ran
[atul.sanagar@aq-qa-tomcat1 groovy]$ groovy change-order-state.groovy -ah http://aq-qa-tomcat1:8080/sapi/rest/ -ll TRACE -m 75d4785f-e58f-4cd2-addd-587e4cb93b5a -s PAUSED -ru atulsanagar@rediffmail.com -rp Testing123 -ra qaamlntttest
.
.
.
DEBUG - Most recent order: 'aa516bc9-f44f-468a-b412-d8a8b639bcaf'
DEBUG - Setting order status to PAUSED
Jul 31, 2013 10:21:35 AM groovyx.net.http.ParserRegistry getAt
WARNING: Cannot find parser for content-type: application/json, text/plain – using default parser.
ERROR - Error setting state of order 'aa516bc9-f44f-468a-b412-d8a8b639bcaf' to PAUSED
ERROR - Unexpected response error: 500
ERROR - Internal Server Error - <html><head><title>Apache Tomcat/6.0.24 - Error report</title><style><!--H1
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name
{color : black;}HR
{color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.RuntimeException: org.apache.cxf.interceptor.Fault
.....
Snippet of Tomcat log :
{Detailed log attached}----------------------------
ID: 342
Address: http://aq-qa-tomcat1:8080/sapi/rest/orders/PAUSED
Encoding: ISO-8859-1
Http-Method: POST
Content-Type: text/plain
Headers:
Payload: aa516bc9-f44f-468a-b412-d8a8b639bcaf
--------------------------------------
2013-07-31 10:21:35,713-7198777 [http-8080-7] WARN org.apache.cxf.phase.PhaseInterceptorChain [timezone=UTC, principalId=bb7483ae-1eae-4513-9412-1917cb635a9f, requestId=00cf9486-dbec-46f9-8ea4-2882195da9df, locale=en_US, authToken=X2CU34D5NWDJV25YPZ5WY6KE7LSAPWVZKEYPCTIREHV6HFB6Z5LRVYLGYD2HXIGX4FCOWRC6RH3OWX4Y7EML6FA5CYDGOQQPW6AAP3YTYIYG33KPZCCWTXCER43N6O7UVL553B2R3INXQWRZ6AWHGDUAEZTWSYLIYNEECCULYYS7XG26C6H7ECOQ434USRYGMI44D7YZYRBRZW4YKU7NS747HZ2VTRNJGPEGHNPNXB3FZKOHVP432N7ZOEHLK6LKLONCO4MRL2VNIGG6FGTSBQ5Z7Y======, hostname=10.180.11.144, ipAddress=10.180.11.144] - Application
SecurityService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: null.
.
.
.
aused by: java.lang.NullPointerException: null
at com.thesearchagency.sapi.services.order.DeploymentServiceHelper.isValidTransition(DeploymentServiceHelper.java:101) ~[DeploymentServiceHelper.class:na]
at com.thesearchagency.sapi.services.order.OrderService.setOrderState(OrderService.java:213) ~[OrderService.class:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.6.0_24]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_24]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) ~[cxf-api-2.7.5.jar:2.7.5]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[cxf-api-2.7.5.jar:2.7.5]
... 27 common frames omitted
Attachments
Issue Links
- depends on
-
AML-2070 Test Apanaoug to Wickford Data Migration
-
- Closed
-