String fileUrl = "C:/TEMP/table.txt"; File file = new File(fileUrl); ContentStreamUpdateRequest up = new ContentStreamUpdateRequest( "/update/extract"); up.addFile(file); up.setParam("literal.id", file.getName()); System.out.println(file.getName()); up.setParam("uprefix", "attr_"); up.setParam("fmap.content", "attr_content"); up.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); server.request(up);
The above code, if I start the server(tomcat) inside eclipse, it throws "SolrException : Internal Server Error"; but if I start the server outside eclipse, for instance, run "startup.bat" in tomcat's bin directory, it runs successfully. I really don't understand Why they are different. Thanks in advance! ------------------ Best wishes Zhenpeng Fang Dept. Software Engineering