You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Michael Kelly (Jira)" <ji...@apache.org> on 2021/09/30 08:11:00 UTC

[jira] [Updated] (AMQNET-736) NMSConnectionFactory ArgumentNullException for single file applications

     [ https://issues.apache.org/jira/browse/AMQNET-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Kelly updated AMQNET-736:
---------------------------------
    Description: 
[NMSConnectionFactory |https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L340]uses the location of the NMS assembly to do some dynamic loading of assemblies, which can be null in some cases such as when the assembly is bundled with an application. This causes a null ref [later in the execution|https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L272].

 

I honestly don't understand enough of what's going on here to suggest a fix, but it makes the library unusable for [single file applications|https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file].

 

I can try setting up a repro if required, but currently was using the library through MassTransit, so not too sure how i can set it up directly or cleanly.

  was:
[NMSConnectionFactory |https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L340]uses the location of the NMS assembly to do some dynamic loading of assemblies, which can be null in some cases such as when the assembly is bundled with an application. This causes a null ref [later in the execution|https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L272].

 

I honestly don't understand enough of what's going on here to suggest a fix, but it makes the library unusable for single file applications.

 

I can try setting up a repro if required, but currently was using the library through MassTransit, so not too sure how i can set it up directly or cleanly.


> NMSConnectionFactory ArgumentNullException for single file applications
> -----------------------------------------------------------------------
>
>                 Key: AMQNET-736
>                 URL: https://issues.apache.org/jira/browse/AMQNET-736
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: NMS
>            Reporter: Michael Kelly
>            Priority: Minor
>
> [NMSConnectionFactory |https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L340]uses the location of the NMS assembly to do some dynamic loading of assemblies, which can be null in some cases such as when the assembly is bundled with an application. This causes a null ref [later in the execution|https://github.com/apache/activemq-nms-api/blob/432293fe45fd35ebb0f2d3a5ba682cb60600b092/src/nms-api/NMSConnectionFactory.cs#L272].
>  
> I honestly don't understand enough of what's going on here to suggest a fix, but it makes the library unusable for [single file applications|https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file].
>  
> I can try setting up a repro if required, but currently was using the library through MassTransit, so not too sure how i can set it up directly or cleanly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)