首页 \ 问答 \ 在LINUX上使用Camel 2.10挂载文件夹文件(Mount folder file handling using Camel 2.10 on LINUX)

在LINUX上使用Camel 2.10挂载文件夹文件(Mount folder file handling using Camel 2.10 on LINUX)

我正在使用Camel 2.10版本,我们正面临这个问题。 JBoss Fuse 6.0在RHEL上运行,我们在服务器上安装了一个Windows共享文件夹linux文件夹是/mnt/sharedwin

现在我们正在使用文件组件处理此文件夹中的文件,如下所示。

from端点如下

file:/mnt/sharedwin/Current?preMove=/opt/jboss/fuse/data/target/processing&move=archive/$simple{date:now:yyyyMMdd}/$simple{file:name}&moveFailed=errorFile/$simple{date:now:yyyyMMdd}/$simple{file:name}

运行应用程序时,我们将获得以下WARN消息,并且文件未被移动到存档文件夹。

引起:java.io.IOException:将文件从:/mnt/sharedwin/Current/XYZ.csv重命名为:/opt/jboss/fuse/data/target/processing/XYZ.csv失败,因为无法从文件中删除:/ mnt复制成功后/sharedwin/Current/XYZ.csv

我在文件URL中遗漏了一些参数,请帮忙。


I am using Camel 2.10 version inwhich we are facing this issue. The JBoss Fuse 6.0 is running on the RHEL and we have mounted a Windows shared folder on the server linux folder is /mnt/sharedwin.

Now we are processing file from this folder using file component as below.

The from endpoint is as below

file:/mnt/sharedwin/Current?preMove=/opt/jboss/fuse/data/target/processing&move=archive/$simple{date:now:yyyyMMdd}/$simple{file:name}&moveFailed=errorFile/$simple{date:now:yyyyMMdd}/$simple{file:name}

When running the application we are getting following WARN msg and file are not getting moved to archive folder.

Caused by: java.io.IOException: Renaming file from: /mnt/sharedwin/Current/XYZ.csv to: /opt/jboss/fuse/data/target/processing/XYZ.csv failed due cannot delete from file: /mnt/sharedwin/Current/XYZ.csv after copy succeeded

Am I missing some parameters in file URL, please help.


原文:https://stackoverflow.com/questions/27351680
更新时间:2022-02-24 09:02

最满意答案

案例折叠算法有几个版本(并且算法可以针对不同的语言/上下文进行自定义),但是当使用Unicode标准中指定的算法时:任何在CaseFolding.txt中具有映射的代码点(至少具有C状态,以及SF )不能出现在大小写折叠的字符串中。

对于真正不区分大小写的比较,具有NFKC规范化形式或Default_Ignorable_Code_Point属性的字符也将被替换,并且不会出现。 这是在DerivedNormalizationProps.txt具有NFKC_Casefold映射的字符集 - 总共10,146个代码点。


There are several versions of the case folding algorithm (and the algorithm is customisable for different languages/contexts), but when using the algorithm as specified in the Unicode Standard: any code point that has a mapping in CaseFolding.txt (with at least a C status, and either S or F) cannot appear in a case-folded string.

For true case-insensitive comparisons, characters that have an NFKC normalisation form or the Default_Ignorable_Code_Point property will also be replaced and cannot appear. This is the set of characters with an NFKC_Casefold mapping in DerivedNormalizationProps.txt -- a total of 10,146 code points.

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。