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.
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.
HTTP ERROR 404
Problem accessing /solr/test/test/update. Reason:
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">