lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SOLR-1269) stack trace not clear when there is a SQL error
Date Mon, 07 Sep 2009 13:20:58 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shalin Shekhar Mangar resolved SOLR-1269.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4
         Assignee: Shalin Shekhar Mangar

Committed revision 812123.

Thanks Eric!

> stack trace not clear when there is a SQL error
> -----------------------------------------------
>
>                 Key: SOLR-1269
>                 URL: https://issues.apache.org/jira/browse/SOLR-1269
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4
>            Reporter: Erik Hatcher
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 1.4
>
>         Attachments: SOLR-1269.patch
>
>
> When setting up a new JDBC datasource and the SQL isn't right yet, we are getting a stack
trace that says ClassNotFoundException, but that is misleading.  
> A cleaner stack trace is warranted, indicating the actual error.
> [actual SQL statement omitted]
> org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to execute query:
SELECT     .....  Processing Document # 1
> 	at org.apache.solr.handler.dataimport.JdbcDataSource$ResultSetIterator.<init>(JdbcDataSource.java:250)
> 	at org.apache.solr.handler.dataimport.JdbcDataSource.getData(JdbcDataSource.java:207)
> 	at org.apache.solr.handler.dataimport.JdbcDataSource.getData(JdbcDataSource.java:40)
> 	at org.apache.solr.handler.dataimport.SqlEntityProcessor.initQuery(SqlEntityProcessor.java:58)
> 	at org.apache.solr.handler.dataimport.SqlEntityProcessor.nextRow(SqlEntityProcessor.java:71)
> 	at org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:237)
> 	at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:343)
> 	at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:224)
> 	at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:167)
> 	at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:333)
> 	at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:393)
> 	at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:372)
> Caused by: java.lang.ClassNotFoundException: Unable to load null or org.apache.solr.handler.dataimport.null
> 	at org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.java:723)
> 	at org.apache.solr.handler.dataimport.JdbcDataSource$1.call(JdbcDataSource.java:188)
> 	at org.apache.solr.handler.dataimport.JdbcDataSource$1.call(JdbcDataSource.java:127)
> 	at org.apache.solr.handler.dataimport.JdbcDataSource.getConnection(JdbcDataSource.java:362)
> 	at org.apache.solr.handler.dataimport.JdbcDataSource.access$300(JdbcDataSource.java:40)
> 	at org.apache.solr.handler.dataimport.JdbcDataSource$ResultSetIterator.<init>(JdbcDataSource.java:237)
> 	... 11 more
> Caused by: java.lang.NullPointerException
> 	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> 	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:280)
> 	at org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.java:713)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message