发布新帖

查找

问题
· 十月 10, 2023

Connection Refused ao utilizar o IRIS Community no java com JDBC

Estou utilizando JDBC para conexão da aplicação JAVA com o IRIS versão Community, porém está ocorrendo o seguinte erro:

Caused by: java.sql.SQLException: [InterSystems IRIS JDBC] Communication link failure: Acesso Negado
    at com.intersystems.jdbc.IRISConnection.connect(IRISConnection.java:751)
    at com.intersystems.jdbc.IRISConnection.<init>(IRISConnection.java:165)
    at com.intersystems.jdbc.IRISDriver.connect(IRISDriver.java:58)
    ... 46 more

Ao verificar o relatório de auditoria do banco IRIS verifiquei o seguinte log de erro:

Mensagem de erro: ERRO #5915: Não foi possível alocar uma licença
Nome do serviço: %Service_Bindings
$I: |TCP|1972|37861
$P: |TCP|1972|37861

3 Comments
讨论 (3)3
登录或注册以继续
问题
· 十月 8, 2023

Automatic prettification of JSON in Visual Trace

Hello everyone,

Is there a way to prettify the JSON streams in the incoming HTTP messages so that they are more readable in Visual Trace?

The HTTP messages sent by many software aren't prettified and are displayed like this in the Visual Trace:

On the other hand, other software like Postman prettify the messages and they are displayed in this way:

I know there is a JSON Formatter class, however what I would like is an automatic setting that automatically prettifies the JSON displayed in the Visual Trace without having to go through code.

Is there anything similar? 

3 Comments
讨论 (3)1
登录或注册以继续
公告
· 十月 6, 2023

[Video] Embedded Source Control with Git & Containers

Hi Community,

Watch this video to learn how to leverage embedded (server-side) source control in a build pipeline using the git- source-control package and other additional tools:

⏯ Embedded Source Control with Git & Containers @ Global Summit 2023

🗣 Presenter: @Pravin Barton, Senior Applications Developer, InterSystems

Subscribe to our YouTube channel InterSystems Developers to get the latest updates!

2 Comments
讨论 (2)2
登录或注册以继续
问题
· 十月 6, 2023

Microsoft SQL Server 2022 PolyBase : Connect to Caché as an external datasource. Error running query on datatype

I've created a succesfull connection to Caché from SQL Server.

But when I run a SELECT on a table it gives an error on for example PrijsAkCatV.

Probably a datatype-error.

Does someone has a solution for this problem ?

 

Caché Table :

Property PrijsAkCatVm As Asci.Getal(CAPTION = "Aankoopprijs VM", HINT = "Bruto aankoopprijs in vreemde munt|De bruto aankoopprijs (catalogusprijs) in vreemde munt per eenheid van aankoop.#Prix d'achat brute en devise|Le prix d'achat brute en devise par unité d'achat.", SCALE = 4);
 

Class Asci.Getal Extends %Library.Numeric
{ Parameter HINT; Parameter VIEW = 1; Parameter VISIBLE = 1; Parameter VOLGORDE; ///   Zorgt ervoor dat de output numeriek is.
///   Was een probleem als er getallen in de zone zaten met vooraan een punt vb .23
ClassMethod StorageToLogical(%val As %Library.String) As %Library.Numeric
{
 +%val
} }

External Table :

 

CREATE EXTERNAL TABLE Producten(
    ID INT NOT NULL, 
    ProdCode NVARCHAR (255) NULL,
    ProdNaam NVARCHAR (255) NULL,
    PrijsAkCat NUMERIC (15,4) NULL,
    PrijsAkCatVm NUMERIC (15,4) NULL,
    PrijsAkNetto NUMERIC (15,4) NULL,
    PrijsVkexcl NUMERIC (15,4) NULL,
    PrijsVkincl NUMERIC (15,4) NULL
) WITH (
    LOCATION='ASCISQL.DkDis.Producten',
    DATA_SOURCE=intersystems_source
);

Query :

SELECT TOP (1000) [ID]
      ,[ProdCode]
      ,[ProdNaam]
      ,[PrijsAkCat]
      ,[PrijsAkCatVm]
      ,[PrijsAkNetto]
      ,[PrijsVkexcl]
      ,[PrijsVkincl]
  FROM [ASCISQL].[dbo].[Producten]

Error :

Msg 7320, Level 16, State 110, Line 1
Cannot execute the query "Remote Query" against OLE DB provider "MSOLEDBSQL" for linked server "(null)". 105082;Generic ODBC error: OdbcBufferReader.ReadBuffer, error in OdbcReadBuffer: SqlState: IM001, NativeError: 0, 'Error calling: SQLSetDescField(this->GetHdesc(), (SQLSMALLINT)column->idxServerCol, SQL_DESC_TYPE, (VOID*)column->odbcReadType, 0), SQL return code: -1 | SQL Error Info:  Error <1>: ErrorMsg: [Microsoft][ODBC Driver Manager] Driver does not support this function | Error calling: pReadConn->ReadBuffer(pBuffer, bufferOffset, bufferLength, pBytesRead, pRowsRead) | state: FFFF, number: 40, active connections: 1', Connection String: Dsn=ASCISQL;uid=_SYSTEM;server=127.0.0.1;port=1972;database=ASCISQL.
 

4 Comments
讨论 (4)3
登录或注册以继续
问题
· 十月 5, 2023

Routing rule equivalence question

Is there a difference in outcome between the two screengrabs below?

In both cases, when  certain conditions are met, a transformation is called and the output sent on to two targets. In the first case we surmise the transformation is called twice, and the output of the first run sent to the first target, the output of the second run to the second target. In the second case we surmise the transformation is called once, and the output duplicated and sent to the two targets. 

  • Are there any cases where they would not be functionally the same (eg because of side-effects of the transformation?)
  • Could there be performance differences - from only calling the transformation once rather than twice? If so, how significant could those be in a Production handling 40K-50K messages a day (Healthcare, HL7), especially since this pattern of coding is replicated in several places across the production.

2 Comments
讨论 (2)1
登录或注册以继续