Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4320418255 for ; Thu, 18 Jun 2015 11:53:21 +0000 (UTC) Received: (qmail 7988 invoked by uid 500); 18 Jun 2015 11:53:15 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 7915 invoked by uid 500); 18 Jun 2015 11:53:15 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 7904 invoked by uid 99); 18 Jun 2015 11:53:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 11:53:15 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of prvs=161154b5e0=pattabiraman.meenakshisundaram@aig.com designates 167.230.202.35 as permitted sender) Received: from [167.230.202.35] (HELO lmx23.aig.com) (167.230.202.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 11:50:59 +0000 Received: from PWGSMSLIVSMT01.mail.aig.net (PWGSMSLIVSMT01.mail.aig.net [10.87.111.178]) by livplpps23.aig.net (8.15.0.59/8.15.0.59) with ESMTP id t5IBokdi031267 for ; Thu, 18 Jun 2015 07:50:46 -0400 Received: from PWGSMSLIVCAS08.mail.aig.net (10.87.111.89) by PWGSMSLIVSMT01.mail.aig.net (10.87.111.178) with Microsoft SMTP Server (TLS) id 14.3.235.1; Thu, 18 Jun 2015 07:50:46 -0400 Received: from PWGSMSLIVMBS02.mail.aig.net ([169.254.3.245]) by PWGSMSLIVCAS08.mail.aig.net ([10.87.111.89]) with mapi id 14.03.0235.001; Thu, 18 Jun 2015 07:50:46 -0400 From: "Pattabiraman, Meenakshisundaram" To: "solr-user@lucene.apache.org" Subject: RE: XPathentity processor on CLOB field Thread-Topic: XPathentity processor on CLOB field Thread-Index: AdCpZr8S8OQ2GuuRQt2/UpdqVBVUhwAVX5Kg Date: Thu, 18 Jun 2015 11:50:45 +0000 Message-ID: <40A6BF1A1501954B86C6D1113FBF04AE41AFA67E@PWGSMSLIVMBS02.mail.aig.net> References: <40A6BF1A1501954B86C6D1113FBF04AE41AFA0E8@PWGSMSLIVMBS02.mail.aig.net> In-Reply-To: <40A6BF1A1501954B86C6D1113FBF04AE41AFA0E8@PWGSMSLIVMBS02.mail.aig.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.90.108.190] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1502090000 definitions=main-1506180207 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-06-18_03:,, signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org This is the error cause reported. I also see that it has been reported ear= lier (http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201103.mbox= /%3CD0F0D26C-3AC0-4982-9E2B-09DC96937193@535consulting.com%3E) but could no= t find a solution. I am nesting the FieldReaderDataSource within the Entity definition that ha= s a CLOB field. With this it fails only after transforming the clob.=20 If I do not nest, I get this error when the FieldReaderDataSource is initia= lized thus failing even before the SQL is executed. Either case, the error is happening at the same place.=20 Caused by: java.sql.SQLException: SQL statement to execute cannot be empty = or null at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java= :70) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112= ) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:1= 73) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:2= 29) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:4= 03) at oracle.jdbc.driver.OracleSql.initialize(OracleSql.java:110) at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java= :1761) at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1739) at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrappe= r.java:298) at org.apache.solr.handler.dataimport.JdbcDataSource$ResultSetIterator.(JdbcDataSource.java:314) ... 14 more Pattabi Meenakshisundaram -----Original Message----- From: Pattabiraman, Meenakshisundaram [mailto:Pattabiraman.Meenakshisundara= m@aig.com]=20 Sent: Wednesday, June 17, 2015 9:33 PM To: 'solr-user@lucene.apache.org' Subject: XPathentity processor on CLOB field My requirement is to read the XML from a CLOB field and parse it to get the= entity. The data config is as shown below. I am trying to map two fields 'event' an= d 'policyNumber' for the entity 'catreport'. = I am getting this error .... Caused by: org.apache.solr.handler.dataimport.DataImportHandlerException: U= nable to execute query: null Processing Document # 1 at org.apache.solr.handler.dataimport.DataImportHandlerExce= ption.wrapAndThrow(DataImportHandlerException.java:70) at org.apache.solr.handler.dataimport.JdbcDataSource$Result= SetIterator.(JdbcDataSource.java:321) at org.apache.solr.handler.dataimport.JdbcDataSource.getDat= a(JdbcDataSource.java:278) at org.apache.solr.handler.dataimport.JdbcDataSource.getDat= a(JdbcDataSource.java:53) at org.apache.solr.handler.dataimport.XPathEntityProcessor.= initQuery(XPathEntityProcessor.java:283) at org.apache.solr.handler.dataimport.XPathEntityProcessor.= fetchNextRow(XPathEntityProcessor.java:224) I see that the Clob is getting converted to String correctly and the log ha= s this entry where xml is printed Exception while processing: input documen= t : SolrInputDocument(fields: [RESPONSE_XML=3D