lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-1269) stack trace not clear when there is a SQL error
Date Thu, 09 Jul 2009 21:02:14 GMT
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


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