Solr
  1. Solr
  2. SOLR-1764

While indexing a "java.lang.IllegalStateException: Can't overwrite cause" exception is thrown

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Component/s: clients - java
    • Environment:

      Windows XP, JBoss 4.2.3 GA

      Description

      I get an exception while indexing. It seems that I'm unable to see the root cause of the exception because it is masked by another "java.lang.IllegalStateException: Can't overwrite cause" exception.

      Here is the stacktrace :

      16:59:04,292 ERROR [STDERR] Feb 8, 2010 4:59:04 PM org.apache.solr.update.processor.LogUpdateProcessor finish
      INFO: {} 0 15
      16:59:04,292 ERROR [STDERR] Feb 8, 2010 4:59:04 PM org.apache.solr.common.SolrException log
      SEVERE: java.lang.IllegalStateException: Can't overwrite cause
      at java.lang.Throwable.initCause(Throwable.java:320)
      at com.ctc.wstx.compat.Jdk14Impl.setInitCause(Jdk14Impl.java:70)
      at com.ctc.wstx.exc.WstxException.<init>(WstxException.java:46)
      at com.ctc.wstx.exc.WstxIOException.<init>(WstxIOException.java:16)
      at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:536)
      at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:592)
      at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:648)
      at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:319)
      at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:68)
      at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
      at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      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:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:619)
      16:59:04,292 ERROR [STDERR] Feb 8, 2010 4:59:04 PM org.apache.solr.core.SolrCore execute
      INFO: [] webapp=/solr path=/update params=

      {wt=xml&version=2.2} status=500 QTime=15
      16:59:04,292 ERROR [STDERR] Feb 8, 2010 4:59:04 PM org.apache.solr.common.SolrException log
      SEVERE: java.lang.IllegalStateException: Can't overwrite cause
      at java.lang.Throwable.initCause(Throwable.java:320)
      at com.ctc.wstx.compat.Jdk14Impl.setInitCause(Jdk14Impl.java:70)
      at com.ctc.wstx.exc.WstxException.<init>(WstxException.java:46)
      at com.ctc.wstx.exc.WstxIOException.<init>(WstxIOException.java:16)
      at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:536)
      at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:592)
      at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:648)
      at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:319)
      at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:68)
      at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
      at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      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:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:619)
      16:59:10,058 ERROR [STDERR] Feb 8, 2010 4:59:10 PM org.apache.solr.update.processor.LogUpdateProcessor finish
      INFO: {add=[null, null, null, null, null, null, null, null, ... (8 added)]} 0 765
      16:59:10,058 ERROR [STDERR] Feb 8, 2010 4:59:10 PM org.apache.solr.core.SolrCore execute
      INFO: [] webapp=/solr path=/update params={wt=xml&version=2.2}

      status=0 QTime=765
      16:59:15,761 ERROR [STDERR] Feb 8, 2010 4:59:15 PM org.apache.solr.update.processor.LogUpdateProcessor finish
      INFO:

      {add=[null, null, null, null, null, null, null, null, ... (8 added)]}

      0 625
      16:59:15,761 ERROR [STDERR] Feb 8, 2010 4:59:15 PM org.apache.solr.core.SolrCore execute
      INFO: [] webapp=/solr path=/update params=

      {wt=xml&version=2.2}

      status=0 QTime=625

        Activity

        Hide
        Fuad Efendi added a comment - - edited

        Michael,

        Which version of Java are you using? I believe something wrong with XML (upload) file, and specific Java version classes conflict with WoodStox, although SOLR may need improvement too:
        http://forums.sun.com/thread.jspa?threadID=5150576

        It says that text nodes such as
        <prim name="y">[-A-Z0-9.,()/='+:?!"%&amp;*; ]</prim>
        can be split (for instance, to process entities), depending on implementation, and, to be safe, SOLR needs something like

         while (reader.isCharacters()) {
        	sb.append(reader.getText());
        	reader.next();
        }
        
        Show
        Fuad Efendi added a comment - - edited Michael, Which version of Java are you using? I believe something wrong with XML (upload) file, and specific Java version classes conflict with WoodStox, although SOLR may need improvement too: http://forums.sun.com/thread.jspa?threadID=5150576 It says that text nodes such as <prim name="y"> [-A-Z0-9.,()/='+:?!"%&amp;*; ] </prim> can be split (for instance, to process entities), depending on implementation, and, to be safe, SOLR needs something like while (reader.isCharacters()) { sb.append(reader.getText()); reader.next(); }
        Hide
        Michael McGowan added a comment -

        Hi Fuad,

        Thanks for the info. I have this Java version :
        java version "1.6.0_10"
        Java(TM) SE Runtime Environment (build 1.6.0_10-b33)

        Let me know if you'd like me to try anything.

        Michael

        Show
        Michael McGowan added a comment - Hi Fuad, Thanks for the info. I have this Java version : java version "1.6.0_10" Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Let me know if you'd like me to try anything. Michael
        Hide
        Fuad Efendi added a comment - - edited

        Funny, it might happen that this is not a problem with JDK 1.6.0_9; or may be with latest JDK. As a quick workaround... Also, you may try to use SolrJ with binary format...
        I'll try to check that <element>word&amp;word</element> doesn't cause a problem...

        Show
        Fuad Efendi added a comment - - edited Funny, it might happen that this is not a problem with JDK 1.6.0_9; or may be with latest JDK. As a quick workaround... Also, you may try to use SolrJ with binary format... I'll try to check that <element>word&amp;word</element> doesn't cause a problem...

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael McGowan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development