Skip to main content
15-Moonstone
February 7, 2024
Solved

Installed the extension in ThingWorx and tried to execute the services but it errors out.

  • February 7, 2024
  • 1 reply
  • 1074 views

Hi  @VladimirRosu_116627,

I installed the extension in ThingWorx (version- 9.3.1) which is available under Build section from the github link you shared (in topic) and tried to execute the services -

GetLastMessages, SendMessage with the following configuration:

Sruthi_0-1707284376955.png
but the result is, ErrorCode(6bbd1442-4b7b-4b88-ab6b-125feb8812e2), Cause(null), Reason(Access was attempted on a null reference variable.), Possible Resolutions(Remove the reference to the null variable within your extension code. 
Note: ActiveMQ is up and running

Can I get any help to resolve this?

Best answer by VladimirRosu_116627

As for any other open source third party extension, you would need to effectively debug it on your end, especially since it's an extension that it is very old, as I mentioned in the other post, not supported by anyone.

 

Assuming you are familiar with Extension development, if I would be to guess, most certainly you need to rebuild it with the ThingWorx Extension SDK 9.x (and when doing that, you'll be forced to modify the lifecycle method signatures to  include the new ContextType parameter, otherwise it won't compile with the new SDK).

 

In case it's needed, you can debug it by following the steps in this article (you will need a local development environment, as passing those Java args is not doable in a PTC Cloud hosted environment due to security reasons).

 

1 reply

19-Tanzanite
February 7, 2024

As for any other open source third party extension, you would need to effectively debug it on your end, especially since it's an extension that it is very old, as I mentioned in the other post, not supported by anyone.

 

Assuming you are familiar with Extension development, if I would be to guess, most certainly you need to rebuild it with the ThingWorx Extension SDK 9.x (and when doing that, you'll be forced to modify the lifecycle method signatures to  include the new ContextType parameter, otherwise it won't compile with the new SDK).

 

In case it's needed, you can debug it by following the steps in this article (you will need a local development environment, as passing those Java args is not doable in a PTC Cloud hosted environment due to security reasons).

 

Sruthi15-MoonstoneAuthor
15-Moonstone
February 9, 2024

Thanks for the guidance. I will debug it and build with the latest SDK.