Hi Everybody,
I am trying to get solr running but unfortunately I have problems when invoking
"rebuildSolrIndex".
I debugged it so far:
Class: OfbizSolrContextFilter.java
(GenericValue) session.getAttribute("userLogin"); --> returns null
Here is the log entry:
[java] 2015-10-27 13:55:34,662 |http-bio-8443-exec-7 |ModelService
|I| Set default value [false] for parameter [treatConnectErrorNonFatal]
[java] 2015-10-27 13:55:34,680 |http-bio-8443-exec-7 |SolrProductSearch
|I| Solr: Clearing solr index and rebuilding with 1 found products
[java] 2015-10-27 13:55:34,692 |http-bio-8443-exec-7 |ProductServices
|W| Problem reading product features. for product 10000
[java] 2015-10-27 13:55:34,693 |http-bio-8443-exec-7 |ServiceDispatcher
|T| Sync service [webtools#demo/getProductFeatureSet] finished in [8]
milliseconds
[java] 2015-10-27 13:55:35,190 |http-bio-8443-exec-7 |ServiceDispatcher
|T| Sync service [webtools#demo/getProductInventoryAvailable] finished in
[497] milliseconds
[java] 2015-10-27 13:55:35,215 |http-bio-8443-exec-7 |ServiceDispatcher
|T| Sync service [webtools#demo/calculateProductPrice] finished in [11]
milliseconds
[java] 2015-10-27 13:55:35,231 |http-bio-8080-exec-3 |ControlEventListener
|I| Creating session: 4AD77AC859F198BF6835EE05447E00A1.jvm1
[java] MYLOG SESSION USED: 4AD77AC859F198BF6835EE05447E00A1.jvm1
[java] 2015-10-27 13:55:35,248 |http-bio-8080-exec-3 |OFBizSolrContextFilter
|I| [solr/update(Domain:http://localhost)] Request error: To update a Solr
index in OFBiz, you have to login first and have the permission to do so.
[java] 2015-10-27 13:55:35,249 |http-bio-8443-exec-7 |SolrProductSearch
|E| Error from server at http://localhost:8080/solr: Expected mime type
application/octet-stream but got application/json.
{"responseHeader":{"message":"To update a Solr index in OFBiz, you have to
login first and have the permission to do so.","status":401}}
[java] org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at http://localhost:8080/solr: Expected mime type
application/octet-stream but got application/json.
{"responseHeader":{"message":"To update a Solr index in OFBiz, you have to
login first and have the permission to do so.","status":401}}
The problem seems that the session is empty (does not contain any attributes),
theirfore security check fails.
Thanks for any hint.
Best regards,
Ingo