Article - CS382596
Modelled enumeratedType was compiled with tools.xml (successfully) but cannot be used because of error "Unresolved compilation problem:"
Modified: 31-Jan-2023
Applies To
- Windchill PDMLink 12.0.2.8
Description
- Modelled class is compiled successfully but cannot be used because of error(s)
"The import com.ptc.windchill.annotations.metadata.GenAsEnumeratedType cannot be resolved"
or
Caused by: java.lang.Error: Unresolved compilation problem: GenAsEnumeratedType is not an annotation type at ext.ts.the.modelled.enums.MySize.<init>(MySize.java:21) at ext.ts.the.modelled.enums._MySize.<clinit>(_MySize.java:8) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at wt.workflow.definer.WfVariableInfo.getVariableClass(WfVariableInfo.java:1009) at com.ptc.windchill.enterprise.initiateworkflow.service.impl.InitiateWorkflowServiceImpl.getTemplate(InitiateWorkflowServiceImpl.java:254) at com.ptc.enterprise.initiateworkflow.rest.InitiateWorkflowResource.getTemplate(InitiateWorkflowResource.java:177) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:138) at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:546) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:435) at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:396) at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:398) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:365) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:338) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440) ... 50 more
-
compiling with ant -f bin\tools.xml class -Dclass.includes=ext/ts/the/modelled/enums/**
This is a printer-friendly version of Article 382596 and may be out of date. For the latest version click CS382596