christophstrobl / spring-data-solr-showcase

Sample Spring MVC Application demonstrating usage of Spring Data Solr.
Apache License 2.0
95 stars 85 forks source link

Problem accessing /solr/test/test/update. [test is solr core name] #11

Closed ismlyldz closed 7 years ago

ismlyldz commented 7 years ago

Your application is working with my solr server. (Count and save methods are working.)

I have my application running with struts and spring.

There is a very strange problem.

Working Code: System.out.println(productRepository.count()); Not Working Code productRepository.save(product);

Error Output:

; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://192.168.2.200:8983/solr/test: Expected mime type application/octet-stream but got text/html.

Error 404 Not Found

HTTP ERROR 404

Problem accessing /solr/test/test/update. Reason:

    Not Found

Spring Solr XML Configuration:

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:solr="http://www.springframework.org/schema/data/solr" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/data/solr http://www.springframework.org/schema/data/solr/spring-solr.xsd">

<solr:repositories base-package="com.firmaver.solr" multicore-support="true"/>

<solr:solr-client id="solrClient" url="http://192.168.2.200:8983/solr"/>

ismlyldz commented 7 years ago

This problem was happening in 2.1.0.RELEASE, there is no problem in an old 2.0.7.RELESE version.