You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "khawaja MUHAMMAD Shoaib (JIRA)" <ji...@apache.org> on 2017/10/16 12:27:00 UTC
[jira] [Updated] (SOLR-11494) Expected mime type
application/octet-stream but got text/html
[ https://issues.apache.org/jira/browse/SOLR-11494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
khawaja MUHAMMAD Shoaib updated SOLR-11494:
-------------------------------------------
Attachment: SolrConfig.java
MerchantModel.java
MerchantRepository.java
Solr configuration file " SolrConfig" model and repository
> Expected mime type application/octet-stream but got text/html
> -------------------------------------------------------------
>
> Key: SOLR-11494
> URL: https://issues.apache.org/jira/browse/SOLR-11494
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCLI, SolrJ
> Affects Versions: 6.5
> Environment: Windows 10
> Java jdk1.8.0_144
> Solr 6.5.0
> Spring Data Solr 2.0.5.RELEASE
> Spring Version 4.3.12.RELEASE
> Reporter: khawaja MUHAMMAD Shoaib
> Attachments: MerchantModel.java, MerchantRepository.java, SolrConfig.java
>
>
> I have been following tutorial from below link to implement Spring data Solr
> http://www.baeldung.com/spring-data-solr
> Attached is my config file, model and repository for spring data solr.
> when i make any query or save my model i receive the below exception.....
> my solr is working fine when i ping from browser " http://127.0.0.1:8983/solr/"
> {code:java}
> MerchantModel model = new MerchantModel();
> model.setId("2");
> model.setLocation("31.5287,74.4121");
> model.setTitle("khawaja");
> merchantRepository.save(model);
> {code}
>
> upon save i am getting the below exception
> ###############################################
> org.springframework.data.solr.UncategorizedSolrException: Error from server at http://127.0.0.1:8983/solr: Expected mime type application/octet-stream but got text/html. <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
> <title>Error 404 Not Found</title>
> </head>
> <body><h2>HTTP ERROR 404</h2>
> <p>Problem accessing /solr/update. Reason:
> <pre> Not Found</pre></p>
> </body>
> </html>
> ; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:8983/solr: Expected mime type application/octet-stream but got text/html. <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
> <title>Error 404 Not Found</title>
> </head>
> <body><h2>HTTP ERROR 404</h2>
> <p>Problem accessing /solr/update. Reason:
> <pre> Not Found</pre></p>
> </body>
> </html>
> ###############################################
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org