cancel
Showing results for 
Search instead for 
Did you mean: 

AngularJS Modeler not working in Firefox 34 and Chrome 39

b_schnarr
Champ in-the-making
Champ in-the-making
When I try to create a new process model with the new AngularJS designer in Activiti 5.17, I get the following error in firefox:

Error: model.stencilset is undefined ORYX.Editor.construct@http://10.120.40.24:8080/activiti-explorer1/editor-app/editor/oryx.debug.js:10923:8 Clazz.extend/classDef@http://10.120.40.24:8080/activiti-explorer1/editor-app/editor/oryx.debug.js:1757:39 fetchModel/<@http://10.120.40.24:8080/activiti-explorer1/editor-app/app.js:102:45 q/g.success/<@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:67:279 Bd/e/l.promise.then/B@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.... Bd/e/l.promise.then/B@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.... Bd/f/<.then/<@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:95:173 Cd/this.$get</h.prototype.$eval@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:103:452 Cd/this.$get</h.prototype.$digest@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:101:210 Cd/this.$get</h.prototype.$apply@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:104:262 g@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:68:21 I@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:72:109 qd/</y.onreadystatechange@http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:73:154
   

…&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.conso…


Chrome says:

 GET http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js.map 404 (Not Found)
:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular-animate.min.js.map:1 GET http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular-animate.min.js.ma... 404 (Not Found)
angular.min.js:85 TypeError: Cannot read property 'namespace' of undefined
    at ORYX.Editor.construct (http://10.120.40.24:8080/activiti-explorer1/editor-app/editor/oryx.debug.js:10923:33)
    at classDef (http://10.120.40.24:8080/activiti-explorer1/editor-app/editor/oryx.debug.js:1757:54)
    at http://10.120.40.24:8080/activiti-explorer1/editor-app/app.js:102:45
    at http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:67:279
    at B (http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:94:5)
    at B (http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:94:5)
    at http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:95:173
    at h.$eval (http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:103:456)
    at h.$digest (http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:101:218)
    at h.$apply (http://10.120.40.24:8080/activiti-explorer1/editor-app/libs/angular_1.2.13/angular.min.js:104:264)angular.min.js:85 (anonymous function)angular.min.js:63 (anonymous function)angular.min.js:94 Bangular.min.js:94 Bangular.min.js:95 (anonymous function)angular.min.js:103 h.$evalangular.min.js:101 h.$digestangular.min.js:104 h.$applyangular.min.js:68 gangular.min.js:72 Iangular.min.js:73 y.onreadystatechange


I only installed the explorer standalone, no LDAP, only example users and example processes.

Do you have any ideas?
Best regards
Ben
14 REPLIES 14

b_schnarr
Champ in-the-making
Champ in-the-making
No one?

b_schnarr
Champ in-the-making
Champ in-the-making
Am I the only one with this problem?

jbarrez
Star Contributor
Star Contributor
No, it works here on FF and Chrome (on mac).

When do you get this error? 

I'm using version 39.0.2171.95 (64-bit)

b_schnarr
Champ in-the-making
Champ in-the-making
When I try to open the modeler in the Activiti Explorer. A part of the GUI gets loaded, but before the stencilsets are displayed, nothing happens anymore and the browser consoles give me the messages from above.

b_schnarr
Champ in-the-making
Champ in-the-making
On Tomcat, I am using the build in Tomcat-CORS filter. Could that cause issues? Maybe some headers which are not present in the allow-headers section?

jbarrez
Star Contributor
Star Contributor
Hmm don't think so, there is no specific header as far as I know.

I do see that your chrome log shows it's running on 'explorer1', and not the default activiti-explorer.
Could you try and updating this file in your deployment: https://github.com/Activiti/Activiti/blob/master/modules/activiti-webapp-explorer2/src/main/webapp/e... , and change the context root to the correct one?

b_schnarr
Champ in-the-making
Champ in-the-making
That´s what I call great support! After changing the context path from 'explorer1' to 'explorer', everything worked fine. Thanks a lot for this hint!

jbarrez
Star Contributor
Star Contributor
No prob. If you want to change the context root, you can do it in the file above.
The reason why it's needed is because it's currently the only way we found to make it work on all app servers/environments. A little bit painful, but it's only a oneliner 😉

abdou2387
Champ in-the-making
Champ in-the-making
i import the activiti 5.17 in my eclipse
i change the database config to my sql driver in the file "/activiti-webapp-explorer2/src/main/resources/db.properties".
the dabase is generated correctly .
the explorer works fine .
but when i try to create a new model or edit the demo model, i get an error 404 the get of json and the modeler is amppty.
error :Error loading model with id 50

please i am blocked
it is very urgent

Best regards