Re: Unexpected character '<' (code 60) expected '='

2013-08-01 Thread Shawn Heisey
On 8/1/2013 1:41 AM, Vineet Mishra wrote:
> I am using Solr 3.5 with the posting XML file size of just 1Mb.

I'm guessing that you need to increase your POST buffer size limit in
Tomcat to 2MB or larger.  Tomcat documentation should help you with that.

Thanks,
Shawn



Re: Unexpected character '<' (code 60) expected '='

2013-08-01 Thread Vineet Mishra
XML Validation goes good, It does not give any error rather while Running
again it goes for a few lakhs of records and then stops saying

*SimplePostTool: FATAL: IOException while reading response:
java.io.IOException: Incomplete output stream*
*
*
I guess this is the issue of Threads Resource Management with Lock.


On Thu, Aug 1, 2013 at 1:50 PM, Paul Masurel  wrote:

> You can check for your xml validity with xmllint very simply.
>
> xmllint 
>
> Does this return an error?
>
>
>
> On Thu, Aug 1, 2013 at 9:59 AM, deniz  wrote:
>
> > Vineet Mishra wrote
> > > I am using Solr 3.5 with the posting XML file size of just 1Mb.
> > >
> > >
> > > On Wed, Jul 31, 2013 at 8:19 PM, Shawn Heisey <
> >
> > > solr@
> >
> > > > wrote:
> > >
> > >> On 7/31/2013 7:16 AM, Vineet Mishra wrote:
> > >> > I checked the File. . .nothing is there. I mean the formatting is
> > >> correct,
> > >> > its a valid XML file.
> > >>
> > >> What version of Solr, and how large is your XML file?
> > >>
> > >> If Solr is older than version 4.1, then the POST buffer limit is
> decided
> > >> by your container config, which based on your stacktrace, is tomcat.
>  If
> > >> you have 4.1 or later, then the POST buffer limit is decided by Solr,
> > >> and defaults to 2048KiB.
> > >>
> > >> Could that be the problem?
> > >>
> > >> Thanks,
> > >> Shawn
> > >>
> > >>
> >
> >
> > you might need to escape some chars like < to < and so on
> >
> >
> >
> > -
> > Zeki ama calismiyor... Calissa yapar...
> > --
> > View this message in context:
> >
> http://lucene.472066.n3.nabble.com/Unexpected-character-code-60-expected-tp4081603p4081854.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>
>
>
> --
> __
>
>  Masurel Paul
>  e-mail: paul.masu...@gmail.com
>


Re: Unexpected character '<' (code 60) expected '='

2013-08-01 Thread Paul Masurel
You can check for your xml validity with xmllint very simply.

xmllint 

Does this return an error?



On Thu, Aug 1, 2013 at 9:59 AM, deniz  wrote:

> Vineet Mishra wrote
> > I am using Solr 3.5 with the posting XML file size of just 1Mb.
> >
> >
> > On Wed, Jul 31, 2013 at 8:19 PM, Shawn Heisey <
>
> > solr@
>
> > > wrote:
> >
> >> On 7/31/2013 7:16 AM, Vineet Mishra wrote:
> >> > I checked the File. . .nothing is there. I mean the formatting is
> >> correct,
> >> > its a valid XML file.
> >>
> >> What version of Solr, and how large is your XML file?
> >>
> >> If Solr is older than version 4.1, then the POST buffer limit is decided
> >> by your container config, which based on your stacktrace, is tomcat.  If
> >> you have 4.1 or later, then the POST buffer limit is decided by Solr,
> >> and defaults to 2048KiB.
> >>
> >> Could that be the problem?
> >>
> >> Thanks,
> >> Shawn
> >>
> >>
>
>
> you might need to escape some chars like < to < and so on
>
>
>
> -
> Zeki ama calismiyor... Calissa yapar...
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Unexpected-character-code-60-expected-tp4081603p4081854.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
__

 Masurel Paul
 e-mail: paul.masu...@gmail.com


Re: Unexpected character '<' (code 60) expected '='

2013-08-01 Thread deniz
Vineet Mishra wrote
> I am using Solr 3.5 with the posting XML file size of just 1Mb.
> 
> 
> On Wed, Jul 31, 2013 at 8:19 PM, Shawn Heisey <

> solr@

> > wrote:
> 
>> On 7/31/2013 7:16 AM, Vineet Mishra wrote:
>> > I checked the File. . .nothing is there. I mean the formatting is
>> correct,
>> > its a valid XML file.
>>
>> What version of Solr, and how large is your XML file?
>>
>> If Solr is older than version 4.1, then the POST buffer limit is decided
>> by your container config, which based on your stacktrace, is tomcat.  If
>> you have 4.1 or later, then the POST buffer limit is decided by Solr,
>> and defaults to 2048KiB.
>>
>> Could that be the problem?
>>
>> Thanks,
>> Shawn
>>
>>


you might need to escape some chars like < to < and so on



-
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Unexpected-character-code-60-expected-tp4081603p4081854.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Unexpected character '<' (code 60) expected '='

2013-08-01 Thread Vineet Mishra
I am using Solr 3.5 with the posting XML file size of just 1Mb.


On Wed, Jul 31, 2013 at 8:19 PM, Shawn Heisey  wrote:

> On 7/31/2013 7:16 AM, Vineet Mishra wrote:
> > I checked the File. . .nothing is there. I mean the formatting is
> correct,
> > its a valid XML file.
>
> What version of Solr, and how large is your XML file?
>
> If Solr is older than version 4.1, then the POST buffer limit is decided
> by your container config, which based on your stacktrace, is tomcat.  If
> you have 4.1 or later, then the POST buffer limit is decided by Solr,
> and defaults to 2048KiB.
>
> Could that be the problem?
>
> Thanks,
> Shawn
>
>


Re: Unexpected character '<' (code 60) expected '='

2013-07-31 Thread Shawn Heisey
On 7/31/2013 7:16 AM, Vineet Mishra wrote:
> I checked the File. . .nothing is there. I mean the formatting is correct,
> its a valid XML file.

What version of Solr, and how large is your XML file?

If Solr is older than version 4.1, then the POST buffer limit is decided
by your container config, which based on your stacktrace, is tomcat.  If
you have 4.1 or later, then the POST buffer limit is decided by Solr,
and defaults to 2048KiB.

Could that be the problem?

Thanks,
Shawn



Re: Unexpected character '<' (code 60) expected '='

2013-07-31 Thread Vineet Mishra
I checked the File. . .nothing is there. I mean the formatting is correct,
its a valid XML file.


On Wed, Jul 31, 2013 at 6:38 PM, Markus Jelsma
wrote:

> This file is malformed:
>
> *SEVERE: org.apache.solr.common.SolrException: Unexpected character '<'
> (code 60) expected '='*
> * at [row,col {unknown-source}]: [20281,18]*
>
> Check row 20281 column 18
>
>
> -Original message-
> > From:Vineet Mishra 
> > Sent: Wednesday 31st July 2013 15:05
> > To: solr-user@lucene.apache.org
> > Subject: Unexpected character '<' (code 60) expected '='
> >
> > Hi All
> >
> > I am currently stuck in a Solr Issue while Posting some data to Solr
> Server.
> >
> > I have some record from Hbase which I am posting to Solr, but after
> posting
> > some 1 Million of data records, it suddenly stopped. Checking the
> Catalina
> > log trace it showed,
> >
> > *org.apache.solr.common.SolrException: Unexpected character '<' (code 60)
> > expected '='*
> > *
> > *
> > *
> > *
> > I am not sure whether its the issue with some malformed data for the
> > posting, because whatever xml file which I am generating before posting I
> > have tried posting that specific file to the solr and its going well.
> >
> > Below is the whole log trace,
> >
> >
> > *SEVERE: org.apache.solr.common.SolrException: Unexpected character '<'
> > (code 60) expected '='*
> > * at [row,col {unknown-source}]: [20281,18]*
> > * at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:81)*
> > * at
> >
> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
> > *
> > * at
> >
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
> > *
> > * at org.apache.solr.core.SolrCore.execute(SolrCore.java:1398)*
> > * at
> >
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
> > *
> > * at
> >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
> > *
> > * at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > *
> > * 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:127)
> > *
> > * at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> > *
> > * 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:861)*
> > * at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
> > *
> > * at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> > *
> > * at java.lang.Thread.run(Thread.java:722)*
> > *Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
> > character '<' (code 60) expected '='*
> > * at [row,col {unknown-source}]: [20281,18]*
> > * at
> >
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)*
> > * at
> >
> com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3001)
> > *
> > * at
> >
> com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2936)
> > *
> > * at
> >
> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848)*
> > * at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)*
> > * at org.apache.solr.handler.XMLLoader.readDoc(XMLLoader.java:295)*
> > * at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:157)*
> > * at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)*
> > * ... 17 more*
> > *
> > *
> > Has anybody faced this issue.
> >
> > Thanks and Regards
> > Vineet
> >
>


