UnsupportedOperation

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

UnsupportedOperation

Nicolas Modrzyk-3
Hi list,

I'm getting there in a custom deployment :)

I am facing an exception:
java.lang.UnsupportedOperationException: Unsupported type:
{http://www.w3.org/2001/XMLSchema}string
        at org.orbeon.oxf.xforms.XFormsUtils.convertUploadTypes(XFormsUtils.java:719)
        at org.orbeon.oxf.xforms.XFormsInstance.setValueForNode(XFormsInstance.java:353)
        at org.orbeon.oxf.xforms.XFormsInstance.setValueForNodeInfo(XFormsInstance.java:334)
        at org.orbeon.oxf.xforms.action.actions.XFormsSetvalueAction.doSetValue(XFormsSetvalueAction.java:108)
        at org.orbeon.oxf.xforms.control.XFormsValueControl.storeExternalValue(XFormsValueControl.java:87)
        at org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternalValue(XFormsUploadControl.java:156)
        at org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:534)

while trying to upload a file.
The code handling the upload file was working in orbeon from last
december, but not in the updated version.
The jar files are all the standard orbeon one, and the configuration
as close as possible as the original orbeon war file.

Any idea of how I can fix that ? Or where to start looking ?
Thanks in advance,

Niko,


--
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

Picture 20.png (131K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: UnsupportedOperation

Erik Bruchez
Administrator
Hi,

What version produces this error? Line 719 of XFormsUtils does not  
match the latest source code. Did you try a nightly build?

-Erik

On Jul 17, 2008, at 10:32 PM, Nicolas Modrzyk wrote:

> Hi list,
>
> I'm getting there in a custom deployment :)
>
> I am facing an exception:
> java.lang.UnsupportedOperationException: Unsupported type:
> {http://www.w3.org/2001/XMLSchema}string
> at  
> org
> .orbeon.oxf.xforms.XFormsUtils.convertUploadTypes(XFormsUtils.java:
> 719)
> at  
> org
> .orbeon
> .oxf.xforms.XFormsInstance.setValueForNode(XFormsInstance.java:353)
> at  
> org
> .orbeon
> .oxf.xforms.XFormsInstance.setValueForNodeInfo(XFormsInstance.java:
> 334)
> at  
> org
> .orbeon
> .oxf
> .xforms
> .action
> .actions.XFormsSetvalueAction.doSetValue(XFormsSetvalueAction.java:
> 108)
> at  
> org
> .orbeon
> .oxf
> .xforms
> .control
> .XFormsValueControl.storeExternalValue(XFormsValueControl.java:87)
> at  
> org
> .orbeon
> .oxf
> .xforms
> .control
> .controls
> .XFormsUploadControl.setExternalValue(XFormsUploadControl.java:156)
> at  
> org
> .orbeon
> .oxf
> .xforms
> .XFormsModelSubmission
> .performDefaultAction(XFormsModelSubmission.java:534)
>
> while trying to upload a file.
> The code handling the upload file was working in orbeon from last
> december, but not in the updated version.
> The jar files are all the standard orbeon one, and the configuration
> as close as possible as the original orbeon war file.
>
> Any idea of how I can fix that ? Or where to start looking ?
> Thanks in advance,
>
> Niko,
> <Picture 20.png>
> --
> 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
--
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: Re: UnsupportedOperation

Nicolas Modrzyk-3
Even the package name is different:
org.orbeon.oxf.processor.xforms
instead of xforms.

Let's try today's nightly build.

Decompiling the code from the class I have, this is what came out:
    public static String convertUploadTypes(PipelineContext
pipelineContext, String value, String currentType, String newType)
    {
        if(currentType.equals(newType))
            return value;
        if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(currentType) == null)
            throw new UnsupportedOperationException("Unsupported type:
" + currentType);
        if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(newType) == null)
            throw new UnsupportedOperationException("Unsupported type:
" + newType);
        if(currentType.equals(XMLConstants.XS_BASE64BINARY_EXPLODED_QNAME))
            return NetUtils.base64BinaryToAnyURI(pipelineContext, value, 0);
        else
            return NetUtils.anyURIToBase64Binary(value);
    }

Niko,

On 7/18/08, Erik Bruchez <[hidden email]> wrote:

> Hi,
>
>  What version produces this error? Line 719 of XFormsUtils does not match
> the latest source code. Did you try a nightly build?
>
>  -Erik
>
>
>  On Jul 17, 2008, at 10:32 PM, Nicolas Modrzyk wrote:
>
>
> >
> > Hi list,
> >
> > I'm getting there in a custom deployment :)
> >
> > I am facing an exception:
> > java.lang.UnsupportedOperationException: Unsupported
> type:
> > {http://www.w3.org/2001/XMLSchema}string
> >        at
> org.orbeon.oxf.xforms.XFormsUtils.convertUploadTypes(XFormsUtils.java:719)
> >        at
> org.orbeon.oxf.xforms.XFormsInstance.setValueForNode(XFormsInstance.java:353)
> >        at
> org.orbeon.oxf.xforms.XFormsInstance.setValueForNodeInfo(XFormsInstance.java:334)
> >        at
> org.orbeon.oxf.xforms.action.actions.XFormsSetvalueAction.doSetValue(XFormsSetvalueAction.java:108)
> >        at
> org.orbeon.oxf.xforms.control.XFormsValueControl.storeExternalValue(XFormsValueControl.java:87)
> >        at
> org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternalValue(XFormsUploadControl.java:156)
> >        at
> org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:534)
> >
> > while trying to upload a file.
> > The code handling the upload file was working in orbeon from last
> > december, but not in the updated version.
> > The jar files are all the standard orbeon one, and the configuration
> > as close as possible as the original orbeon war file.
> >
> > Any idea of how I can fix that ? Or where to start looking ?
> > Thanks in advance,
> >
> > Niko,
> > <Picture 20.png>
> > --
> > 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
> >
>
>  --
>  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
>
>
>


--
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: Re: UnsupportedOperation

Nicolas Modrzyk-3
Using today's nightly build.

Niko,

On 7/18/08, Nicolas Modrzyk <[hidden email]> wrote:

> Even the package name is different:
>  org.orbeon.oxf.processor.xforms
>  instead of xforms.
>
>  Let's try today's nightly build.
>
>  Decompiling the code from the class I have, this is what came out:
>     public static String convertUploadTypes(PipelineContext
>  pipelineContext, String value, String currentType, String newType)
>     {
>         if(currentType.equals(newType))
>             return value;
>         if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(currentType) == null)
>             throw new UnsupportedOperationException("Unsupported type:
>  " + currentType);
>         if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(newType) == null)
>             throw new UnsupportedOperationException("Unsupported type:
>  " + newType);
>         if(currentType.equals(XMLConstants.XS_BASE64BINARY_EXPLODED_QNAME))
>             return NetUtils.base64BinaryToAnyURI(pipelineContext, value, 0);
>         else
>             return NetUtils.anyURIToBase64Binary(value);
>     }
>
>  Niko,
>
>
>  On 7/18/08, Erik Bruchez <[hidden email]> wrote:
>  > Hi,
>  >
>  >  What version produces this error? Line 719 of XFormsUtils does not match
>  > the latest source code. Did you try a nightly build?
>  >
>  >  -Erik
>  >
>  >
>  >  On Jul 17, 2008, at 10:32 PM, Nicolas Modrzyk wrote:
>  >
>  >
>  > >
>  > > Hi list,
>  > >
>  > > I'm getting there in a custom deployment :)
>  > >
>  > > I am facing an exception:
>  > > java.lang.UnsupportedOperationException: Unsupported
>  > type:
>  > > {http://www.w3.org/2001/XMLSchema}string
>  > >        at
>  > org.orbeon.oxf.xforms.XFormsUtils.convertUploadTypes(XFormsUtils.java:719)
>  > >        at
>  > org.orbeon.oxf.xforms.XFormsInstance.setValueForNode(XFormsInstance.java:353)
>  > >        at
>  > org.orbeon.oxf.xforms.XFormsInstance.setValueForNodeInfo(XFormsInstance.java:334)
>  > >        at
>  > org.orbeon.oxf.xforms.action.actions.XFormsSetvalueAction.doSetValue(XFormsSetvalueAction.java:108)
>  > >        at
>  > org.orbeon.oxf.xforms.control.XFormsValueControl.storeExternalValue(XFormsValueControl.java:87)
>  > >        at
>  > org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternalValue(XFormsUploadControl.java:156)
>  > >        at
>  > org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:534)
>  > >
>  > > while trying to upload a file.
>  > > The code handling the upload file was working in orbeon from last
>  > > december, but not in the updated version.
>  > > The jar files are all the standard orbeon one, and the configuration
>  > > as close as possible as the original orbeon war file.
>  > >
>  > > Any idea of how I can fix that ? Or where to start looking ?
>  > > Thanks in advance,
>  > >
>  > > Niko,
>  > > <Picture 20.png>
>  > > --
>  > > 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
>  > >
>  >
>  >  --
>  >  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
>  >
>  >
>  >
>


--
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

Picture 21.png (112K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: UnsupportedOperation

Nicolas Modrzyk-3
Looks like it's in sync with the current code:
http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/ops/orbeon/src/java/org/orbeon/oxf/xforms/XFormsUtils.java?annotate=1.122

And this is the line throwing the exception I am seeing:
740 ebruchez 1.38          if
(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(newType) == null)
 741 ebruchez 1.19              throw new
UnsupportedOperationException("Unsupported type: " + newType);

So ProcessorUtils says my type is not supported.
Is this the mediatype of the uploaded file ?

Niko,


On 7/18/08, Nicolas Modrzyk <[hidden email]> wrote:

> Using today's nightly build.
>
>  Niko,
>
>
>  On 7/18/08, Nicolas Modrzyk <[hidden email]> wrote:
>  > Even the package name is different:
>  >  org.orbeon.oxf.processor.xforms
>  >  instead of xforms.
>  >
>  >  Let's try today's nightly build.
>  >
>  >  Decompiling the code from the class I have, this is what came out:
>  >     public static String convertUploadTypes(PipelineContext
>  >  pipelineContext, String value, String currentType, String newType)
>  >     {
>  >         if(currentType.equals(newType))
>  >             return value;
>  >         if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(currentType) == null)
>  >             throw new UnsupportedOperationException("Unsupported type:
>  >  " + currentType);
>  >         if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(newType) == null)
>  >             throw new UnsupportedOperationException("Unsupported type:
>  >  " + newType);
>  >         if(currentType.equals(XMLConstants.XS_BASE64BINARY_EXPLODED_QNAME))
>  >             return NetUtils.base64BinaryToAnyURI(pipelineContext, value, 0);
>  >         else
>  >             return NetUtils.anyURIToBase64Binary(value);
>  >     }
>  >
>  >  Niko,
>  >
>  >
>  >  On 7/18/08, Erik Bruchez <[hidden email]> wrote:
>  >  > Hi,
>  >  >
>  >  >  What version produces this error? Line 719 of XFormsUtils does not match
>  >  > the latest source code. Did you try a nightly build?
>  >  >
>  >  >  -Erik
>  >  >
>  >  >
>  >  >  On Jul 17, 2008, at 10:32 PM, Nicolas Modrzyk wrote:
>  >  >
>  >  >
>  >  > >
>  >  > > Hi list,
>  >  > >
>  >  > > I'm getting there in a custom deployment :)
>  >  > >
>  >  > > I am facing an exception:
>  >  > > java.lang.UnsupportedOperationException: Unsupported
>  >  > type:
>  >  > > {http://www.w3.org/2001/XMLSchema}string
>  >  > >        at
>  >  > org.orbeon.oxf.xforms.XFormsUtils.convertUploadTypes(XFormsUtils.java:719)
>  >  > >        at
>  >  > org.orbeon.oxf.xforms.XFormsInstance.setValueForNode(XFormsInstance.java:353)
>  >  > >        at
>  >  > org.orbeon.oxf.xforms.XFormsInstance.setValueForNodeInfo(XFormsInstance.java:334)
>  >  > >        at
>  >  > org.orbeon.oxf.xforms.action.actions.XFormsSetvalueAction.doSetValue(XFormsSetvalueAction.java:108)
>  >  > >        at
>  >  > org.orbeon.oxf.xforms.control.XFormsValueControl.storeExternalValue(XFormsValueControl.java:87)
>  >  > >        at
>  >  > org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternalValue(XFormsUploadControl.java:156)
>  >  > >        at
>  >  > org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:534)
>  >  > >
>  >  > > while trying to upload a file.
>  >  > > The code handling the upload file was working in orbeon from last
>  >  > > december, but not in the updated version.
>  >  > > The jar files are all the standard orbeon one, and the configuration
>  >  > > as close as possible as the original orbeon war file.
>  >  > >
>  >  > > Any idea of how I can fix that ? Or where to start looking ?
>  >  > > Thanks in advance,
>  >  > >
>  >  > > Niko,
>  >  > > <Picture 20.png>
>  >  > > --
>  >  > > 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
>  >  > >
>  >  >
>  >  >  --
>  >  >  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
>  >  >
>  >  >
>  >  >
>  >
>
>


--
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: Re: UnsupportedOperation

Nicolas Modrzyk-3
Hi guys,

I'm really sorry for this one.
Looks like the schema for xform for uploaded files was wrong on our side.

Everything was fine with orbeon code and configuration.

Thanks a lot !

Niko,

On 7/18/08, Nicolas Modrzyk <[hidden email]> wrote:

> Looks like it's in sync with the current code:
>  http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/ops/orbeon/src/java/org/orbeon/oxf/xforms/XFormsUtils.java?annotate=1.122
>
>  And this is the line throwing the exception I am seeing:
>  740 ebruchez 1.38          if
>
> (ProcessorUtils.SUPPORTED_BINARY_TYPES.get(newType) == null)
>
>  741 ebruchez 1.19              throw new
>  UnsupportedOperationException("Unsupported type: " + newType);
>
>  So ProcessorUtils says my type is not supported.
>  Is this the mediatype of the uploaded file ?
>
>
>  Niko,
>
>
>  On 7/18/08, Nicolas Modrzyk <[hidden email]> wrote:
>  > Using today's nightly build.
>  >
>  >  Niko,
>  >
>  >
>  >  On 7/18/08, Nicolas Modrzyk <[hidden email]> wrote:
>  >  > Even the package name is different:
>  >  >  org.orbeon.oxf.processor.xforms
>  >  >  instead of xforms.
>  >  >
>  >  >  Let's try today's nightly build.
>  >  >
>  >  >  Decompiling the code from the class I have, this is what came out:
>  >  >     public static String convertUploadTypes(PipelineContext
>  >  >  pipelineContext, String value, String currentType, String newType)
>  >  >     {
>  >  >         if(currentType.equals(newType))
>  >  >             return value;
>  >  >         if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(currentType) == null)
>  >  >             throw new UnsupportedOperationException("Unsupported type:
>  >  >  " + currentType);
>  >  >         if(ProcessorUtils.SUPPORTED_BINARY_TYPES.get(newType) == null)
>  >  >             throw new UnsupportedOperationException("Unsupported type:
>  >  >  " + newType);
>  >  >         if(currentType.equals(XMLConstants.XS_BASE64BINARY_EXPLODED_QNAME))
>  >  >             return NetUtils.base64BinaryToAnyURI(pipelineContext, value, 0);
>  >  >         else
>  >  >             return NetUtils.anyURIToBase64Binary(value);
>  >  >     }
>  >  >
>  >  >  Niko,
>  >  >
>  >  >
>  >  >  On 7/18/08, Erik Bruchez <[hidden email]> wrote:
>  >  >  > Hi,
>  >  >  >
>  >  >  >  What version produces this error? Line 719 of XFormsUtils does not match
>  >  >  > the latest source code. Did you try a nightly build?
>  >  >  >
>  >  >  >  -Erik
>  >  >  >
>  >  >  >
>  >  >  >  On Jul 17, 2008, at 10:32 PM, Nicolas Modrzyk wrote:
>  >  >  >
>  >  >  >
>  >  >  > >
>  >  >  > > Hi list,
>  >  >  > >
>  >  >  > > I'm getting there in a custom deployment :)
>  >  >  > >
>  >  >  > > I am facing an exception:
>  >  >  > > java.lang.UnsupportedOperationException: Unsupported
>  >  >  > type:
>  >  >  > > {http://www.w3.org/2001/XMLSchema}string
>  >  >  > >        at
>  >  >  > org.orbeon.oxf.xforms.XFormsUtils.convertUploadTypes(XFormsUtils.java:719)
>  >  >  > >        at
>  >  >  > org.orbeon.oxf.xforms.XFormsInstance.setValueForNode(XFormsInstance.java:353)
>  >  >  > >        at
>  >  >  > org.orbeon.oxf.xforms.XFormsInstance.setValueForNodeInfo(XFormsInstance.java:334)
>  >  >  > >        at
>  >  >  > org.orbeon.oxf.xforms.action.actions.XFormsSetvalueAction.doSetValue(XFormsSetvalueAction.java:108)
>  >  >  > >        at
>  >  >  > org.orbeon.oxf.xforms.control.XFormsValueControl.storeExternalValue(XFormsValueControl.java:87)
>  >  >  > >        at
>  >  >  > org.orbeon.oxf.xforms.control.controls.XFormsUploadControl.setExternalValue(XFormsUploadControl.java:156)
>  >  >  > >        at
>  >  >  > org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:534)
>  >  >  > >
>  >  >  > > while trying to upload a file.
>  >  >  > > The code handling the upload file was working in orbeon from last
>  >  >  > > december, but not in the updated version.
>  >  >  > > The jar files are all the standard orbeon one, and the configuration
>  >  >  > > as close as possible as the original orbeon war file.
>  >  >  > >
>  >  >  > > Any idea of how I can fix that ? Or where to start looking ?
>  >  >  > > Thanks in advance,
>  >  >  > >
>  >  >  > > Niko,
>  >  >  > > <Picture 20.png>
>  >  >  > > --
>  >  >  > > 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
>  >  >  > >
>  >  >  >
>  >  >  >  --
>  >  >  >  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
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >
>  >
>  >
>


--
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