java.lang.RuntimeException: java.lang.NoSuchMethodError: org.xwalk.core.extension.XWalkExtensionContextClient.getActivity

JIRA | Xie, XiaolongX | 6 months ago
  1. 0

    Impacted Cases ============== Navigator_iap_init Navigator_iap_init_error Navigator_iap_queryProductsInfo Navigator_iap_queryProductsInfo_opererror Navigator_iap_queryProductsInfo_invalidaccess usecase-webapi-xwalk-tests/IAPGooglePlay usecase-webapi-xwalk-tests/IAPXiaomiStore Reproduce Test Steps ==================== 1. Download iapdemo_release.apk (download address please refer to the comment) 2. Launch the app(Google Play IAP) 3. Select the impacted case and tap "Run" button, check the behavior Expected Outcome ================ No Crash Actual Outcome ============== Crash happens Test Case Source Code ===================== ||Case ID||URL|| | Navigator_iap_init | https://github.com/crosswalk-project/crosswalk-test-suite/blob/master/webapi/webapi-iap-xwalk-tests/iap/Navigator_iap.html | | Navigator_iap_init_error | https://github.com/crosswalk-project/crosswalk-test-suite/blob/master/webapi/webapi-iap-xwalk-tests/iap/Navigator_iap_init_error.html | | Navigator_iap_queryProductsInfo | https://github.com/crosswalk-project/crosswalk-test-suite/blob/master/webapi/webapi-iap-xwalk-tests/iap/Navigator_iap_queryProductsInfo.html | | Navigator_iap_queryProductsInfo_opererror | https://github.com/crosswalk-project/crosswalk-test-suite/blob/master/webapi/webapi-iap-xwalk-tests/iap/Navigator_iap_queryProductsInfo_opererror.html | | Navigator_iap_queryProductsInfo_invalidaccess | https://github.com/crosswalk-project/crosswalk-test-suite/blob/master/webapi/webapi-iap-xwalk-tests/iap/Navigator_iap_queryProductsInfo_invalidaccess.html | Test Builds =========== ||Version||Test Date|| Test Device || Result || |Canary 22.51.551.0|2016.08.01| ASUS Memo Pad8| {color:green}PASS{color} | |Canary 22.51.553.0|2016.08.01| ASUS Memo Pad8| {color:red}FAIL{color} | Issue Analysis ============== {code} E/IAP (21434): Receive command: init W/System.err(21434): java.lang.RuntimeException: java.lang.NoSuchMethodError: org.xwalk.core.extension.XWalkExtensionContextClient.getActivity W/System.err(21434): at org.xwalk.core.internal.ReflectMethod.invoke(ReflectMethod.java:67) W/System.err(21434): at org.xwalk.core.internal.XWalkExtensionBridge.onMessage(XWalkExtensionBridge.java:126) W/System.err(21434): at dalvik.system.NativeStart.run(Native Method) W/System.err(21434): Caused by: java.lang.NoSuchMethodError: org.xwalk.core.extension.XWalkExtensionContextClient.getActivity W/System.err(21434): at org.xwalk.extensions.InAppPurchaseExtension.createHelperByChannel(InAppPurchaseExtension.java:117) W/System.err(21434): at org.xwalk.extensions.InAppPurchaseExtension.onMessage(InAppPurchaseExtension.java:60) W/System.err(21434): at org.xwalk.core.extension.XWalkCoreExtensionBridge.onMessage(XWalkCoreExtensionBridge.java:27) W/System.err(21434): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err(21434): at java.lang.reflect.Method.invoke(Method.java:515) W/System.err(21434): at org.xwalk.core.internal.ReflectMethod.invoke(ReflectMethod.java:61) {code}

    JIRA | 6 months ago | Xie, XiaolongX
    java.lang.RuntimeException: java.lang.NoSuchMethodError: org.xwalk.core.extension.XWalkExtensionContextClient.getActivity
  2. 0
    Put Jackson Java Module and Scala module in the same version.
    via GitHub by anujlal01
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    Check if you didn't miss adding Jackson dependencies to your code.
    via GitHub by anujlal01
  5. 0
    I was using the library hibernate-entitymanager:4.3.5.Final with java persistence API 2.0 instead of using it with hibernate-entitymanager:4.2.8.Final.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.xwalk.core.extension.XWalkExtensionContextClient.getActivity

      at org.xwalk.extensions.InAppPurchaseExtension.createHelperByChannel()
    2. org.xwalk.extensions
      InAppPurchaseExtension.onMessage
      1. org.xwalk.extensions.InAppPurchaseExtension.createHelperByChannel(InAppPurchaseExtension.java:117)
      2. org.xwalk.extensions.InAppPurchaseExtension.onMessage(InAppPurchaseExtension.java:60)
      2 frames
    3. org.xwalk.core
      XWalkCoreExtensionBridge.onMessage
      1. org.xwalk.core.extension.XWalkCoreExtensionBridge.onMessage(XWalkCoreExtensionBridge.java:27)
      1 frame
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. org.xwalk.core
      ReflectMethod.invoke
      1. org.xwalk.core.internal.ReflectMethod.invoke(ReflectMethod.java:61)
      1 frame