Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceErrors when running in Jenkins with symlinked JENKINS_HOME #318

Closed
doogiecode opened this issue Mar 24, 2017 · 3 comments
Closed
Labels
stale Issues with no activity

Comments

@doogiecode
Copy link

Hi there,

I'm writing to pass along an issue I ran into yesterday. I've worked around it for my use case, but I'm betting someone else may discover it, and maybe in a different context.

I committed jasmine-maven-plugin and some spec files with a few tests in them to the main branch in a codebase I work on. This same branch has a Jenkins job that checks it out and runs it on new commits.

The Jenkins job failed due to Jasmine reporting ReferenceErrors on the tests. I scratched my head for a while as to why this could be. I tried going into the workspace directory and running mvn clean package to see if I could get the same error outside Jenkins. The errors didn't reproduce. I wondered why this could be.

I then copied the Maven command that Jenkins was using out of the Jenkins console output. This command had full paths in it. And the build failed. I celebrated because I'd reproduced the ReferenceErrors outside Jenkins, even if I hadn't solved them.

So I started changing a thing at a time until I got a success. And the change that made it work was me changing the pom file path from /var/lib/jenkins/[...]/pom.xml to /opt/jenkins/[...]/pom.xml I then noticed that on my system, /var/lib/jenkins was a symlink to opt/jenkins.

This to me says there is some code that doesn't cope well with symlinks in jasmine-maven-plugin, or PhantomJS, or the Maven plugin installing PhantomJS, or Maven itself, or a combination of these. I'm writing this in case someone wants to figure out where such code is.

To reproduce this, make a symlink to the Maven project directory where you're using jasmine-maven-plugin and then run mvn clean test -f SYMLINK_PATH/pom.xml where SYMLINK_PATH is the full non-relative path on your system to the symlinked project directory.

PS The ReferenceErrors looked like this and suggest the issue I was experiencing was due to something related to PhantomJS or Javascript or maybe even AngularJS, which it wasn't:

{"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO  - 2017-03-24T14:46:53.577Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: b8931c30-10a0-11e7-bd17-2bee59b1544a
[ERROR - 2017-03-24T14:46:54.225Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.225Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/chart/chart.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.226Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.228Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/datatable/datatable.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.229Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.229Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/detailView/detailView.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.230Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.230Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/filteredChart/filteredChart.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.231Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.231Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/keyvalue/keyvalue.controller.js:7)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.232Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.232Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/keyvaluePopup/keyvaluePopup.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.234Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.234Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/linkGraph/linkGraph.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.235Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.236Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/listView/listView.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.237Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.237Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/map/mapView.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.237Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.244Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/components/static/static.controller.js:5)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.245Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.245Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/collapsiblePanel/collapsiblePanel.directive.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.246Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.246Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/expired/expired.controller.js:5)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.247Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.247Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/filterConfiguration.service.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.253Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.255Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/filterPanel.controller.js:10)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.281Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.281Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/filterPanelState.service.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.284Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.285Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/filters.module.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.285Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.287Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/finder/filterFinder.controller.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.297Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.297Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/finder/filterFinder.directive.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.300Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.301Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/finder/filterFinder.module.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.301Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.302Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/finder/filterFinderPopoverItem.directive.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.302Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.303Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/finder/filterFinderTypicalItem.controller.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.303Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.303Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/finder/filterFinderTypicalItem.directive.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.304Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.304Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/searchFilter.service.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.309Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.310Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/dateFilter/dateFilter.m-d-c.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.319Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.319Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/enumeratedCheckboxFilter/enumeratedCheckboxFilter.m-d-c.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.336Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.340Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/enumeratedDoubleboxFilter/enumeratedDoubleboxFilter.m-d-c.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.341Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.341Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/enumeratedTreeFilter/enumeratedTreeFilter.m-d-c.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.342Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.342Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/filters.types.module.js:19)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.343Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.343Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/numberFilter/numberFilter.m-d-c.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.344Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.344Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/searchTextFilter/searchTextFilter.m-d-c.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.347Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: angular

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.352Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/core/filters/types/singleValueFilter/singleValueFilter.m-d-c.js:4)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.356Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.357Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/footer/footer.controller.js:7)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.358Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.358Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/header/header.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.361Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.364Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/login/login.controller.js:5)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.367Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.368Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/menu/menu.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.370Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.372Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/menu/viz.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.375Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.376Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/navigationBar/navigationBar.controller.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.385Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.386Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/notifications/notifications.controller.js:5)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.389Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: myApp

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.389Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  global code (http://localhost:33956/src/core/users/users.controller.js:5)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.399Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: TypeError: undefined is not an object (evaluating 'e.equals')

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.399Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/angular-cache/angular-cache.min.js:11)
  b (http://localhost:33956/src/js/angular-cache/angular-cache.min.js:11)
  (anonymous function) (http://localhost:33956/src/js/angular-cache/angular-cache.min.js:11)
  (anonymous function) (http://localhost:33956/src/js/angular-cache/angular-cache.min.js:11)
  (anonymous function) (http://localhost:33956/src/js/angular-cache/angular-cache.min.js:11)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.407Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: TypeError: undefined is not an object (evaluating 'B.$$minErr')

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.408Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/angular/angular-animate.min.js:13)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.415Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: TypeError: Attempted to assign to readonly property.

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.415Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/angular/angular-mocks.js:18)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.418Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: TypeError: undefined is not an object (evaluating 'd.module')

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.418Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/angular/angular-route.min.js:7)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.421Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: TypeError: undefined is not an object (evaluating 'g.$$minErr')

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.422Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/angular/angular-sanitize.min.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.449Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: d3

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.449Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/charts/d3.legend.js:6)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.477Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: jQuery

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.477Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/datatables/dataTables.min.js:17)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.479Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: Picker

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.480Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/datepicker/picker.date.js:17)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.482Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: jQuery

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.482Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/datepicker/picker.js:19)

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.484Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - msg: ReferenceError: Can't find variable: Picker

  phantomjs://platform/console++.js:263 in error
[ERROR - 2017-03-24T14:46:54.484Z] Session [b8931c30-10a0-11e7-bd17-2bee59b1544a] - page.onError - stack:
  (anonymous function) (http://localhost:33956/src/js/datepicker/picker.time.js:17)

  phantomjs://platform/console++.js:263 in error
[WARNING] JavaScript Console Errors:

  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: angular
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * ReferenceError: Can't find variable: myApp
  * TypeError: undefined is not an object (evaluating 'e.equals')
  * TypeError: undefined is not an object (evaluating 'B.$$minErr')
  * TypeError: Attempted to assign to readonly property.
  * TypeError: undefined is not an object (evaluating 'd.module')
  * TypeError: undefined is not an object (evaluating 'g.$$minErr')
  * ReferenceError: Can't find variable: d3
  * ReferenceError: Can't find variable: jQuery
  * ReferenceError: Can't find variable: Picker
  * ReferenceError: Can't find variable: jQuery
  * ReferenceError: Can't find variable: Picker


[INFO  - 2017-03-24T14:46:54.921Z] ShutdownReqHand - _handle - About to shutdown
[INFO] stopped o.e.j.s.h.ContextHandler{/webjars,file:/opt/jenkins/jobs/my-app-base/workspace/}
[INFO] stopped o.e.j.s.h.ContextHandler{/classpath,file:/opt/jenkins/jobs/my-app-base/workspace/}
[INFO] stopped o.e.j.s.h.ContextHandler{/,file:/opt/jenkins/jobs/my-app-base/workspace/}
[INFO] stopped o.e.j.s.h.ContextHandler{/spec,file:/opt/jenkins/jobs/my-app-base/workspace/}
[INFO] stopped o.e.j.s.h.ContextHandler{/src,file:/opt/jenkins/jobs/my-app-base/workspace/}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2017-03-24T10:46:55-04:00
[INFO] Final Memory: 44M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.searls:jasmine-maven-plugin:2.2:test (default) on project my-app-base: The jasmine-maven-plugin encountered an exception:
[ERROR] java.lang.RuntimeException: java.lang.RuntimeException: There were javascript console errors.
[ERROR] 
[ERROR] JavaScript Console Errors:
[ERROR] 
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * TypeError: undefined is not an object (evaluating 'e.equals')
[ERROR] * TypeError: undefined is not an object (evaluating 'B.$$minErr')
[ERROR] * TypeError: Attempted to assign to readonly property.
[ERROR] * TypeError: undefined is not an object (evaluating 'd.module')
[ERROR] * TypeError: undefined is not an object (evaluating 'g.$$minErr')
[ERROR] * ReferenceError: Can't find variable: d3
[ERROR] * ReferenceError: Can't find variable: jQuery
[ERROR] * ReferenceError: Can't find variable: Picker
[ERROR] * ReferenceError: Can't find variable: jQuery
[ERROR] * ReferenceError: Can't find variable: Picker
[ERROR] 
[ERROR] 
[ERROR] at com.github.searls.jasmine.runner.SpecRunnerExecutor.execute(SpecRunnerExecutor.java:51)
[ERROR] at com.github.searls.jasmine.mojo.TestMojo.executeSpecs(TestMojo.java:229)
[ERROR] at com.github.searls.jasmine.mojo.TestMojo.run(TestMojo.java:196)
[ERROR] at com.github.searls.jasmine.mojo.AbstractJasmineMojo.execute(AbstractJasmineMojo.java:423)
[ERROR] at com.github.searls.jasmine.mojo.TestMojo.execute(TestMojo.java:183)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Caused by: java.lang.RuntimeException: There were javascript console errors.
[ERROR] 
[ERROR] JavaScript Console Errors:
[ERROR] 
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: angular
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * ReferenceError: Can't find variable: myApp
[ERROR] * TypeError: undefined is not an object (evaluating 'e.equals')
[ERROR] * TypeError: undefined is not an object (evaluating 'B.$$minErr')
[ERROR] * TypeError: Attempted to assign to readonly property.
[ERROR] * TypeError: undefined is not an object (evaluating 'd.module')
[ERROR] * TypeError: undefined is not an object (evaluating 'g.$$minErr')
[ERROR] * ReferenceError: Can't find variable: d3
[ERROR] * ReferenceError: Can't find variable: jQuery
[ERROR] * ReferenceError: Can't find variable: Picker
[ERROR] * ReferenceError: Can't find variable: jQuery
[ERROR] * ReferenceError: Can't find variable: Picker
[ERROR] 
[ERROR] 
[ERROR] at com.github.searls.jasmine.runner.ConsoleErrorChecker.checkForConsoleErrors(ConsoleErrorChecker.java:17)
[ERROR] at com.github.searls.jasmine.runner.SpecRunnerExecutor.execute(SpecRunnerExecutor.java:42)
[ERROR] ... 26 more
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@TejaJag
Copy link

TejaJag commented Mar 11, 2019

Even I am facing similar issue

@github-actions
Copy link

github-actions bot commented Feb 4, 2021

This issue has been marked as stale because it has not been updated in 60 days. Please add a comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale Issues with no activity label Feb 4, 2021
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues with no activity
Projects
None yet
Development

No branches or pull requests

2 participants