Skip to main content
Jul 19, 2019 4:28 AM UTC
Solved

Error while importing custom extension in Thingworx 8.4

Hi,

 

I am trying to import a custom extension ( coded in java to generate PDF files ) into Thingworx 8.4

While importing, I get the below error (see picture) and the import fails.

The same extension file, when I import in another instance of Thingworx ( on another server ), gets imported without any errors. The Thingworx version on this server is Thingworx 8.3.2-b535. 

Can someone help me identify the problem?

 

extension import error.PNG

kkgoonerAnswer
Aug 19, 2019 5:38 PM UTC

Hello Slangley,

 

Apologies for the delayed update. I got the extension working. I replaced the specific Exceptions such as JSONException,DocumentException from the service class and replaced them with just "Exception" (Parent exception). Had to restart the thingworx foundation service before importing the extension again. This worked.

6 replies

Jul 19, 2019 1:23 PM UTC

Hi @kkgooner.

 

Are both ThingWorx instances (8.4 and 8.3.2) configured the same in regard to other extensions that are installed?  Do you get the same error if importing under the Administrator login?

 

It may be necessary for you to provide your custom extension for us to determine the cause.

 

Regards.

 

--Sharon

Jul 24, 2019 7:56 PM UTC

Hi @kkgooner.

 

It appears we may have to engage with R&D to determine why this extension is not importing under ThingWorx 8.4.  However, before doing so, please provide your platform-settings.json file so we can validate the import policy you have set.

 

Regards.

 

--Sharon

kkgoonerAuthor
Jul 23, 2019 8:44 AM UTC

Hello Sharon,

 

Have you had a chance to look at the file that I have provided? Any help soon, will be greatly appreciated!

Jul 31, 2019 6:10 PM UTC

Hi @kkgooner.

 

Please let us know if you are still having issues with the import of your custom extension, and if so, provide your platform-settings.json file.  If you have found a way to resolve it, please share your solution with the community.

 

Regards.

 

--Sharon

kkgoonerAuthorAnswer
Aug 19, 2019 5:38 PM UTC

Hello Slangley,

 

Apologies for the delayed update. I got the extension working. I replaced the specific Exceptions such as JSONException,DocumentException from the service class and replaced them with just "Exception" (Parent exception). Had to restart the thingworx foundation service before importing the extension again. This worked.

Aug 20, 2019 7:07 PM UTC

Hi @kkgooner.

 

Since you have found a solution to your issue, please mark your post as the Accepted Solution for the benefit of others with similar issues.

 

Regards.

 

--Sharon