nelsonmp19 / alfresco-form-model-management

Automatically exported from code.google.com/p/alfresco-form-model-management
0 stars 0 forks source link

After creating the model, the screen freezes #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.installed it using java -jar /path/alfresco-4.0.d/bin/alfresco-mmt.jar 
install alf_forms_management_1_2_3.amp alfresco.war -verbose
2.manually created two spaces under company home > data dictionary, called 
"Constraints" and "JsonModels" respectively.
3. restarted , then when creating a model, it keeps on going on loop as show in 
the attachment 

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
I have tried with Ubuntu12.04 and Centos 5.4

Please provide any additional information below.
and when I try "http://127.0.0.1:8080/alfresco/wcs/form-builder/builder" 
I get the error message
Message:    04160013 Wrapped Exception (with status template): 04160068 Failed to 
execute script 
'classpath*:alfresco/templates/webscripts/ca/ab/fm/formsmanagement/form-builder/
form-builder.get.js': 04160067 TypeError: Cannot read property "children" from 
null 
(file:/home/saji/alfresco-4.0.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco
/templates/webscripts/ca/ab/fm/formsmanagement/form-builder/form-builder.get.js#
141)

Exception:  org.mozilla.javascript.EcmaError - TypeError: Cannot read property 
"children" from null 
(file:/home/saji/alfresco-4.0.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco
/templates/webscripts/ca/ab/fm/formsmanagement/form-builder/form-builder.get.js#
141)

    org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)

Original issue reported on code.google.com by jjk.s...@gmail.com on 16 May 2012 at 3:53

Attachments:

GoogleCodeExporter commented 9 years ago
When you are saving that model. Can you use FireBug to see what the response is 
and post it back here. I'm going to install a local copy of the AMP posted in 
googlecode and see if i can replicate your issue.

Original comment by mike.pri...@abstractive.ca on 16 May 2012 at 4:02

GoogleCodeExporter commented 9 years ago
I have re-installed on my local and everything works as expected. I am about to 
upload a new AMP on google code here. Here is a breakdown of what error you are 
receiving in regards to the children of null.

File: 
classpath:alfresco/templates/webscripts/ca/ab/fm/formsmanagement/utils/locale/al
fresco-locale.js

LINE 5     fmPath.jsonModels = "Data Dictionary/Models/JsonModels/";

LINE 141   var jsonList = 
companyhome.childByNamePath(fmPath.jsonModels).children;

If it cannot find the children of null it cannot find Company Home/Data 
Dictionary/Models/JsonModels/

Original comment by mike.pri...@abstractive.ca on 16 May 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Hi Mike, I did tryout again, first by removing the previous setup and doing it 
from the beginning, This time I did first created  company home > data 
dictionary, called "Constraints" and "JsonModels", Then I did "java -jar 
/path/alfresco-4.0.d/bin/alfresco-mmt.jar install 
alf_forms_management_1_2_3.amp alfresco.war -verbose

  I am getting the same screen same messages. Today  from office also I have tried and at home PC also I am trying,every time I get the  same scenario

If I am not getting it correct,in office and at home. I am sure there should be 
something wrong in which I am doing 

This is the steps which I did in all the installation
(1) java -jar /path/alfresco-4.0.d/bin/alfresco-mmt.jar install 
alf_forms_management_1_2_3.amp alfresco.war -verbose
(2) created two spaces under company home > data dictionary, called 
"Constraints" and "JsonModels"
(3) restarted the alfreso  service 
(4) browsed to "http://localhost:8080/alfresco/wcs/form-builder/model-manager" 
(5) tried to create a new model, then the same result
*********
Now I tried to search for JsonModels , in the ssytem and I did not get any 
result
saji@saji-EP35C-DS3R:~/alfresco-4.0.d/tomcat$ find . -name "JsonModels" -print
saji@saji-EP35C-DS3R:~/alfresco-4.0.d/tomcat$ pwd
/home/saji/alfresco-4.0.d/tomcat
saji@saji-EP35C-DS3R:~/alfresco-4.0.d/tomcat$ find . -name "JsonModels*" -print
saji@saji-EP35C-DS3R:~/alfresco-4.0.d/tomcat$ find . -iname "Models" -print
saji@saji-EP35C-DS3R:~/alfresco-4.0.d/tomcat$ cd ..
saji@saji-EP35C-DS3R:~/alfresco-4.0.d$ find . -name "JsonModels" -print
saji@saji-EP35C-DS3R:~/alfresco-4.0.d$ find . -iname "Models" -print
saji@saji-EP35C-DS3R:~/alfresco-4.0.d$ pwd
/home/saji/alfresco-4.0.d

##############
I am attaching the screen shot of Alfresco, where I have created the two spaces 
"Constraints" and "JsonModels"

Original comment by jjk.s...@gmail.com on 16 May 2012 at 5:33

Attachments:

GoogleCodeExporter commented 9 years ago
Ok i can see whats happening. You need to add those space UNDER the models 
folder. You have just added them to Company Home/Data Dictionary and not 
Company Home/Data Dictionary/Models.

Original comment by mike.pri...@abstractive.ca on 16 May 2012 at 5:38

GoogleCodeExporter commented 9 years ago
Thanks a lots, it is working now, with out any error messages
It was my mistake, THANKS a lot 

Original comment by jjk.s...@gmail.com on 16 May 2012 at 5:54

Attachments:

GoogleCodeExporter commented 9 years ago
No problem!

Original comment by mike.pri...@abstractive.ca on 16 May 2012 at 5:55

GoogleCodeExporter commented 9 years ago

Original comment by mike.pri...@abstractive.ca on 16 May 2012 at 5:55