Skip to main content
1-Visitor
July 19, 2019
Solved

Error while importing custom extension in Thingworx 8.4

  • July 19, 2019
  • 1 reply
  • 2762 views

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

Best answer by kkgooner

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.

1 reply

Support
July 19, 2019

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

Support
July 24, 2019

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

kkgooner1-VisitorAuthor
1-Visitor
July 23, 2019

Hello Sharon,

 

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

Support
July 31, 2019

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

kkgooner1-VisitorAuthorAnswer
1-Visitor
August 19, 2019

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.

Support
August 20, 2019

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