voyent
inputFile problem refreshing  XML
Forum Index -> Components
Author Message
Adamex

Joined: 19/Apr/2009 00:00:00
Messages: 7
Offline


Hi all,
I have some problem with my web application and with ice:inputFile component.

I have:



<ice:inputFile id="inputFileName"
uniqueFolder="true"
actionListener="#{uploadFileBean.uploadFile}"/>
 


when I choose file and I click button "Upload" this file will be send
to the server and that is ok,
but the component inputFile looks like block in color light blue.

My web.xml:



...
<context-param>
<param-name>com.icesoft.faces.uploadDirectory</param-name>
<param-value>tunes/upload</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.uploadMaxFileSize</param-name>
<param-value>4048576</param-value>
</context-param>
...

<servlet>
<servlet-name>uploadServlet</servlet-name>
<servlet-class>
com.icesoft.faces.component.inputfile.FileUploadServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

...

<servlet-mapping>
<servlet-name>uploadServlet</servlet-name>
<url-pattern>/uploadHtml</url-pattern>
</servlet-mapping>

 


In The light blue block is below information:

exception

javax.servlet.ServletException: org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:158)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)

root cause

org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:885)
org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
org.apache.commons.fileupload.servlet.ServletFileUpload.getItemIterator(ServletFileUpload.java:148)
com.icesoft.faces.webapp.http.core.UploadServer$2.servlet(UploadServer.java:66)
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.detectEnvironment(ServletRequestResponse.java:262)
com.icesoft.faces.webapp.http.core.UploadServer.service(UploadServer.java:63)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
 


After sending file, I can't click in inputFile control, because it is light block.
The control isn't refreshing.

What I shoud do, to reslove this problem?
Anyone has similar problem?
[Thumb - obraz.JPG]
 Filename obraz.JPG [Disk] Download
 Description light blue block - the web page
 Filesize 2 Kbytes
 Downloaded:  297 time(s)

edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


Hi there, did you ever find any explanation for this behavior? I'm seeing this exception thrown in my logs, but haven't received any complains from users, so I don't know if it's critical.

Cheers,

Eduard Korenschi
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team