検索

Pregunta
· 6 dic, 2024

Identificação de IP Cliente - ClientIPAddress

Dear all, I hope you are well.

We migrated from CACHE 2018 to IRIS 2023.1 on 12/2/2024, and I am having a big problem identifying the client's IP address, because IRIS is getting an IP number with characters as if it were IPV6. Our LINUX support has already made all the configurations requested by Intersystems support, disabled IPv6, and several other configurations, but we have not been successful.

Using the class "##CLASS(%SYS.ProcessQuery).Open($job)", we get the return: "ClientIPAddress = "::ffff:192.168.223.60", in the process management portal, it is also being identified with these characters.

Could someone help us with what might be happening and how to solve this problem?

Otherwise, thank you.

Thank you
Davidson Espindola

 

2 comentarios
Comentarios (2)1
Inicie sesión o regístrese para continuar
Artículo
· 5 dic, 2024 Lectura de 3 min

第四十一章 终端输入 输出 - 协议终止符

第四十一章 终端输入 输出 - 协议终止符

协议终止符

OPENUSE 协议定义了哪些 READ 输入字符、控制序列和击键被视为隐式终止符。这四种协议是 I(图像模式)、N(正常模式(默认))、R(读取行调用模式)和 T(终止符模式):

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 5 dic, 2024

Anyone having experience running IRIS on Hashicorp Nomad?

- How to "translate" the various Docker Compose examples to HCL.

- How does IRIS 'behave' under Nomad?

- maybe even further: using Packer to build the container?

Comentarios (0)1
Inicie sesión o regístrese para continuar
Artículo
· 5 dic, 2024 Lectura de 1 min

How to raise a custom error

InterSystems FAQ rubric

If you want to raise an arbitrary custom error in a TRY block, you can pass an exception with a throw as follows. In the following example, a custom error is raised if Stcount is less than 1.

Class User.Test
{

ClassMethod ExceptionTest()
 {
    try
    {
      // : some codes
      if (Stcount<1) {
          throw ##class(%Exception.General).%New("User-defined error", "5001", "location", "Data at location error")
          // User-created errors are 5001 and above
      }
    }
    catch ex
    {
      write "Errors #", ex.Code, ": ", ex.Name, " : ", ex.Location, " ", ex.Data
      return
    }
 }
}

In the above example, if Stcount is less than 1, an error like the following will be output:

USER>do ##class(User.Test).ExceptionTest()
Error #5001: User-defined error: Data at location error

For more information, see the following documentation:
ObjectScript command _THROW

If you want to create an arbitrary status code, do the following:

USER>set st = ##class(%SYSTEM.Status).Error(5001,"This is a user-defined error")

USER>zwrite st
st="0 "_$lb($lb(5001,"This is a user-defined error",,,,,,,,$lb(,"USER",$lb("e^zError+1^%SYSTEM.Status.1^1","e^^^0"))))/* Error #5001: This is a user-defined error */
USER>do $SYSTEM.Status.DisplayError(st)

Error #5001: This is a user-defined error
1 Comentario
Comentarios (1)1
Inicie sesión o regístrese para continuar
Artículo
· 5 dic, 2024 Lectura de 1 min

QuinielaML - Predicción de la 27ª jornada de la Quiniela

¿Listos para una nueva jornada de la Quiniela? Esta jornada un día antes de lo habitual ya que el cierre de la jornada será el viernes y no el sábado como habitualmente. 

Esta jornada se compone de los partidos de la 16ª jornada de Primera División y la 18ª de Segunda División, veamos los partidos que forman parte de la misma:

Esta es la predicción para Primera División:

Y aquí tenemos la Segunda División:

Aquí tenemos la Quiniela de la jornada:

¡Suerte a todos esta jornada!

Comentarios (0)1
Inicie sesión o regístrese para continuar