Skip to main content
1-Visitor
June 1, 2016
Solved

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

  • June 1, 2016
  • 4 replies
  • 2425 views

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?

    Best answer by brue

    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.

    4 replies

    1-Visitor
    June 1, 2016

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

    aluna1-VisitorAuthor
    1-Visitor
    June 1, 2016

    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?

    brue1-VisitorAnswer
    1-Visitor
    June 1, 2016

    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.