You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Arash Bijanzadeh <ar...@gmail.com> on 2006/03/14 16:05:08 UTC

file upload problem

 Trying to upload a file I am getting a java.lang.IllegalArgumentException:
argument type mismatch exception in the setter method of uploadedFile.
I just have a  private UploadedFile upFile in my bean and
  <t:inputFileUpload id="file"
                                           accept="*"
                                           value="#{fileLogic.upFile}"
                                           storage="file"
                                           styleClass="fileUploadInput"
                                           required="true"/>

in the page.


--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individual or group, as other
distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Re: file upload problem

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
   Sorry but i don't understand what is the problem here.
can you upload a file?
 can you try to upload something else which is NOT an image?

i havent great experie3nce of fileupload.....i have tried to load excel
sheet files and it works fine for me

have you tried myfaces examples? does it work fine?

regards
 marco






On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
>
> Hi,
> I could not get you marco. I am not putting the file anywhere. How can I
> do it?
> cheers
>
>
> On 3/15/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> >
> > hello,
> >  yes, the file. in c: for example.
> > rgds
> >
> >  marco
> >
> > On 3/15/06, Arash Bijanzadeh < arashbi@gmail.com > wrote:
> > >
> > > Put what in a different directory?
> > >
> > >
> > > On 3/15/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > >
> > > > Hello,
> > > >   can you put it in a different directory, sicne that looks like is
> > > > the problem?
> > > > or is there a limitation for name of file?
> > > >
> > > > regards
> > > >
> > > >  marco
> > > >
> > > > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > >
> > > > > it is no more strange if I try to upload a image I am getting this
> > > > > error message:
> > > > >
> > > > > 14:55:49,196 ERROR [MultipartRequestWrapper] Exception while
> > > > > uploading file.
> > > > > org.apache.commons.fileupload.FileUploadException : Processing of
> > > > > multipart/form-data request failed. /temp/upload_00000003.tmp (No such file
> > > > > or directory)
> > > > >         at
> > > > > org.apache.commons.fileupload.FileUploadBase.parseRequest(
> > > > > FileUploadBase.java:429)
> > > > >         at
> > > > > org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest
> > > > > (MultipartRequestWrapper.java:81)
> > > > >
> > > > > I am using Facelets and seam on jboss head.
> > > > > My page is :
> > > > >
> > > > >
> > > > > ......
> > > > > <ui:define name="body">
> > > > >
> > > > >     <h2><h:outputText value="upload"/> </h2>
> > > > >     <h:form id="form"  enctype="multipart/form-data">
> > > > >         <input type="hidden" name ="origin"  value="#{origin}"/>
> > > > >         <!--<h:panelGrid id="myvar" columns="2">-->
> > > > >             <h:outputLabel for="file" value="#{messages['name']}"
> > > > > class="label"/><br/>
> > > > >
> > > > >             <t:inputFileUpload id="file"
> > > > >                                            accept="*/*"
> > > > >                                            value="#{
> > > > > fileLogic.upFile}"
> > > > >                                            storage="file"
> > > > >
> > > > > styleClass="fileUploadInput"
> > > > >                                            required="true"/><br/>
> > > > > ...............
> > > > > And my bean is :
> > > > >
> > > > >
> > > > > ..................
> > > > > private String reposPath = "/home/as/repository/";
> > > > >     private String searchString;
> > > > >
> > > > >     private UploadedFile upFile;
> > > > >
> > > > >     public UploadedFile getUpFile()
> > > > >     {
> > > > >         return this.upFile;
> > > > >     }
> > > > >
> > > > >     public void setUpFile(UploadedFile upFile)
> > > > >     {
> > > > >         this.upFile = upFile;
> > > > >     }
> > > > > ..........................................
> > > > > and the upload method actually doing nothing but writing a log
> > > > > message right now!
> > > > >
> > > > >
> > > > > On 3/15/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > > >
> > > > > > hello,
> > > > > >   mm don't think so.. i have same functionality working just
> > > > > > fine...
> > > > > > could you post page & bean & faces-config?
> > > > > >
> > > > > > hth
> > > > > >  marco
> > > > > >
> > > > > >
> > > > > > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > > > >
> > > > > > > Every thing seems ok. Could it be a Facelet problem?
> > > > > > >
> > > > > > > On 3/14/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > > > > >
> > > > > > > > Hello,
> > > > > > > >   have a look at myfaces examples, copy the fileUpload bean
> > > > > > > > more likely, some of your bean properties are incorrect
> > > > > > > >
> > > > > > > > hth
> > > > > > > >  marco
> > > > > > > >
> > > > > > > > On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > > > > > >
> > > > > > > > >  Trying to upload a file I am getting a
> > > > > > > > > java.lang.IllegalArgumentException: argument type mismatch
> > > > > > > > > exception in the setter method of uploadedFile.
> > > > > > > > > I just have a  private UploadedFile upFile in my bean and
> > > > > > > > >   <t:inputFileUpload id="file"
> > > > > > > > >                                            accept="*"
> > > > > > > > >                                            value="#{
> > > > > > > > > fileLogic.upFile}"
> > > > > > > > >                                            storage="file"
> > > > > > > > >
> > > > > > > > > styleClass="fileUploadInput"
> > > > > > > > >
> > > > > > > > > required="true"/>
> > > > > > > > >
> > > > > > > > > in the page.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > from debian manifesto:
> > > > > > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > > > > > Rather than being developed by one isolated individual or
> > > > > > > > > group, as other distributions of Linux have been developed in the
> > > > > > > > > past, Debian is being developed openly in the spirit of
> > > > > > > > > Linux and GNU.
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > from debian manifesto:
> > > > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > > > Rather than being developed by one isolated individua
> > > > > > > l or group, as other distributions of Linux have been
> > > > > > > developed in the
> > > > > > > past, Debian is being developed openly in the spirit of Linux
> > > > > > > and GNU.
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > from debian manifesto:
> > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > Rather than being developed by one isolated individua
> > > > > l or group, as other distributions of Linux have been developed in
> > > > > the
> > > > > past, Debian is being developed openly in the spirit of Linux and
> > > > > GNU.
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > from debian manifesto:
> > > Debian Linux is a brand-new kind of Linux distribution.
> > > Rather than being developed by one isolated individua
> > > l or group, as other distributions of Linux have been developed in the
> > >
> > > past, Debian is being developed openly in the spirit of Linux and GNU.
> > >
> > >
> >
> >
>
>
> --
> from debian manifesto:
> Debian Linux is a brand-new kind of Linux distribution.
> Rather than being developed by one isolated individua
> l or group, as other distributions of Linux have been developed in the
> past, Debian is being developed openly in the spirit of Linux and GNU.
>

