locked
BillingSBEService.OnSubscribeResponse has failured.Object reference not set to an instance of an object. RRS feed

  • Question

  • Hi,

     

    I get the following error while trying to "Createsubscription" on BillingSBE MMC:

    Event Type:       Error

    Event Source:    BillingSBE

    Event Category: None

    Event ID:           11500

    Date:                1/11/2008

    Time:                5:03:00 PM

    User:                N/A

    Computer:         TCSBASICMACHINE

    Description:

    Timestamp: 1/11/2008 11:33:00 AM

    Message: Application has encountered an internal error.

    BillingSBEService.OnSubscribeResponse has  failured.

     

    Likely Root Cause:

    Object reference not set to an instance of an object.

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

    Information For Troubleshooting:

    StackTrace

     

       at Microsoft.ConnectedServices.Sbe.Billing.Utilities.SbeException.get_LogMessage()

       at Microsoft.ConnectedServices.Sbe.Billing.Utilities.SbeException.LogException()

       at Microsoft.ConnectedServices.Sbe.Billing.Utilities.SbeException..ctor(ExceptionParameter parameter, String message, Exception innerException)

       at Microsoft.ConnectedServices.Sbe.Billing.Utilities.SbeException..ctor(ExceptionParameter parameter, Exception innerException)

       at Microsoft.ConnectedServices.Sbe.Billing.BillingSbeRuntime.BillingSBEService.OnSubscribeResponse(SubscribeResponse response)

       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

       at Microsoft.ConnectedServices.Sdk.Messaging.Operation.InvokeOperation(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._processRequest(Message request, Object& invokeResult)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._postProcessAsynchronousRequest(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._processMessage(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService.ProcessMessage(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._preProcessAsynchronousRequest(SoapEnvelope request)

       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

       at Microsoft.Web.Services3.Messaging.SoapServiceMethodInvoker.Invoke(SoapEnvelope message)

       at Microsoft.Web.Services3.Messaging.SoapMethodInvoker.OnInvokeBackground(Object state)

       at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)

       at System.Threading.ExecutionContext.runTryCode(Object userData)

       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

    InnerException

    System.NullReferenceException: Object reference not set to an instance of an object.

       at Microsoft.ConnectedServices.Sbe.Billing.Utilities.DataLayer.DataSourceAdapter.SetSubscriptionStateToSubscribed(String dbConnectionString, String subscriptionId, String eventSourceSubscriptionId)

       at Microsoft.ConnectedServices.Sbe.Billing.BillingSbeRuntime.BillingAdminHandler.ProcessSubscribeResponse(SubscribeResponse response)

       at Microsoft.ConnectedServices.Sbe.Billing.BillingSbeRuntime.BillingSBEService.OnSubscribeResponse(SubscribeResponse response)

     

    Category: General

    Priority: 5

    EventId: 11500

    Severity: Error

    Title:Exception

    Machine: TCSBASICMACHINE

    Application Domain: /LM/W3SVC/1/Root/BillingSBE30-1-128445246471303216

    Process Id: 4608

    Process Name: c:\windows\system32\inetsrv\w3wp.exe

    Win32 Thread Id: 3752

    Thread Name:

    Extended Properties:

     

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    Event Type:       Error

    Event Source:    BillingSBE

    Event Category: None

    Event ID:           11500

    Date:                1/11/2008

    Time:                5:02:59 PM

    User:                N/A

    Computer:         TCSBASICMACHINE

    Description:

    Timestamp: 1/11/2008 11:32:59 AM

    Message:

    Identifier: IsEmptyOrNull

       at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

       at System.Environment.get_StackTrace()

       at Microsoft.ConnectedServices.Sbe.Billing.Utilities.SbeNoLogException.get_Message()

       at Microsoft.ConnectedServices.Sbe.Billing.Utilities.SbeNoLogException.Log()

       at Microsoft.ConnectedServices.Sbe.Billing.BillingSbeRuntime.BillingAdminHandler.ProcessSubscribeResponse(SubscribeResponse response)

       at Microsoft.ConnectedServices.Sbe.Billing.BillingSbeRuntime.BillingSBEService.OnSubscribeResponse(SubscribeResponse response)

       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

       at Microsoft.ConnectedServices.Sdk.Messaging.Operation.InvokeOperation(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._processRequest(Message request, Object& invokeResult)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._postProcessAsynchronousRequest(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._processMessage(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService.ProcessMessage(Message request)

       at Microsoft.ConnectedServices.Sdk.Messaging.CsfService._preProcessAsynchronousRequest(SoapEnvelope request)

       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

       at Microsoft.Web.Services3.Messaging.SoapServiceMethodInvoker.Invoke(SoapEnvelope message)

       at Microsoft.Web.Services3.Messaging.SoapMethodInvoker.OnInvokeBackground(Object state)

       at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)

       at System.Threading.ExecutionContext.runTryCode(Object userData)

       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

     

    Category: General

    Priority: 5

    EventId: 11500

    Severity: Critical

    Title:BillingSBE Exception

    Machine: TCSBASICMACHINE

    Application Domain: /LM/W3SVC/1/Root/BillingSBE30-1-128445246471303216

    Process Id: 4608

    Process Name: c:\windows\system32\inetsrv\w3wp.exe

    Win32 Thread Id: 2008

    Thread Name:

    Extended Properties:

     

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    2. I could see that the SubscriptionState is still in "BeingSubscribed" state and not set to "Subscribed " and the SubscriptionSubState is in "SubscriptionRequestSent" state.

     

    3.I obtain the following SubscribeResponse message in the BillingSBEService Input Trace.I have generated this message in my VAS that implements the Subscribe Method. Is this message wrong?If yes, please let me know what is the right SubscribeResponse Message?

    <SubscribeResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/ws/2004/08/eventing">
                <SubscriptionManager>
                  <Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost/VASAdapter/VASAdapterService.ashx</Address>
                </SubscriptionManager>
                <Expires>9/5/2009 2:58:11 PM</Expires>
                <csfseTongue TiedessionID xmlns:csfse="http://Microsoft/ConnectedServices/2006/06/Session/">urn:b57ee555-9cb7-4b14-aa65-4894324e70aa</csfseTongue TiedessionID>
                <csfse:CsfContext xmlns:csfse="http://Microsoft/ConnectedServices/2006/06/Session/">VASAdapter</csfse:CsfContext>
                <BillingEventSubscriptionID xmlns="http://Microsoft/ConnectedServices/2005/11/Sbe/Billing/Admin">6D4BD17F-1506-46EA-95B8-15386D92F162</BillingEventSubscriptionID>
              </SubscribeResponse>

     

    Thanks

    Friday, January 11, 2008 12:01 PM

All replies

  •  

    The SubscribeResponse Message sent by the VAS should have valid values and also shoukld follow the standard schema.

    Else the BillingSBE fails to recognize the message and fails to set the state of subscription. It should be as folows where the

    identifier indicates the SubscriptionId in the incoming SubscribeRequest.


    <SubscribeResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/ws/2004/08/eventing">
    <SubscriptionManager>
    <Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://TCS038384/ProfileManager30/ProfileManager.ashx</Address>
    <ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">
    <Identifier xmlns="http://schemas.xmlsoap.org/ws/2004/08/eventing">F2F144AE-DC82-46AB-A263-15A70AB1C911</Identifier>
    </ReferenceParameters>
    </SubscriptionManager>
    </SubscribeResponse>

    Monday, January 14, 2008 7:31 AM
  •  

    Thank You ,very much. I followed the schema provided by  you and it went through fine without any errors and I can see the SubscriptionState being to "Subscribed". So, the problem ,earlier was with my SubscribeResponse format!
    Monday, January 14, 2008 7:40 AM
  • Request you to close the thread if your problem got solved..

     

    Thanks

     

    Monday, January 21, 2008 5:13 AM