java.lang.NullPointerException: No FileItemFactory has been set
In attempting to implement fileUpload using the streaming API I get an error described below:
As I gather from the Streaming API web page that the "traditional FileItemFactory is completely ignored," I'm wondering what I'm doing wrong. So I've defined a basic method as follows:
/**
*
* @param
* @return
*/
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
// Check that we have a file upload request
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if (isMultipart) {
ServletFileUpload upload = new ServletFileUpload(); // Create a new file upload handler
// Parse the request
try {
Line 39 --> List items = upload.parseRequest(request); // FileItem
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItemStream item = (FileItemStream) iter.next();
if (!item.isFormField()) {
this.processFITSFile(item);
}
}
} catch (FileUploadException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
But that leads to the error below:
SEVERE: Servlet.service() for servlet FitsFileProcessorServlet threw exception
java.lang.NullPointerException: No FileItemFactory has been set.
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:353)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at controller.FITSFileProcessor.doPost(FITSFileProcessor.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
java servlets
add a comment |
In attempting to implement fileUpload using the streaming API I get an error described below:
As I gather from the Streaming API web page that the "traditional FileItemFactory is completely ignored," I'm wondering what I'm doing wrong. So I've defined a basic method as follows:
/**
*
* @param
* @return
*/
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
// Check that we have a file upload request
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if (isMultipart) {
ServletFileUpload upload = new ServletFileUpload(); // Create a new file upload handler
// Parse the request
try {
Line 39 --> List items = upload.parseRequest(request); // FileItem
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItemStream item = (FileItemStream) iter.next();
if (!item.isFormField()) {
this.processFITSFile(item);
}
}
} catch (FileUploadException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
But that leads to the error below:
SEVERE: Servlet.service() for servlet FitsFileProcessorServlet threw exception
java.lang.NullPointerException: No FileItemFactory has been set.
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:353)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at controller.FITSFileProcessor.doPost(FITSFileProcessor.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
java servlets
Could you mark the line in your code that causes the error? (Line 39, I guess)
– Andreas_D
Feb 25 '10 at 8:23
The line 39 should beList items = upload.parseRequest(request);
– Romain Linsolas
Feb 25 '10 at 8:25
yes that's right. edited the code
– Terman
Feb 25 '10 at 8:31
add a comment |
In attempting to implement fileUpload using the streaming API I get an error described below:
As I gather from the Streaming API web page that the "traditional FileItemFactory is completely ignored," I'm wondering what I'm doing wrong. So I've defined a basic method as follows:
/**
*
* @param
* @return
*/
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
// Check that we have a file upload request
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if (isMultipart) {
ServletFileUpload upload = new ServletFileUpload(); // Create a new file upload handler
// Parse the request
try {
Line 39 --> List items = upload.parseRequest(request); // FileItem
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItemStream item = (FileItemStream) iter.next();
if (!item.isFormField()) {
this.processFITSFile(item);
}
}
} catch (FileUploadException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
But that leads to the error below:
SEVERE: Servlet.service() for servlet FitsFileProcessorServlet threw exception
java.lang.NullPointerException: No FileItemFactory has been set.
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:353)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at controller.FITSFileProcessor.doPost(FITSFileProcessor.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
java servlets
In attempting to implement fileUpload using the streaming API I get an error described below:
As I gather from the Streaming API web page that the "traditional FileItemFactory is completely ignored," I'm wondering what I'm doing wrong. So I've defined a basic method as follows:
/**
*
* @param
* @return
*/
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
// Check that we have a file upload request
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if (isMultipart) {
ServletFileUpload upload = new ServletFileUpload(); // Create a new file upload handler
// Parse the request
try {
Line 39 --> List items = upload.parseRequest(request); // FileItem
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItemStream item = (FileItemStream) iter.next();
if (!item.isFormField()) {
this.processFITSFile(item);
}
}
} catch (FileUploadException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
But that leads to the error below:
SEVERE: Servlet.service() for servlet FitsFileProcessorServlet threw exception
java.lang.NullPointerException: No FileItemFactory has been set.
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:353)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at controller.FITSFileProcessor.doPost(FITSFileProcessor.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
java servlets
java servlets
edited Feb 25 '10 at 8:30
Terman
asked Feb 25 '10 at 8:20
TermanTerman
48851323
48851323
Could you mark the line in your code that causes the error? (Line 39, I guess)
– Andreas_D
Feb 25 '10 at 8:23
The line 39 should beList items = upload.parseRequest(request);
– Romain Linsolas
Feb 25 '10 at 8:25
yes that's right. edited the code
– Terman
Feb 25 '10 at 8:31
add a comment |
Could you mark the line in your code that causes the error? (Line 39, I guess)
– Andreas_D
Feb 25 '10 at 8:23
The line 39 should beList items = upload.parseRequest(request);
– Romain Linsolas
Feb 25 '10 at 8:25
yes that's right. edited the code
– Terman
Feb 25 '10 at 8:31
Could you mark the line in your code that causes the error? (Line 39, I guess)
– Andreas_D
Feb 25 '10 at 8:23
Could you mark the line in your code that causes the error? (Line 39, I guess)
– Andreas_D
Feb 25 '10 at 8:23
The line 39 should be
List items = upload.parseRequest(request);– Romain Linsolas
Feb 25 '10 at 8:25
The line 39 should be
List items = upload.parseRequest(request);– Romain Linsolas
Feb 25 '10 at 8:25
yes that's right. edited the code
– Terman
Feb 25 '10 at 8:31
yes that's right. edited the code
– Terman
Feb 25 '10 at 8:31
add a comment |
1 Answer
1
active
oldest
votes
new ServletFileUpload() creates an uninitialized instance. Its documentation says:
Constructs an uninitialised instance
of this class. A factory must be
configured, using
setFileItemFactory(), before
attempting to parse requests.
So you either need to use setFileItemFactory() or use the other constructor, which takes the factory as an argument. Like this:
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
Fore more info, see the documentation. The example is also from there.
Or, you can use the streaming API, but then you need to get the iterator differently:
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);
while (iter.hasNext()) {
FileItemStream item = iter.next();
...
}
but then doing so yields: java.lang.ClassCastException: org.apache.commons.fileupload.disk.DiskFileItem cannot be cast to org.apache.commons.fileupload.FileItemStream controller.FITSFileProcessor.doPost(FITSFileProcessor.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
– Terman
Feb 25 '10 at 8:35
You need to doupload.getItemIterator(request)if you want to use the streaming API, see commons.apache.org/fileupload/streaming.html
– Thomas Lötzer
Feb 25 '10 at 8:52
@Yaw Reuben I updated my answer to include the streaming API
– Thomas Lötzer
Feb 25 '10 at 8:58
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f2332563%2fjava-lang-nullpointerexception-no-fileitemfactory-has-been-set%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
new ServletFileUpload() creates an uninitialized instance. Its documentation says:
Constructs an uninitialised instance
of this class. A factory must be
configured, using
setFileItemFactory(), before
attempting to parse requests.
So you either need to use setFileItemFactory() or use the other constructor, which takes the factory as an argument. Like this:
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
Fore more info, see the documentation. The example is also from there.
Or, you can use the streaming API, but then you need to get the iterator differently:
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);
while (iter.hasNext()) {
FileItemStream item = iter.next();
...
}
but then doing so yields: java.lang.ClassCastException: org.apache.commons.fileupload.disk.DiskFileItem cannot be cast to org.apache.commons.fileupload.FileItemStream controller.FITSFileProcessor.doPost(FITSFileProcessor.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
– Terman
Feb 25 '10 at 8:35
You need to doupload.getItemIterator(request)if you want to use the streaming API, see commons.apache.org/fileupload/streaming.html
– Thomas Lötzer
Feb 25 '10 at 8:52
@Yaw Reuben I updated my answer to include the streaming API
– Thomas Lötzer
Feb 25 '10 at 8:58
add a comment |
new ServletFileUpload() creates an uninitialized instance. Its documentation says:
Constructs an uninitialised instance
of this class. A factory must be
configured, using
setFileItemFactory(), before
attempting to parse requests.
So you either need to use setFileItemFactory() or use the other constructor, which takes the factory as an argument. Like this:
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
Fore more info, see the documentation. The example is also from there.
Or, you can use the streaming API, but then you need to get the iterator differently:
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);
while (iter.hasNext()) {
FileItemStream item = iter.next();
...
}
but then doing so yields: java.lang.ClassCastException: org.apache.commons.fileupload.disk.DiskFileItem cannot be cast to org.apache.commons.fileupload.FileItemStream controller.FITSFileProcessor.doPost(FITSFileProcessor.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
– Terman
Feb 25 '10 at 8:35
You need to doupload.getItemIterator(request)if you want to use the streaming API, see commons.apache.org/fileupload/streaming.html
– Thomas Lötzer
Feb 25 '10 at 8:52
@Yaw Reuben I updated my answer to include the streaming API
– Thomas Lötzer
Feb 25 '10 at 8:58
add a comment |
new ServletFileUpload() creates an uninitialized instance. Its documentation says:
Constructs an uninitialised instance
of this class. A factory must be
configured, using
setFileItemFactory(), before
attempting to parse requests.
So you either need to use setFileItemFactory() or use the other constructor, which takes the factory as an argument. Like this:
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
Fore more info, see the documentation. The example is also from there.
Or, you can use the streaming API, but then you need to get the iterator differently:
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);
while (iter.hasNext()) {
FileItemStream item = iter.next();
...
}
new ServletFileUpload() creates an uninitialized instance. Its documentation says:
Constructs an uninitialised instance
of this class. A factory must be
configured, using
setFileItemFactory(), before
attempting to parse requests.
So you either need to use setFileItemFactory() or use the other constructor, which takes the factory as an argument. Like this:
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
Fore more info, see the documentation. The example is also from there.
Or, you can use the streaming API, but then you need to get the iterator differently:
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);
while (iter.hasNext()) {
FileItemStream item = iter.next();
...
}
edited Feb 25 '10 at 8:57
answered Feb 25 '10 at 8:25
Thomas LötzerThomas Lötzer
15.8k166052
15.8k166052
but then doing so yields: java.lang.ClassCastException: org.apache.commons.fileupload.disk.DiskFileItem cannot be cast to org.apache.commons.fileupload.FileItemStream controller.FITSFileProcessor.doPost(FITSFileProcessor.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
– Terman
Feb 25 '10 at 8:35
You need to doupload.getItemIterator(request)if you want to use the streaming API, see commons.apache.org/fileupload/streaming.html
– Thomas Lötzer
Feb 25 '10 at 8:52
@Yaw Reuben I updated my answer to include the streaming API
– Thomas Lötzer
Feb 25 '10 at 8:58
add a comment |
but then doing so yields: java.lang.ClassCastException: org.apache.commons.fileupload.disk.DiskFileItem cannot be cast to org.apache.commons.fileupload.FileItemStream controller.FITSFileProcessor.doPost(FITSFileProcessor.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
– Terman
Feb 25 '10 at 8:35
You need to doupload.getItemIterator(request)if you want to use the streaming API, see commons.apache.org/fileupload/streaming.html
– Thomas Lötzer
Feb 25 '10 at 8:52
@Yaw Reuben I updated my answer to include the streaming API
– Thomas Lötzer
Feb 25 '10 at 8:58
but then doing so yields: java.lang.ClassCastException: org.apache.commons.fileupload.disk.DiskFileItem cannot be cast to org.apache.commons.fileupload.FileItemStream controller.FITSFileProcessor.doPost(FITSFileProcessor.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
– Terman
Feb 25 '10 at 8:35
but then doing so yields: java.lang.ClassCastException: org.apache.commons.fileupload.disk.DiskFileItem cannot be cast to org.apache.commons.fileupload.FileItemStream controller.FITSFileProcessor.doPost(FITSFileProcessor.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
– Terman
Feb 25 '10 at 8:35
You need to do
upload.getItemIterator(request) if you want to use the streaming API, see commons.apache.org/fileupload/streaming.html– Thomas Lötzer
Feb 25 '10 at 8:52
You need to do
upload.getItemIterator(request) if you want to use the streaming API, see commons.apache.org/fileupload/streaming.html– Thomas Lötzer
Feb 25 '10 at 8:52
@Yaw Reuben I updated my answer to include the streaming API
– Thomas Lötzer
Feb 25 '10 at 8:58
@Yaw Reuben I updated my answer to include the streaming API
– Thomas Lötzer
Feb 25 '10 at 8:58
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f2332563%2fjava-lang-nullpointerexception-no-fileitemfactory-has-been-set%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you mark the line in your code that causes the error? (Line 39, I guess)
– Andreas_D
Feb 25 '10 at 8:23
The line 39 should be
List items = upload.parseRequest(request);– Romain Linsolas
Feb 25 '10 at 8:25
yes that's right. edited the code
– Terman
Feb 25 '10 at 8:31