Article - CS267347

Launching the Release to Manufacturing workflow as a sub-process results in various errors in Windchill Enterprise Systems Integration

Modified: 20-May-2022   


Applies To

  • Windchill Enterprise Systems Integration 11.0 to 13.0

Description

  • Initiate Release To Manufacturing (RTM) workflow process throws NullPointerException at Release expression robot
java.lang.NullPointerException
at com.ptc.windchill.esi.svc.StandardESIService.release(StandardESIService.java:3553)
at com.ptc.windchill.esi.svc.StandardESIService.release(StandardESIService.java:834)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
at com.sun.proxy.$Proxy259.release(Unknown Source)
at wt.workflow.expr.WfExpression260408.executemethod_1(WfExpression260408.java:65)
  • ESI release fails with error (701) EC_MISSING_UNAME_LOCALE
  • Customized RTM workflow using com.ptc.windchill.esi.svc.ESIHelper.service.release() API generates below error
wt.method.AuthenticationException
at wt.auth.AuthenticationServer.getUserName(AuthenticationServer.java:168)
at wt.session.StandardSessionManager.getAuthenticationName(StandardSessionManager.java:507)
at wt.session.StandardSessionManager.getPrincipal(StandardSessionManager.java:167)
at wt.session.SessionHelper.getPrincipal(SessionHelper.java:174)
at wt.preference.PreferenceHelper.isValidUser(PreferenceHelper.java:570)
at wt.preference.StandardPreferenceService2.getValue(StandardPreferenceService2.java:1204)
at com.ptc.windchill.esi.utl.ESIProperties.getProperty(ESIProperties.java:85)
at com.ptc.windchill.esi.utl.ESIProperties.getProperty(ESIProperties.java:117)
at com.ptc.windchill.esi.utl.ESIProperties.getProperty(ESIProperties.java:136)
at com.ptc.windchill.esi.utl.ESIProperties.getClass(ESIProperties.java:197)
at com.ptc.windchill.esi.tgt.ESITargetUtility.getTargetAssnsFromObjects(ESITargetUtility.java:795)
at com.ptc.windchill.esi.tgt.ESITargetUtility.getTargetAssociationsForObject(ESITargetUtility.java:3631)
at com.ptc.windchill.esi.tgt.ESITargetUtility.getTargetAssociations(ESITargetUtility.java:663)
at com.ptc.windchill.esi.tgt.ESITargetUtility.getTargetAssociations(ESITargetUtility.java:627)
at com.ptc.windchill.esi.txn.ESIResponseGenerator.getTargetAssociations(ESIResponseGenerator.java:883)
at com.ptc.windchill.esi.txn.ESIResponseGenerator.prepare(ESIResponseGenerator.java:1125)
at com.ptc.windchill.esi.txn.ESIResponseGenerator.run(ESIResponseGenerator.java:1520)

Steps to Reproduce
  • Create WTPart
  • Associate Distribution Target
  • Go to Site > Utilities > Workflow Template Administration
  • Locate RTM workflow
  • Right Click > Initiate workflow process
  • Specify above part as a Target Object
  • Start Workflow process
Note
  • This situation also occurs if the RTM workflow is launched as a sub-process
This is a printer-friendly version of Article 267347 and may be out of date. For the latest version click CS267347