page.onError - msg: Error: undefined is not an object (evaluating '$rootScope.currentUser.username') #14720

Open
ehayanis opened this Issue Dec 28, 2016 · 0 comments

Projects

None yet

1 participant

@ehayanis
ehayanis commented Dec 28, 2016 edited

1. Which version of PhantomJS are you using? Tip: run phantomjs --version.
2.1.1 And tried also 1.9.7 and 1.9.8

2. What steps will reproduce the problem?
-I've a maven project where I added a new profile which run selenium and jetty, then deploy the war on jetty and starts functional tests
-Running this build locally works fine, but doing the same on linux through jenkins ends with and error

3. Which operating system are you using?
Red Hat Enterprise Linux Server release 6.6 (Santiago)

4. Did you use binary PhantomJS or did you compile it from source?
I downloaded binary from Red Hat Enterprise Linux Server release 6.6 (Santiago)

5. Please provide any additional information below.
Actually I'm trying to automate functional tests in Jenkins using Selenium 2.3 and PhantomJS 2.1.1.
Local build on my Windows machine works fine but when I run the same build on Linux I get an error

====================================================
[ERROR - 2016-12-26T16:44:56.639Z] Session [9d504e30-cb8a-11e6-86da-d36f0b1fbb33] - page.onError - msg: Error: undefined is not an object (evaluating '$rootScope.currentUser.username')
controller@APP_URL/application/js/main/app.js:66:92
d@APP_URL/application/lib/angular/core/angular.min.js:30:525
instantiate@APP_URL/application/lib/angular/core/angular.min.js:31:81
APP_URL/application/lib/angular/core/angular.min.js:61:692
APP_URL/application/lib/angular/ui-router/angular-ui-router.min.js:7:15451
E@APP_URL/application/lib/angular/core/angular.min.js:49:346
f@APP_URL/application/lib/angular/core/angular.min.js:42:400
APP_URL/application/lib/angular/core/angular.min.js:42:68
j@APP_URL/application/lib/angular/ui-router/angular-ui-router.min.js:7:42776
APP_URL/application/lib/angular/ui-router/angular-ui-router.min.js:7:28756
E@APP_URL/application/lib/angular/core/angular.min.js:49:346
f@APP_URL/application/lib/angular/core/angular.min.js:42:379
f@APP_URL/application/lib/angular/core/angular.min.js:42:417
APP_URL/application/lib/angular/core/angular.min.js:42:68
APP_URL/application/lib/angular/ui-router/angular-ui-router.min.js:7:15596
E@APP_URL/application/lib/angular/core/angular.min.js:49:346
f@APP_URL/application/lib/angular/core/angular.min.js:42:400
APP_URL/application/lib/angular/core/angular.min.js:42:68
j@APP_URL/application/lib/angular/ui-router/angular-ui-router.min.js:7:42776
APP_URL/application/lib/angular/ui-router/angular-ui-router.min.js:7:43045
$broadcast@APP_URL/application/lib/angular/core/angular.min.js:104:526
APP_URL/application/lib/angular/ui-router/angular-ui-router.min.js:7:32464
C@APP_URL/application/lib/angular/core/angular.min.js:92:466
APP_URL/application/lib/angular/core/angular.min.js:94:65
$eval@APP_URL/application/lib/angular/core/angular.min.js:102:293
$digest@APP_URL/application/lib/angular/core/angular.min.js💯55
$apply@APP_URL/application/lib/angular/core/angular.min.js:103:107
f@APP_URL/application/lib/angular/core/angular.min.js:67:104
E@APP_URL/application/lib/angular/core/angular.min.js:71:118 onreadystatechange@APP_URL/application/lib/angular/core/angular.min.js:72:160

phantomjs://platform/console++.js:263 in error
[ERROR - 2016-12-26T16:44:56.652Z] Session [9d504e30-cb8a-11e6-86da-d36f0b1fbb33] - page.onError - stack:
(anonymous function) (APP_URL/application/lib/angular/core/angular.min.js:84)

Let me know if you need more informations.

Thank you in advance for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment