[jira] [Updated] (OFBIZ-12600) Solr requires application/x-www-form-urlencoded

2022-04-14 Thread Jacques Le Roux (Jira)


 [ 
https://issues.apache.org/jira/browse/OFBIZ-12600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux updated OFBIZ-12600:

Fix Version/s: 18.12.06
   22.01.01

> Solr requires application/x-www-form-urlencoded
> ---
>
> Key: OFBIZ-12600
> URL: https://issues.apache.org/jira/browse/OFBIZ-12600
> Project: OFBiz
>  Issue Type: Bug
>  Components: solr
>Affects Versions: Upcoming Branch
>Reporter: Ingo Wolfmayr
>Assignee: Jacques Le Roux
>Priority: Major
> Fix For: 18.12.06, 22.01.01
>
> Attachments: OFBIZ-12600.patch
>
>
> Solr plugin fires exception on create/update of a product.
> I am using the current trunk.
> Enabled eca services.
> {code:java}
> 2022-04-14 10:18:03,904 |jsse-nio-8443-exec-2 |RequestHandler                
> |E| Request updateProduct caused an error with the following message: Fehler 
> beim Aufruf eines Events: 
> org.apache.ofbiz.webapp.event.EventHandlerException: Service invocation error 
> (Could not commit transaction for service [updateProduct] call: Roll back 
> error, could not commit transaction, was rolled back instead because of: 
> Service [addToSolrIndex] threw an unexpected 
> exception/errororg.apache.ofbiz.service.GenericServiceException: Service 
> [addToSolrIndex] target threw an unexpected exception (Error from server at 
> https://localhost:8443/solr/solrdefault: Expected mime type 
> application/octet-stream but got application/json. {
>   "error":{
>     "metadata":[
>       "error-class","org.apache.solr.common.SolrException",
>       "root-error-class","org.apache.solr.common.SolrException"],
>     "msg":"Solr requires that request parameters sent using 
> application/x-www-form-urlencoded content-type can be read through the 
> request input stream. Unfortunately, the stream was empty / not available. 
> This may be caused by another servlet filter calling 
> ServletRequest.getParameter*() before SolrDispatchFilter, please remove it.",
>     "trace":"org.apache.solr.common.SolrException: Solr requires that request 
> parameters sent using application/x-www-form-urlencoded content-type can be 
> read through the request input stream. Unfortunately, the stream was empty / 
> not available. This may be caused by another servlet filter calling 
> ServletRequest.getParameter*() before SolrDispatchFilter, please remove 
> it.\n\tat 
> org.apache.solr.servlet.SolrRequestParsers$FormDataRequestParser.getParameterIncompatibilityException(SolrRequestParsers.java:728)\n\tat
>  
> org.apache.solr.servlet.SolrRequestParsers$FormDataRequestParser.parseParamsAndFillStreams(SolrRequestParsers.java:704)\n\tat
>  
> org.apache.solr.servlet.SolrRequestParsers$StandardRequestParser.parseParamsAndFillStreams(SolrRequestParsers.java:826)\n\tat
>  
> org.apache.solr.servlet.SolrRequestParsers.parse(SolrRequestParsers.java:173)\n\tat
>  org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:324)\n\tat 
> org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:525)\n\tat 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)\n\tat
>  
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357)\n\tat
>  
> org.apache.ofbiz.solr.webapp.OFBizSolrContextFilter.doFilter(OFBizSolrContextFilter.java:184)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat
>  
> org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:165)\n\tat
>  javax.servlet.http.HttpFilter.doFilter(HttpFilter.java:57)\n\tat 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat
>  
> org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat
>  
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n\tat
>  
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\tat
>  
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n\tat
>  
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n\tat
>  
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\tat
>  
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\tat
>  
> 

[jira] [Updated] (OFBIZ-12600) Solr requires application/x-www-form-urlencoded

2022-04-14 Thread Jacques Le Roux (Jira)


 [ 
https://issues.apache.org/jira/browse/OFBIZ-12600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux updated OFBIZ-12600:

Summary: Solr requires application/x-www-form-urlencoded  (was: Solr Solr 
requires application/x-www-form-urlencoded)

> Solr requires application/x-www-form-urlencoded
> ---
>
> Key: OFBIZ-12600
> URL: https://issues.apache.org/jira/browse/OFBIZ-12600
> Project: OFBiz
>  Issue Type: Bug
>  Components: solr
>Affects Versions: Upcoming Branch
>Reporter: Ingo Wolfmayr
>Assignee: Jacques Le Roux
>Priority: Major
> Attachments: OFBIZ-12600.patch
>
>
> Solr plugin fires exception on create/update of a product.
> I am using the current trunk.
> Enabled eca services.
> {code:java}
> 2022-04-14 10:18:03,904 |jsse-nio-8443-exec-2 |RequestHandler                
> |E| Request updateProduct caused an error with the following message: Fehler 
> beim Aufruf eines Events: 
> org.apache.ofbiz.webapp.event.EventHandlerException: Service invocation error 
> (Could not commit transaction for service [updateProduct] call: Roll back 
> error, could not commit transaction, was rolled back instead because of: 
> Service [addToSolrIndex] threw an unexpected 
> exception/errororg.apache.ofbiz.service.GenericServiceException: Service 
> [addToSolrIndex] target threw an unexpected exception (Error from server at 
> https://localhost:8443/solr/solrdefault: Expected mime type 
> application/octet-stream but got application/json. {
>   "error":{
>     "metadata":[
>       "error-class","org.apache.solr.common.SolrException",
>       "root-error-class","org.apache.solr.common.SolrException"],
>     "msg":"Solr requires that request parameters sent using 
> application/x-www-form-urlencoded content-type can be read through the 
> request input stream. Unfortunately, the stream was empty / not available. 
> This may be caused by another servlet filter calling 
> ServletRequest.getParameter*() before SolrDispatchFilter, please remove it.",
>     "trace":"org.apache.solr.common.SolrException: Solr requires that request 
> parameters sent using application/x-www-form-urlencoded content-type can be 
> read through the request input stream. Unfortunately, the stream was empty / 
> not available. This may be caused by another servlet filter calling 
> ServletRequest.getParameter*() before SolrDispatchFilter, please remove 
> it.\n\tat 
> org.apache.solr.servlet.SolrRequestParsers$FormDataRequestParser.getParameterIncompatibilityException(SolrRequestParsers.java:728)\n\tat
>  
> org.apache.solr.servlet.SolrRequestParsers$FormDataRequestParser.parseParamsAndFillStreams(SolrRequestParsers.java:704)\n\tat
>  
> org.apache.solr.servlet.SolrRequestParsers$StandardRequestParser.parseParamsAndFillStreams(SolrRequestParsers.java:826)\n\tat
>  
> org.apache.solr.servlet.SolrRequestParsers.parse(SolrRequestParsers.java:173)\n\tat
>  org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:324)\n\tat 
> org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:525)\n\tat 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)\n\tat
>  
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357)\n\tat
>  
> org.apache.ofbiz.solr.webapp.OFBizSolrContextFilter.doFilter(OFBizSolrContextFilter.java:184)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat
>  
> org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:165)\n\tat
>  javax.servlet.http.HttpFilter.doFilter(HttpFilter.java:57)\n\tat 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat
>  
> org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat
>  
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat
>  
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n\tat
>  
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\tat
>  
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n\tat
>  
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n\tat
>  
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\tat
>  
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\tat
>  
>