Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-959

Error getting minimum price for an estimate.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: Aquidneck
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Sprint 16

      Description

      I tried to get a new estimate for a quote and caught this error in the tomcat log. Still got an estimate back and min clicks.

      2012-12-12 20:42:06,423-2530769 [http-8080-1] DEBUG com.thesearchagency.saas.core.services.campaign.CampaignServiceComponent - New Campaign found
      2012-12-12 20:42:06,423-2530769 [http-8080-1] DEBUG com.thesearchagency.saas.core.services.campaign.CampaignServiceComponent - New campaign target:

      {businessAreaID: 11649 businessLocationID: 12944}

      2012-12-12 20:42:07,717-2532063 [http-8080-1] ERROR com.thesearchagency.saas.core.services.campaign.TSABudgetEstimateResultTranslator - Unable to get the Minimum Price property (minPrice) from reseller properties! Defaulting to 0F: com.reseller1
      java.lang.NullPointerException
      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1009)
      at java.lang.Float.parseFloat(Float.java:439)
      at com.thesearchagency.saas.core.services.campaign.TSABudgetEstimateResultTranslator.translate(TSABudgetEstimateResultTranslator.java:31)
      at com.thesearchagency.saas.core.services.campaign.CampaignServiceComponent.getCampaignEstimate(CampaignServiceComponent.java:135)
      at com.thesearchagency.sapi.services.campaign.CampaignService.getCampaignEstimate(CampaignService.java:123)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      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:167)
      at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
      at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154)
      at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:221)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:141)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:679)
      2012-12-12 20:42:07,723-2532069 [http-8080-1] INFO com.thesearchagency.saas.core.services.campaign.CampaignServiceComponent - Google Aggregate Estimate
      min price: 1.055 max price: 1.433 min clicks: 0.323 max clicks: 0.395
      2012-12-12 20:42:07,723-2532069 [http-8080-1] DEBUG com.thesearchagency.sapi.services.campaign.CampaignService - Core returned: {Status=VALID, ComponentEstimates=[{Status=VALID, Service=GOOGLE, ComponentEstimates=[

      {LocationId=12944, Status=VALID, Service=GOOGLE, MinimumClicks=0.323, BusinessAreaId=11649, MaximumClicks=0.395, MinimumPrice=1.055, MaximumPrice=1.433, Criteria=campaigns (businessAreaId in ('11649') and locationId in ('12944') and services in ('GOOGLE'))}

      ], MinimumClicks=0.323, MaximumClicks=0.395, MinimumPrice=1.055, MaximumPrice=1.433, Criteria=campaigns (businessAreaId in ('11649') and locationId in ('12944') and services in ('GOOGLE'))}], MinimumClicks=0.323, MaximumClicks=0.395, MinimumPrice=1.055, MaximumPrice=1.433, Criteria=campaigns (services in ('GOOGLE') and businessAreaId in ('11649') and locationId in ('12944'))}
      2012-12-12 20:42:07,723-2532069 [http-8080-1] DEBUG com.thesearchagency.sapi.jaxrs.providers.CacheControlResponseHandler - Headers: null
      2012-12-12 20:42:07,723-2532069 [http-8080-1] DEBUG com.thesearchagency.sapi.jaxrs.providers.CacheControlResponseHandler - Adding Expires header
      2012-12-12 20:42:07,724-2532070 [http-8080-1] DEBUG com.thesearchagency.sapi.jaxrs.providers.CacheControlResponseHandler - Adding Cache-Control header
      2012-12-12 20:42:07,724-2532070 [http-8080-1] DEBUG com.thesearchagency.sapi.jaxrs.providers.CacheControlResponseHandler - Adding Pragma header
      2012-12-12 20:42:07,725-2532071 [http-8080-1] INFO org.apache.cxf.interceptor.LoggingOutInterceptor - Outbound Message
      ---------------------------
      ID: 68
      Response-Code: 200
      Content-Type: application/json
      Headers:

      {Expires=[-1], Cache-Control=[no-cache], Pragma=[no-cache], X-AML-API-ID=[13235bf5-03d9-4ec0-9a6c-2f8990787d7a], Date=[Wed, 12 Dec 2012 20:42:07 GMT]}

      Payload: {"service":"","status":"VALID","criteria":"campaigns (services in ('GOOGLE') and businessAreaId in ('11649') and locationId in ('12944'))","businessAreaId":-1,"locationId":-1,"minimumPrice":1.055,"maximumPrice":1.433,"minimumClicks":0.323,"maximumClicks":0.395,"components":[{"service":"GOOGLE","status":"VALID","criteria":"campaigns (businessAreaId in ('11649') and locationId in ('12944') and services in ('GOOGLE'))","businessAreaId":-1,"locationId":-1,"minimumPrice":1.055,"maximumPrice":1.433,"minimumClicks":0.323,"maximumClicks":0.395,"components":[

      {"service":"GOOGLE","status":"VALID","criteria":"campaigns (businessAreaId in ('11649') and locationId in ('12944') and services in ('GOOGLE'))","businessAreaId":11649,"locationId":12944,"minimumPrice":1.055,"maximumPrice":1.433,"minimumClicks":0.323,"maximumClicks":0.395,"components":null}

      ]}]}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jeff.brown Jeff Brown (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: