Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1802

HAL console unaviable after gwt upgrade to 2.10.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.6.3.Final
    • None
    • Flow Control
    • None
    • Hide

      Just compile current branch and follow dev steps. Reproduced with chrome and firefox.

      Show
      Just compile current branch and follow dev steps. Reproduced with chrome and firefox.

    Description

      Current main does not load the HAL console. Doing the steps to access the console in dev mode:

      cd app
      mvn gwt:devmode
      

      When the interface to connect is selected the HAL console does not show up and hangs with message: Loading... (and the circle spinning all the time).

      After a lot of testing this is triggered by the upgrade to gwt 2.10.0 (this PR). The root problem seems to be that now the location URL sometimes does not have the # character and this is generating a StringIndexOutOfBoundsException in this line. The exception is the following:

      Error: java.lang.StringIndexOutOfBoundsException: fromIndex: 0, toIndex: -1, length: 34
          at java_lang_StringIndexOutOfBoundsException_StringIndexOutOfBoundsException__Ljava_lang_String_2V.java_lang_Throwable_createError__Ljava_lang_String_2Ljava_lang_Object_2 [as package_private$java_lang$createError__Ljava_lang_String_2Ljava_lang_Object_2] (hal-0.js:576:10)
          at java_lang_StringIndexOutOfBoundsException_StringIndexOutOfBoundsException__Ljava_lang_String_2V.java_lang_Throwable_initializeBackingError__V [as private$java_lang_Throwable$initializeBackingError__V] (hal-0.js:639:148)
          at java_lang_StringIndexOutOfBoundsException_StringIndexOutOfBoundsException__Ljava_lang_String_2V.java_lang_Throwable_Throwable__Ljava_lang_String_2V (hal-0.js:482:8)
          at java_lang_StringIndexOutOfBoundsException_StringIndexOutOfBoundsException__Ljava_lang_String_2V.java_lang_Exception_Exception__Ljava_lang_String_2V (hal-0.js:750:55)
          at java_lang_StringIndexOutOfBoundsException_StringIndexOutOfBoundsException__Ljava_lang_String_2V.java_lang_RuntimeException_RuntimeException__Ljava_lang_String_2V (hal-0.js:796:55)
          at java_lang_StringIndexOutOfBoundsException_StringIndexOutOfBoundsException__Ljava_lang_String_2V.java_lang_IndexOutOfBoundsException_IndexOutOfBoundsException__Ljava_lang_String_2V (hal-0.js:3147:69)
          at new java_lang_StringIndexOutOfBoundsException_StringIndexOutOfBoundsException__Ljava_lang_String_2V (hal-0.js:4621:87)
          at javaemul_internal_InternalPreconditions_checkCriticalStringBounds__IIIV (hal-0.js:5130:87)
          at javaemul_internal_InternalPreconditions_checkStringBounds__IIIV (hal-0.js:5356:5)
          at java_lang_String_$substring__Ljava_lang_String_2IILjava_lang_String_2 (hal-0.js:3862:3)
          at java_lang_String_substring_1II_1Ljava_1lang_1String_1_1_1devirtual$__Ljava_lang_String_2IILjava_lang_String_2 (hal-0.js:4324:10)
          at org_jboss_hal_core_mvp_Places_Places__Lorg_jboss_hal_config_Environment_2Lorg_jboss_hal_meta_StatementContext_2Lorg_jboss_hal_core_finder_Finder_2Lcom_gwtplatform_mvp_shared_proxy_TokenFormatter_2V.org_jboss_hal_core_mvp_Places_historyToken__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2Ljava_lang_String_2 [as historyToken__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2Ljava_lang_String_2] (hal-0.js:330420:12)
          at org_jboss_hal_client_homepage_HomepageSection_HomepageSection__Lorg_jboss_hal_core_mvp_Places_2Lorg_jboss_hal_resources_Resources_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_Iterable_2ZV.org_jboss_hal_client_homepage_HomepageSection_historyToken__Lorg_jboss_hal_core_mvp_Places_2Ljava_lang_String_2Ljava_lang_String_2 [as package_private$org_jboss_hal_client_homepage$historyToken__Lorg_jboss_hal_core_mvp_Places_2Ljava_lang_String_2Ljava_lang_String_2] (hal-0.js:239980:17)
          at new org_jboss_hal_client_homepage_HomepageSection_HomepageSection__Lorg_jboss_hal_core_mvp_Places_2Lorg_jboss_hal_resources_Resources_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_Iterable_2ZV (hal-0.js:239939:5808)
          at new org_jboss_hal_client_homepage_HomepageView_HomepageView__Lorg_jboss_hal_config_Environment_2Lorg_jboss_hal_core_accesscontrol_AccessControl_2Lorg_jboss_hal_resources_Resources_2Lorg_jboss_hal_core_mvp_Places_2V (hal-0.js:240051:85)
          at org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment__Lcom_gwtplatform_mvp_client_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_2V.org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_org$jboss$hal$client$homepage$HomepageView_1org$jboss$hal$client$homepage$HomepageView_1methodInjection__Lorg_jboss_hal_config_Environment_2Lorg_jboss_hal_core_accesscontrol_AccessControl_2Lorg_jboss_hal_resources_Resources_2Lorg_jboss_hal_core_mvp_Places_2Lorg_jboss_hal_client_homepage_HomepageView_2 [as org$jboss$hal$client$homepage$HomepageView_1org$jboss$hal$client$homepage$HomepageView_1methodInjection__Lorg_jboss_hal_config_Environment_2Lorg_jboss_hal_core_accesscontrol_AccessControl_2Lorg_jboss_hal_resources_Resources_2Lorg_jboss_hal_core_mvp_Places_2Lorg_jboss_hal_client_homepage_HomepageView_2] (hal-0.js:240813:10)
          at org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment__Lcom_gwtplatform_mvp_client_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_2V.org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_get_1Key$type$org$jboss$hal$client$homepage$HomepageView$_1annotation$$none$$__Lorg_jboss_hal_client_homepage_HomepageView_2 [as get_1Key$type$org$jboss$hal$client$homepage$HomepageView$_1annotation$$none$$__Lorg_jboss_hal_client_homepage_HomepageView_2] (hal-0.js:240787:19)
          at org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment__Lcom_gwtplatform_mvp_client_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_2V.org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_get_1Key$type$org$jboss$hal$client$homepage$HomepagePresenter$MyView$_1annotation$$none$$__Lorg_jboss_hal_client_homepage_HomepagePresenter$MyView_2 [as get_1Key$type$org$jboss$hal$client$homepage$HomepagePresenter$MyView$_1annotation$$none$$__Lorg_jboss_hal_client_homepage_HomepagePresenter$MyView_2] (hal-0.js:240770:17)
          at org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment__Lcom_gwtplatform_mvp_client_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_2V.org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_get_1Key$type$org$jboss$hal$client$homepage$HomepagePresenter$_1annotation$$none$$__Lorg_jboss_hal_client_homepage_HomepagePresenter_2 [as get_1Key$type$org$jboss$hal$client$homepage$HomepagePresenter$_1annotation$$none$$__Lorg_jboss_hal_client_homepage_HomepagePresenter_2] (hal-0.js:240777:1034)
          at org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment$1_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment$1__Lorg_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_2V.org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment$1_get__Lorg_jboss_hal_client_homepage_HomepagePresenter_2 [as get__Lorg_jboss_hal_client_homepage_HomepagePresenter_2] (hal-0.js:240839:140)
          at org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment$1_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment$1__Lorg_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment_2V.org_jboss_hal_client_homepage_com_1gwtplatform_1mvp_1client_1DesktopGinjector_1DesktopGinjectorGinjector_1fragment$1_get__Ljava_lang_Object_2 [as get__Ljava_lang_Object_2] (hal-0.js:240835:15)
          at com_gwtplatform_common_client_StandardProvider_StandardProvider__Ljavax_inject_Provider_2V.com_gwtplatform_common_client_StandardProvider_get__Lcom_google_gwt_user_client_rpc_AsyncCallback_2V [as get__Lcom_google_gwt_user_client_rpc_AsyncCallback_2V] (hal-0.js:51640:105)
          at org_jboss_hal_client_homepage_HomepagePresenterMyProxyImpl$WrappedProxy_HomepagePresenterMyProxyImpl$WrappedProxy__V.com_gwtplatform_mvp_client_proxy_ProxyImpl_getPresenter__Lcom_gwtplatform_mvp_client_proxy_NotifyingAsyncCallback_2V [as getPresenter__Lcom_gwtplatform_mvp_client_proxy_NotifyingAsyncCallback_2V] (hal-0.js:56054:61)
          at org_jboss_hal_client_homepage_HomepagePresenterMyProxyImpl_HomepagePresenterMyProxyImpl__V.com_gwtplatform_mvp_client_proxy_ProxyPlaceAbstract_handleRequest__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZV [as private$com_gwtplatform_mvp_client_proxy_ProxyPlaceAbstract$handleRequest__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZV] (hal-0.js:56154:66)
          at com_gwtplatform_mvp_client_proxy_ProxyPlaceAbstract$1_ProxyPlaceAbstract$1__Lcom_gwtplatform_mvp_client_proxy_ProxyPlaceAbstract_2V.com_gwtplatform_mvp_client_proxy_ProxyPlaceAbstract$1_onPlaceRequest__Lcom_gwtplatform_mvp_client_proxy_PlaceRequestInternalEvent_2V [as onPlaceRequest__Lcom_gwtplatform_mvp_client_proxy_PlaceRequestInternalEvent_2V] (hal-0.js:56224:74)
          at com_gwtplatform_mvp_client_proxy_PlaceRequestInternalEvent_PlaceRequestInternalEvent__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZV.com_gwtplatform_mvp_client_proxy_PlaceRequestInternalEvent_dispatch__Lcom_gwtplatform_mvp_client_proxy_PlaceRequestInternalHandler_2V [as dispatch__Lcom_gwtplatform_mvp_client_proxy_PlaceRequestInternalHandler_2V] (hal-0.js:55951:11)
          at com_gwtplatform_mvp_client_proxy_PlaceRequestInternalEvent_PlaceRequestInternalEvent__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZV.com_gwtplatform_mvp_client_proxy_PlaceRequestInternalEvent_dispatch__Lcom_google_gwt_event_shared_EventHandler_2V [as dispatch__Lcom_google_gwt_event_shared_EventHandler_2V] (hal-0.js:55943:8)
          at com_gwtplatform_mvp_client_proxy_PlaceRequestInternalEvent_PlaceRequestInternalEvent__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZV.com_google_gwt_event_shared_GwtEvent_dispatch__Ljava_lang_Object_2V [as dispatch__Ljava_lang_Object_2V] (hal-0.js:35098:8)
          at com_google_web_bindery_event_shared_EventBus_dispatchEvent__Lcom_google_web_bindery_event_shared_Event_2Ljava_lang_Object_2V (hal-0.js:35588:11)
          at com_google_web_bindery_event_shared_SimpleEventBus_SimpleEventBus__V.com_google_web_bindery_event_shared_SimpleEventBus_doFire__Lcom_google_web_bindery_event_shared_Event_2Ljava_lang_Object_2V [as private$com_google_web_bindery_event_shared_SimpleEventBus$doFire__Lcom_google_web_bindery_event_shared_Event_2Ljava_lang_Object_2V] (hal-0.js:35878:9)
          at com_google_web_bindery_event_shared_SimpleEventBus_SimpleEventBus__V.com_google_web_bindery_event_shared_SimpleEventBus_fireEventFromSource__Lcom_google_web_bindery_event_shared_Event_2Ljava_lang_Object_2V [as fireEventFromSource__Lcom_google_web_bindery_event_shared_Event_2Ljava_lang_Object_2V] (hal-0.js:35958:8)
          at org_jboss_hal_core_mvp_HalPlaceManager_HalPlaceManager__Lcom_google_web_bindery_event_shared_EventBus_2Lcom_gwtplatform_mvp_shared_proxy_TokenFormatter_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Lorg_jboss_hal_meta_processing_MetadataProcessor_2Ljavax_inject_Provider_2Lorg_jboss_hal_resources_Resources_2V.com_gwtplatform_mvp_client_proxy_PlaceManagerImpl_fireEvent__Lcom_google_gwt_event_shared_GwtEvent_2V [as fireEvent__Lcom_google_gwt_event_shared_GwtEvent_2V] (hal-0.js:55090:71)
          at org_jboss_hal_core_mvp_HalPlaceManager_HalPlaceManager__Lcom_google_web_bindery_event_shared_EventBus_2Lcom_gwtplatform_mvp_shared_proxy_TokenFormatter_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Lorg_jboss_hal_meta_processing_MetadataProcessor_2Ljavax_inject_Provider_2Lorg_jboss_hal_resources_Resources_2V.com_gwtplatform_mvp_client_proxy_PlaceManagerImpl_doRevealPlace__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZV [as doRevealPlace__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZV] (hal-0.js:55071:8)
          at org_jboss_hal_core_mvp_HalPlaceManager_HalPlaceManager__Lcom_google_web_bindery_event_shared_EventBus_2Lcom_gwtplatform_mvp_shared_proxy_TokenFormatter_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Lorg_jboss_hal_meta_processing_MetadataProcessor_2Ljavax_inject_Provider_2Lorg_jboss_hal_resources_Resources_2V.org_jboss_hal_core_mvp_HalPlaceManager_lambda$5__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZLjava_lang_Void_2Lelemental2_promise_IThenable_2 [as private$org_jboss_hal_core_mvp_HalPlaceManager$lambda$5__Lcom_gwtplatform_mvp_shared_proxy_PlaceRequest_2ZLjava_lang_Void_2Lelemental2_promise_IThenable_2] (hal-0.js:330160:217)
          at Function.org_jboss_hal_core_mvp_HalPlaceManager$lambda$5$Type_onInvoke__Ljava_lang_Object_2Lelemental2_promise_IThenable_2 (hal-0.js:330327:79)
          at lambda (hal-0.js:131:22)
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: