You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by Matteo Grolla <m....@sourcesense.com> on 2014/06/16 16:30:53 UTC

document without binary

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


Re: document without binary

Posted by Karl Wright <da...@gmail.com>.
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 <
benedetti.alex85@gmail.com> 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 <m....@sourcesense.com>:
>
> > 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
>

Re: document without binary

Posted by Alessandro Benedetti <be...@gmail.com>.
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 <m....@sourcesense.com>:

> 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