Anuncio

Colapsar
No hay anuncio todavía.

Excepción CX_SY_REF_IS_INITIAL

Colapsar
X
 
  • Filtrar
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes

  • Excepción CX_SY_REF_IS_INITIAL

    Hola,

    Necesito saber, si existe alguna nota SAP para cuando en una clase sale esta excepción CX_SY_REF_IS_INITIAL, o que hacer cuando sale, en la ejecución de una clase de sap.

    Saludos y muchas gracias.

  • #2
    Hola!,

    podrías darnos un poco más de detalle con respecto al problema que tienes? así de esta manera te puedo bajar la nota que necesites.

    Saludos!

    Comentario


    • #3
      Aqui te coloco, exactamente el dump que me da la clase cuando la ejecuto.


      Short text
      Access via 'NULL' object reference not possible.

      What happened?
      Error in the ABAP Application Program

      The current ABAP program "CL_PROXY_INBOUND_ADAPTER======CP" had to be
      terminated because it has
      come across a statement that unfortunately cannot be executed.

      Error analysis
      An exception occurred that is explained in detail below.
      The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
      caught in
      procedure "SET_METHOD" "(METHOD)", nor was it propagated by a RAISING clause.
      Since the caller of the procedure could not have anticipated that the



      lt_signature = lr_stylesheet_runtime->get_signature( ).
      loop at lt_signature assigning <signature>.
      if <signature>-decl = sprox_const_dir_importing or
      <signature>-decl = sprox_const_dir_exporting or
      <signature>-decl = sprox_const_dir_changing.
      create abap data
      create data lr_data_ref type (<signature>-typename).
      add it to abap parameters
      lv_abap_param-name = <signature>-param.
      lv_abap_param-value = lr_data_ref.
      insert lv_abap_param into table abap_params.
      case <signature>-decl.
      add it to according part
      when sprox_const_dir_importing.
      me->request_part->add_data_ref( name = <signature>-param data_ref = lr_data_ref ).
      when sprox_const_dir_exporting.
      me->response_part->add_data_ref( name = <signature>-param data_ref = lr_data_ref )
      lv_need_response_part = 'X'.
      when sprox_const_dir_changing.
      me->request_part->add_data_ref( name = <signature>-param data_ref = lr_data_ref ).
      me->response_part->add_data_ref( name = <signature>-param data_ref = lr_data_ref )
      lv_need_response_part = 'X'.
      endcase.
      exception would occur, the current program is terminated.
      The reason for the exception is:
      You attempted to use a 'NULL' object reference (points to 'nothing')
      access a component.
      An object reference must point to an object (an instance of a class)
      before it can be used to access components.
      Either the reference was never set or it was set to 'NULL' using the
      CLEAR statement.

      Comentario


      • #4
        Básicamente, y aunque no tenga experiencia con objetos en SAP, estás intentando acceder a un objeto que no has inicializado o ya has liberado el puntero a memoria.

        Saludos
        "Soy el señor Lobo, arreglo problemas"
        http://sapymas.blogspot.com/

        Comentario

        Trabajando...
        X