Alfresco Labs: Current version 3.0.0 (b 1164) schema 131 - Installed version 3.0.0 (b 1164) schema 131:
I'm working on a document and image transformation webscript (with JavaScript API) but i've got three troubles:
1. An unhandled DuplicateChildNodeNameException received when a target node name already exists, not just a null return!
Why? How can i handle this exception by webscript?
2. When a transformation error presents - transformDocument or transformImage returns with null - output node with new name already created, and contains the content of the source node!
Why? How can i receive the node id to remove?
3. Transformation requires an installed, and configured OpenOffice.org in Alfresco, but the relaunch of - an exited - OOo is not works, just avoid upcoming transformation processes!
Why? What is the main function of OpenOfficeConnectionTester if that does not reload OpenOffice service?
Source code of the content transform webscript for Alfresco: http://louise.hu/poet/?p=970
__ http://louise.hu __
MikeH
- Posts
- 3931
- Achievements
- 6
- Member for
- 7 years 9 months
- From
- Alfresco HQ
Alfresco Employee
Stats
It probably doesn't help that your transformed variable goes out of scope before you try to use it.
Mike
Mike Hatfield
Lead Engineer, Mobile Apps
Find me on Twitter
Get the Alfresco iOS app!
Get the Alfresco Android app!
LouiSe
- Posts
- 45
- Achievements
- 2
- Member for
- 4 years 11 months
- From
- Hungary
Stats
No, the webscript works, i noticed Alfresco bugs...
__ http://louise.hu __
ivo.costa
- Posts
- 147
- Achievements
- 4
- Member for
- 4 years 9 months
Stats
I've got to agree with Mike
your transformation variable goes out of scope...
in place of:
try
it makes a lot of more sense
on the openoffice "issue" I can think of a lot of reasons why call back on soffice would be a mistake
for example: connection may be simply unavailable for a moment (busy... who knows?) calling on soffice again would only make soffice throw an erro, fill up more memory, make OS unstable (don't really know witch one)
ivo.costa
- Posts
- 147
- Achievements
- 4
- Member for
- 4 years 9 months
Stats
one thing I've got to agree
when a tranformation failed, in some cases alfresco still keept the target node as if it worked so if you don't know about the transformation problem the user will believe that it was a success... don't know if this was corrected althoug
for the exception... use a java backed webscript... a try...catch block can handle that problem
this little bug is no big deal... talking about a storm in a glass of water
serverok
- Posts
- 10
- Achievements
- 1
- Member for
- 4 years 2 months
Stats
I have this problem too.
But I think this feature must be included in transformDocument function