Меню

Заказы обработка импортированного файла ошибка разбора content is not allowed in prolog

Ошибка во вкладке Импорт/Экспорт, Логи

Есть решение

1

Добрый день, сегодня примерно в 19:20 пропала синхронизация с «моим складом», на стороне «моего склада» выдает ошибку «Заказы: Обработка импортированного файла: ошибка разбора: Content is not allowed in prolog.»., в админке вебасиста не могу зайти во вкладки Импорт/экспорт и Логи выдает «Ошибку#0». На сайте ничего нового не устанавливали и не обновляли. 

4 комментария

  • популярные
  • новые


  • +1

    Если включить в Инсталлере режим отладки, что покажет вместо «Ошибки №0» ?



    • +1

      В Инсталлере так же выдается ошибка #0 



      • +1

        o_O

         доступ по ftp к файлам есть? В файле /wa-log/error.log есть какие-нибудь записи?



      • +1

        Походу понял в чем проблема, заполнена память на хостинге.

        Добавить комментарий

        I’ve been beating my head against this absolutely infuriating bug for the last 48 hours, so I thought I’d finally throw in the towel and try asking here before I throw my laptop out the window.

        I’m trying to parse the response XML from a call I made to AWS SimpleDB. The response is coming back on the wire just fine; for example, it may look like:

        <?xml version="1.0" encoding="utf-8"?> 
        <ListDomainsResponse xmlns="http://sdb.amazonaws.com/doc/2009-04-15/">
            <ListDomainsResult>
                <DomainName>Audio</DomainName>
                <DomainName>Course</DomainName>
                <DomainName>DocumentContents</DomainName>
                <DomainName>LectureSet</DomainName>
                <DomainName>MetaData</DomainName>
                <DomainName>Professors</DomainName>
                <DomainName>Tag</DomainName>
            </ListDomainsResult>
            <ResponseMetadata>
                <RequestId>42330b4a-e134-6aec-e62a-5869ac2b4575</RequestId>
                <BoxUsage>0.0000071759</BoxUsage>
            </ResponseMetadata>
        </ListDomainsResponse>
        

        I pass in this XML to a parser with

        XMLEventReader eventReader = xmlInputFactory.createXMLEventReader(response.getContent());
        

        and call eventReader.nextEvent(); a bunch of times to get the data I want.

        Here’s the bizarre part — it works great inside the local server. The response comes in, I parse it, everyone’s happy. The problem is that when I deploy the code to Google App Engine, the outgoing request still works, and the response XML seems 100% identical and correct to me, but the response fails to parse with the following exception:

        com.amazonaws.http.HttpClient handleResponse: Unable to unmarshall response (ParseError at [row,col]:[1,1]
        Message: Content is not allowed in prolog.): <?xml version="1.0" encoding="utf-8"?> 
        <ListDomainsResponse xmlns="http://sdb.amazonaws.com/doc/2009-04-15/"><ListDomainsResult><DomainName>Audio</DomainName><DomainName>Course</DomainName><DomainName>DocumentContents</DomainName><DomainName>LectureSet</DomainName><DomainName>MetaData</DomainName><DomainName>Professors</DomainName><DomainName>Tag</DomainName></ListDomainsResult><ResponseMetadata><RequestId>42330b4a-e134-6aec-e62a-5869ac2b4575</RequestId><BoxUsage>0.0000071759</BoxUsage></ResponseMetadata></ListDomainsResponse>
        javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
        Message: Content is not allowed in prolog.
            at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
            at com.sun.xml.internal.stream.XMLEventReaderImpl.nextEvent(Unknown Source)
            at com.amazonaws.transform.StaxUnmarshallerContext.nextEvent(StaxUnmarshallerContext.java:153)
            ... (rest of lines omitted)
        

        I have double, triple, quadruple checked this XML for ‘invisible characters’ or non-UTF8 encoded characters, etc. I looked at it byte-by-byte in an array for byte-order-marks or something of that nature. Nothing; it passes every validation test I could throw at it. Even stranger, it happens if I use a Saxon-based parser as well — but ONLY on GAE, it always works fine in my local environment.

        It makes it very hard to trace the code for problems when I can only run the debugger on an environment that works perfectly (I haven’t found any good way to remotely debug on GAE). Nevertheless, using the primitive means I have, I’ve tried a million approaches including:

        • XML with and without the prolog
        • With and without newlines
        • With and without the «encoding=» attribute in the prolog
        • Both newline styles
        • With and without the chunking information present in the HTTP stream

        And I’ve tried most of these in multiple combinations where it made sense they would interact — nothing! I’m at my wit’s end. Has anyone seen an issue like this before that can hopefully shed some light on it?

        Thanks!

        For example in Problems I have

        Content is not allowed in prolog.

        How to find out why its there(what eclipse plugin has put it there) and how to turn it off?

        Markus Lausberg's user avatar

        asked Mar 2, 2011 at 11:00

        IAdapter's user avatar

        10

        I had this problem too and it was, because i changed/saved the file in UltraEdit. After the save command, the file encoding changed and included characters, eclipse was not able to read.

        You can open the file with the windows «Editor» tool and delete the characters, eclipse can not read. You will directly detect them.

        answered Mar 2, 2011 at 11:25

        Markus Lausberg's user avatar

        Markus LausbergMarkus Lausberg

        12.1k6 gold badges41 silver badges66 bronze badges

        This sounds like an error with a xml file. Most of the time «Content is not allowed in prolog» means, that your XML file does not have the right format or even doesn’t start the right way.

        answered Mar 2, 2011 at 11:04

        Chris's user avatar

        ChrisChris

        7,6158 gold badges49 silver badges99 bronze badges

        1

        «Content is not allowed in prolog» is the error thrown by Xerces when there’s something in an XML file or stream that precedes the <?xml?> declaration. There must be nothing before that, not even whitespace or a Byte-Order-Mark.

        answered Mar 2, 2011 at 11:10

        skaffman's user avatar

        skaffmanskaffman

        396k96 gold badges814 silver badges768 bronze badges

        1

        Double-click the message and it should take you to the file (and ideally location within the file) that is the source of the problem.

        This specific error sounds like you’ve got a malformed XML file.

        answered Mar 2, 2011 at 11:02

        Joachim Sauer's user avatar

        Joachim SauerJoachim Sauer

        298k57 gold badges552 silver badges610 bronze badges

        1

        For example in Problems I have

        Content is not allowed in prolog.

        How to find out why its there(what eclipse plugin has put it there) and how to turn it off?

        Markus Lausberg's user avatar

        asked Mar 2, 2011 at 11:00

        IAdapter's user avatar

        10

        I had this problem too and it was, because i changed/saved the file in UltraEdit. After the save command, the file encoding changed and included characters, eclipse was not able to read.

        You can open the file with the windows «Editor» tool and delete the characters, eclipse can not read. You will directly detect them.

        answered Mar 2, 2011 at 11:25

        Markus Lausberg's user avatar

        Markus LausbergMarkus Lausberg

        12.1k6 gold badges41 silver badges66 bronze badges

        This sounds like an error with a xml file. Most of the time «Content is not allowed in prolog» means, that your XML file does not have the right format or even doesn’t start the right way.

        answered Mar 2, 2011 at 11:04

        Chris's user avatar

        ChrisChris

        7,6158 gold badges49 silver badges99 bronze badges

        1

        «Content is not allowed in prolog» is the error thrown by Xerces when there’s something in an XML file or stream that precedes the <?xml?> declaration. There must be nothing before that, not even whitespace or a Byte-Order-Mark.

        answered Mar 2, 2011 at 11:10

        skaffman's user avatar

        skaffmanskaffman

        396k96 gold badges814 silver badges768 bronze badges

        1

        Double-click the message and it should take you to the file (and ideally location within the file) that is the source of the problem.

        This specific error sounds like you’ve got a malformed XML file.

        answered Mar 2, 2011 at 11:02

        Joachim Sauer's user avatar

        Joachim SauerJoachim Sauer

        298k57 gold badges552 silver badges610 bronze badges

        1

        • Группа:
          Клиент
        • Сообщений:
          26
        • Регистрация:
          11.01.2015

        21.09.2016 15:19

        При синхронизации сервиса Мой Склад с интернет-магазином в отчёте появляется сообщение:
        Заказы: Обработка импортированного файла: ошибка разбора: Content is not allowed in prolog

        В log файле следующая запись:
        failure
        Система не нашла в базе данных объект класса «Df_Catalog_Model_Product» с идентификатором «29»

        Как устранить ошибку?

        • Группа:
          Администратор
        • Сообщений:
          8995
        • Регистрация:
          20.02.2010

        06.10.2016 02:51

        Что мне нужно сделать, чтобы воспроизвести эту же проблему у себя?

        • Группа:
          Клиент
        • Сообщений:
          26
        • Регистрация:
          11.01.2015

        06.10.2016 14:47

        У нас данная ошибка появляется при включении синхронизации заказов в Моём Складе.

        Можем предоставить вам доступ к Моему Складу для воспроизведения проблемы.

        0 0 голоса
        Рейтинг статьи
        Подписаться
        Уведомить о
        guest

        0 комментариев
        Старые
        Новые Популярные
        Межтекстовые Отзывы
        Посмотреть все комментарии

        А вот еще интересные материалы:

      • Яшка сломя голову остановился исправьте ошибки
      • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
      • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
      • Заказной бандероль какая ошибка
      • Заказ черного картриджа hp ошибка что делать