Проблемы
При использовании метода Load XMLDOM объектной модели для синхронной загрузки документа язык XML (Extensible Markup) на клиентском компьютере через SSL-подключение, метод завершается неудачей с ошибкой 0x800c0007 и INET_E_DATA_NOT_AVAILABLE возвращают значение.
Причина
Эта проблема возникает, когда файл не кэшируется на клиентском компьютере. Существует несколько причин, почему, файл не может кэшироваться.
-
Пользователь выбирает флажок не сохранять зашифрованные страницы на диск , на вкладке « Дополнительно » диалогового окна « Свойства обозревателя ».
-
Сервер отправляет Pragma:no-кэш или кэш-элемента управления: no-заголовков кэша.
-
Если вы используете Microsoft Internet Information Server (IIS), параметр срока действия содержимого имеет значение истекает немедленно, который отправляет заголовки нет-cache, а также истекает: 0 HTTP-заголовок.
Решение
Чтобы устранить эту проблему, выполните следующие действия:
-
В обозревателе Internet Explorer в меню Сервис пункт Свойства обозревателя. На вкладке « Дополнительно » снимите флажок « не сохранять зашифрованные страницы на диск ».
-
Убедитесь, что сервер не отправляет заголовки нет-cache.
-
В службах IIS в оснастке консоли управления (MMC) щелкните правой кнопкой мыши файл XML. На вкладке Заголовки HTTP отключите параметр срока действия содержимого.
Статус
Корпорация Майкрософт подтверждает, что это является ошибкой в продуктах Майкрософт, перечисленных в начале данной статьи.
Дополнительная информация
Действия для воспроизведения поведения
-
В обозревателе Internet Explorer в меню Сервис пункт Свойства обозревателя. На вкладке « Дополнительно » снимите флажок « не сохранять зашифрованные страницы на диск ».
-
Создайте HTML-файл с именем Test.html, а затем вставьте следующий код:
<HTML><BODY><INPUT type=button onclick=loadmyxml() value="Load XML"><SCRIPT>function loadmyxml(){var XMLObj = new ActiveXObject("Microsoft.XMLDOM")XMLObj.async = false;XMLObj.load('https://localhost/secure/test.xml'); if (XMLObj.parseError.errorCode != 0)alert("Error loading XML file : " + XMLObj.parseError.reason);elsealert (XMLObj.xml);}</script></BODY></HTML>
-
Сохраните Test.html в защищенной папке на веб-сервере.
-
Создайте новый XML-файл с именем Test.xml, а затем вставьте следующий код:
<?xml version='1.0' ?><BOOKLIST><BOOK><CATEGORY>Fiction</CATEGORY><TITLE>The Snow Leopard</TITLE><AUTHOR>Desmond Bagley</AUTHOR></BOOK></BOOKLIST>
-
Сохраните Test.xml защищенной папке на веб-сервере.
-
В обозревателе Internet Explorer перейдите к Test.html и нажмите кнопку Загрузить XML. Появляется сообщение об ошибке 0x800c0007.
Ссылки
Дополнительные сведения о XML см на Microsoft Developer Network (MSDN):
http://msdn.microsoft.com/xml/default.aspДополнительные сведения о разработке веб-приложений для Microsoft Internet Explorer посетите следующий веб-узел Майкрософт:
http://msdn.microsoft.com/ie/
http://support.microsoft.com/iep
Нужна дополнительная помощь?
Hi Gurus,
I am trying to load XML file in XMLTYPE column through SQL Loader but getting errors. Following are the details
Database Information
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Table structure
CREATE TABLE TH_XML
(
COL_ID_1 VARCHAR2(100 BYTE),
IN_FILE_1 XMLTYPE
)
XMLTYPE IN_FILE_1 STORE AS CLOB (TABLESPACE SMDAT)
XML file (simple.xml)
<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Some Author1</author>
<title>Some Title1</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>creating applications</description>
</book>
<book id="bk112">
<author>Some Author2</author>
<title>Some Title2</title>
<genre>Computer</genre>
<price>49.95</price>
<publish_date>2001-04-16</publish_date>
<description>Microsoft Visual Studio 7 is explored in depth</description>
</book>
</catalog>
Control File
LOAD DATA
INFILE 'c:simple.xml'
APPEND
INTO TABLE TH_XML
XMLTYPE(in_file_1)
(
col_id_1 filler CHAR (100),
in_file_1 LOBFILE(CONSTANT "c:simple.xml") TERMINATED BY EOF
)
LOG File
SQL*Loader: Release 10.2.0.3.0 - Production on Tue Jul 24 16:42:25 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: c:my_file.ctl
Data File: c:simple.xml
Bad File: c:simple.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table TH_XML, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
COL_ID_1 FIRST 100 CHARACTER
(FILLER FIELD)
IN_FILE_1 DERIVED * EOF CHARACTER
Static LOBFILE. Filename is c:simple.xml
Record 1: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 2: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 3: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 4: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 5: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 6: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 7: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 8: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 9: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 10: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 11: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 12: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 13: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 14: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 15: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 16: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 17: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 18: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 19: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 20: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 21: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 22: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 23: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Table TH_XML:
0 Rows successfully loaded.
23 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 256 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 23
Total logical records rejected: 23
Total logical records discarded: 0
Run began on Tue Jul 24 16:42:25 2012
Run ended on Tue Jul 24 16:42:26 2012
Elapsed time was: 00:00:00.23
CPU time was: 00:00:00.05
I am getting errors ORA-00904: «SYS_NC_ROWINFO$»: invalid identifier in log file (mention above). Could anyone help me to find out where I am doing wrong?
Thanks in advance.
Edited by: 876991 on Jul 24, 2012 2:18 PM
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
zhaotun opened this issue
Feb 27, 2020
· 13 comments
Comments
when I run the «demo_squeezenet_download_convert_run.bat» , error occurred as follows:
[ ERROR ] Error loading XML file: C:UserswtDocumentsIntelOpenVINOinference_engine_samples_buildintel64Releaseplugins.xml:1:0: File was not found
what is the «plugins.xml:1:0» file ? how to solove the error? thanks.
zhaotun
changed the title
Error plugins.xml:1:0: File was not found
[ ERROR ] Error loading XML file: ….plugins.xml:1:0: File was not found
Feb 27, 2020
Hi @zhaotun
Which version of the OpenVINO toolkit are you using? If you recently upgraded to the latest release 2020.1 please make sure to delete or rename the following directory and run the demo again to regenerate.
C:Users<User_Name>DocumentsIntelOpenVINOinference_engine_demos_build
C:Users<User_Name>DocumentsIntelOpenVINOinference_engine_samples_build
C:Users<User_Name>DocumentsIntelOpenVINOopenvino_models
Regards,
Jesus
@jgespino Thank you !
My OpenVINO is 2020.1. It works when I followed your advice.
But when I want to just run the classification_sample_async.exe file in the follow path:
C:Users<User_Name>DocumentsIntelOpenVINOinference_engine_samples_buildintel64Release
I copy the «car.png» file and model file to the path.
Then I run the following command
classification_sample_async.exe -i car.png -m FP16squeezenet1.1.xml -d CPU
I get some errors said that «can’t find xxx.dll «, then I serch and copy all the lost dlls to the path
After all dlls are ready, run the command again, get the error «plugins.xml:1:0: File was not found»
At this time I go to the «deployment_toolsdemo» path and run the «demo_squeezenet_download_convert_run.bat» , also get the error «plugins.xml:1:0: File was not found».
However, when I go to the «OpenVINOinference_engine_samples_buildintel64Release» path ,and delete the dlls just added ,and run the «demo_squeezenet_download_convert_run.bat» , no error occurred.
It seems that I can’t run the classification_sample_async.exe file in the path where the exe file is located . why?
Hi @zhaotun
Are you sourcing the environment variables?
C:Program Files (x86)IntelSWToolsopenvinobinsetupvars.bat
What version of Visual Studio, CMake, and Python do you have installed? I will try to reproduce.
Regards,
Jesus
My VS is VS2015 Update 3
And CMake is 3.10.2 , python is 3.5.6
@jgespino when I go to the follow path , and want to run the «interactive_face_detection_demo.exe» , the same error «plugins.xml:1:0: File was not found» occurred too.
C:Users<User_Name>DocumentsIntelOpenVINOomz_demos_buildintel64Release
My cmd command is
interactive_face_detection_demo.exe -i cam -m fd/face-detection-adas-0001.xml -m_ag fd/age-gender-recognition-retail-0013.xml -m_hp fd/head-pose-estimation-adas-0001.xml -m_em fd/emotions-recognition-retail-0003.xml -m_lm fd/facial-landmarks-35-adas-0002.xml -d GPU
And even I just run «interactive_face_detection_demo.exe -h», the same error «plugins.xml:1:0: File was not found» occurred too.
@zhaotun
I serch and copy all the lost dlls to the path
This is wrong.
Right way is setupvars.sh approach. Without any manual copying of DLLs which break normal behavior.
Note: setupvars.sh has very limited effect for the current terminal only.
There is nothing to fix in this repository.
I got the same problem with the plugins.xml file not found.
The setupvars.bat
doesn’t seem to work, because I had to manually add the PATH variables myself, in order to find the DLLs.
I just found the file in deployment_toolsinference_enginebinintel64Release and i just copied it next to the EXE and it’s working
@DarkPatate68 got the right path.
I just want to make some additions. If the environment is Linux, plugins.xml
locates at your_openvino_install_root/openvino/inference_engine/lib/intel64
.
BTW, you guys may have the question «why every OpenVINO model needs plugins.xml
?». Because, when we initialize InferenceEngine::Core::Core
object, InferenceEngine::Core::Core
would load default plugin with default plugin path plugins.xml
.
Precisely, please refer to InferenceEngine::Core::Core:
InferenceEngine::Core::Core(const std::string & xmlConfigFile = std::string()) explicit
Constructs Inference Engine Core instance using XML configuration file with plugins description.
See RegisterPlugins for more details.
xmlConfigFile
A path to .xml file with plugins to load from. If XML configuration file is not specified, then default Inference Engine plugins are loaded from the default plugin.xml file.
Moreover, if we cat the plugins.xml
:
<ie>
<plugins>
<plugin name="GNA" location="libGNAPlugin.so">
</plugin>
<plugin name="HETERO" location="libHeteroPlugin.so">
</plugin>
<plugin name="CPU" location="libMKLDNNPlugin.so">
</plugin>
<plugin name="MULTI" location="libMultiDevicePlugin.so">
</plugin>
<plugin name="GPU" location="libclDNNPlugin.so">
</plugin>
<plugin name="MYRIAD" location="libmyriadPlugin.so">
</plugin>
<plugin name="HDDL" location="libHDDLPlugin.so">
</plugin>
<plugin name="FPGA" location="libdliaPlugin.so">
</plugin>
</plugins>
</ie>
So, if we don’t need the specific plugin, just remove lines.
Regards,
Thanks
@DarkPatate68 @jjkislele if some plugins are not needed, we don’t have to fix plugins.xml file and remove some lines. If such plugins are not used, there is no error if they are still mentioned in plugins.xml file
Suppose the question is answered. Closing
Dealing with XML errors when loading documents is a very simple task.
Using the libxml functionality it is
possible to suppress all XML errors when loading the document and then
iterate over the errors.
The libXMLError object, returned by
libxml_get_errors(), contains several properties
including the message,
line and
column (position) of the
error.
Example #1 Loading broken XML string
<?php
libxml_use_internal_errors(true);
$sxe = simplexml_load_string("<?xml version='1.0'><broken><xml></broken>");
if ($sxe === false) {
echo "Failed loading XMLn";
foreach(libxml_get_errors() as $error) {
echo "t", $error->message;
}
}
?>
The above example will output:
Failed loading XML Blank needed here parsing XML declaration: '?>' expected Opening and ending tag mismatch: xml line 1 and broken Premature end of data in tag broken line 1
openbip at gmail dot com ¶
12 years ago
Note that "if (! $sxe) {" may give you a false-negative if the XML document was empty (e.g. "<root />"). In that case, $sxe will be:
object(SimpleXMLElement)#1 (0) {
}
which will evaluate to false, even though nothing technically went wrong.
Consider instead: "if ($sxe === false) {"
1337 at netapp dot com ¶
7 years ago
tuxedobob ¶
8 years ago
Now that the /e modifier is considered deprecated in preg_replace, you can use a negative lookahead to replace unescaped ampersands with & without throwing warnings:
$str = preg_replace('/&(?!;{6})/', '&', $str);
You probably should have been doing this before /e was deprecated, actually.
Jacob Tabak ¶
12 years ago
If you are trying to load an XML string with some escaped and some unescaped ampersands, you can pre-parse the string to ecsape the unescaped ampersands without modifying the already escaped ones:
<?php
$s = preg_replace('/&[^; ]{0,6}.?/e', "((substr('\0',-1) == ';') ? '\0' : '&'.substr('\0',1))", $s);
?>
- Remove From My Forums
-
Question
-
User-1244763459 posted
Hi I’m converting a string to an xml document, but I»m getting an error
«Data at the root level is invalid. line 1, position 1» when using the loadXml(string). If I use the load(xml) I get
«The specified path, file name, or both are too long….»
I cannot modify the xml string as it is use by other applications using classic asp. Anyone know how to fix this problem?
Answers
-
User1735976268 posted
LoadXml is used for loading xml data that is stored in the string. Load is used to load xml data that is stored in a file where the path to said file is in the string parameter.
Make sure you are using the correct method.
If you are using LoadXml then you have to be sure your xml is correct. A common cause of the error you are getting is when there are more than 1 root node in the xml. Classic asp was allowed to do this however. For example:
Invalid — <item>Item1</item><item>Item2</item>
Valid — <items><item>Item1</item><item>Item2</item></items>
If you can’t correct the xml file at the source (or where its generated) then I’m not sure what the best practice would be. I would think you should read it as plain text into a string, then pass <Root> + theString + </Root> or something like
that.Hope that helps.
-
Marked as answer by
Thursday, October 7, 2021 12:00 AM
-
Marked as answer by