RE: Unexpected character '<' (code 60) expected '='

2013-07-31 Thread Markus Jelsma
This file is malformed:

*SEVERE: org.apache.solr.common.SolrException: Unexpected character '<'
(code 60) expected '='*
* at [row,col {unknown-source}]: [20281,18]*

Check row 20281 column 18
 
 
-Original message-
> From:Vineet Mishra 
> Sent: Wednesday 31st July 2013 15:05
> To: solr-user@lucene.apache.org
> Subject: Unexpected character '<' (code 60) expected '='
> 
> Hi All
> 
> I am currently stuck in a Solr Issue while Posting some data to Solr Server.
> 
> I have some record from Hbase which I am posting to Solr, but after posting
> some 1 Million of data records, it suddenly stopped. Checking the Catalina
> log trace it showed,
> 
> *org.apache.solr.common.SolrException: Unexpected character '<' (code 60)
> expected '='*
> *
> *
> *
> *
> I am not sure whether its the issue with some malformed data for the
> posting, because whatever xml file which I am generating before posting I
> have tried posting that specific file to the solr and its going well.
> 
> Below is the whole log trace,
> 
> 
> *SEVERE: org.apache.solr.common.SolrException: Unexpected character '<'
> (code 60) expected '='*
> * at [row,col {unknown-source}]: [20281,18]*
> * at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:81)*
> * at
> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
> *
> * at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
> *
> * at org.apache.solr.core.SolrCore.execute(SolrCore.java:1398)*
> * at
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
> *
> * at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
> *
> * at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> *
> * 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:127)
> *
> * at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> *
> * 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:861)*
> * at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
> *
> * at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> *
> * at java.lang.Thread.run(Thread.java:722)*
> *Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
> character '<' (code 60) expected '='*
> * at [row,col {unknown-source}]: [20281,18]*
> * at
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)*
> * at
> com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3001)
> *
> * at
> com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2936)
> *
> * at
> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848)*
> * at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)*
> * at org.apache.solr.handler.XMLLoader.readDoc(XMLLoader.java:295)*
> * at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:157)*
> * at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)*
> * ... 17 more*
> *
> *
> Has anybody faced this issue.
> 
> Thanks and Regards
> Vineet
> 


Unexpected character '<' (code 60) expected '='

2013-07-31 Thread Vineet Mishra
Hi All

I am currently stuck in a Solr Issue while Posting some data to Solr Server.

I have some record from Hbase which I am posting to Solr, but after posting
some 1 Million of data records, it suddenly stopped. Checking the Catalina
log trace it showed,

*org.apache.solr.common.SolrException: Unexpected character '<' (code 60)
expected '='*
*
*
*
*
I am not sure whether its the issue with some malformed data for the
posting, because whatever xml file which I am generating before posting I
have tried posting that specific file to the solr and its going well.

Below is the whole log trace,


*SEVERE: org.apache.solr.common.SolrException: Unexpected character '<'
(code 60) expected '='*
* at [row,col {unknown-source}]: [20281,18]*
* at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:81)*
* at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
*
* at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
*
* at org.apache.solr.core.SolrCore.execute(SolrCore.java:1398)*
* at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
*
* at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
*
* at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
*
* 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:127)
*
* at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
*
* 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:861)*
* at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
*
* at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
*
* at java.lang.Thread.run(Thread.java:722)*
*Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
character '<' (code 60) expected '='*
* at [row,col {unknown-source}]: [20281,18]*
* at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)*
* at
com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3001)
*
* at
com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2936)
*
* at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848)*
* at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)*
* at org.apache.solr.handler.XMLLoader.readDoc(XMLLoader.java:295)*
* at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:157)*
* at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)*
* ... 17 more*
*
*
Has anybody faced this issue.

Thanks and Regards
Vineet