You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2007/05/02 13:43:36 UTC

[jira] Resolved: (SM-902) File Binding example error with JaxenStringXPathExpression

     [ https://issues.apache.org/activemq/browse/SM-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SM-902.
--------------------------------

    Resolution: Fixed

URL: http://svn.apache.org/viewvc?view=rev&rev=534393
URL: http://svn.apache.org/viewvc?view=rev&rev=534395

Thanks for this patch Gert !


>  File Binding example error with JaxenStringXPathExpression 
> ------------------------------------------------------------
>
>                 Key: SM-902
>                 URL: https://issues.apache.org/activemq/browse/SM-902
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-components
>    Affects Versions: 3.1
>         Environment: window xp, java1.5, 
>            Reporter: Sangwoo Han
>         Assigned To: Gert Vanthienen
>            Priority: Minor
>             Fix For: 3.1.1, 3.2
>
>         Attachments: SM-902-with-flag.patch, SM-902.patch
>
>
> I have tried example-file binding with servicemix3.1 (latest version) 
> and the file generated in outbox was empty !! size zero ! 
> So I commented out the rename part (filename property with JaxenStringXPathExpression) 
> and it generated file with original file content. It worked !! 
> Guillaume Nodet(gnodet) suspects a problem with the input stream which is not converted before evaluating 
> the expression.
> ======
>  <sm:component> 
>     <bean class="org.apache.servicemix.components.file.FileWriter"> 
>       <property name="directory" value="D:/outbox" /> 
>       <property name="marshaler"> 
>         <bean 
>           class="org.apache.servicemix.components.util.DefaultFileMarshaler"> 
>         <!-- <property name="fileName"> 
>            <bean 
>                class="org.apache.servicemix.expression.JaxenStringXPathExpression"> 
>               <constructor-arg 
>                   value="concat('sample_', /sample/@id, '.xml')" /> 
>        </bean> 
>      </property> 
>      --> 
>      </bean> 
>   </property> 
>    </bean> 
>   </sm:component>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.