Undeclared prefix in xsi:type: xs

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

Undeclared prefix in xsi:type: xs

Daniel E. Renfer
I am getting an error from
org.orbeon.oxf.processor.serializer.BinaryTextContentHandler when I try
to pass an image I have retrieved using the URL generator with a content
type of image/jpeg.

I have tried adding the namespace declaration for "xs" to every xpl I
could, but it doesn't seem to do the trick. Unfortunately, ever since I
updated Eclipse yesterday, it's not letting me run Tomcat in debug mode,
so I can't see what mappings are in prefixMappings.

Any idea how I can get Forms to return a jpeg I have retreived?

The URL I am retrieving is:
http://www.gravatar.com/avatar.php?gravatar_id=4d29fb194340a4c990639da30f7946af
(my gravatar)

The document looks like: (binary data removed)

<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xs:base64Binary" content-type="image/jpeg">[: clip
base64Binary image :]</document>

I am running a nightly build from 2007-09-28 compiled from source, with
Tomcat 5.5 on Win XP.

Any help is greatly appreciated.
Daniel E. Renfer
http://kronkltd.net/




--
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
OW2 mailing lists service home page: http://www.ow2.org/wws

signature.asc (258 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared prefix in xsi:type: xs

Erik Bruchez
Administrator
Daniel,

A related bug was fixed not long ago:

http://forge.objectweb.org//tracker/index.php?func=detail&aid=307608&group_id=168&atid=350207

This likely did not only affect oxf:pdf-template, but other processors
outputting binary within XML.

Funnily enough, that bug was marked fixed on 2007-09-27, which seems to
be just before your build, but may have missed the fix by a hair. Or, it
could be a different problem.

-Erik

Daniel E. Renfer wrote:

> I am getting an error from
> org.orbeon.oxf.processor.serializer.BinaryTextContentHandler when I try
> to pass an image I have retrieved using the URL generator with a content
> type of image/jpeg.
>
> I have tried adding the namespace declaration for "xs" to every xpl I
> could, but it doesn't seem to do the trick. Unfortunately, ever since I
> updated Eclipse yesterday, it's not letting me run Tomcat in debug mode,
> so I can't see what mappings are in prefixMappings.
>
> Any idea how I can get Forms to return a jpeg I have retreived?
>
> The URL I am retrieving is:
> http://www.gravatar.com/avatar.php?gravatar_id=4d29fb194340a4c990639da30f7946af
> (my gravatar)
>
> The document looks like: (binary data removed)
>
> <document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="xs:base64Binary" content-type="image/jpeg">[: clip
> base64Binary image :]</document>
>
> I am running a nightly build from 2007-09-28 compiled from source, with
> Tomcat 5.5 on Win XP.
>
> Any help is greatly appreciated.
> Daniel E. Renfer
> http://kronkltd.net/
>
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared prefix in xsi:type: xs

Daniel E. Renfer
Erik,

Do you happen to know what files were changed as part of that fix? I
hate looking through CVS trying to find changes. (I much prefer SVN)

I've been looking through the code since I sent that email. (I managed
to get my Eclipse to debug again) It looks like the "xs" namespace is
being generated by the URL generator, (in ProcessorUtils) but it seems
the serializer only sees the "xsi" namespace. I'm still trying to find
out exactly where the other namespace gets dropped. (My system has been
unstable for me and Eclipse is still crashing on me.)

I do know that if I replace the URL generator with an identity
processor, then the serializer sees all the namespaces defined in my
XPL. (As I would expect)

I would attach a testcase, but the XPL sandbox just shows the base64 of
the image, thus not generating the error. (I can still provide one, if
you need it.)

Erik Bruchez wrote:

> Daniel,
>
> A related bug was fixed not long ago:
>
> http://forge.objectweb.org//tracker/index.php?func=detail&aid=307608&group_id=168&atid=350207
>
>
> This likely did not only affect oxf:pdf-template, but other processors
> outputting binary within XML.
>
> Funnily enough, that bug was marked fixed on 2007-09-27, which seems
> to be just before your build, but may have missed the fix by a hair.
> Or, it could be a different problem.
>
> -Erik
>
> Daniel E. Renfer wrote:
>> I am getting an error from
>> org.orbeon.oxf.processor.serializer.BinaryTextContentHandler when I try
>> to pass an image I have retrieved using the URL generator with a content
>> type of image/jpeg.
>>
>> I have tried adding the namespace declaration for "xs" to every xpl I
>> could, but it doesn't seem to do the trick. Unfortunately, ever since I
>> updated Eclipse yesterday, it's not letting me run Tomcat in debug mode,
>> so I can't see what mappings are in prefixMappings.
>>
>> Any idea how I can get Forms to return a jpeg I have retreived?
>>
>> The URL I am retrieving is:
>> http://www.gravatar.com/avatar.php?gravatar_id=4d29fb194340a4c990639da30f7946af
>>
>> (my gravatar)
>>
>> The document looks like: (binary data removed)
>>
>> <document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:type="xs:base64Binary" content-type="image/jpeg">[: clip
>> base64Binary image :]</document>
>>
>> I am running a nightly build from 2007-09-28 compiled from source, with
>> Tomcat 5.5 on Win XP.
>>
>> Any help is greatly appreciated.
>> Daniel E. Renfer
>> http://kronkltd.net/


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws

