Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
When Creating a ThingTemplate from a Virtual Thing Service (Java SDK)
I have the problem:
The type com.thingworx.common.interfaces.IDataShapeDefinitionProvider cannot be resolved. It is indirectly referenced from
required .class files
code:
import com.thingworx.communications.client.things.VirtualThing;
import com.thingworx.logging.LogUtilities;
import com.thingworx.metadata.DataShapeDefinition;
import com.thingworx.metadata.FieldDefinition;
import com.thingworx.metadata.annotations.ThingworxServiceDefinition;
import com.thingworx.metadata.annotations.ThingworxServiceParameter;
import com.thingworx.metadata.annotations.ThingworxServiceResult;
import com.thingworx.types.InfoTable;
import com.thingworx.types.collections.ValueCollection;
public class GetFilelistThingTemplate extends VirtualThing {
private static final long serialVersionUID = 1L;
private static Logger _logger = LogUtilities.getInstance().getApplicationLogger(GetFilelistThingTemplate.class);
public GetFilelistThingTemplate() {
}
Please give some pointer.
Thanks.
Wang, at which point do you get this error? Also for your logger won't you wanna do :
private static final Logger LOG = LoggerFactory.getLogger(GetFilelistThingTemplate.class);
Wang,
Any update on this? Was Sushant Pandey's post helpful?