Note that there are some explanatory texts on larger screens.

plurals
  1. POSolr - DataImportHandler: Indexing failed. Rolled back all changes
    primarykey
    data
    text
    <p>I'm running Solr 4.4 under Tomcat on a Windows environment. I have set up DataImportHandler and tried to fetch data from a SQL Server Express 2012. TCP/IP is enabled on the SQL Server instance.</p> <p>When I run the index routine (<a href="http://server.com:8080/solr/dataimport?command=full-import" rel="nofollow">http://server.com:8080/solr/dataimport?command=full-import</a>) I get the error "Indexing failed. Rolled back all changes."</p> <p><strong>Response</strong></p> <pre><code>&lt;response&gt; &lt;lst name="responseHeader"&gt; &lt;int name="status"&gt;0&lt;/int&gt; &lt;int name="QTime"&gt;7&lt;/int&gt; &lt;/lst&gt; &lt;lst name="initArgs"&gt; &lt;lst name="defaults"&gt; &lt;str name="config"&gt;data-config.xml&lt;/str&gt; &lt;/lst&gt; &lt;/lst&gt; &lt;str name="command"&gt;full-import&lt;/str&gt; &lt;str name="status"&gt;idle&lt;/str&gt; &lt;str name="importResponse"/&gt; &lt;lst name="statusMessages"&gt; &lt;str name="Time Elapsed"&gt;0:1:19.495&lt;/str&gt; &lt;str name="Total Requests made to DataSource"&gt;1&lt;/str&gt; &lt;str name="Total Rows Fetched"&gt;0&lt;/str&gt; &lt;str name="Total Documents Processed"&gt;0&lt;/str&gt; &lt;str name="Total Documents Skipped"&gt;0&lt;/str&gt; &lt;str name="Full Dump Started"&gt;2013-08-14 11:20:59&lt;/str&gt; &lt;str name=""&gt;Indexing failed. Rolled back all changes.&lt;/str&gt; &lt;str name="Rolledback"&gt;2013-08-14 11:21:28&lt;/str&gt; &lt;/lst&gt; &lt;str name="WARNING"&gt; This response format is experimental. It is likely to change in the future. &lt;/str&gt; &lt;/response&gt; </code></pre> <p><strong>Logline from Solr admin interface</strong></p> <pre><code>12:24:08 WARN SimplePropertiesWriter Unable to read: dataimport.properties </code></pre> <p><strong>solrconfig.xml requestHandler</strong></p> <pre><code>&lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&gt; &lt;lst name="defaults"&gt; &lt;str name="config"&gt;data-config.xml&lt;/str&gt; &lt;/lst&gt; &lt;/requestHandler&gt; </code></pre> <p><strong>data-config.xml</strong></p> <pre><code>&lt;dataConfig&gt; &lt;dataSource type="JdbcDataSource" driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://localhost\SQLEXPRESS2012;databaseName=dbname" user="username" password="password" batchSize="-1" /&gt; &lt;document name="products"&gt; &lt;entity name="product" query=" SELECT ProductID, ProductNumber, ProductName, ProductShortDescription, ProductLongDescription, ProductPrice, ProductStock, ProductWeight, ProductVolume, ProductRating, color, capacity, suctionpower, noise, energyefficiency, centrifugation, washingcapacity, automaticdefrosting, bestintest, greenenergy, discount, testwinner, funded, productsubname, werecommend FROM EcomProducts"&gt; &lt;field column="ProductID" name="ProductID"/&gt; &lt;field column="ProductNumber" name="ProductNumber"/&gt; &lt;field column="ProductName" name="ProductName"/&gt; &lt;field column="ProductShortDescription" name="ProductShortDescription"/&gt; &lt;field column="ProductLongDescription" name="ProductLongDescription"/&gt; &lt;field column="ProductPrice" name="ProductPrice"/&gt; &lt;field column="ProductStock" name="ProductStock"/&gt; &lt;field column="ProductWeight" name="ProductWeight"/&gt; &lt;field column="ProductVolume" name="ProductVolume"/&gt; &lt;field column="ProductRating" name="ProductRating"/&gt; &lt;field column="color" name="color"/&gt; &lt;field column="capacity" name="capacity"/&gt; &lt;field column="suctionpower" name="suctionpower"/&gt; &lt;field column="noise" name="noise"/&gt; &lt;field column="energyefficiency" name="energyefficiency"/&gt; &lt;field column="centrifugation" name="centrifugation"/&gt; &lt;field column="washingcapacity" name="washingcapacity"/&gt; &lt;field column="automaticdefrosting" name="automaticdefrosting"/&gt; &lt;field column="bestintest" name="bestintest"/&gt; &lt;field column="greenenergy" name="greenenergy"/&gt; &lt;field column="discount" name="discount"/&gt; &lt;field column="testwinner" name="testwinner"/&gt; &lt;field column="funded" name="funded"/&gt; &lt;field column="productsubname" name="productsubname"/&gt; &lt;field column="werecommend" name="werecommend"/&gt; &lt;/entity&gt; &lt;/document&gt; &lt;/dataConfig&gt; </code></pre> <p><strong>schema.xml</strong></p> <pre><code> &lt;fields&gt; &lt;field name="ProductID" type="string" indexed="true" stored="false" required="true" /&gt; &lt;field name="ProductNumber" type="string" indexed="true" stored="true" required="true" /&gt; &lt;field name="ProductName" type="string" indexed="true" stored="true" required="true" /&gt; &lt;field name="ProductShortDescription" type="string" indexed="true" stored="false" required="true" /&gt; &lt;field name="ProductLongDescription" type="string" indexed="true" stored="false" required="true" /&gt; &lt;field name="ProductPrice" type="float" indexed="true" stored="false" required="true" /&gt; &lt;field name="ProductStock" type="float" indexed="true" stored="false" required="false" /&gt; &lt;field name="ProductWeight" type="float" indexed="true" stored="false" required="false" /&gt; &lt;field name="ProductVolume" type="float" indexed="true" stored="false" required="false" /&gt; &lt;field name="ProductRating" type="float" indexed="true" stored="false" required="false" /&gt; &lt;field name="color" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="capacity" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="suctionpower" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="noise" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="energyefficiency" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="centrifugation" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="washingcapacity" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="automaticdefrosting" type="boolean" indexed="true" stored="false" required="false" /&gt; &lt;field name="bestintest" type="boolean" indexed="true" stored="false" required="false" /&gt; &lt;field name="greenenergy" type="boolean" indexed="true" stored="false" required="false" /&gt; &lt;field name="discount" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="testwinner" type="boolean" indexed="true" stored="false" required="false" /&gt; &lt;field name="funded" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="productsubname" type="string" indexed="true" stored="false" required="false" /&gt; &lt;field name="werecommend" type="boolean" indexed="true" stored="false" required="false" /&gt; &lt;!-- Main body of document extracted by SolrCell. NOTE: This field is not indexed by default, since it is also copied to "text" using copyField below. This is to save space. Use this field for returning and highlighting document content. Use the "text" field to search the content. --&gt; &lt;field name="content" type="text_general" indexed="false" stored="true" multiValued="true"/&gt; &lt;!-- catchall field, containing all other searchable text fields (implemented via copyField further on in this schema --&gt; &lt;field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/&gt; &lt;!-- catchall text field that indexes tokens both normally and in reverse for efficient leading wildcard queries. --&gt; &lt;field name="text_rev" type="text_general_rev" indexed="true" stored="false" multiValued="true"/&gt; &lt;!-- non-tokenized version of manufacturer to make it easier to sort or group results by manufacturer. copied from "manu" via copyField --&gt; &lt;field name="manu_exact" type="string" indexed="true" stored="false"/&gt; &lt;field name="payloads" type="payloads" indexed="true" stored="true"/&gt; &lt;field name="_version_" type="long" indexed="true" stored="true"/&gt; &lt;/fields&gt; &lt;uniqueKey&gt;ProductID&lt;/uniqueKey&gt; &lt;copyField source="ProductName" dest="text"/&gt; &lt;defaultSearchField&gt;text&lt;/defaultSearchField&gt; </code></pre> <p><strong>Catalina log</strong></p> <pre><code>aug 14, 2013 11:20:52 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Tomcat\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;;. aug 14, 2013 11:20:52 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] aug 14, 2013 11:20:52 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] aug 14, 2013 11:20:52 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 374 ms aug 14, 2013 11:20:52 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina aug 14, 2013 11:20:52 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.42 aug 14, 2013 11:20:52 AM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor C:\Tomcat\conf\Catalina\localhost\solr.xml aug 14, 2013 11:20:52 AM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase c:\Tomcat\webapps\solr.war inside the host appBase has been specified, and will be ignored aug 14, 2013 11:20:52 AM org.apache.catalina.startup.SetContextPropertiesRule begin WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property. aug 14, 2013 11:20:52 AM org.apache.tomcat.util.digester.Digester endElement WARNING: No rules found matching 'Context/environment'. aug 14, 2013 11:20:54 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Tomcat\webapps\docs aug 14, 2013 11:20:54 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Tomcat\webapps\host-manager aug 14, 2013 11:20:54 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Tomcat\webapps\manager aug 14, 2013 11:20:54 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Tomcat\webapps\ROOT aug 14, 2013 11:20:54 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] aug 14, 2013 11:20:54 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] aug 14, 2013 11:20:54 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1838 ms </code></pre> <p>Any idea on how to fix it or what to look into?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload