java.io.NotSerializableException: com.sforce.soap.partner.DeleteResult

codegur.us | 5 months ago
  1. 0

    Deleting records from Salesforce via Mulesoft ESB

    Stack Overflow | 1 year ago | Sumved Shami
    java.io.NotSerializableException: com.sforce.soap.partner.DeleteResult
  2. 0

    Until Successful and Exception strategy in mule

    codegur.us | 5 months ago
    java.io.NotSerializableException: com.sforce.soap.partner.DeleteResult
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    JMS request-response timeout not changes

    codegur.online | 5 months ago
    java.io.NotSerializableException: com.sforce.soap.partner.DeleteResult
  5. 0

    When using the Groovy scripting component in an application, if you use $ variables to return the String payload, Groovy returns a GString instead, which Mule is trying to serialize as a String and it fails. GStringImpl defines the getBytes() method, which could be used to serialize this string properly and return it in the response. Log: {code} WARN 2016-11-17 11:35:30,575 [SchedulerService_cpuLight.01] org.mule.runtime.core.api.processor.LoggerMessageProcessor: Logger 1: class org.glassfish.grizzly.utils.BufferInputStream WARN 2016-11-17 11:35:30,587 [SchedulerService_cpuLight.01] org.mule.runtime.core.api.processor.LoggerMessageProcessor: Logger 2: class org.codehaus.groovy.runtime.GStringImpl ERROR 2016-11-17 11:35:30,607 [SchedulerService_cpuLight.01] org.mule.runtime.core.exception.OnErrorPropagateHandler: ******************************************************************************** Message : Could not serialize object (org.mule.runtime.core.api.serialization.SerializationException) Transformer : ObjectToByteArray{this=3cc51390, name='_ObjectToByteArray', ignoreBadInput=false, returnClass=SimpleDataType{type=[B, mimeType='*/*'}, sourceTypes=[SimpleDataType{type=java.io.Serializable, mimeType='*/*'}, SimpleDataType{type=java.io.InputStream, mimeType='*/*'}, SimpleDataType{type=java.lang.String, mimeType='*/*'}, SimpleDataType{type=org.mule.runtime.core.message.OutputHandler, mimeType='*/*'}]} Payload Type : org.codehaus.groovy.runtime.GStringImpl -------------------------------------------------------------------------------- Root Exception stack trace: java.io.NotSerializableException: org.glassfish.grizzly.utils.BufferInputStream at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1378) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:108) at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:133) at org.mule.runtime.core.serialization.internal.JavaExternalSerializerProtocol.doSerialize(JavaExternalSerializerProtocol.java:39) at org.mule.runtime.core.serialization.internal.AbstractSerializationProtocol.serialize(AbstractSerializationProtocol.java:57) at org.mule.runtime.core.transformer.simple.SerializableToByteArray.doTransform(SerializableToByteArray.java:56) at org.mule.runtime.core.internal.transformer.simple.ObjectToByteArray.doTransform(ObjectToByteArray.java:64) at org.mule.runtime.core.transformer.AbstractTransformer.transform(AbstractTransformer.java:252) at org.mule.runtime.core.TransformationService.getPayload(TransformationService.java:274) at org.mule.runtime.core.TransformationService.transform(TransformationService.java:101) at org.mule.extension.http.internal.listener.HttpResponseFactory.getMessageAsBytes(HttpResponseFactory.java:196) at org.mule.extension.http.internal.listener.HttpResponseFactory.create(HttpResponseFactory.java:167) at org.mule.extension.http.internal.listener.HttpListener.doBuildResponse(HttpListener.java:319) at org.mule.extension.http.internal.listener.HttpListener.buildResponse(HttpListener.java:312) at org.mule.extension.http.internal.listener.HttpListener.onSuccess(HttpListener.java:153) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:203) at org.mule.runtime.module.extension.internal.runtime.execution.ReflectiveMethodComponentExecutor.lambda$execute$0(ReflectiveMethodComponentExecutor.java:71) at org.mule.runtime.core.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:158) at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:992) at org.mule.runtime.core.util.ClassUtils.withContextClassLoader(ClassUtils.java:958) at org.mule.runtime.module.extension.internal.runtime.execution.ReflectiveMethodComponentExecutor.execute(ReflectiveMethodComponentExecutor.java:70) at org.mule.runtime.module.extension.internal.runtime.source.ReflectiveSourceCallbackExecutor.execute(ReflectiveSourceCallbackExecutor.java:78) at org.mule.runtime.module.extension.internal.runtime.source.SourceAdapter$SourceCompletionHandler.lambda$onCompletion$0(SourceAdapter.java:141) at org.mule.runtime.module.extension.internal.runtime.source.SourceAdapter$SourceCompletionHandler.safely(SourceAdapter.java:156) at org.mule.runtime.module.extension.internal.runtime.source.SourceAdapter$SourceCompletionHandler.onCompletion(SourceAdapter.java:141) at org.mule.runtime.module.extension.internal.runtime.source.SourceAdapter$SourceCompletionHandler.onCompletion(SourceAdapter.java:125) at org.mule.runtime.module.extension.internal.runtime.source.ExtensionFlowProcessingTemplate.lambda$sendResponseToClient$0(ExtensionFlowProcessingTemplate.java:47) at org.mule.runtime.module.extension.internal.runtime.source.ExtensionFlowProcessingTemplate.runAndNotify(ExtensionFlowProcessingTemplate.java:59) at org.mule.runtime.module.extension.internal.runtime.source.ExtensionFlowProcessingTemplate.sendResponseToClient(ExtensionFlowProcessingTemplate.java:47) at org.mule.runtime.core.execution.AsyncResponseFlowProcessingPhase.lambda$runPhase$1(AsyncResponseFlowProcessingPhase.java:62) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    MuleSoft JIRA | 2 months ago | Alejandro Iannucci
    java.io.NotSerializableException: org.glassfish.grizzly.utils.BufferInputStream
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.NotSerializableException

    com.sforce.soap.partner.DeleteResult

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
    2. java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1378)
    3. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
    4. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
    8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
    8 frames
  3. Commons Lang
    SerializationUtils.serialize
    1. org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:108)
    2. org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:133)
    2 frames
  4. org.mule.serialization
    AbstractObjectSerializer.serialize
    1. org.mule.serialization.internal.JavaObjectSerializer.doSerialize(JavaObjectSerializer.java:44)
    2. org.mule.serialization.internal.AbstractObjectSerializer.serialize(AbstractObjectSerializer.java:64)
    2 frames
  5. Mule Core
    DefaultMuleMessage.getPayloadAsBytes
    1. org.mule.transformer.simple.SerializableToByteArray.doTransform(SerializableToByteArray.java:62)
    2. org.mule.transformer.simple.ObjectToByteArray.doTransform(ObjectToByteArray.java:78)
    3. org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:415)
    4. org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:425)
    5. org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:373)
    6. org.mule.DefaultMuleMessage.getPayloadAsBytes(DefaultMuleMessage.java:714)
    6 frames
  6. Mule HTTP Connector
    HttpMessageProcessorTemplate.sendResponseToClient
    1. org.mule.module.http.internal.listener.HttpResponseBuilder.build(HttpResponseBuilder.java:175)
    2. org.mule.module.http.internal.listener.HttpMessageProcessorTemplate.sendResponseToClient(HttpMessageProcessorTemplate.java:97)
    2 frames
  7. Mule Core
    PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully
    1. org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:83)
    2. org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:38)
    3. org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:65)
    4. org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:69)
    4 frames
  8. com.mulesoft.mule
    ThrottlingPhase.runPhase
    1. com.mulesoft.mule.throttling.ThrottlingPhase.runPhase(ThrottlingPhase.java:185)
    2. com.mulesoft.mule.throttling.ThrottlingPhase.runPhase(ThrottlingPhase.java:1)
    2 frames
  9. Mule Core
    MuleMessageProcessingManager.processMessage
    1. org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.process(PhaseExecutionEngine.java:114)
    2. org.mule.execution.PhaseExecutionEngine.process(PhaseExecutionEngine.java:41)
    3. org.mule.execution.MuleMessageProcessingManager.processMessage(MuleMessageProcessingManager.java:32)
    3 frames
  10. Mule HTTP Connector
    GrizzlyRequestDispatcherFilter.handleRead
    1. org.mule.module.http.internal.listener.DefaultHttpListener$1.handleRequest(DefaultHttpListener.java:126)
    2. org.mule.module.http.internal.listener.grizzly.GrizzlyRequestDispatcherFilter.handleRead(GrizzlyRequestDispatcherFilter.java:83)
    2 frames
  11. Grizzly
    AbstractIOStrategy.fireIOEvent
    1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
    2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
    3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
    4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
    5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
    6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
    7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
    8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
    8 frames
  12. Mule HTTP Connector
    ExecutorPerServerAddressIOStrategy$WorkerThreadRunnable.run
    1. org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.run0(ExecutorPerServerAddressIOStrategy.java:102)
    2. org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.access$100(ExecutorPerServerAddressIOStrategy.java:30)
    3. org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy$WorkerThreadRunnable.run(ExecutorPerServerAddressIOStrategy.java:125)
    3 frames
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames