Loading ...
Sorry, an error occurred while loading the content.

EWS API Java sample code Run-time error

Expand Messages
  • lilushu
    I downloaded the Yahoo EWS API Java sample code YahooEWSClient.java , the sample data and following the Build and Run instructions. I can compile the
    Message 1 of 1 , Dec 22, 2008
    View Source
    • 0 Attachment
      I downloaded the Yahoo EWS API Java sample code YahooEWSClient.java ,
      the sample data and following the Build and Run instructions. I can
      compile the YahooEWSClient.java and the generated stubs, but I can't
      run it. The error log is as the follows. It seems have problems in the
      Method: getAxisClientService( ) to invoke the stub's functions. Can
      someone here help me on this matter?

      Thanks,

      Lushu

      ======== Error Log ====

      init:
      deps-jar:
      compile:
      run:
      1229023773346 [debug] locationCacheFilename:
      ews_cache_sandboxmarketingewsyahooapiscom
      1229023773346 [debug] Successfully loaded location cache
      urlPart = /V4/CampaignService
      32 [debug] endPointURLString:
      https://sandbox.marketing.ews.yahooapis.com/services/V4/CampaignService
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
      com.yahoo.sm.ws.client.demo.YahooEWSClient.getAxisClientService(YahooEWSClient.java:789)
      at
      com.yahoo.sm.ws.client.demo.YahooEWSClient.<init>(YahooEWSClient.java:109)
      at
      com.yahoo.sm.ws.client.demo.YahooEWSClient.main(YahooEWSClient.java:120)
      Caused by: java.lang.NoSuchMethodError:
      org.apache.axis.description.ParameterDesc.setNillable(Z)V
      at
      com.yahoo.sm.ws.client.CampaignServiceHttpBindingStub._initOperationDesc1(CampaignServiceHttpBindingStub.java:31)
      at
      com.yahoo.sm.ws.client.CampaignServiceHttpBindingStub.<clinit>(CampaignServiceHttpBindingStub.java:20)
      at
      com.yahoo.sm.ws.client.CampaignServiceServiceLocator.getCampaignService(CampaignServiceServiceLocator.java:55)
      ... 7 more
      Java Result: 1
      BUILD SUCCESSFUL (total time: 1 second)
    Your message has been successfully submitted and would be delivered to recipients shortly.