CMDBuild Forum

Uploading Files to Alfresco

I know I have installed Alfresco Community 4.0.d and after some modifications to the protocols.dirRoot path, I Was Able to access the CMDBuild space via FTP.

This then means-CMDBuild Should Be Able to upload files.

 

However, when i attempt to upload files via CMDBuild en Creates the folder hierarchy to the card Within alfresco. g CMDBuild> cmdbserver> class> card> id but it gets an exception When Attempting to upload the files. 

Here's some log file errors:

INFO 28/06/2012 10:07:08 [jsonrpc] Calling URL / management / modcard / uploadattachment

28.06.2012 10:07:10 ERROR [org.cmdbuild.dms.alfresco.webservice.SingleSearchCommand] error while search for files

-----
ERROR 2012-06-28 10:07:10 [org.cmdbuild.dms.alfresco.ftp.AlfrescoFtpService] error updating metadata for file 'myfile.jpg' at path '[mydatabase, contact, Id514]'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [dms     ] error uploading file 'myfile.jpg' to card 'contact' with id '514'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [jsonrpc ] A org.cmdbuild.exception.ORMException occurred calling method class org.cmdbuild.servlets.json.management.ModCard.uploadAttachment: ORM_ATTACHMENT_UPLOAD_FAILED
error while search for file
-----
 
Now I can upload the file directly using an FTP client and this does appear within the attachments section of card ID 514.
 
Any suggestions?
 
Thanks,
Jamie
Anyone got an answer to this? I have the same issue. The alfresco log shows that the file was uploaded but it looks like the category is not able to be applied and the whole thing rolls back. I have created categories in Alfresco matching my AlfrescoCategories lookup in CMDBuild so there is a match on category codes, at least - what else do I have to do?
 
 
Jamie ha scritto:

I know I have installed Alfresco Community 4.0.d and after some modifications to the protocols.dirRoot path, I Was Able to access the CMDBuild space via FTP.

This then means-CMDBuild Should Be Able to upload files.

 

However, when i attempt to upload files via CMDBuild en Creates the folder hierarchy to the card Within alfresco. g CMDBuild> cmdbserver> class> card> id but it gets an exception When Attempting to upload the files. 

Here's some log file errors:

INFO 28/06/2012 10:07:08 [jsonrpc] Calling URL / management / modcard / uploadattachment

28.06.2012 10:07:10 ERROR [org.cmdbuild.dms.alfresco.webservice.SingleSearchCommand] error while search for files

-----
ERROR 2012-06-28 10:07:10 [org.cmdbuild.dms.alfresco.ftp.AlfrescoFtpService] error updating metadata for file 'myfile.jpg' at path '[mydatabase, contact, Id514]'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [dms     ] error uploading file 'myfile.jpg' to card 'contact' with id '514'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [jsonrpc ] A org.cmdbuild.exception.ORMException occurred calling method class org.cmdbuild.servlets.json.management.ModCard.uploadAttachment: ORM_ATTACHMENT_UPLOAD_FAILED
error while search for file
-----
 
Now I can upload the file directly using an FTP client and this does appear within the attachments section of card ID 514.
 
Any suggestions?
 
Thanks,
Jamie

 

 
Hi,
 
I have the exactly the same issue. Any news on it ?
 
 
chrmcq ha scritto:
Anyone got an answer to this? I have the same issue. The alfresco log shows that the file was uploaded but it looks like the category is not able to be applied and the whole thing rolls back. I have created categories in Alfresco matching my AlfrescoCategories lookup in CMDBuild so there is a match on category codes, at least - what else do I have to do?
 
 
Jamie ha scritto:

I know I have installed Alfresco Community 4.0.d and after some modifications to the protocols.dirRoot path, I Was Able to access the CMDBuild space via FTP.

This then means-CMDBuild Should Be Able to upload files.

 

However, when i attempt to upload files via CMDBuild en Creates the folder hierarchy to the card Within alfresco. g CMDBuild> cmdbserver> class> card> id but it gets an exception When Attempting to upload the files. 

Here's some log file errors:

INFO 28/06/2012 10:07:08 [jsonrpc] Calling URL / management / modcard / uploadattachment

28.06.2012 10:07:10 ERROR [org.cmdbuild.dms.alfresco.webservice.SingleSearchCommand] error while search for files

-----
ERROR 2012-06-28 10:07:10 [org.cmdbuild.dms.alfresco.ftp.AlfrescoFtpService] error updating metadata for file 'myfile.jpg' at path '[mydatabase, contact, Id514]'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [dms     ] error uploading file 'myfile.jpg' to card 'contact' with id '514'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [jsonrpc ] A org.cmdbuild.exception.ORMException occurred calling method class org.cmdbuild.servlets.json.management.ModCard.uploadAttachment: ORM_ATTACHMENT_UPLOAD_FAILED
error while search for file
-----
 
Now I can upload the file directly using an FTP client and this does appear within the attachments section of card ID 514.
 
Any suggestions?
 
Thanks,
Jamie

 

 

 

Actually, Alfresco 4.x isn't supported. We are planning to support it in the next releases.
 
Best regards,
Davide
 
Sarrodie ha scritto:
Hi,
 
I have the exactly the same issue. Any news on it ?
 
 
chrmcq ha scritto:
Anyone got an answer to this? I have the same issue. The alfresco log shows that the file was uploaded but it looks like the category is not able to be applied and the whole thing rolls back. I have created categories in Alfresco matching my AlfrescoCategories lookup in CMDBuild so there is a match on category codes, at least - what else do I have to do?
 
 
Jamie ha scritto:

I know I have installed Alfresco Community 4.0.d and after some modifications to the protocols.dirRoot path, I Was Able to access the CMDBuild space via FTP.

This then means-CMDBuild Should Be Able to upload files.

 

However, when i attempt to upload files via CMDBuild en Creates the folder hierarchy to the card Within alfresco. g CMDBuild> cmdbserver> class> card> id but it gets an exception When Attempting to upload the files. 

Here's some log file errors:

INFO 28/06/2012 10:07:08 [jsonrpc] Calling URL / management / modcard / uploadattachment

28.06.2012 10:07:10 ERROR [org.cmdbuild.dms.alfresco.webservice.SingleSearchCommand] error while search for files

-----
ERROR 2012-06-28 10:07:10 [org.cmdbuild.dms.alfresco.ftp.AlfrescoFtpService] error updating metadata for file 'myfile.jpg' at path '[mydatabase, contact, Id514]'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [dms     ] error uploading file 'myfile.jpg' to card 'contact' with id '514'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [jsonrpc ] A org.cmdbuild.exception.ORMException occurred calling method class org.cmdbuild.servlets.json.management.ModCard.uploadAttachment: ORM_ATTACHMENT_UPLOAD_FAILED
error while search for file
-----
 
Now I can upload the file directly using an FTP client and this does appear within the attachments section of card ID 514.
 
Any suggestions?
 
Thanks,
Jamie

 

 

 

 

Thank you for the answer (not the one I expected, but at least it's clear now).
 
Tecnoteca ha scritto:
Actually, Alfresco 4.x isn't supported. We are planning to support it in the next releases.
 
Best regards,
Davide
 
Sarrodie ha scritto:
Hi,
 
I have the exactly the same issue. Any news on it ?
 
 
chrmcq ha scritto:
Anyone got an answer to this? I have the same issue. The alfresco log shows that the file was uploaded but it looks like the category is not able to be applied and the whole thing rolls back. I have created categories in Alfresco matching my AlfrescoCategories lookup in CMDBuild so there is a match on category codes, at least - what else do I have to do?
 
 
Jamie ha scritto:

I know I have installed Alfresco Community 4.0.d and after some modifications to the protocols.dirRoot path, I Was Able to access the CMDBuild space via FTP.

This then means-CMDBuild Should Be Able to upload files.

 

However, when i attempt to upload files via CMDBuild en Creates the folder hierarchy to the card Within alfresco. g CMDBuild> cmdbserver> class> card> id but it gets an exception When Attempting to upload the files. 

Here's some log file errors:

INFO 28/06/2012 10:07:08 [jsonrpc] Calling URL / management / modcard / uploadattachment

28.06.2012 10:07:10 ERROR [org.cmdbuild.dms.alfresco.webservice.SingleSearchCommand] error while search for files

-----
ERROR 2012-06-28 10:07:10 [org.cmdbuild.dms.alfresco.ftp.AlfrescoFtpService] error updating metadata for file 'myfile.jpg' at path '[mydatabase, contact, Id514]'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [dms     ] error uploading file 'myfile.jpg' to card 'contact' with id '514'
org.cmdbuild.dms.exception.FileNotFoundException: file 'myfile.jpg' not found for class 'contact' with id '514'
-----
ERROR 2012-06-28 10:07:10 [jsonrpc ] A org.cmdbuild.exception.ORMException occurred calling method class org.cmdbuild.servlets.json.management.ModCard.uploadAttachment: ORM_ATTACHMENT_UPLOAD_FAILED
error while search for file
-----
 
Now I can upload the file directly using an FTP client and this does appear within the attachments section of card ID 514.
 
Any suggestions?
 
Thanks,
Jamie