[ 
https://issues.apache.org/jira/browse/DISPATCH-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ernest Allen resolved DISPATCH-745.
-----------------------------------
       Resolution: Fixed
         Assignee: Ernest Allen
    Fix Version/s: 0.8.0

The changes that were made for using patternfly on the stand-alone console were 
affecting the hawtio console.

I forced the hawtio console to use the javascript files from before the 
patternfly conversion.

Patternfly uses a version of angularjs that is not compatible with the version 
of angularjs that is used by the hawtio.war file we are using. Hence the need 
for separate code for the stand-alone console and the hawtio console.
 

> Hawtio version of console does not connect: app.js?60f4925a5c3d0942:16 Error: 
> Error: Unknown provider: $uibModalProvider <- $uibModal
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-745
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-745
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Console
>    Affects Versions: 0.8.0
>         Environment: Latest QDR from Git with Tomcat 8.5.13 and Hawtio 1.5.0 
> or 1.4.68 (I tried both). Firefox 51.0.1 (64-bit) or Chrome 56.0.2924.87 
> (64-bit)
>            Reporter: Jiri Danek
>            Assignee: Ernest Allen
>             Fix For: 0.8.0
>
>
> I am unable to connect the console running in Hawtio to the router.
> When I open the connect dialog and enter the IP and port and click connect, I 
> see empty page with only the top menus. If I click button on the top menu, I 
> am redirected to the main page of the hawtio console.
> I see the following messages in the browser log (they are the same for Chrome 
> and Firefox)
> Chrome:
> {noformat}
> app.js?60f4925a5c3d0942:4 Synchronous XMLHttpRequest on the main thread is 
> deprecated because of its detrimental effects to the end user's experience. 
> For more help, check https://xhr.spec.whatwg.org/.
> send @ app.js?60f4925a5c3d0942:4
> ajax @ app.js?60f4925a5c3d0942:3
> (anonymous) @ app.js?60f4925a5c3d0942:64
> (anonymous) @ app.js?60f4925a5c3d0942:45
> m @ app.js?60f4925a5c3d0942:64
> Core @ app.js?60f4925a5c3d0942:65
> (anonymous) @ app.js?60f4925a5c3d0942:65
> app.js?60f4925a5c3d0942:16 [QDR] *************creating Dispatch 
> Console************
> app.js?60f4925a5c3d0942:16 [QDR] curPath is /
> app.js?60f4925a5c3d0942:16 [Core] hawtio started
> app.js?60f4925a5c3d0942:16 [RBAC] Using mbean  
> hawtio:type=security,area=jmx,rank=0,name=HawtioDummyJMXSecurity  for 
> client-side role based access control
> app.js?60f4925a5c3d0942:16 [QDR] okay to start
> app.js?60f4925a5c3d0942:16 [QDR] [
>   "amqp:/_topo/0/Router.A/$management"
> ]
> app.js?60f4925a5c3d0942:16 [QDR] {
>   "amqp:/_topo/0/Router.A/$management": {}
> }
> app.js?60f4925a5c3d0942:16 [QDR] showing dispatch tab: going to page 
> /dispatch_hawtio_console/overview
> app.js?60f4925a5c3d0942:16 [QDR] saving page changed to 
> /dispatch_hawtio_console/overview
> app.js?60f4925a5c3d0942:16 Error: Error: Unknown provider: $uibModalProvider 
> <- $uibModal
>     at app.js?60f4925a5c3d0942:13
>     at Object.c [as get] (app.js?60f4925a5c3d0942:13)
>     at app.js?60f4925a5c3d0942:13
>     at c (app.js?60f4925a5c3d0942:13)
>     at d (app.js?60f4925a5c3d0942:13)
>     at Object.e [as instantiate] (app.js?60f4925a5c3d0942:13)
>     at app.js?60f4925a5c3d0942:13
>     at app.js?60f4925a5c3d0942:13
>     at f (app.js?60f4925a5c3d0942:13)
>     at n (app.js?60f4925a5c3d0942:13)
> consoleLogger @ app.js?60f4925a5c3d0942:16
> c @ app.js?60f4925a5c3d0942:16
> (anonymous) @ app.js?60f4925a5c3d0942:16
> invoke @ app.js?60f4925a5c3d0942:4
> error @ app.js?60f4925a5c3d0942:4
> (anonymous) @ app.js?60f4925a5c3d0942:4
> (anonymous) @ app.js?60f4925a5c3d0942:14
> (anonymous) @ app.js?60f4925a5c3d0942:13
> $broadcast @ app.js?60f4925a5c3d0942:14
> (anonymous) @ app.js?60f4925a5c3d0942:14
> i @ app.js?60f4925a5c3d0942:14
> i @ app.js?60f4925a5c3d0942:14
> (anonymous) @ app.js?60f4925a5c3d0942:14
> $eval @ app.js?60f4925a5c3d0942:14
> $digest @ app.js?60f4925a5c3d0942:14
> $apply @ app.js?60f4925a5c3d0942:14
> f @ app.js?60f4925a5c3d0942:14
> r @ app.js?60f4925a5c3d0942:14
> v.onreadystatechange @ app.js?60f4925a5c3d0942:14
> app.js?60f4925a5c3d0942:16 Stack trace:  <div class="log-stack-trace">
> <p>Error: Unknown provider: $uibModalProvider <- $uibModal</p>
> <p>    at 
> http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:16777</p>
> <p>    at Object.c [as get] 
> (http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:15704)</p>
> <p>    at 
> http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:16865</p>
> <p>    at c 
> (http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:15704)</p>
> <p>    at d 
> (http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:15838)</p>
> <p>    at Object.e [as instantiate] 
> (http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:16480)</p>
> <p>    at 
> http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:29000</p>
> <p>    at 
> http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:24358</p>
> <p>    at f 
> (http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:3546)</p>
> <p>    at n 
> (http://127.0.0.1:8080/hawtio/app/app.js?60f4925a5c3d0942:13:24131)</p>
> </div>
> {noformat}
> Firefox:
> {noformat}
> Synchronous XMLHttpRequest on the main thread is deprecated because of its 
> detrimental effects to the end user’s experience. For more help 
> http://xhr.spec.whatwg.org/  app.js:4:1912
> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.  
> app.js:2:20942
> unreachable code after return statement[Learn More]  app.js:629:6
> [QDR] *************creating Dispatch Console************  app.js:16:5291
> [QDR] curPath is /  app.js:16:5291
> Use of Mutation Events is deprecated. Use MutationObserver instead.  
> app.js:89:6779
> [RBAC] Using mbean  
> hawtio:type=security,area=jmx,rank=0,name=HawtioDummyJMXSecurity  for 
> client-side role based access control  app.js:16:5291
> [Core] hawtio started  app.js:16:5291
> Empty string passed to getElementById(). app.js:1:23332
> The Web Console logging API (console.log, console.info, console.warn, 
> console.error) has been disabled by a script on this page.
> Empty string passed to getElementById(). app.js:1:23330
> Empty string passed to getElementById(). app.js:1:23330
> Empty string passed to getElementById(). app.js:1:23330
> [QDR] okay to start  app.js:16:5291
> [QDR] [
>   "amqp:/_topo/0/Router.A/$management"
> ]  app.js:16:5291
> [QDR] {
>   "amqp:/_topo/0/Router.A/$management": {}
> }  app.js:16:5291
> [QDR] [
>   "amqp:/_topo/0/Router.A/$management"
> ]  app.js:16:5291
> [QDR] saving page changed to /dispatch_hawtio_console/overview  app.js:16:5291
> Error: Error: Unknown provider: $uibModalProvider <- $uibModal
> Stack trace:
> Error: Unknown provider: $uibModalProvider <- $uibModal
> ya/s.$injector<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:16777
> c@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:15704
> ya/w.$injector<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:16863
> c@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:15704
> d@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:15838
> e@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:16480
> Ha/this.$get</<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:28998
> n/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:24358
> f@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:3544
> n@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:24131
> f@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:22086
> z/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:21652
> k@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:15:22785
> ib/this.$get</f.prototype.$broadcast@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:17750
> k/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:13064
> fb/h/g.promise.then/i@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:10526
> fb/h/g.promise.then/i@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:10526
> fb/i/<.then/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:11087
> ib/this.$get</f.prototype.$eval@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:16812
> ib/this.$get</f.prototype.$digest@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:15685
> ib/this.$get</f.prototype.$apply@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:16962
> f@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:21364
> r@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:23075
> sb/</v.onreadystatechange@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:23710
>   app.js:16:5291
> Stack trace:  <div class="log-stack-trace">
> <p>Error: Unknown provider: $uibModalProvider <- $uibModal</p>
> <p>ya/s.$injector<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:16777</p>
> <p>c@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:15704</p>
> <p>ya/w.$injector<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:16863</p>
> <p>c@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:15704</p>
> <p>d@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:15838</p>
> <p>e@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:16480</p>
> <p>Ha/this.$get</<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:28998</p>
> <p>n/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:24358</p>
> <p>f@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:3544</p>
> <p>n@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:24131</p>
> <p>f@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:22086</p>
> <p>z/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:13:21652</p>
> <p>k@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:15:22785</p>
> <p>ib/this.$get</f.prototype.$broadcast@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:17750</p>
> <p>k/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:13064</p>
> <p>fb/h/g.promise.then/i@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:10526</p>
> <p>fb/h/g.promise.then/i@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:10526</p>
> <p>fb/i/<.then/<@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:11087</p>
> <p>ib/this.$get</f.prototype.$eval@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:16812</p>
> <p>ib/this.$get</f.prototype.$digest@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:15685</p>
> <p>ib/this.$get</f.prototype.$apply@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:16962</p>
> <p>f@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:21364</p>
> <p>r@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:23075</p>
> <p>sb/</v.onreadystatechange@http://127.0.0.1:8080/hawtio/app/app.js?c8641b2e13788127:14:23710</p>
> </div>
> {noformat}
> It is very possible I am doing something wrong when setting this up.
> On the other hand, if I open the standalone console, then that is working for 
> me.
> See the video which shows me reproducing the bug first in hawtio, and then in 
> the standalone console. https://www.youtube.com/watch?v=lqrgfH12b6Q 34 seconds



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to