When saving project i get error 'Could not send message'

Issue #96 resolved
Anja Remic created an issue

Hey, I have a similar thing that you helped Matej with ('Could not send message when retrieveing metadata or building OST'). We work at the same company, I'm currently working on another project that also has custom URL, similar to https://[project name]-[company short name]--devsb.cs18.cloudforce.com I was able to create the project and retrieve metadata, but when I try to save any changes I get 'Could not send Message' error.

[8341970] WARN - lij.coverage.ApexCoverageSuite - Could not send Message. javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:149) at com.sun.proxy.$Proxy179.create(Unknown Source) at com.illuminatedcloud.intellij.builder.ForceComBuilder$20.compute(SourceFile:1936) at com.illuminatedcloud.intellij.builder.ForceComBuilder$20.compute(SourceFile:1932) at com.illuminatedcloud.client.ForceComApiClient.runWithClient(SourceFile:119) at com.illuminatedcloud.intellij.builder.ForceComBuilder.runWithClient(SourceFile:484) at com.illuminatedcloud.intellij.builder.ForceComBuilder.addFilesToMetadataContainer(SourceFile:1931) at com.illuminatedcloud.intellij.builder.ForceComBuilder.access$2000(SourceFile:173) at com.illuminatedcloud.intellij.builder.ForceComBuilder$14$1.compute(SourceFile:1644) at com.illuminatedcloud.intellij.builder.ForceComBuilder$14$1.compute(SourceFile:1609) at com.illuminatedcloud.client.ForceComApiClient.runWithClient(SourceFile:119) at com.illuminatedcloud.intellij.builder.ForceComBuilder.runWithClient(SourceFile:484) at com.illuminatedcloud.intellij.builder.ForceComBuilder$14.run(SourceFile:1608) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563) at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:452) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137) at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56) Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '411: Length Required' when communicating with https://*-*--devsb.cs81.cloudforce.com/services/Soap/T/34.0/00D26000000D02c at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1575) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1527) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1330) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:638) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138) ... 26 more

After deleting project and making it again, I noticed that I get the same error when plugin is building OST.

WARN - loud.symtab.SystemDeclarations - Failed to find an adjustment for APEX_OBJECT typed parameter System__Aura.redirect.pageReference; using Object. 2015-08-20 11:35:19,585 [ 192766] WARN - lij.coverage.ApexCoverageSuite - Could not send Message. javax.xml.ws.WebServiceException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:149) at com.sun.proxy.$Proxy121.describeSObjects(Unknown Source) at com.illuminatedcloud.symtab.OfflineSymbolTable$15$1.compute(SourceFile:1642) at com.illuminatedcloud.symtab.OfflineSymbolTable$15$1.compute(SourceFile:1638) at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivityStep(SourceFile:624) at com.illuminatedcloud.symtab.OfflineSymbolTable$15.compute(SourceFile:1637) at com.illuminatedcloud.symtab.OfflineSymbolTable$15.compute(SourceFile:1630) at com.illuminatedcloud.symtab.OfflineSymbolTable$4.compute(SourceFile:597) at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivity(SourceFile:565) at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivity(SourceFile:592) at com.illuminatedcloud.symtab.OfflineSymbolTable.loadDescribeSObjectResults(SourceFile:1629) at com.illuminatedcloud.symtab.OfflineSymbolTable.loadSObjectClasses(SourceFile:1185) at com.illuminatedcloud.symtab.OfflineSymbolTable.generateOfflineSymbolTable(SourceFile:705) at com.illuminatedcloud.intellij.settings.project.OfflineSymbolTableGenerator$3.run(SourceFile:197) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563) at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:367) at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:452) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137) at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:617) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56) Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '411: Length Required' when communicating with https://**-***--devsb.cs81.cloudforce.com/services/Soap/u/34.0/00D26000000D02c at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1575) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1527) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1330) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:638) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138) ... 28 more

Comments (7)

  1. Anja Remic reporter

    I tried to make the project as Other and URL https://test.salesforce.com/ and normally with sandbox. Have the same problem.

  2. Scott Wells repo owner

    Hi, Anja. Nice to meet you! Simple question first (and I apologize if it's already answered above)...are you using the test build of the plugin that I provided to Matej for this issue? I'm assuming you are, but let's start there. If you are, is it possible to have Matej try to reproduce this issue against the same org?

  3. Anja Remic reporter

    Hey, no he did not give me his test build - but I tried it now and it works! :) Thank you!

  4. Scott Wells repo owner

    Anja, I've just released version 1.4.2.0 with the real fix for this. This is now a configurable connection setting called Enable Workaround for HTTP 411 Issue that is disabled by default. After upgrading to 1.4.2.0, you'll need to go into your connection settings for the org(s) that have this issue and check that option. You should also be able to set the value for Organization Type back to Test (or whatever is appropriate) if you'd like.

  5. Log in to comment