Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

error: Operation 'loggerScope' has a InputStream type output but doesn't specify a default mime type. Please annotate it with @MediaType #34

Open
rmandyam-ms opened this issue Jan 8, 2022 · 1 comment

Comments

@rmandyam-ms
Copy link

Getting this when trying the run the deploy-to-exchange.sh
[WARNING] diagnostic: /Users/out.txt/Documents/FPL/json-logger-mule-4.x/json-logger/src/main/java/org/mule/extension/jsonlogger/internal/JsonloggerExtension.java:23: warning: The extension [JSON Logger] exports the following internal packages:
public class JsonloggerExtension {
^
-> [org.mule.extension.jsonlogger.internal.destinations]: because of these classes:
* org.mule.extension.jsonlogger.internal.destinations.Destination
* org.mule.extension.jsonlogger.internal.destinations.JMSDestination
* org.mule.extension.jsonlogger.internal.destinations.AMQPDestina
out.txt
tion
* org.mule.extension.jsonlogger.internal.destinations.AMQDestination
[ERROR] diagnostic: /Users/out.txt/Documents/FPL/json-logger-mule-4.x/json-logger/src/main/java/org/mule/extension/jsonlogger/internal/JsonloggerOperations.java:242: error: Operation 'loggerScope' has a InputStream type output but doesn't specify a default mime type. Please annotate it with @MediaType
public void loggerScope(@DisplayName("Module configuration") @example("JSON_Logger_Config") @summary("Indicate which Global config should be associated with this Scope.") String configurationRef,

@kimbert
Copy link

kimbert commented Aug 26, 2022

We are trying to log the output from a database Select processor using stringifyNonJSON(payload)

The output of a Select is a stream containing an array of objects. When the result set is a single integer, the output of our logger is org.mule.runtime.core.internal.streaming.object.ManagedCursorIteratorProvider@309d791.

Should we be using some other function, or is this a missing feature in stringifyNonJSON() ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants