While trying to update wt.workflow.work.WorkItem, using standard method I get following error
wt.workflow.work.WorkItem cannot be cast to wt.vc.wip.Workable; nested exception is: java.lang.ClassCastException: wt.workflow.work.WorkItem cannot be cast to wt.vc.wip.Workable
or
com.ptc.jws.service.com.ptc.windchill.ws.Exception_Exception: com.infoengine.util.IEException: EXCEPTION DURING SAVE[
SOURCE:
@@@ BEGIN TYPE INSTANCE
@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ BEGIN ATTRIBUTE CONTAINER
@@@
@@@ ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ : ~NPA|workitem_comment~~
@@@ Content: DATA|java.lang.String|updatedFileName.txt
@@@ State: NEW
@@@
@@@ ATTRIBUTE IDENTIFIER COUNT = 1
@@@
@@@ REPLACEMENTS : NONE
@@@
@@@ END ATTRIBUTE CONTAINER
@@@ END TYPE INSTANCE
FILTER:
@@@ BEGIN ATTRIBUTE CONTAINER SPEC
@@@
@@@ INCLUDE DESCRIPTORS DEFAULT: false
@@@ INCLUDE CONSTRAINTS DEFAULT: false
@@@ INCLUDE ARGUMENTS DEFAULT: false
@@@ NEXT OPERATION: com.ptc.core.meta.common.DisplayOperationIdentifier@a36d3bb3
@@@ DESCRIPTOR KEYS: []
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|description
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|status
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE COUNT = 3
@@@
@@@ INSTANCE ENTRIES: NONE
@@@
@@@ PURGED ENTRIES: NONE
@@@
@@@ END ATTRIBUTE CONTAINER SPEC
CURRENT TARGET: 0
TARGET[0]: (UNHANDLED)
@@@ BEGIN TYPE INSTANCE
@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ BEGIN ATTRIBUTE CONTAINER
@@@
@@@ ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ : ~NPA|workitem_comment~~
@@@ Content: DATA|java.lang.String|updatedFileName.txt
@@@ State: NEW
@@@
@@@ ATTRIBUTE IDENTIFIER COUNT = 1
@@@
@@@ REPLACEMENTS : NONE
@@@
@@@ END ATTRIBUTE CONTAINER
@@@ END TYPE INSTANCE
]EXCEPTION DURING SAVE
Nested exception is: com.ptc.core.command.common.CommandException: EXCEPTION DURING UPDATE[
SOURCE:
@@@ BEGIN TYPE INSTANCE
@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ BEGIN ATTRIBUTE CONTAINER
@@@
@@@ ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ : ~NPA|workitem_comment~~
@@@ Content: DATA|java.lang.String|updatedFileName.txt
@@@ State: NEW
@@@
@@@ ATTRIBUTE IDENTIFIER COUNT = 1
@@@
@@@ REPLACEMENTS : NONE
@@@
@@@ END ATTRIBUTE CONTAINER
@@@ END TYPE INSTANCE
FILTER:
@@@ BEGIN ATTRIBUTE CONTAINER SPEC
@@@
@@@ INCLUDE DESCRIPTORS DEFAULT: false
@@@ INCLUDE CONSTRAINTS DEFAULT: false
@@@ INCLUDE ARGUMENTS DEFAULT: false
@@@ NEXT OPERATION: null
@@@ DESCRIPTOR KEYS: []
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE COUNT = 1
@@@
@@@ INSTANCE ENTRIES: NONE
@@@
@@@ PURGED ENTRIES: NONE
@@@
@@@ END ATTRIBUTE CONTAINER SPEC
]EXCEPTION DURING UPDATE
Nested exception is: wt.verification.VerificationException: Illegal Operation. Nested exception is:
com.ptc.core.command.common.CommandException: EXCEPTION DURING SAVE[
SOURCE:
@@@ BEGIN TYPE INSTANCE
@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ BEGIN ATTRIBUTE CONTAINER
@@@
@@@ ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ : ~NPA|workitem_comment~~
@@@ Content: DATA|java.lang.String|updatedFileName.txt
@@@ State: NEW
@@@
@@@ ATTRIBUTE IDENTIFIER COUNT = 1
@@@
@@@ REPLACEMENTS : NONE
@@@
@@@ END ATTRIBUTE CONTAINER
@@@ END TYPE INSTANCE
FILTER:
@@@ BEGIN ATTRIBUTE CONTAINER SPEC
@@@
@@@ INCLUDE DESCRIPTORS DEFAULT: false
@@@ INCLUDE CONSTRAINTS DEFAULT: false
@@@ INCLUDE ARGUMENTS DEFAULT: false
@@@ NEXT OPERATION: com.ptc.core.meta.common.DisplayOperationIdentifier@a36d3bb3
@@@ DESCRIPTOR KEYS: []
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|description
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~MBA|status
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE COUNT = 3
@@@
@@@ INSTANCE ENTRIES: NONE
@@@
@@@ PURGED ENTRIES: NONE
@@@
@@@ END ATTRIBUTE CONTAINER SPEC
CURRENT TARGET: 0
TARGET[0]: (UNHANDLED)
@@@ BEGIN TYPE INSTANCE
@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ BEGIN ATTRIBUTE CONTAINER
@@@
@@@ ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ : ~NPA|workitem_comment~~
@@@ Content: DATA|java.lang.String|updatedFileName.txt
@@@ State: NEW
@@@
@@@ ATTRIBUTE IDENTIFIER COUNT = 1
@@@
@@@ REPLACEMENTS : NONE
@@@
@@@ END ATTRIBUTE CONTAINER
@@@ END TYPE INSTANCE
]EXCEPTION DURING SAVE
Nested exception is: com.ptc.core.command.common.CommandException: EXCEPTION DURING UPDATE[
SOURCE:
@@@ BEGIN TYPE INSTANCE
@@@ Identifier: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ BEGIN ATTRIBUTE CONTAINER
@@@
@@@ ID: WCTYPE|wt.workflow.work.WorkItem~~WCP|1240209|17
@@@ : ~NPA|workitem_comment~~
@@@ Content: DATA|java.lang.String|updatedFileName.txt
@@@ State: NEW
@@@
@@@ ATTRIBUTE IDENTIFIER COUNT = 1
@@@
@@@ REPLACEMENTS : NONE
@@@
@@@ END ATTRIBUTE CONTAINER
@@@ END TYPE INSTANCE
FILTER:
@@@ BEGIN ATTRIBUTE CONTAINER SPEC
@@@
@@@ INCLUDE DESCRIPTORS DEFAULT: false
@@@ INCLUDE CONSTRAINTS DEFAULT: false
@@@ INCLUDE ARGUMENTS DEFAULT: false
@@@ NEXT OPERATION: null
@@@ DESCRIPTOR KEYS: []
@@@
@@@ ATTRIBUTE: WCTYPE|wt.workflow.work.WorkItem~NPA|workitem_comment
@@@ TYPE: EXPLICIT
@@@ INCLUDE DESCRIPTORS: false
@@@ INCLUDE CONSTRAINTS: false
@@@
@@@ ATTRIBUTE COUNT = 1
@@@
@@@ INSTANCE ENTRIES: NONE
@@@
@@@ PURGED ENTRIES: NONE
@@@
@@@ END ATTRIBUTE CONTAINER SPEC
]EXCEPTION DURING UPDATE
Nested exception is: wt.verification.VerificationException: Illegal Operation.
at sun.reflect.GeneratedConstructorAccessor324.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:145)
at com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:252)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:181)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:262)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:128)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
at com.sun.proxy.$Proxy150.update(Unknown Source)
at com.ptc.connected.plm.thingworx.WindchillConnectorThing.Update(WindchillConnectorThing.java:480)
at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)
at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:48)
at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:6757)
at com.thingworx.things.Thing.processServiceRequest(Thing.java:6675)
at com.thingworx.dsl.engine.adapters.VirtualFunction.call(VirtualFunction.java:145)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.TestUpdate_871._c_script_0(TestUpdate:25)
at org.mozilla.javascript.gen.TestUpdate_871.call(TestUpdate)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3090)
at org.mozilla.javascript.gen.TestUpdate_871.call(TestUpdate)
at org.mozilla.javascript.gen.TestUpdate_871.exec(TestUpdate)
at com.thingworx.dsl.engine.DSLProcessor.executeService(DSLProcessor.java:167)
at com.thingworx.dsl.DSLServiceHandler.processService(DSLServiceHandler.java:37)
at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:6757)
at com.thingworx.things.Thing.processAPIServiceRequest(Thing.java:6695)
at com.thingworx.webservices.BaseService.handleInvoke(BaseService.java:2931)
at com.thingworx.webservices.BaseService.service(BaseService.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:370)
at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:150)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.thingworx.security.filter.ProhibitIfNotLeaderFilter.doFilter(ProhibitIfNotLeaderFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:745)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
27-Jan-2017 17:18:51.843 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8085"]
27-Jan-2017 17:18:51.908 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
27-Jan-2017 17:18:51.962 INFO [Thread-5] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
Could you paste the IE task as well?
its Update from here
/Windchill/servlet/TwxIEWebService?wsdl
or I tried this one
/Windchill/servlet/IE/tasks/com/ptc/swlink/RBMWSCoreService/UpdateObject.xml
Not sure about those I.E. tasks. You can try something like this. Looking at the error it looks like you are invoking a service used by thingworx
<ie:webject name="Change-Identity" type="ACT">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueseparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%">"/>
<ie:param name="OBJECT_REF" data="${@FORM[]obj[]}"/">
<ie:param name="FIELD" data="">" delim=","/>
<ie:param name="GROUP_OUT" data="output"/">
</ie:webject>