Re: file upload problem

Posted by Arash Bijanzadeh <ar...@gmail.com>.
Hi,
I could not get you marco. I am not putting the file anywhere. How can I do
it?
cheers

On 3/15/06, Marco Mistroni <mm...@gmail.com> wrote:
>
> hello,
>  yes, the file. in c: for example.
> rgds
>
>  marco
>
> On 3/15/06, Arash Bijanzadeh <arashbi@gmail.com > wrote:
> >
> > Put what in a different directory?
> >
> >
> > On 3/15/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > >
> > > Hello,
> > >   can you put it in a different directory, sicne that looks like is
> > > the problem?
> > > or is there a limitation for name of file?
> > >
> > > regards
> > >
> > >  marco
> > >
> > > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > >
> > > > it is no more strange if I try to upload a image I am getting this
> > > > error message:
> > > >
> > > > 14:55:49,196 ERROR [MultipartRequestWrapper] Exception while
> > > > uploading file.
> > > > org.apache.commons.fileupload.FileUploadException : Processing of
> > > > multipart/form-data request failed. /temp/upload_00000003.tmp (No such file
> > > > or directory)
> > > >         at org.apache.commons.fileupload.FileUploadBase.parseRequest
> > > > (FileUploadBase.java:429)
> > > >         at
> > > > org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest
> > > > (MultipartRequestWrapper.java:81)
> > > >
> > > > I am using Facelets and seam on jboss head.
> > > > My page is :
> > > >
> > > >
> > > > ......
> > > > <ui:define name="body">
> > > >
> > > >     <h2><h:outputText value="upload"/> </h2>
> > > >     <h:form id="form"  enctype="multipart/form-data">
> > > >         <input type="hidden" name ="origin"  value="#{origin}"/>
> > > >         <!--<h:panelGrid id="myvar" columns="2">-->
> > > >             <h:outputLabel for="file" value="#{messages['name']}"
> > > > class="label"/><br/>
> > > >
> > > >             <t:inputFileUpload id="file"
> > > >                                            accept="*/*"
> > > >                                            value="#{
> > > > fileLogic.upFile}"
> > > >                                            storage="file"
> > > >
> > > > styleClass="fileUploadInput"
> > > >                                            required="true"/><br/>
> > > > ...............
> > > > And my bean is :
> > > >
> > > >
> > > > ..................
> > > > private String reposPath = "/home/as/repository/";
> > > >     private String searchString;
> > > >
> > > >     private UploadedFile upFile;
> > > >
> > > >     public UploadedFile getUpFile()
> > > >     {
> > > >         return this.upFile;
> > > >     }
> > > >
> > > >     public void setUpFile(UploadedFile upFile)
> > > >     {
> > > >         this.upFile = upFile;
> > > >     }
> > > > ..........................................
> > > > and the upload method actually doing nothing but writing a log
> > > > message right now!
> > > >
> > > >
> > > > On 3/15/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > >
> > > > > hello,
> > > > >   mm don't think so.. i have same functionality working just
> > > > > fine...
> > > > > could you post page & bean & faces-config?
> > > > >
> > > > > hth
> > > > >  marco
> > > > >
> > > > >
> > > > > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > > >
> > > > > > Every thing seems ok. Could it be a Facelet problem?
> > > > > >
> > > > > > On 3/14/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > > > >
> > > > > > > Hello,
> > > > > > >   have a look at myfaces examples, copy the fileUpload bean
> > > > > > > more likely, some of your bean properties are incorrect
> > > > > > >
> > > > > > > hth
> > > > > > >  marco
> > > > > > >
> > > > > > > On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > > > > >
> > > > > > > >  Trying to upload a file I am getting a
> > > > > > > > java.lang.IllegalArgumentException: argument type mismatch
> > > > > > > > exception in the setter method of uploadedFile.
> > > > > > > > I just have a  private UploadedFile upFile in my bean and
> > > > > > > >   <t:inputFileUpload id="file"
> > > > > > > >                                            accept="*"
> > > > > > > >                                            value="#{
> > > > > > > > fileLogic.upFile}"
> > > > > > > >                                            storage="file"
> > > > > > > >
> > > > > > > > styleClass="fileUploadInput"
> > > > > > > >                                            required="true"/>
> > > > > > > >
> > > > > > > > in the page.
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > from debian manifesto:
> > > > > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > > > > Rather than being developed by one isolated individual or
> > > > > > > > group, as other distributions of Linux have been developed in the
> > > > > > > > past, Debian is being developed openly in the spirit of
> > > > > > > > Linux and GNU.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > from debian manifesto:
> > > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > > Rather than being developed by one isolated individua
> > > > > > l or group, as other distributions of Linux have been developed
> > > > > > in the
> > > > > > past, Debian is being developed openly in the spirit of Linux
> > > > > > and GNU.
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > from debian manifesto:
> > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > Rather than being developed by one isolated individua
> > > > l or group, as other distributions of Linux have been developed in
> > > > the
> > > > past, Debian is being developed openly in the spirit of Linux and
> > > > GNU.
> > > >
> > >
> > >
> >
> >
> > --
> > from debian manifesto:
> > Debian Linux is a brand-new kind of Linux distribution.
> > Rather than being developed by one isolated individua
> > l or group, as other distributions of Linux have been developed in the
> > past, Debian is being developed openly in the spirit of Linux and GNU.
> >
>
>


