検索

お知らせ
· 2025年1月6日

Recapitulação do InterSystems Developer Community, Dezembro 2024

Olá e bem-vindo ao Recapitulação da comunidade de desenvolvedores Dezembro 2024.
Estatísticas gerais
20 novas postages publicadas em Dezembro:
 13 novos artigos
 6 novos anúncios
 1 nova pergunta
1 novos membros ingressaram em Dezembro
1,245 postagens publicadas ao todo
610 membros ingressaram ao todo
Principais publicações
Principais autores do mês
Artigos
#InterSystems IRIS
 
#Outro
 
#Portal de ideias da InterSystems
 
Anúncios
Perguntas
#InterSystems IRIS
 
Dezembro, 2024Month at a GlanceInterSystems Developer Community
ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
質問
· 2025年1月6日

Adapteur UDP ne fonctionne pas

Bonjour

J'essaie de travailler avec l'Adapteur/Connection UDP- et j'ai cette erreur .

ERREUR #5002: Erreur Cache: <WRITE>zSend+5^EnsLib.UDP.Common.1

 Voici la méthode
 

Class TEMPLATE.BO.UDPSend Extends Ens.BusinessOperation
{

Parameter ADAPTER = "EnsLib.UDP.OutboundAdapter";

Property Adapter As EnsLib.UDP.OutboundAdapter;

Method SendData(pInput As Ens.Request, Output pOutput As Ens.Response) As %Status
{
    Try {
        Set status=$$$OK
        Set pOutput=##class(Ens.Response).%New()
        
        Set stream = ##class(%Stream.GlobalCharacter).%New()
        Do stream.Write("This is some text")
        $$$LOGINFO(stream.Read())
        Do stream.Rewind()

        Set status = ..Adapter.SendStream(stream)
    }
    Catch exception {
        Set status=exception.AsStatus()
    }    
    Return status
}

XData MessageMap
{
<MapItems>
<MapItem MessageType="Ens.Request">
<Method>SendData</Method>
</MapItem>
</MapItems>
}

}

J'ai essayé avec ##class(%Net.UDP).%New() et cela fonctionne.

Quelqu'un a t'il une idée de pourquoi cela ne fonctionne pas ou des exemples d'une méthode fonctionnel, s'il vous plaît?

 

Par avance, merci


Corentin

PS : Pour ceux qui ne veulent pas explorer le code pour trouver la ligne où est généré l'erreur :

zSend(pDevice="",pBuffer) public { Set:'($data(pBuffer)#2) pBuffer=""
    Set tStatus = 1
    Try {
        Do pBuffer.Rewind()
        Use pDevice Do pBuffer.OutputToDevice()
        Use pDevice Write !
    }
    Catch eSend {
        Set tStatus = eSend.AsStatus()
    }
    Quit tStatus }
6 Comments
ディスカッション (6)1
続けるにはログインするか新規登録を行ってください
お知らせ
· 2025年1月6日

[Video] Security Database and Wallet - Encryption, Mirroring and More

Hey Community,

Enjoy the new video on InterSystems Developers YouTube:

⏯ Security Database and Wallet - Encryption, Mirroring and More @ Global Summit 2024

In upcoming versions security settings will be moved from the IRISSYS database to a new IRISSECURITY database. This session discusses benefits of this change including the ability to encrypt and mirror the database with the security settings. We’ll also discuss the new Security Wallet, which allows secrets (like credentials for external systems) to be stored encrypted within IRIS and only decrypted when used.

🗣 Presenters: @Jon Sue-Ho, Senior Security Engineer, InterSystems

Tune in and take your knowledge further — we’re sure you’ll enjoy it! 👍

2 Comments
ディスカッション (2)2
続けるにはログインするか新規登録を行ってください
ダイジェスト
· 2025年1月6日

InterSystems Developers Publications, Week December 30, 2024 - January 05, 2025, Digest

Articles
Announcements
Questions
December 30, 2024 - January 05, 2025Week at a GlanceInterSystems Developer Community
ダイジェスト
· 2025年1月6日

Publications des développeurs d'InterSystems, semaine Décembre 30, 2024 - Janvier 05, 2025, Résumé

Articles
Annonces
#Communauté des développeurs officielle
Décembre 30, 2024 - Janvier 05, 2025Week at a GlanceInterSystems Developer Community