signature.asc (258 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared prefix in xsi:type: xs

Daniel E. Renfer
Okay, I modified ProcessorUtils.readBinary() to add a meaningless
xs:foo="bar" element to document and everything was working fine.

I was doing some reading about SAX, and I think the problem is the
feature "namespace-prefixes" needs to be set to true. I'm not quite sure
how or where to do that properly, but do you think that might be the
problem?

Daniel E. Renfer
http://kronkltd.net/

Daniel E. Renfer wrote:

> Erik,
>
> Do you happen to know what files were changed as part of that fix? I
> hate looking through CVS trying to find changes. (I much prefer SVN)
>
> I've been looking through the code since I sent that email. (I managed
> to get my Eclipse to debug again) It looks like the "xs" namespace is
> being generated by the URL generator, (in ProcessorUtils) but it seems
> the serializer only sees the "xsi" namespace. I'm still trying to find
> out exactly where the other namespace gets dropped. (My system has been
> unstable for me and Eclipse is still crashing on me.)
>
> I do know that if I replace the URL generator with an identity
> processor, then the serializer sees all the namespaces defined in my
> XPL. (As I would expect)
>
> I would attach a testcase, but the XPL sandbox just shows the base64 of
> the image, thus not generating the error. (I can still provide one, if
> you need it.)
>
> Erik Bruchez wrote:
>  
>> Daniel,
>>
>> A related bug was fixed not long ago:
>>
>> http://forge.objectweb.org//tracker/index.php?func=detail&aid=307608&group_id=168&atid=350207
>>
>>
>> This likely did not only affect oxf:pdf-template, but other processors
>> outputting binary within XML.
>>
>> Funnily enough, that bug was marked fixed on 2007-09-27, which seems
>> to be just before your build, but may have missed the fix by a hair.
>> Or, it could be a different problem.
>>
>> -Erik
>>
>> Daniel E. Renfer wrote:
>>    
>>> I am getting an error from
>>> org.orbeon.oxf.processor.serializer.BinaryTextContentHandler when I try
>>> to pass an image I have retrieved using the URL generator with a content
>>> type of image/jpeg.
>>>
>>> I have tried adding the namespace declaration for "xs" to every xpl I
>>> could, but it doesn't seem to do the trick. Unfortunately, ever since I
>>> updated Eclipse yesterday, it's not letting me run Tomcat in debug mode,
>>> so I can't see what mappings are in prefixMappings.
>>>
>>> Any idea how I can get Forms to return a jpeg I have retreived?
>>>
>>> The URL I am retrieving is:
>>> http://www.gravatar.com/avatar.php?gravatar_id=4d29fb194340a4c990639da30f7946af
>>>
>>> (my gravatar)
>>>
>>> The document looks like: (binary data removed)
>>>
>>> <document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:type="xs:base64Binary" content-type="image/jpeg">[: clip
>>> base64Binary image :]</document>
>>>
>>> I am running a nightly build from 2007-09-28 compiled from source, with
>>> Tomcat 5.5 on Win XP.
>>>
>>> Any help is greatly appreciated.
>>> Daniel E. Renfer
>>> http://kronkltd.net/


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws

signature.asc (258 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared prefix in xsi:type: xs

Alessandro Vernet
Administrator
Daniel,

On Nov 5, 2007 4:35 PM, Daniel E. Renfer <[hidden email]> wrote:
> I was doing some reading about SAX, and I think the problem is the
> feature "namespace-prefixes" needs to be set to true. I'm not quite sure
> how or where to do that properly, but do you think that might be the
> problem?

Have you tried this on a recent nightly build? Like Erik said, the
issue might have been fixed since then, as you mentioned that you were
using a build from 2007-09-28.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared prefix in xsi:type: xs

Daniel E. Renfer
Alessandro Vernet wrote:

> Daniel,
>
> On Nov 5, 2007 4:35 PM, Daniel E. Renfer <[hidden email]> wrote:
>  
>> I was doing some reading about SAX, and I think the problem is the
>> feature "namespace-prefixes" needs to be set to true. I'm not quite sure
>> how or where to do that properly, but do you think that might be the
>> problem?
>>    
>
> Have you tried this on a recent nightly build? Like Erik said, the
> issue might have been fixed since then, as you mentioned that you were
> using a build from 2007-09-28.
>
> Alex
>  
Okay, even though the bug was closed before I last updated, it appears
that I had missed that fix. I just tried it with the latest nightly and
it's working. Looks like I'll be updating Forms slightly ahead of
schedule. (I wanted the new state store anyway)

Thanks for your help,
Daniel E. Renfer
http://kronkltd.net/



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws

signature.asc (258 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared prefix in xsi:type: xs

Alessandro Vernet
Administrator
Daniel,

On Nov 5, 2007 8:11 PM, Daniel E. Renfer <[hidden email]> wrote:
> Okay, even though the bug was closed before I last updated, it appears
> that I had missed that fix. I just tried it with the latest nightly and
> it's working. Looks like I'll be updating Forms slightly ahead of
> schedule. (I wanted the new state store anyway)

OK, great to read this. I think you are relatively safe with the
current builds. Like Erik said earlier, we are now getting really
close to releasing 3.6. (And hopefully we won't keep saying the same
thing for too long!)

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws