org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated.

Atlassian JIRA | abed | 8 years ago
  1. 0

    im trying to migrate my attachment from a local drive to a webDav server the migration failed due to this error exception ERROR [Attachment data migration task] [pages.persistence.dao.WebDavAttachmentDao] saveNewAttachment Failed to save attachment successfully: -- url: /admin/doattachmentmigration.action | userName: admin | action: doattachmentmigration org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:483) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2700) at com.atlassian.confluence.pages.persistence.dao.WebDavAttachmentDao.put(WebDavAttachmentDao.java:668) at com.atlassian.confluence.pages.persistence.dao.WebDavAttachmentDao.saveNewAttachment(WebDavAttachmentDao.java:260) at com.atlassian.confluence.pages.DefaultAttachmentManager.saveNewAttachment(DefaultAttachmentManager.java:53) at com.atlassian.confluence.pages.AbstractAttachmentManager.saveAttachment(AbstractAttachmentManager.java:84) at com.atlassian.confluence.pages.persistence.dao.GeneralAttachmentCopier.copy(GeneralAttachmentCopier.java:150) at com.atlassian.confluence.pages.persistence.dao.GeneralAttachmentMigrator.migrate(GeneralAttachmentMigrator.java:25) at com.atlassian.confluence.util.longrunning.AttachmentMigrationLongRunningTask$1.doInTransactionWithoutResult(AttachmentMigrationLongRunningTask.java:71) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.util.longrunning.AttachmentMigrationLongRunningTask.runInternal(AttachmentMigrationLongRunningTask.java:66) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:595) 2009-01-26 16:49:37,108 ERROR [Attachment data migration task] [pages.persistence.dao.WebDavAttachmentDao] saveNewAttachment Failed to save attachment successfully: -- url: /admin/doattachmentmigration.action | userName: admin | action: doattachmentmigration org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:483) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2700) at com.atlassian.confluence.pages.persistence.dao.WebDavAttachmentDao.put(WebDavAttachmentDao.java:668) at com.atlassian.confluence.pages.persistence.dao.WebDavAttachmentDao.saveNewAttachment(WebDavAttachmentDao.java:260) at com.atlassian.confluence.pages.DefaultAttachmentManager.saveNewAttachment(DefaultAttachmentManager.java:53) at com.atlassian.confluence.pages.AbstractAttachmentManager.saveAttachment(AbstractAttachmentManager.java:84) at com.atlassian.confluence.pages.persistence.dao.GeneralAttachmentCopier.copy(GeneralAttachmentCopier.java:150) at com.atlassian.confluence.pages.persistence.dao.GeneralAttachmentMigrator.migrate(GeneralAttachmentMigrator.java:25) at com.atlassian.confluence.util.longrunning.AttachmentMigrationLongRunningTask$1.doInTransactionWithoutResult(AttachmentMigrationLongRunningTask.java:71) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.util.longrunning.AttachmentMigrationLongRunningTask.runInternal(AttachmentMigrationLongRunningTask.java:66) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:595)

    Atlassian JIRA | 8 years ago | abed
    org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated.
  2. 0

    Unable to access webDAV client as a network drive on Vista. Catalina logs contain following exception; {noformat} Dec 16, 2008 10:28:12 PM org.apache.catalina.core.StandardServer await WARNING: StandardServer.await: Invalid command 'PROPFIND /plugins/servlet/confluence/default HTTP/1.1' received Dec 16, 2008 10:28:12 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:483) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:449) at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:29) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:57) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyFilterSupport.doFilter(ReverseProxyFilterSupport.java:22) at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:29) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:57) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:54) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:40) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) {noformat}

    Ecosystem JIRA | 8 years ago | Andrew Prentice
    org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated.
  3. 0

    Mule: Unbuffered entity enclosing request can not be repeated

    Stack Overflow | 2 years ago | Maksat Nusipzhan
    org.apache.cxf.interceptor.Fault: Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://127.0.0.1:8080/creditHistoryDataServices/ActivityTrackingService, connector=HttpConnector { name=httpConnector lifecycle=start this=31102b0e numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[http] serviceOverrides=<none> } , name='endpoint.http.127.0.0.1.8080.creditHistoryDataServices.ActivityTrackingService', mep=REQUEST_RESPONSE, properties={http.method=POST}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=300000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: PostMethod
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Nutch - User - SolrIndexerJob connection reset - job failed

    nabble.com | 6 months ago
    java.lang.Exception: java.io.IOException: org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated.
  6. 0

    Loanbroker ESN example fails with the following error: Message : Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://localhost:18080/m ule/TheCreditAgencyService, connector=HttpConnector{this=151ac10, started=true, initialised=true, name='http.connector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, suppor tedProtocols=[http], serviceOverrides=null}, transformer=[ObjectToHttpClientMethodRequest{this=1574b88, name='ObjectToHt tpMethod', ignoreBadInput=false, returnClass=interface org.apache.commons.httpclient.HttpMethod, sourceTypes=[interface org.mule.api.MuleMessage, class [B, class java.lang.String, class java.io.InputStream, interface org.mule.api.transport. OutputHandler, class org.mule.transport.NullPayload]}], name='endpoint.http.localhost.18080.mule.TheCreditAgencyService' , properties={}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMess ages=false, securityFilter=null, synchronous=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8} . Message payload is of type: PostMethod Type : org.mule.api.transport.DispatchException Code : MULE_ERROR-42999 Payload : org.apache.commons.httpclient.methods.PostMethod@3a0589 JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.ht ml ******************************************************************************** Exception stack is: 1. Unbuffered entity enclosing request can not be repeated. (org.apache.commons.httpclient.ProtocolException) org.apache.commons.httpclient.methods.EntityEnclosingMethod:487 (null) 2. Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://localhost:18080/mule/TheCreditAgencySe rvice, connector=HttpConnector{this=151ac10, started=true, initialised=true, name='http.connector', disposed=false, numb erOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[http], serviceOverrides=null}, transformer=[ObjectToHttpClientMethodRequest{this=1574b88, name='ObjectToHttpMethod', ignoreBadI nput=false, returnClass=interface org.apache.commons.httpclient.HttpMethod, sourceTypes=[interface org.mule.api.MuleMess age, class [B, class java.lang.String, class java.io.InputStream, interface org.mule.api.transport.OutputHandler, class org.mule.transport.NullPayload]}], name='endpoint.http.localhost.18080.mule.TheCreditAgencyService', properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityF ilter=null, synchronous=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8}. Message payload is of type: PostMethod (org.mule.api.transport.DispatchException) org.mule.transport.http.HttpClientMessageDispatcher:130 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule /api/transport/DispatchException.html) ******************************************************************************** Root Exception stack trace: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.mule.transport.http.HttpClientMessageDispatcher.execute(HttpClientMessageDispatcher.java:123) at org.mule.transport.http.HttpClientMessageDispatcher.doSend(HttpClientMessageDispatcher.java:274) at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:162) at org.mule.transport.AbstractConnector.send(AbstractConnector.java:2102) at org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:97) at org.mule.transport.cxf.transport.MuleUniversalConduit.sendStream(MuleUniversalConduit.java:459) at org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMessage(MuleUniversalConduit.java:238) at org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage(MuleUniversalConduit.java:187) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:469) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308) at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:242) at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:153) at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:162) at org.mule.transport.AbstractConnector.send(AbstractConnector.java:2102) at org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:97) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:332) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:216) at org.mule.routing.outbound.AbstractOutboundRouter$2.doInTransaction(AbstractOutboundRouter.java:152) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:159) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:79) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:69) at org.mule.routing.binding.DefaultInterfaceBinding.route(DefaultInterfaceBinding.java:49) at org.mule.routing.binding.BindingInvocationHandler.invoke(BindingInvocationHandler.java:105) at $Proxy31.getCreditProfile(Unknown Source) at org.mule.example.loanbroker.esn.SynchronousLoanBroker.getLoanQuote(SynchronousLoanBroker.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mule.model.resolvers.AbstractEntryPointResolver.invokeMethod(AbstractEntryPointResolver.java:154) at org.mule.model.resolvers.ReflectionEntryPointResolver.invoke(ReflectionEntryPointResolver.java:178) at org.mule.model.resolvers.DefaultEntryPointResolverSet.invoke(DefaultEntryPointResolverSet.java:50) at org.mule.component.DefaultLifecycleAdapter.invoke(DefaultLifecycleAdapter.java:205) at org.mule.component.AbstractJavaComponent.invokeComponentInstance(AbstractJavaComponent.java:83) at org.mule.component.AbstractJavaComponent.doInvoke(AbstractJavaComponent.java:74) at org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:133) at org.mule.component.AbstractComponent.invoke(AbstractComponent.java:161) at org.mule.service.AbstractService.invokeComponent(AbstractService.java:920) at org.mule.model.seda.SedaService.doSend(SedaService.java:256) at org.mule.service.AbstractService.sendEvent(AbstractService.java:498) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:359) at org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:228) at org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:188) at org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.j ava:382) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:258) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:203) at org.mule.transport.A...

    MuleSoft JIRA | 7 years ago | Daniel Zapata
    org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated.

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.commons.httpclient.ProtocolException

      Unbuffered entity enclosing request can not be repeated.

      at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody()
    2. HttpClient
      HttpClient.executeMethod
      1. org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:483)
      2. org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
      3. org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
      4. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
      5. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      6. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
      7 frames
    3. org.apache.webdav
      WebdavResource.putMethod
      1. org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2700)
      1 frame
    4. com.atlassian.confluence
      AttachmentMigrationLongRunningTask$1.doInTransactionWithoutResult
      1. com.atlassian.confluence.pages.persistence.dao.WebDavAttachmentDao.put(WebDavAttachmentDao.java:668)
      2. com.atlassian.confluence.pages.persistence.dao.WebDavAttachmentDao.saveNewAttachment(WebDavAttachmentDao.java:260)
      3. com.atlassian.confluence.pages.DefaultAttachmentManager.saveNewAttachment(DefaultAttachmentManager.java:53)
      4. com.atlassian.confluence.pages.AbstractAttachmentManager.saveAttachment(AbstractAttachmentManager.java:84)
      5. com.atlassian.confluence.pages.persistence.dao.GeneralAttachmentCopier.copy(GeneralAttachmentCopier.java:150)
      6. com.atlassian.confluence.pages.persistence.dao.GeneralAttachmentMigrator.migrate(GeneralAttachmentMigrator.java:25)
      7. com.atlassian.confluence.util.longrunning.AttachmentMigrationLongRunningTask$1.doInTransactionWithoutResult(AttachmentMigrationLongRunningTask.java:71)
      7 frames
    5. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
      2. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127)
      2 frames
    6. com.atlassian.confluence
      ConfluenceAbstractLongRunningTask.run
      1. com.atlassian.confluence.util.longrunning.AttachmentMigrationLongRunningTask.runInternal(AttachmentMigrationLongRunningTask.java:66)
      2. com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21)
      2 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame