t:fileupload only works on second try

Hello,

i have a small problem.

I want to upload files with the t:inputFileUpload component of the MyFacesProject.

The first time (during the session) I want to upload a file I have to do it twice until it works.

Before I get an java.lang.NullPointerException @

InputStream in =new BufferedInputStream(File.getInputStream());

because the org.apache.myfaces.custom.fileupload.UploadedFile is still "null"

I am using:

- Tomahawk 1.1.3

- JSF 1.1

I have read/done:

http://wiki.apache.org/myfaces/Setup_For_File_Uploads

http://www.onjava.com/lpt/a/6035

Any ideas what I can do?

[691 byte] By [Reddingoa] at [2007-11-27 1:10:33]
# 1
Could you supply us with the JSP involved and action method where you're trying to access the file?
guy.colemana at 2007-7-11 23:45:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...