Hi all,

Right now the contract with RepositoryDocument is that there *must* be a
stream.  It can be an empty stream, however.

Karl



On Mon, Jun 16, 2014 at 10:53 AM, Alessandro Benedetti <
[email protected]> wrote:

> Hi Matteo,
> we had a similar problem and simply solved setting an empty stream.
>
> I think the constraint was set for the ManifoldCF Design related to the
> Extract update handler to use.
>
> Cheers
>
>
> 2014-06-16 15:30 GMT+01:00 Matteo Grolla <[email protected]>:
>
> > Hi,
> >         I tried to ingest documents without setting the binary but it was
> > rejected with this error in the log
> >
> > FATAL 2014-06-16 16:26:55,550 (Worker thread '36') - Error tossed: Input
> > stream may not be null
> > java.lang.IllegalArgumentException: Input stream may not be null
> >         at org.apache.http.util.Args.notNull(Args.java:48)
> >         at
> >
> org.apache.http.entity.mime.content.InputStreamBody.<init>(InputStreamBody.java:70)
> >         at
> >
> org.apache.http.entity.mime.content.InputStreamBody.<init>(InputStreamBody.java:58)
> >         at
> >
> org.apache.manifoldcf.agents.output.solr.ModifiedHttpSolrServer.request(ModifiedHttpSolrServer.java:191)
> >         at
> >
> org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:199)
> >         at
> >
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
> >         at
> >
> org.apache.manifoldcf.agents.output.solr.HttpPoster$IngestThread.run(HttpPoster.java:945)
> >
> > Why this constraint?
> >
> >
> > --
> > Matteo Grolla
> > Sourcesense - making sense of Open Source
> > http://www.sourcesense.com
> >
> >
>
>
> --
> --------------------------
>
> Benedetti Alessandro
> Visiting card : http://about.me/alessandro_benedetti
>
> "Tyger, tyger burning bright
> In the forests of the night,
> What immortal hand or eye
> Could frame thy fearful symmetry?"
>
> William Blake - Songs of Experience -1794 England
>

Reply via email to