--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Re: file upload problem

Posted by Marco Mistroni <mm...@gmail.com>.
hello,
 yes, the file. in c: for example.
rgds
 marco

On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
>
> Put what in a different directory?
>
>
> On 3/15/06, Marco Mistroni <mm...@gmail.com> wrote:
> >
> > Hello,
> >   can you put it in a different directory, sicne that looks like is the
> > problem?
> > or is there a limitation for name of file?
> >
> > regards
> >
> >  marco
> >
> > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > >
> > > it is no more strange if I try to upload a image I am getting this
> > > error message:
> > >
> > > 14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading
> > > file.
> > > org.apache.commons.fileupload.FileUploadException : Processing of
> > > multipart/form-data request failed. /temp/upload_00000003.tmp (No such file
> > > or directory)
> > >         at org.apache.commons.fileupload.FileUploadBase.parseRequest(
> > > FileUploadBase.java:429)
> > >         at
> > > org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(
> > > MultipartRequestWrapper.java:81)
> > >
> > > I am using Facelets and seam on jboss head.
> > > My page is :
> > >
> > >
> > > ......
> > > <ui:define name="body">
> > >
> > >     <h2><h:outputText value="upload"/> </h2>
> > >     <h:form id="form"  enctype="multipart/form-data">
> > >         <input type="hidden" name ="origin"  value="#{origin}"/>
> > >         <!--<h:panelGrid id="myvar" columns="2">-->
> > >             <h:outputLabel for="file" value="#{messages['name']}"
> > > class="label"/><br/>
> > >
> > >             <t:inputFileUpload id="file"
> > >                                            accept="*/*"
> > >                                            value="#{ fileLogic.upFile
> > > }"
> > >                                            storage="file"
> > >
> > > styleClass="fileUploadInput"
> > >                                            required="true"/><br/>
> > > ...............
> > > And my bean is :
> > >
> > >
> > > ..................
> > > private String reposPath = "/home/as/repository/";
> > >     private String searchString;
> > >
> > >     private UploadedFile upFile;
> > >
> > >     public UploadedFile getUpFile()
> > >     {
> > >         return this.upFile;
> > >     }
> > >
> > >     public void setUpFile(UploadedFile upFile)
> > >     {
> > >         this.upFile = upFile;
> > >     }
> > > ..........................................
> > > and the upload method actually doing nothing but writing a log message
> > > right now!
> > >
> > >
> > > On 3/15/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > >
> > > > hello,
> > > >   mm don't think so.. i have same functionality working just fine...
> > > > could you post page & bean & faces-config?
> > > >
> > > > hth
> > > >  marco
> > > >
> > > >
> > > > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > >
> > > > > Every thing seems ok. Could it be a Facelet problem?
> > > > >
> > > > > On 3/14/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > > >
> > > > > > Hello,
> > > > > >   have a look at myfaces examples, copy the fileUpload bean
> > > > > > more likely, some of your bean properties are incorrect
> > > > > >
> > > > > > hth
> > > > > >  marco
> > > > > >
> > > > > > On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > > > >
> > > > > > >  Trying to upload a file I am getting a
> > > > > > > java.lang.IllegalArgumentException: argument type mismatch
> > > > > > > exception in the setter method of uploadedFile.
> > > > > > > I just have a  private UploadedFile upFile in my bean and
> > > > > > >   <t:inputFileUpload id="file"
> > > > > > >                                            accept="*"
> > > > > > >                                            value="#{
> > > > > > > fileLogic.upFile}"
> > > > > > >                                            storage="file"
> > > > > > >
> > > > > > > styleClass="fileUploadInput"
> > > > > > >                                            required="true"/>
> > > > > > >
> > > > > > > in the page.
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > from debian manifesto:
> > > > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > > > Rather than being developed by one isolated individual or
> > > > > > > group, as other distributions of Linux have been developed in the
> > > > > > > past, Debian is being developed openly in the spirit of Linux
> > > > > > > and GNU.
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > from debian manifesto:
> > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > Rather than being developed by one isolated individua
> > > > > l or group, as other distributions of Linux have been developed in
> > > > > the
> > > > > past, Debian is being developed openly in the spirit of Linux and
> > > > > GNU.
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > from debian manifesto:
> > > Debian Linux is a brand-new kind of Linux distribution.
> > > Rather than being developed by one isolated individua
> > > l or group, as other distributions of Linux have been developed in the
> > >
> > > past, Debian is being developed openly in the spirit of Linux and GNU.
> > >
> > >
> >
> >
>
>
> --
> from debian manifesto:
> Debian Linux is a brand-new kind of Linux distribution.
> Rather than being developed by one isolated individua
> l or group, as other distributions of Linux have been developed in the
> past, Debian is being developed openly in the spirit of Linux and GNU.
>

