Error during generation of Offline Symbol Table (OST)

Issue #2447 resolved
Hoang Phuong Thai created an issue

Hi,

I get the following Error pop-up message when generating Offline Symbol Table

org.apache.cxf.binding.soap.SoapFault: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 103587498-14328 (1867297512)

I have tried the work around that you mentioned in this thread https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/2428/npe-during-ost-generaton however it still shows the error even when I change the API version to a lower version than 59.0 (tried all the way down to 54.0 with no luck).

Furthermore, it only happens with a particular dev org (other dev orgs or sandboxes does not generate this error message). All of the orgs are Winter 24 release.

Snippet of idea.log is below and the idea.log file is attached.

Thank you in advance :)

2023-10-17 08:21:38,767 [3245556] INFO - #com.illuminatedcloud.intellij.settings.project.OfflineSymbolTableGenerator - Completed activity Loading external services in 2055 ms.
2023-10-17 08:21:38,767 [3245556] WARN - #com.illuminatedcloud.util.IlluminatedCloudExceptionUtil - org.apache.cxf.binding.soap.SoapFault: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 103587498-14328 (1867297512)
javax.xml.ws.WebServiceException: org.apache.cxf.binding.soap.SoapFault: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 103587498-14328 (1867297512)
at org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:193)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
at jdk.proxy8/jdk.proxy8.$Proxy240.query(Unknown Source)
at com.illuminatedcloud.symtab.OfflineSymbolTable.lambda$loadExternalServiceClasses$40(SourceFile:4532)
at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivity(SourceFile:756)
at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivity(SourceFile:788)
at com.illuminatedcloud.symtab.OfflineSymbolTable.loadExternalServiceClasses(SourceFile:4512)
at com.illuminatedcloud.symtab.OfflineSymbolTable.generateOfflineSymbolTable(SourceFile:1047)
at com.illuminatedcloud.intellij.settings.project.OfflineSymbolTableGenerator$2.run(SourceFile:224)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:428)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:115)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:478)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:251)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:71)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:71)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:251)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:465)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.cxf.binding.soap.SoapFault: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 103587498-14328 (1867297512)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:87)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:53)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:42)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:112)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:70)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:35)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:831)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1697)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1571)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
... 29 more
2023-10-17 08:21:38,771 [3245560] INFO - STDOUT -
2023-10-17 08:27:03,859 [3570648] WARN - #com.illuminatedcloud.intellij.util.MetadataDescribeIndex - Failed to find a child metadata describe for ExternalDataSource.ExternalDataSrcDescriptor
2023-10-17 08:27:03,859 [3570648] WARN - #com.illuminatedcloud.intellij.util.MetadataDescribeIndex - Failed to find a child metadata describe for SharingRules.SharingGuestRule
2023-10-17 08:27:03,859 [3570648] WARN - #com.illuminatedcloud.intellij.util.MetadataDescribeIndex - Failed to find a child metadata describe for ManagedTopics.ManagedTopic

Comments (5)

  1. Scott Wells repo owner

    Hi. That’s occuring during execution of this SOQL query:

    SELECT Id, DeveloperName, NamespacePrefix, Description, Schema FROM ExternalServiceRegistration
    

    Can you please try to execute that against this specific org using the Tooling API:

    and see what happens? My guess is that it’ll fail in a similar manner as it should be the exact same query against the exact same org. But that would isolate the problem. I can add exception handling around this to allow OST generation to proceed, but I would think you’d also want to follow up with Salesforce Support in that case because it would indicate something that’s gotten into a bad state in that org. Executing that query should not result in a GACK / internal server error, and it may be indicative of something else going on in that org.

  2. Scott Wells repo owner

    Here's a build of 2.2.8.6 with improved error recovery/handling for the situation you're encountering. You can install it by downloading (but not extracting) the attached archive and using Settings / Preferences | Plugins | Install plugin from disk (under the gear drop-down menu). Restart the IDE and then regenerate your OST for this org. Please let me know whether that helps to get you past this issue or not.

  3. Hoang Phuong Thai reporter

    Hi Scott,

    Thank you for the quick reply.

    Yes when I execute the SOQL that you mention in that particular org it returns the error message

    UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1823363836-201696 (644630962)

    However, it also sometimes returns this error message

    Network error, offline or timeout

    The other “healthy” orgs the error message is not shown.

    I have created a case to Salesforce Support regarding this issue and waiting for a response (not sure how long that will take and whether it will get fixed in the near future).

    The attached version of the plugin works! Thank you very much 🙂

  4. Log in to comment