Unable to Export Custom Package using Action Builder 2.0.2

Document ID : KB000087254
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Affects Release version(s): 7

Error Message :
com.uc4.ecc.plugins.actioncommon.utils.UIException$UIUnexpectedException: Error while parsing attributes from object node. null

When exporting a custom package and using the following software: 

  1. Action Builder 2.0 (both Action Builder 2.0.2-5343 and Action Builder 2.0.1-3644)
  2. Automic Web Interface 12.0.1.HF02-402 
  3. Automation Engine API Version
  4. Automation Engine API 12.0.1+build.8663

the following errors are displayed.

0EMb0000000IZSn.png

com.uc4.ecc.plugins.actioncommon.utils.UIException$UIUnexpectedException: Error while parsing attributes from object node. null  at com.uc4.ecc.plugins.actioncommon.utils.UIException.transform(UIException.java:69) ~[na:na]  at com.uc4.ecc.plugins.actioncommon.utils.UIException.transform(UIException.java:43) ~[na:na]  at com.uc4.ecc.plugins.actioncommon.apm.APMOperation.process(APMOperation.java:79) ~[na:na]  at com.uc4.ecc.plugins.actioncommon.apm.APMOperation.execute(APMOperation.java:50) ~[na:na]  at com.uc4.ecc.plugins.actionbuilder.content.view.actionpack.build.ProcessBuild.onStart(ProcessBuild.java:66) ~[na:na]  at com.uc4.ecc.plugins.actioncommon.uicore.RealtimeLoading.run(RealtimeLoading.java:75) ~[na:na]  at com.uc4.ecc.framework.core.pool.ContextAwareExecutorService$RunnableImplementation.run(ContextAwareExecutorService.java:44) [ecc-framework-core.jar:na]  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_112]  at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_112]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_112]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_112]  at java.lang.Thread.run(Thread.java:745) [na:1.8.0_112]  Caused by: com.automic.apm.exceptions.ApmException: Error while parsing attributes from object node  at com.automic.apm.models.ObjectContent$2.get(ObjectContent.java:50) ~[na:na]  at com.automic.apm.models.ObjectContent$2.get(ObjectContent.java:39) ~[na:na]  at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:125) ~[guava-17.0.jar:na]  at com.automic.apm.models.ObjectContent.getAttribute(ObjectContent.java:86) ~[na:na]  at com.automic.apm.internal.content.linters.ActionContentLinter.warnNotGenerateAtRunTime(ActionContentLinter.java:68) ~[na:na]  at com.automic.apm.internal.content.linters.ActionContentLinter.validate(ActionContentLinter.java:33) ~[na:na]  at com.automic.apm.internal.content.linters.AbstractObjectLinter.validate(AbstractObjectLinter.java:24) ~[na:na]  at com.automic.apm.models.ArtifactContent.lint(ArtifactContent.java:204) ~[na:na]  at com.automic.apm.tasks.BuildPack.export(BuildPack.java:197) ~[na:na]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_112]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_112]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_112]  at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_112]  at com.automic.apm.internal.utils.JavaMethod.invoke(JavaMethod.java:62) ~[na:na]  at com.automic.apm.internal.excuters.TaskAnnotationFinder$TaskAnnotation.doExecute(TaskAnnotationFinder.java:92) ~[na:na]  at com.automic.apm.internal.excuters.TaskAnnotationFinder$TaskAnnotation.execute(TaskAnnotationFinder.java:85) ~[na:na]  at com.automic.apm.internal.excuters.TaskValidationExecuter.validate(TaskValidationExecuter.java:78) ~[na:na]  at com.automic.apm.internal.excuters.TaskValidationExecuter.execute(TaskValidationExecuter.java:49) ~[na:na]  at com.automic.apm.internal.excuters.DiagnosableTaskExecuter.execute(DiagnosableTaskExecuter.java:51) ~[na:na]  at com.automic.apm.DefaultTaskManager.execute(DefaultTaskManager.java:65) ~[na:na]  at com.uc4.ecc.plugins.actioncommon.apm.APMOperation.process(APMOperation.java:74) ~[na:na]  ... 9 common frames omitted  Caused by: java.lang.NullPointerException: null  at com.automic.apm.internal.utils.XMLUtils.getChildElement(XMLUtils.java:155) ~[na:na]  at com.automic.apm.models.ObjectContent$2.get(ObjectContent.java:45) ~[na:na]  ... 29 common frames omitted
Environment:
OS Version: N/A
Cause:
Cause type:
Defect
Root Cause: Cannot build action pack when object of type SCRIPT or VARA exist in ACTIONS folder.
Resolution:
Update to a fix version listed below or a newer version if available.

The issue was found and fixed with Action.Builder 2.0.2 HF2 in Plugin. The Package is available for download at the Automic-Support-Zone (https://support.automic.com).

Hotfix-Description: Cannot build action pack when object of type SCRIPT or VARA exist in ACTIONS folder.

Folder ACTIONS in action pack is designed to contain action link. Build action pack will fail when object of type SCRIPT or VARA exist in ACTIONS folder.


Fix Status: Released

Fix Version(s):
Component(s): Plugin

Action Builder 2.0.2 HF2 - Available
Additional Information:
Workaround :
Folder ACTIONS is designed to contain the link to action (JOBP) in an action pack.

When a user places object type of SCRIPT/VARA in this folder, it may lead to unexpected behavior when building the action pack.  They may reside in the PACKAGES folder when importing into another client.

There are 04 objects in the ACTIONS folder which do not conform.

The objects should be moved to a folder inside the SOURCE (i.e. create SOURCE/SHARED).