file-serializer

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

file-serializer

Oliver Charlet
hi there,

another prob occured using the file-serializer. Example is attached. I
get the following error:

org.orbeon.oxf.common.OXFException: Root element must contain an
xsi:type attribute
    at
org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(BinaryTextContentHandler.java:98)
    at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162)
    at
org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)
    at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987)
    at
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1170)
...

since I explicitly set the mime-type to application/xml I don't
understand, why the serializer tries to read Binary Data in the first place.
Can somebody give me a hint on this, please?
:oliver

--
-----------------------
oliver charlet
software development

11-041 Olsztyn, Poland

[hidden email]
-----------------------


test.xml /Users/ollix/Documents/workspace/main/WEB-INF/resources/test application/xml utf-8 4

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: file-serializer

Ryan Puddephatt
Oliver,
        You need to convert the XML before piping it into the
file-serializer! Just add this processor between the XSLT and
File-Serializer


Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

-----Original Message-----
From: Oliver Charlet [mailto:[hidden email]]
Sent: 14 December 2005 09:32
To: [hidden email]
Subject: [ops-users] file-serializer

hi there,

another prob occured using the file-serializer. Example is attached. I
get the following error:

org.orbeon.oxf.common.OXFException: Root element must contain an
xsi:type attribute
    at
org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(Bi
naryTextContentHandler.java:98)
    at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162)
    at
org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)
    at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987)
    at
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
l.java:1170)
...

since I explicitly set the mime-type to application/xml I don't
understand, why the serializer tries to read Binary Data in the first place.
Can somebody give me a hint on this, please?
:oliver

--
-----------------------
oliver charlet
software development

11-041 Olsztyn, Poland

[hidden email]
-----------------------





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: file-serializer

Ryan Puddephatt
In reply to this post by Oliver Charlet
Sorry accidently used a short cut and sent the email, here you go:

Converted-output should go into the data of file-serializer!

<!-- This converts the tree of nodes into XML
             that the File Serializer can understand -->
        <p:processor name="oxf:xml-converter">
            <p:input name="config">
                <config>
                    <encoding>utf-8</encoding>
                </config>
            </p:input>
            <p:input name="data" href="#current"/>
            <p:output name="data" id="converted-output"/>
        </p:processor>

Ryan

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

-----Original Message-----
From: Oliver Charlet [mailto:[hidden email]]
Sent: 14 December 2005 09:32
To: [hidden email]
Subject: [ops-users] file-serializer

hi there,

another prob occured using the file-serializer. Example is attached. I
get the following error:

org.orbeon.oxf.common.OXFException: Root element must contain an
xsi:type attribute
    at
org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(Bi
naryTextContentHandler.java:98)
    at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162)
    at
org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)
    at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987)
    at
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
l.java:1170)
...

since I explicitly set the mime-type to application/xml I don't
understand, why the serializer tries to read Binary Data in the first place.
Can somebody give me a hint on this, please?
:oliver

--
-----------------------
oliver charlet
software development

11-041 Olsztyn, Poland

[hidden email]
-----------------------





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: file-serializer

Oliver Charlet
thanks a lot. But what I don't understand is why that worked before I switched to beta 4. Maybe just by chance?


Ryan Puddephatt schrieb:
Sorry accidently used a short cut and sent the email, here you go:

Converted-output should go into the data of file-serializer!

<!-- This converts the tree of nodes into XML
             that the File Serializer can understand -->
        <p:processor name="oxf:xml-converter">
            <p:input name="config">
                <config>
                    <encoding>utf-8</encoding>
                </config>
            </p:input>
            <p:input name="data" href="#current"/>
            <p:output name="data" id="converted-output"/>
        </p:processor>

Ryan

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

-----Original Message-----
From: Oliver Charlet [[hidden email]] 
Sent: 14 December 2005 09:32
To: [hidden email]
Subject: [ops-users] file-serializer

hi there,

another prob occured using the file-serializer. Example is attached. I 
get the following error:

org.orbeon.oxf.common.OXFException: Root element must contain an 
xsi:type attribute
    at 
org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(Bi
naryTextContentHandler.java:98)
    at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162)
    at 
org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)
    at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987)
    at 
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
l.java:1170)
...

since I explicitly set the mime-type to application/xml I don't 
understand, why the serializer tries to read Binary Data in the first place.
Can somebody give me a hint on this, please?
:oliver

  

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- 
-----------------------
oliver charlet
software development

11-041 Olsztyn, Poland

[hidden email]
-----------------------


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: file-serializer

Ryan Puddephatt

Possibly, I have that in a beta 3 application and it won’t work without it, causing a similar problem to yours!

 