Re: file upload problem

Posted by Arash Bijanzadeh <ar...@gmail.com>.
Put what in a different directory?

On 3/15/06, Marco Mistroni <mm...@gmail.com> wrote:
>
> Hello,
>   can you put it in a different directory, sicne that looks like is the
> problem?
> or is there a limitation for name of file?
>
> regards
>
>  marco
>
> On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> >
> > it is no more strange if I try to upload a image I am getting this error
> > message:
> >
> > 14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading
> > file.
> > org.apache.commons.fileupload.FileUploadException : Processing of
> > multipart/form-data request failed. /temp/upload_00000003.tmp (No such file
> > or directory)
> >         at org.apache.commons.fileupload.FileUploadBase.parseRequest(
> > FileUploadBase.java:429)
> >         at
> > org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(
> > MultipartRequestWrapper.java:81)
> >
> > I am using Facelets and seam on jboss head.
> > My page is :
> >
> >
> > ......
> > <ui:define name="body">
> >
> >     <h2><h:outputText value="upload"/> </h2>
> >     <h:form id="form"  enctype="multipart/form-data">
> >         <input type="hidden" name ="origin"  value="#{origin}"/>
> >         <!--<h:panelGrid id="myvar" columns="2">-->
> >             <h:outputLabel for="file" value="#{messages['name']}"
> > class="label"/><br/>
> >
> >             <t:inputFileUpload id="file"
> >                                            accept="*/*"
> >                                            value="#{ fileLogic.upFile}"
> >                                            storage="file"
> >                                            styleClass="fileUploadInput"
> >                                            required="true"/><br/>
> > ...............
> > And my bean is :
> >
> >
> > ..................
> > private String reposPath = "/home/as/repository/";
> >     private String searchString;
> >
> >     private UploadedFile upFile;
> >
> >     public UploadedFile getUpFile()
> >     {
> >         return this.upFile;
> >     }
> >
> >     public void setUpFile(UploadedFile upFile)
> >     {
> >         this.upFile = upFile;
> >     }
> > ..........................................
> > and the upload method actually doing nothing but writing a log message
> > right now!
> >
> >
> > On 3/15/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > >
> > > hello,
> > >   mm don't think so.. i have same functionality working just fine...
> > > could you post page & bean & faces-config?
> > >
> > > hth
> > >  marco
> > >
> > >
> > > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > >
> > > > Every thing seems ok. Could it be a Facelet problem?
> > > >
> > > > On 3/14/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > >
> > > > > Hello,
> > > > >   have a look at myfaces examples, copy the fileUpload bean
> > > > > more likely, some of your bean properties are incorrect
> > > > >
> > > > > hth
> > > > >  marco
> > > > >
> > > > > On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > > >
> > > > > >  Trying to upload a file I am getting a
> > > > > > java.lang.IllegalArgumentException: argument type mismatch
> > > > > > exception in the setter method of uploadedFile.
> > > > > > I just have a  private UploadedFile upFile in my bean and
> > > > > >   <t:inputFileUpload id="file"
> > > > > >                                            accept="*"
> > > > > >                                            value="#{
> > > > > > fileLogic.upFile}"
> > > > > >                                            storage="file"
> > > > > >
> > > > > > styleClass="fileUploadInput"
> > > > > >                                            required="true"/>
> > > > > >
> > > > > > in the page.
> > > > > >
> > > > > >
> > > > > > --
> > > > > > from debian manifesto:
> > > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > > Rather than being developed by one isolated individual or group,
> > > > > > as other distributions of Linux have been developed in the
> > > > > > past, Debian is being developed openly in the spirit of Linux
> > > > > > and GNU.
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > from debian manifesto:
> > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > Rather than being developed by one isolated individua
> > > > l or group, as other distributions of Linux have been developed in
> > > > the
> > > > past, Debian is being developed openly in the spirit of Linux and
> > > > GNU.
> > > >
> > >
> > >
> >
> >
> > --
> > from debian manifesto:
> > Debian Linux is a brand-new kind of Linux distribution.
> > Rather than being developed by one isolated individua
> > l or group, as other distributions of Linux have been developed in the
> > past, Debian is being developed openly in the spirit of Linux and GNU.
> >
>
>


--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Re: file upload problem

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
  can you put it in a different directory, sicne that looks like is the
problem?
or is there a limitation for name of file?

regards
 marco

On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
>
> it is no more strange if I try to upload a image I am getting this error
> message:
>
> 14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading
> file.
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-data request failed. /temp/upload_00000003.tmp (No such file
> or directory)
>         at org.apache.commons.fileupload.FileUploadBase.parseRequest(
> FileUploadBase.java:429)
>         at
> org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(
> MultipartRequestWrapper.java:81)
>
> I am using Facelets and seam on jboss head.
> My page is :
>
>
> ......
> <ui:define name="body">
>
>     <h2><h:outputText value="upload"/> </h2>
>     <h:form id="form"  enctype="multipart/form-data">
>         <input type="hidden" name ="origin"  value="#{origin}"/>
>         <!--<h:panelGrid id="myvar" columns="2">-->
>             <h:outputLabel for="file" value="#{messages['name']}"
> class="label"/><br/>
>
>             <t:inputFileUpload id="file"
>                                            accept="*/*"
>                                            value="#{fileLogic.upFile}"
>                                            storage="file"
>                                            styleClass="fileUploadInput"
>                                            required="true"/><br/>
> ...............
> And my bean is :
>
>
> ..................
> private String reposPath = "/home/as/repository/";
>     private String searchString;
>
>     private UploadedFile upFile;
>
>     public UploadedFile getUpFile()
>     {
>         return this.upFile;
>     }
>
>     public void setUpFile(UploadedFile upFile)
>     {
>         this.upFile = upFile;
>     }
> ..........................................
> and the upload method actually doing nothing but writing a log message
> right now!
>
>
> On 3/15/06, Marco Mistroni <mm...@gmail.com> wrote:
> >
> > hello,
> >   mm don't think so.. i have same functionality working just fine...
> > could you post page & bean & faces-config?
> >
> > hth
> >  marco
> >
> >
> > On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > >
> > > Every thing seems ok. Could it be a Facelet problem?
> > >
> > > On 3/14/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > >
> > > > Hello,
> > > >   have a look at myfaces examples, copy the fileUpload bean
> > > > more likely, some of your bean properties are incorrect
> > > >
> > > > hth
> > > >  marco
> > > >
> > > > On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > > >
> > > > >  Trying to upload a file I am getting a
> > > > > java.lang.IllegalArgumentException: argument type mismatch
> > > > > exception in the setter method of uploadedFile.
> > > > > I just have a  private UploadedFile upFile in my bean and
> > > > >   <t:inputFileUpload id="file"
> > > > >                                            accept="*"
> > > > >                                            value="#{
> > > > > fileLogic.upFile}"
> > > > >                                            storage="file"
> > > > >
> > > > > styleClass="fileUploadInput"
> > > > >                                            required="true"/>
> > > > >
> > > > > in the page.
> > > > >
> > > > >
> > > > > --
> > > > > from debian manifesto:
> > > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > > Rather than being developed by one isolated individual or group,
> > > > > as other distributions of Linux have been developed in the
> > > > > past, Debian is being developed openly in the spirit of Linux and
> > > > > GNU.
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > from debian manifesto:
> > > Debian Linux is a brand-new kind of Linux distribution.
> > > Rather than being developed by one isolated individua
> > > l or group, as other distributions of Linux have been developed in the
> > >
> > > past, Debian is being developed openly in the spirit of Linux and GNU.
> > >
> > >
> >
> >
>
>
> --
> from debian manifesto:
> Debian Linux is a brand-new kind of Linux distribution.
> Rather than being developed by one isolated individua
> l or group, as other distributions of Linux have been developed in the
> past, Debian is being developed openly in the spirit of Linux and GNU.
>

