• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Javascript problem with OpenSpecimen 4 (GUI not loading)

    We have tried to install the new Version 4 of OpenSpecimen in our BIBBOX System (docker containers). The System installs normally (like version 3.3), we have not seen any errors in the log files (java) but in the javascript we are getting the error below. It seams there is a problem with the angular versions.

    We are building the war file automatically with a docker container:
    https://github.com/bibbox/app-openspecimen/tree/master/images/openspecimen-gradle

    Thanks for your help!
    Best
    Robert

    Uncaught TypeError: b.module(...).info is not a function at vendor.510193f1.js:26 at vendor.510193f1.js:26scripts.475368ea.js:7 Uncaught TypeError: Cannot read property 'common' of undefined at scripts.475368ea.js:7scripts.475368ea.js:1 Bootstraping...vendor.510193f1.js:4 Uncaught Error: [$injector:modulerr] Failed to instantiate module openspecimen due to:Error: [$injector:modulerr] Failed to instantiate module os.biospecimen due to:Error: [$injector:modulerr] Failed to instantiate module os.biospecimen.participant due to:Error: [$injector:nomod] Module 'os.biospecimen.participant' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.http://errors.angularjs.org/1.3.20/$injector/nomod?p0=os.biospecimen.participant at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:19768 at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:28136 at b (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:27708) at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:28020 at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4422 at f (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:20175) at n (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4270) at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4439 at f (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:20175) at n (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4270)http://errors.angularjs.org/1.3.20/$injector/modulerr?p0=os.biospecimen.participant&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'os.biospecimen.participant'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.20%2F%24injector%2Fnomod%3Fp0%3Dos.biospecimen.participant%0A%20%20%20%20at%20http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A3%3A19768%0A%20%20%20%20at%20http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A3%3A28136%0A%20%20%20%20at%20b%20(http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A3%3A27708)%0A%20%20%20%20at%20http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A3%3A28020%0A%20%20%20%20at%20http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A4%3A4422%0A%20%20%20%20at%20f%20(http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A3%3A20175)%0A%20%20%20%20at%20n%20(http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A4%3A4270)%0A%20%20%20%20at%20http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A4%3A4439%0A%20%20%20%20at%20f%20(http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A3%3A20175)%0A%20%20%20%20at%20n%20(http%3A%2F%2Fopenspecimen.dev.bibbox.org%2Fscripts%2Fvendor.510193f1.js%3A4%3A4270) at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:19768 at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4698 at f (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:20175) at n (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4270) at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4439 at f (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:20175) at n (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4270) at http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4439 at f (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:3:20175) at n (http://openspecimen.dev.bibbox.org/scripts/vendor.510193f1.js:4:4270)http://errors.angularjs.org/1.3.20/$injector/modulerr?

    We got past this by initially copying over the full index.html and the missing directories.

    If you do grade build and/or compileJave(?, on train, think it’s compikeJava) and replace the www/dist/index.html with the full one, then gradle deploy it seems to deploy correctly. I think the index.html is getting mangled during the build.

    John

    Hi @Robert_Reihs

    Give us some time to debug and see what is the problem.

    Please do not copy files from source directory. The JS and HTML templates that are shipped with OS build are concatenated, uglified, minimised and appropriate hash code is added so that only the latest JS files are used by the browser. Further there will be only 2 HTTP requests to load the JS scripts (vendor i.e. 3rd party and scripts i.e. OS). If you copy files by hand, tonnes of HTTP requests will be made, which will slow down the initial page loading…

    We’ll come back on this and let you know how to move forward.

    Thanks

    We have fixed the bug. It is Angular dependency version problem. When using Angular 1.3.20 you need to make shure your angular-animate version is also locked to 1.3.20

    in …/www/bower.json (add after line 47) JSON dependencies:
    add “angular-animate”: “1.3.20” after “angular-cookies”: “~1.3.15”

    bower.json (1.5 KB)

    Thanks @Robert_Reihs. We will get back to you shortly. We have been busy with the v4.1 release and have not been able to spend time on this.

    ~Sri