sad_djeridi_ais
I'm new here

Content-Length header already present - Bei submit eines Formulars.

Jump to solution

Hallo Community,

ich bekommen diese Fehlermeldung sobald ich in einer Absatzvorlage das Formular submitte.

org.apache.http.client.ClientProtocolException

org.apache.http.client.ClientProtocolException

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)

at org.apache.http.client.fluent.Executor.execute(Executor.java:229)

at de.espirit.common.io.HttpRequester.execute(HttpRequester.java:166)

at de.espirit.firstspirit.io.servlet.PreviewServlet.externalForward(PreviewServlet.java:582)

at de.espirit.firstspirit.io.servlet.PreviewServlet.doDeliverPreview(PreviewServlet.java:490)

at de.espirit.firstspirit.io.servlet.PreviewServlet.access$500(PreviewServlet.java:95)

at de.espirit.firstspirit.io.servlet.PreviewServlet$2.upToDateCallback(PreviewServlet.java:358)

at de.espirit.firstspirit.io.servlet.PreviewServlet$CacheEntry.perform(PreviewServlet.java:1126)

at de.espirit.firstspirit.io.servlet.PreviewServlet.deliverPreview(PreviewServlet.java:364)

at de.espirit.firstspirit.io.servlet.PreviewServlet.doPost(PreviewServlet.java:238)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at de.espirit.firstspirit.io.servlet.WebAuthentication.doChain(WebAuthentication.java:804)

at de.espirit.firstspirit.io.servlet.WebAuthentication.doFilter(WebAuthentication.java:601)

at de.espirit.firstspirit.io.servlet.WebAuthentication.doFilter(WebAuthentication.java:184)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at de.espirit.firstspirit.webedit.server.BrowserCachingFilter.doFilter(BrowserCachingFilter.java:37)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)

at de.espirit.firstspirit.io.servlet.HttpSubSessionFilter.doFilter(HttpSubSessionFilter.java:107)

at de.espirit.firstspirit.io.servlet.HttpSubSessionFilter.doFilter(HttpSubSessionFilter.java:70)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.http.ProtocolException: Content-Length header already present

at org.apache.http.protocol.RequestContent.process(RequestContent.java:96)

at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:182)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)

... 49 more

Hier der Quelle Code:

<CMS_HEADER>

</CMS_HEADER>

<?php

$haendlername ="";

$haendlermail = "";

$haendlerplz = "";

$haendlerort = "";

$haendlernr  = "";

if(isset($_POST["haendlername"]))

          $haendlername = $_POST["haendlername"];

if(isset($_POST["haendlermail"]))

          $haendlermail = $_POST["haendlermail"];

if(isset($_POST["haendlerplz"]))

          $haendlerplz = $_POST["haendlerplz"];

if(isset($_POST["haendlerort"]))

          $haendlerort = $_POST["haendlerort"];

if(isset($_POST["haendlernr"]))

          $haendlernr  = $_POST["haendlernr"];

?> 

<div class="wpsPortlet" >

          <a name="ansprechpartner"></a>

          <div class="wpsPortletTitleBar">

              <span class="wpsPortletTitleBarLeft"></span>

              <span class="wpsPortletTitle">Händler</span>

            </div>

            <div class="wpsPortletBody">

              <form name="adressen" method="post" action="#">

                              <input type="hidden" name="reset" value="true">

                              <input type="hidden" name="method" value="search">

                              <div class="xhtmlhdlsearchbar">

                                           <div class="fieldgroup">

                                                  <div class="field"><label>Händlername:</label>

                                                               <input type="text" name="haendlername" maxlength="200" value="<?=$haendlername?>" style="width: 450px;">

                                                  </div>

                                                  <div class="field"><label>E-Mail Adressen:</label>

                                                               <input type="checkbox" name="haendlermail" value="1" <?= $haendlermail==1?"checked":""?> > anzeigen

                                                  </div>

                                                  <div class="field"><label>Postleitzahl:</label>

                                                     <input type="text" name="haendlerplz" maxlength="200" value="<?=$haendlerplz?>" style="width: 450px;">

                                                  </div>

                                                  <div class="field"><label>Ort:</label>

                                                               <input type="text" name="haendlerort" maxlength="200" value="<?=$haendlerort?>" style="width: 450px;">

                                                  </div>

                                                  <div class="field"><label>Händlernummer:</label>

                                                               <input type="text" name="haendlernr" maxlength="200" value="<?=$haendlernr?>" style="width: 450px;">

                                                  </div><br/>

                                                  <div style='LINE-HEIGHT:25px'>

                                                     <A href="#" onClick="document.adressen.submit()" class="herobutton"><SPAN>Suchen</SPAN></A>

                                                     <A href="#" onClick="document.adressen.haendlername.value='';document.adressen.haendlerplz.value='';document.adressen.haendlerort.value='';document.adressen.haendlernr.value='';document.adressen.haendlermail.value='';" class="villainbutton"><SPAN>Zur&uuml;cksetzen</SPAN></A>

                                                  </div>

                                              </div>

                              </div>

              </form>

              <table cellpadding=0 cellspacing=0>

                          <tr><td>

                                    <?include("extranet/adressen_haendler.php"); ?>

                          </td></tr>

                </table>

          </div> <!-- wpsPortletBody -->

            <div class="wpsPortletFooter">

              <span class="wpsPortleFooterLeft"></span>

            </div>

          <div class="clearing"></div>

</div>

Weiss jemand woran das liegen kann? Vielen dank im voraus.

Viele Grüße,

Aissam

0 Kudos
1 Solution

Accepted Solutions
sad_djeridi_ais
I'm new here

Habe es jetzt selbst mit jquery ajax gelöst.

View solution in original post

0 Kudos
1 Reply
sad_djeridi_ais
I'm new here

Habe es jetzt selbst mit jquery ajax gelöst.

0 Kudos