mulesoft/salesforce-connector — Issue #11: querySingle does not re-establish session
Author: adrianhsieh
Created: 2011-10-25 23:06:16+00:00
State: open

Threw exception instead of re-establish session after session expired.

Message : Failed to invoke querySingle. Message payload is of type: OpportunityNotification
Type : org.mule.api.MessagingException
Code : MULE_ERROR-29999
Payload : com.mulesoft.salesforce.outbound.generated.OpportunityNotification@1cf7bb
JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html
********************************************************************************
Exception stack is:
1. null (com.sforce.soap.partner.fault.UnexpectedErrorFault)
sun.reflect.NativeConstructorAccessorImpl:-2 (null)
2. Unexpected error encountered in querySingle: null (org.mule.modules.salesforce.SalesforceException)
org.mule.modules.salesforce.SalesforceModule:275 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/modules/salesforce/SalesforceException.html)
3. Failed to invoke querySingle. Message payload is of type: OpportunityNotification (org.mule.api.MessagingException)
org.mule.modules.salesforce.config.QuerySingleMessageProcessor:393 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
********************************************************************************
Root Exception stack trace:
[UnexpectedErrorFault [ApiFault exceptionCode='INVALID_SESSION_ID'
exceptionMessage='Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session key: 00DV00000000dS3!AQ8AQCrqgJ1mQV5k55AKPGO7wa9O3RqCQ_9NRCdmujWh8ed4dkFyPtroVegilp1N7XdXi7jGynVWAmJou7TdC1F465IiQZiz'
]
]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:626)
at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:503)
at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:233)
at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:207)
at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:153)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:105)
at com.sforce.soap.partner.PartnerConnection.query(PartnerConnection.java:1251)
at org.mule.modules.salesforce.SalesforceModule.querySingle(SalesforceModule.java:270)
at org.mule.modules.salesforce.config.QuerySingleMessageProcessor.process(QuerySingleMessageProcessor.java:382)
at org.mule.processor.AsyncInterceptingMessageProcessor.process(AsyncInterceptingMessageProcessor.java:90)
at org.mule.interceptor.AbstractEnvelopeInterceptor.process(AbstractEnvelopeInterceptor.java:55)
at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:41)
at org.mule.construct.AbstractPipeline$1.process(AbstractPipeline.java:138)
at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:190)
at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:163)
at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:150)
at org.mule.transport.vm.VMMessageReceiver.onCall(VMMessageReceiver.java:103)
at org.mule.transport.vm.VMMessageDispatcher$1.doInTransaction(VMMessageDispatcher.java:90)
at org.mule.transport.vm.VMMessageDispatcher$1.doInTransaction(VMMessageDispatcher.java:87)
at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:45)
at org.mule.transport.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:93)
at org.mule.transport.AbstractMessageDispatcher.process(AbstractMessageDispatcher.java:81)
at org.mule.transport.AbstractConnector$DispatcherMessageProcessor.process(AbstractConnector.java:2548)
at org.mule.endpoint.outbound.OutboundResponsePropertiesMessageProcessor.process(OutboundResponsePropertiesMessageProcessor.java:39)
at org.mule.processor.TransactionalInterceptingMessageProcessor$1.doInTransaction(TransactionalInterceptingMessageProcessor.java:49)
at org.mule.processor.TransactionalInterceptingMessageProcessor$1.doInTransaction(TransactionalInterceptingMessageProcessor.java:46)
at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:45)
at org.mule.processor.TransactionalInterceptingMessageProcessor.process(TransactionalInterceptingMessageProcessor.java:55)
at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:41)
at org.mule.endpoint.DefaultOutboundEndpoint.process(DefaultOutboundEndpoint.java:95)
at org.mule.processor.AsyncInterceptingMessageProcessor.process(AsyncInterceptingMessageProcessor.java:90)
at org.mule.interceptor.AbstractEnvelopeInterceptor.process(AbstractEnvelopeInterceptor.java:55)
at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:41)
at org.mule.construct.AbstractPipeline$1.process(AbstractPipeline.java:138)
at org.mule.module.cxf.CxfInboundMessageProcessor.processNext(CxfInboundMessageProcessor.java:346)
at org.mule.module.cxf.MuleInvoker.invoke(MuleInvoker.java:80)
at org.mule.module.cxf.MuleJAXWSInvoker.invoke(MuleJAXWSInvoker.java:47)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)
at org.mule.module.cx...
********************************************************************************