Emulator Crashing with CloudLogging XML Policy Present
- even if not used

It seems that simply having the policy as a file, even if it’s commented out and not actively used, causes issues with the Cloud Code VSCode Extension Apigee emulator. I have to delete the XML policy file for the emulator to function correctly.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessageLogging name="ML-CloudLogging-API-Activity" continueOnError="true" enabled="true">
    <DisplayName>ML-CloudLogging-API-Activity</DisplayName>
    <CloudLogging>
        <LogName>projects/logs</LogName>
        <Message contentType="application/json">{
            "timestamp": "{system.time}",
            "debug": "Cloud logging test message"
        }</Message>
        <ResourceType>global</ResourceType>
    </CloudLogging>
    <logLevel>INFO</logLevel>
</MessageLogging>

giving this error

07/09/2025 2:45 PM EMULATOR ERROR Code   : entities.ConfigurationFailed
07/09/2025 2:45 PM EMULATOR ERROR Message: Configuration failure: Caused by: java.lang.NullPointerException
	at com.apigee.steps.messagelogging.destinations.CloudLoggingDestination.createLoggingSettingsBuilder(CloudLoggingDestination.java:138)
	at com.apigee.steps.messagelogging.destinations.CloudLoggingDestination.<init>(CloudLoggingDestination.java:100)
	at com.apigee.steps.messagelogging.destinations.CloudLoggingDestinationFactory.getInstance(CloudLoggingDestinationFactory.java:71)
	at com.apigee.steps.messagelogging.destinations.DestinationRegistry.newDestination(DestinationRegistry.java:50)
	more...

Hi @alirz ,

I noticed your question hasn’t been answered yet. Don’t worry—we’ll keep an eye on it and try to get some input from other members soon.

Seems like a bug! Please raise it with support.

Sorry for the basic question, but where can I find support link?

Hey @alirz ! Thanks for engaging in the forum. You can find the steps to open a support case right here.

1 Like

seems like no support is available?

I don’t know why you’d be seeing that.

Have you purchased a GCP support plan?

Do you have a billing account set up?

BTW - For “free evaluation” there is no GCP Support.