我在尝试使用xml作为元数据文件从ICC (IBM Content Collector v2.1.x)摄取文档时得到此错误(在taskroute日志中)。有人能解释一下"此位置不允许使用空格"的错误吗?
2011-09-12T18:39:37Z Error An error occurred while evaluating the task route 'M1 TR Docs': Task Method 'ibm.ctms.filesystem.metadata' failed for entity with id 'd:icc_migrationconventional_pmtest.xml': Status=error; Message='Error -1072896749 at 22:22 - "Whitespace is not allowed at this location." - D:ICC_MigrationConventional_PMtest.xml'Reason: Task Method 'ibm.ctms.filesystem.metadata' failed for entity with id 'd:icc_migrationconventional_pmtest.xml': Status=error; Message='Error -1072896749 at 22:22 - "Whitespace is not allowed at this location." - D:ICC_MigrationConventional_PMtest.xml' ibm::ctms::taskrouting::TaskRouteEvaluator::SubmitRoute (taskrouteevaluator.cpp:427) 0x820 Stack Trace: (class ibm::ctms::taskrouting::TaskStatusException) at ibm::ctms::taskrouting::TaskRoutingException::TaskRoutingException (taskrouting.cpp:11), at ibm::ctms::taskrouting::TaskStatusException::TaskStatusException (taskrouting.cpp:88), at ibm::ctms::taskrouting::TaskMethodManager::checkTaskStatus (taskmethodmanager.cpp:610), at ibm::ctms::taskrouting::TaskMethodManager::InvokeTaskMethod (taskmethodmanager.cpp:730), at ibm::ctms::taskrouting::TaskRouteEvaluator::invokeTaskMethod (taskrouteevaluator.cpp:255), at ibm::ctms::taskrouting::TaskRouteEvaluator::SubmitRoute (taskrouteevaluator.cpp:375), at ibm::ctms::taskrouting::TaskRouteEngine::SubmitEntity (taskrouteengine.cpp:475), at ibm::ctms::taskrouting::SubmissionTask::Execute (submissiontask.cpp:44), at ibm::ctms::core::threads::ThreadPoolImplementation::TaskThread::Execute (threadpool.cpp:214), at ATL::CThreadPool<ibm::ctms::core::threads::ThreadPoolImplementation::TaskThread,ATL::CRTThreadTraits,ATL::Win32WaitTraits>::ThreadProc (atlutil.h:1386), at ATL::CThreadPool<ibm::ctms::core::threads::ThreadPoolImplementation::TaskThread,ATL::CRTThreadTraits,ATL::Win32WaitTraits>::WorkerThreadProc (atlutil.h:1404), at MSVCR80.dll:0x29ba, at MSVCR80.dll:0x2a46,
我猜到了。我尝试使用的XML有一个这样的标记。
<Company name>Test & Company</Company Name>
当然,它不喜欢这里的"&"符号。我把它封闭在CDATA标签,它是固定的。但令人不解的是,错误类型和ICC抛出的错误信息之间的脱节。