Skip to main content

Hi guys, I got an Issue. In runtime 4.1.4 is fine but upgrading to to 4.2.2-hf2 got some error even success update or insert in DB. Both local or cloudhub runtime has same issue. Errors are No value present. org.mule.extension.db.api.StatementResult.Message              : No value present.

Element              : wh-slave-data-process-main/source @ wh-slave-data-process:wh-slave-data-process.xml:7 (Listener-HTTPS)

Element XML          : <http:listener config-ref="wh-slave-data-process-httpListenerConfig" path="/api/v1/*" doc:name="Listener-HTTPS">

                       <http:response statusCode="#vars.httpStatus default 200"></http:response>

                       <http:error-response statusCode="#vars.httpStatus default 500">

                       <http:body>#payload</http:body>

                       </http:error-response>

                       </http:listener>

Error type           : MULE:SOURCE_RESPONSE_SEND

Payload Type         : org.mule.extension.db.api.StatementResult

--------------------------------------------------------------------------------

Root Exception stack trace:

java.util.NoSuchElementException: No value present

   at java.util.Optional.get(Optional.java:135)

   at org.mule.runtime.core.internal.context.DefaultMuleContext.getDefaultErrorHandler(DefaultMuleContext.java:868)

   at org.mule.runtime.core.privileged.client.MuleClientFlowConstruct.getExceptionListener(MuleClientFlowConstruct.java:60)

   at org.mule.runtime.core.internal.event.DefaultEventContext.<init>(DefaultEventContext.java:159)

   at org.mule.runtime.core.api.event.EventContextFactory.create(EventContextFactory.java:87)

   at org.mule.runtime.core.api.event.EventContextFactory.create(EventContextFactory.java:46)

   at (more) .....

********************************************************************************

3 answers
  1. Oct 22, 2020, 8:10 AM

    org.mule.runtime.core.internal.message.DefaultMessageBuilder$MessageImplementation

    {

     payload=org.mule.extension.db.api.StatementResult@6f58bfb5

     mediaType=application/java; charset=UTF-8

     attributes=<not set>

     attributesMediaType=*/*

     exceptionPayload:

       message=No value present.

       exception=org.mule.runtime.core.internal.exception.MessagingException: No value present.; ErrorType: MULE:SOURCE_RESPONSE_SEND

    }

0/9000