Re: file upload problem

Posted by Arash Bijanzadeh <ar...@gmail.com>.
it is no more strange if I try to upload a image I am getting this error
message:

14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading file.
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. /temp/upload_00000003.tmp (No such file
or directory)
        at org.apache.commons.fileupload.FileUploadBase.parseRequest(
FileUploadBase.java:429)
        at
org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(
MultipartRequestWrapper.java:81)

I am using Facelets and seam on jboss head.
My page is :


......
<ui:define name="body">

    <h2><h:outputText value="upload"/> </h2>
    <h:form id="form"  enctype="multipart/form-data">
        <input type="hidden" name ="origin"  value="#{origin}"/>
        <!--<h:panelGrid id="myvar" columns="2">-->
            <h:outputLabel for="file" value="#{messages['name']}"
class="label"/><br/>
            <t:inputFileUpload id="file"
                                           accept="*/*"
                                           value="#{fileLogic.upFile}"
                                           storage="file"
                                           styleClass="fileUploadInput"
                                           required="true"/><br/>
...............
And my bean is :


..................
private String reposPath = "/home/as/repository/";
    private String searchString;

    private UploadedFile upFile;

    public UploadedFile getUpFile()
    {
        return this.upFile;
    }

    public void setUpFile(UploadedFile upFile)
    {
        this.upFile = upFile;
    }
..........................................
and the upload method actually doing nothing but writing a log message right
now!

On 3/15/06, Marco Mistroni <mm...@gmail.com> wrote:
>
> hello,
>   mm don't think so.. i have same functionality working just fine...
> could you post page & bean & faces-config?
>
> hth
>  marco
>
>
> On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> >
> > Every thing seems ok. Could it be a Facelet problem?
> >
> > On 3/14/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > >
> > > Hello,
> > >   have a look at myfaces examples, copy the fileUpload bean
> > > more likely, some of your bean properties are incorrect
> > >
> > > hth
> > >  marco
> > >
> > > On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > > >
> > > >  Trying to upload a file I am getting a
> > > > java.lang.IllegalArgumentException: argument type mismatch exception
> > > > in the setter method of uploadedFile.
> > > > I just have a  private UploadedFile upFile in my bean and
> > > >   <t:inputFileUpload id="file"
> > > >                                            accept="*"
> > > >                                            value="#{fileLogic.upFile
> > > > }"
> > > >                                            storage="file"
> > > >
> > > > styleClass="fileUploadInput"
> > > >                                            required="true"/>
> > > >
> > > > in the page.
> > > >
> > > >
> > > > --
> > > > from debian manifesto:
> > > > Debian Linux is a brand-new kind of Linux distribution.
> > > > Rather than being developed by one isolated individual or group, as
> > > > other distributions of Linux have been developed in the
> > > > past, Debian is being developed openly in the spirit of Linux and
> > > > GNU.
> > > >
> > >
> > >
> >
> >
> > --
> > from debian manifesto:
> > Debian Linux is a brand-new kind of Linux distribution.
> > Rather than being developed by one isolated individua
> > l or group, as other distributions of Linux have been developed in the
> > past, Debian is being developed openly in the spirit of Linux and GNU.
> >
>
>


