<!-- 
RSS generated by JIRA (8.1.3#801003-sha1:6b6f07cffadda9a0d6efe24639daed8ce94dcdd6) at Sat Feb 10 05:51:15 GMT 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Rivet Logic Corporation JIRA </title>
    <link>https://issues.rivetlogic.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.1.3</version>
        <build-number>801003</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[CMA-7] ActionService.executeAction cannot return a java.util.Map as a result, throws exception</title>
                <link>https://issues.rivetlogic.com/browse/CMA-7</link>
                <project id="10015" key="CMA">Remote Alfresco API rivet</project>
                    <description>My code:&lt;br/&gt;
		Map&amp;lt;String,NodeRef&amp;gt; allNodeRefs = new HashMap&amp;lt;String, NodeRef&amp;gt;(10);&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;....&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	action.setParameterValue(PARAM_RESULT, (Serializable) allNodeRefs);&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
thrown exception:&lt;br/&gt;
&lt;br/&gt;
com.rivetlogic.core.cma.exception.CmaRuntimeException: org.exolab.castor.xml.MarshalException: element &amp;quot;result&amp;quot; occurs more than once. (parent class: com.rivetlogic.core.cma.mapping.CmaResult)&lt;br/&gt;
&amp;nbsp;location: /cmaResult/result{File: [not available]; line: 12; column: 46}&lt;br/&gt;
	at com.rivetlogic.core.cma.mapping.impl.CmaCastorUnmarshaller.unmarshal(CmaCastorUnmarshaller.java:58)&lt;br/&gt;
	at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.processResponse(RestExecuterImpl.java:214)&lt;br/&gt;
	at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.processResponse(RestExecuterImpl.java:182)&lt;br/&gt;
	at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.execute(RestExecuterImpl.java:70)&lt;br/&gt;
	at com.rivetlogic.core.cma.rest.impl.RestExecuterImpl.execute(RestExecuterImpl.java:51)&lt;br/&gt;
	at com.rivetlogic.core.cma.impl.ActionServiceImpl.execute(ActionServiceImpl.java:324)&lt;br/&gt;
	at com.rivetlogic.core.cma.impl.ActionServiceImpl.executeAction(ActionServiceImpl.java:170)&lt;br/&gt;
	at com.hbsp.migration.Migrate.processProduct(Migrate.java:279)&lt;br/&gt;
	at com.hbsp.migration.Migrate.access$3(Migrate.java:258)&lt;br/&gt;
	at com.hbsp.migration.Migrate$ProductElementHandler.onEnd(Migrate.java:188)&lt;br/&gt;
	at org.dom4j.io.DispatchHandler.onEnd(DispatchHandler.java:202)&lt;br/&gt;
	at org.dom4j.io.SAXContentHandler.endElement(SAXContentHandler.java:268)&lt;br/&gt;
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)&lt;br/&gt;
	at org.dom4j.io.SAXReader.read(SAXReader.java:465)&lt;br/&gt;
	at org.dom4j.io.SAXReader.read(SAXReader.java:264)&lt;br/&gt;
	at com.hbsp.migration.Migrate.main(Migrate.java:122)&lt;br/&gt;
Caused by: org.exolab.castor.xml.MarshalException: element &amp;quot;result&amp;quot; occurs more than once. (parent class: com.rivetlogic.core.cma.mapping.CmaResult)&lt;br/&gt;
&amp;nbsp;location: /cmaResult/result{File: [not available]; line: 12; column: 46}&lt;br/&gt;
	at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:761)&lt;br/&gt;
	at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:727)&lt;br/&gt;
	at com.rivetlogic.core.cma.mapping.impl.CmaCastorUnmarshaller.unmarshal(CmaCastorUnmarshaller.java:56)&lt;br/&gt;
	... 23 more&lt;br/&gt;
Caused by: ValidationException: element &amp;quot;result&amp;quot; occurs more than once. (parent class: com.rivetlogic.core.cma.mapping.CmaResult)&lt;br/&gt;
&amp;nbsp;location: /cmaResult/result&lt;br/&gt;
	at org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:984)&lt;br/&gt;
	at org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:1159)&lt;br/&gt;
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)&lt;br/&gt;
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)&lt;br/&gt;
	at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:715)&lt;br/&gt;
	... 24 more</description>
                <environment></environment>
        <key id="10894">CMA-7</key>
            <summary>ActionService.executeAction cannot return a java.util.Map as a result, throws exception</summary>
                <type id="1" iconUrl="https://issues.rivetlogic.com/secure/viewavatar?size=xsmall&amp;avatarId=11083&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://issues.rivetlogic.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="6" iconUrl="https://issues.rivetlogic.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="sumer">sumer</assignee>
                                    <reporter username="vjalilov">vjalilov</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Apr 2008 08:53:15 -0400</created>
                <updated>Wed, 14 May 2008 11:25:34 -0400</updated>
                            <resolved>Thu, 10 Apr 2008 11:05:19 -0400</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="11144" author="hlim" created="Thu, 10 Apr 2008 05:56:11 -0400"  >we need to serialize property values before passing them to castor. update mapping files to map them as String. the receiving end should de-serialize before returning result. write a util function for de-serialization.</comment>
                            <comment id="11146" author="schalasani" created="Thu, 10 Apr 2008 11:05:19 -0400"  >Vagif download the new amp and test it</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_11470" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_11170" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i00eqv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10070" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2390</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>