cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Import Failed: No enum constant com.thingworx.types.BaseTypes.InfoTable?

aluna
7-Bedrock

Import Failed: No enum constant com.thingworx.types.BaseTypes.InfoTable?

I created a extension on eclipse,when I try to imported into Thingworx composer I got the following error Import Failed: No enum constant com.thingworx.types.BaseTypes.InfoTable, Does anyone have a suggestion on how solve this?

ACCEPTED SOLUTION

Accepted Solutions
brue
12-Amethyst
(To:aluna)

Ok, just to make sure...did you try importing this extension when baseType was "InfoTable" and then retried import after you change it to "INFOTABLE"? If so, Thingworx is reusing your old extension jar file with "InfoTable".  You need to delete the erroneous extension and restart Tomcat to clear the jar files from its web resource directories.

View solution in original post

4 REPLIES 4
brue
12-Amethyst
(To:aluna)

Change your InfoTable to all CAPS, like "com.thingworx.types.BaseTypes.INFOTABLE" and try again.

aluna
7-Bedrock
(To:brue)

Basically  what my extension is doing is creating a thingtemplate and adding a service which accepts a parameter "INFOTABLE" Type,here is the declaration

@ThingworxServiceParameter(name = "xxxx", description = "", baseType = "INFOTABLE", aspects = {

  "isRequired:true", "isEntityDataShape:true",

  "dataShape:Shapexxxx" }) InfoTable xxxx) {

As you see is all CAPS but I still getting the error

Where do you suggest to change this to all caps?

brue
12-Amethyst
(To:aluna)

Ok, just to make sure...did you try importing this extension when baseType was "InfoTable" and then retried import after you change it to "INFOTABLE"? If so, Thingworx is reusing your old extension jar file with "InfoTable".  You need to delete the erroneous extension and restart Tomcat to clear the jar files from its web resource directories.

aluna
7-Bedrock
(To:brue)

I was missing restarting the tomcat services, Now is working

Thanks

Announcements


Top Tags