NPE during OST generaton

Issue #2428 resolved
Denis Benoit created an issue

Hi,

When I try to generate the Offline Symbol Table or try to refresh the metadata in the popup to deploy metadata I get a popup with a message:

org.apache.cxf.binding.soap.SoapFault: java.lang.NullPointerException Error Id: 2143027140-797482 (208995951)

I can open the scratch org from the connection panel, listing the connection works, but everything related to the metada fails. The version of Illuminated Cloud 2 is 2.2.8.2 which is not available from the drop down.

I attach the Intellij Log file, the error occurs at these lines:

2023-09-13 18:08:34,633 [ 34181] INFO - #com.illuminatedcloud.intellij.settings.project.OfflineSymbolTableGenerator - Completed activity Loading installed package namespaces in 713 ms.
2023-09-13 18:08:34,635 [ 34183] WARN - #com.illuminatedcloud.util.IlluminatedCloudExceptionUtil - org.apache.cxf.binding.soap.SoapFault: java.lang.NullPointerException Error Id: 1944067435-232148 (-48145086)
javax.xml.ws.WebServiceException: org.apache.cxf.binding.soap.SoapFault: java.lang.NullPointerException Error Id: 1944067435-232148 (-48145086)
at org.apache.cxf.jaxws.JaxWsClientProxy.mapException(JaxWsClientProxy.java:193)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
at jdk.proxy9/jdk.proxy9.$Proxy229.listMetadata(Unknown Source)

I tried removing the Illuminated Cloud 2 plugin, removing other plugins, uninstalling IntelliJ, and reinstalling IntelliJ and the plugin, I always end up getting the error and not being able to interact with the scratch org.

Thank you,

Official response

  • Scott Wells repo owner

    Hi. That error is an internal server error from Salesforce, also known as a GACK. However, I think I know what it is. There’s a known issue with the Salesforce CLI’s “create project” command right now where it sets the API version to an unreleased value (59.0):

    https://github.com/forcedotcom/cli/issues/2417

    With that API version, the listMetadata API call fails with an NPE. Assuming it’s the same issue, you can resolve it by changing the API version number in sfdx-project.json and package.xml (if present) to 58.0. Just to ensure that there’s no stale caching of API versions, you might close and reopen the project before trying to generate the OST again.

    Let me know whether that resolves the issue for you or not.

Comments (7)

  1. Scott Wells repo owner

    Hi. That error is an internal server error from Salesforce, also known as a GACK. However, I think I know what it is. There’s a known issue with the Salesforce CLI’s “create project” command right now where it sets the API version to an unreleased value (59.0):

    https://github.com/forcedotcom/cli/issues/2417

    With that API version, the listMetadata API call fails with an NPE. Assuming it’s the same issue, you can resolve it by changing the API version number in sfdx-project.json and package.xml (if present) to 58.0. Just to ensure that there’s no stale caching of API versions, you might close and reopen the project before trying to generate the OST again.

    Let me know whether that resolves the issue for you or not.

  2. Denis Benoit reporter

    Thank you so much Scott! Yes, you nailed it. I closed the project, changed the version in the sfdx-project.json file (you were right, it was version 59.0), and now everything is working fine!

  3. Log in to comment