:     ContentStreamUpdateRequest req = new
: ContentStreamUpdateRequest("/update/extract");
: 
: System.out.println("setting params...");
:     req.setParam("stream.url", fileName);
:     req.setParam("literal.content_id", solrId);

ContentStreamUpdateRequest exists so that you can stream content directly 
from the client to the server -- you aren't doing that, you are asking the 
server t ogo fetch the stream.url itself.

The NullPointerException happens because you've never called 
ContentStreamUpdateRequest.addFile or 
ContentStreamUpdateRequest.addContentStream so it gets into a state where 
it doesn't know what it's doing (admitedely the error message is less then 
ideal)

If you just use a plain old regular "UpdateRequest" (or even a 
"QueryRequest") instead, your code works as written.

-Hoss

--
http://lucenerevolution.org/  ...  October 7-8, Boston
http://bit.ly/stump-hoss      ...  Stump The Chump!

Reply via email to