--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Re: file upload problem

Posted by Marco Mistroni <mm...@gmail.com>.
hello,
  mm don't think so.. i have same functionality working just fine...
could you post page & bean & faces-config?

hth
 marco

On 3/15/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
>
> Every thing seems ok. Could it be a Facelet problem?
>
> On 3/14/06, Marco Mistroni <mm...@gmail.com> wrote:
> >
> > Hello,
> >   have a look at myfaces examples, copy the fileUpload bean
> > more likely, some of your bean properties are incorrect
> >
> > hth
> >  marco
> >
> > On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> > >
> > >  Trying to upload a file I am getting a
> > > java.lang.IllegalArgumentException: argument type mismatch exception
> > > in the setter method of uploadedFile.
> > > I just have a  private UploadedFile upFile in my bean and
> > >   <t:inputFileUpload id="file"
> > >                                            accept="*"
> > >                                            value="#{fileLogic.upFile}"
> > >                                            storage="file"
> > >
> > > styleClass="fileUploadInput"
> > >                                            required="true"/>
> > >
> > > in the page.
> > >
> > >
> > > --
> > > from debian manifesto:
> > > Debian Linux is a brand-new kind of Linux distribution.
> > > Rather than being developed by one isolated individual or group, as
> > > other distributions of Linux have been developed in the
> > > past, Debian is being developed openly in the spirit of Linux and GNU.
> > >
> > >
> >
> >
>
>
> --
> from debian manifesto:
> Debian Linux is a brand-new kind of Linux distribution.
> Rather than being developed by one isolated individua
> l or group, as other distributions of Linux have been developed in the
> past, Debian is being developed openly in the spirit of Linux and GNU.
>

Re: file upload problem

Posted by Arash Bijanzadeh <ar...@gmail.com>.
Every thing seems ok. Could it be a Facelet problem?

On 3/14/06, Marco Mistroni <mm...@gmail.com> wrote:
>
> Hello,
>   have a look at myfaces examples, copy the fileUpload bean
> more likely, some of your bean properties are incorrect
>
> hth
>  marco
>
> On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
> >
> >  Trying to upload a file I am getting a
> > java.lang.IllegalArgumentException: argument type mismatch exception in
> > the setter method of uploadedFile.
> > I just have a  private UploadedFile upFile in my bean and
> >   <t:inputFileUpload id="file"
> >                                            accept="*"
> >                                            value="#{fileLogic.upFile}"
> >                                            storage="file"
> >                                            styleClass="fileUploadInput"
> >                                            required="true"/>
> >
> > in the page.
> >
> >
> > --
> > from debian manifesto:
> > Debian Linux is a brand-new kind of Linux distribution.
> > Rather than being developed by one isolated individual or group, as
> > other distributions of Linux have been developed in the
> > past, Debian is being developed openly in the spirit of Linux and GNU.
> >
>
>


--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Re: file upload problem

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
  have a look at myfaces examples, copy the fileUpload bean
more likely, some of your bean properties are incorrect

hth
 marco

On 3/14/06, Arash Bijanzadeh <ar...@gmail.com> wrote:
>
> Trying to upload a file I am getting a java.lang.IllegalArgumentException:
> argument type mismatch exception in the setter method of uploadedFile.
> I just have a  private UploadedFile upFile in my bean and
>   <t:inputFileUpload id="file"
>                                            accept="*"
>                                            value="#{fileLogic.upFile}"
>                                            storage="file"
>                                            styleClass="fileUploadInput"
>                                            required="true"/>
>
> in the page.
>
>
> --
> from debian manifesto:
> Debian Linux is a brand-new kind of Linux distribution.
> Rather than being developed by one isolated individual or group, as other
> distributions of Linux have been developed in the
> past, Debian is being developed openly in the spirit of Linux and GNU.
>