Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 67161 invoked from network); 8 Sep 2010 23:52:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 23:52:58 -0000 Received: (qmail 67361 invoked by uid 500); 8 Sep 2010 23:52:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 67190 invoked by uid 500); 8 Sep 2010 23:52:57 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 67183 invoked by uid 99); 8 Sep 2010 23:52:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 23:52:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 23:52:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o88NqWc5011800 for ; Wed, 8 Sep 2010 23:52:32 GMT Message-ID: <17808417.88261283989952545.JavaMail.jira@thor> Date: Wed, 8 Sep 2010 19:52:32 -0400 (EDT) From: "Lance Norskog (JIRA)" To: dev@lucene.apache.org Subject: [jira] Created: (SOLR-2115) DataImportHandler has two parameters for config file and neither one works MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org DataImportHandler has two parameters for config file and neither one works -------------------------------------------------------------------------- Key: SOLR-2115 URL: https://issues.apache.org/jira/browse/SOLR-2115 Project: Solr Issue Type: Bug Components: contrib - DataImportHandler Affects Versions: 1.4.1, 1.4.2, 3.1, 4.0 Reporter: Lance Norskog Fix For: 1.4.2, 3.1, 4.0 The DataImportHandler has two URL parameters for defining the data-config.xml file to be used for the command. 'config' is used in some places and 'dataConfig' is used in other places. 'config' does not work from an HTTP request. However, if it is in the "defaults" section of the DIH definition, it works. If the 'config' parameter is used in an HTTP request, the DIH uses the default in the anyway. This is the exception stack recieved by the client if there is no default. (This is the 3.X branch.) Error 500

HTTP ERROR: 500

null

java.lang.NullPointerException
	at org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:146)
	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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
	at org.mortbay.jetty.Server.handle(Server.java:285)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

RequestURI=/solr/db/dataimport

Powered by Jetty://





















-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org