Ryan Puddephatt

Web Developer

TFX Group

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 


From: Oliver Charlet [mailto:[hidden email]]
Sent: 14 December 2005 09:46
To: [hidden email]
Subject: Re: [ops-users] file-serializer

 

thanks a lot. But what I don't understand is why that worked before I switched to beta 4. Maybe just by chance?


Ryan Puddephatt schrieb:

Sorry accidently used a short cut and sent the email, here you go:
 
Converted-output should go into the data of file-serializer!
 
<!-- This converts the tree of nodes into XML
             that the File Serializer can understand -->
        <p:processor name="oxf:xml-converter">
            <p:input name="config">
                <config>
                    <encoding>utf-8</encoding>
                </config>
            </p:input>
            <p:input name="data" href="#current"/>
            <p:output name="data" id="converted-output"/>
        </p:processor>
 
Ryan
 
Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 
 
-----Original Message-----
From: Oliver Charlet [[hidden email]] 
Sent: 14 December 2005 09:32
To: [hidden email]
Subject: [ops-users] file-serializer
 
hi there,
 
another prob occured using the file-serializer. Example is attached. I 
get the following error:
 
org.orbeon.oxf.common.OXFException: Root element must contain an 
xsi:type attribute
    at 
org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(Bi
naryTextContentHandler.java:98)
    at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162)
    at 
org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)
    at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987)
    at 
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
l.java:1170)
...
 
since I explicitly set the mime-type to application/xml I don't 
understand, why the serializer tries to read Binary Data in the first place.
Can somebody give me a hint on this, please?
:oliver
 
  
 



 
 
--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
  



-- 
-----------------------
oliver charlet
software development
 
11-041 Olsztyn, Poland
 
[hidden email]
-----------------------


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: file-serializer

Erik Bruchez
Administrator
In reply to this post by Oliver Charlet
Actually we broke backward compatiblity at some point. If you use
"oxf:legacy-file-serializer", you will get the same behavior as before.
However, I would advise to not use "oxf:legacy-file-serializer" but keep
using "oxf:file-serializer" with "oxf:xml-converter" in addition.

The purpose of this change was to make the File serializer behave like
the HTTP serializer, i.e. to be content-agnostic by just handling text
and binary documents.

-Erik

Oliver Charlet wrote:

> thanks a lot. But what I don't understand is why that worked before I
> switched to beta 4. Maybe just by chance?
>
>
> Ryan Puddephatt schrieb:
>
>>Sorry accidently used a short cut and sent the email, here you go:
>>
>>Converted-output should go into the data of file-serializer!
>>
>><!-- This converts the tree of nodes into XML
>>             that the File Serializer can understand -->
>>        <p:processor name="oxf:xml-converter">
>>            <p:input name="config">
>>                <config>
>>                    <encoding>utf-8</encoding>
>>                </config>
>>            </p:input>
>>            <p:input name="data" href="#current"/>
>>            <p:output name="data" id="converted-output"/>
>>        </p:processor>
>>
>>Ryan
>>
>>Ryan Puddephatt
>>Web Developer
>>TFX Group
>>1 Michaelson Square
>>Livingston
>>West Lothian
>>Scotand
>>EH54 7DP
>>
>>* [hidden email]
>>( 01506 407 110
>>7  01506 407 108
>>
>>
>>-----Original Message-----
>>From: Oliver Charlet [mailto:[hidden email]]
>>Sent: 14 December 2005 09:32
>>To: [hidden email]
>>Subject: [ops-users] file-serializer
>>
>>hi there,
>>
>>another prob occured using the file-serializer. Example is attached. I
>>get the following error:
>>
>>org.orbeon.oxf.common.OXFException: Root element must contain an
>>xsi:type attribute
>>    at
>>org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(Bi
>>naryTextContentHandler.java:98)
>>    at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:162)
>>    at
>>org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)
>>    at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:987)
>>    at
>>org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImp
>>l.java:1170)
>>...
>>
>>since I explicitly set the mime-type to application/xml I don't
>>understand, why the serializer tries to read Binary Data in the first place.
>>Can somebody give me a hint on this, please?
>>:oliver
>>
>>  
>>
>>------------------------------------------------------------------------
>>
>>
>>--
>>You receive this message as a subscriber of the [hidden email] mailing list.
>>To unsubscribe: mailto:[hidden email]
>>For general help: mailto:[hidden email]?subject=help
>>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>  
>>
>
> --
> -----------------------
> oliver charlet
> software development
>
> 11-041 Olsztyn, Poland
>
> [hidden email]
> -----------------------
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws