sara_f
Level 2

Automation API and IBM LAP Plugin Problem

We are using IA 2009 SP1. We are trying to generate a number of projects using the Project Automation API. These projects need to use the LAP plugin (the licensing pluing) from IBM.

First of all adding the plugin through the code (the com.zerog.ia.auto.project.actions.PlugInAction doesn't seem to work properly)

Secondly, even if we put the LAP in the base project that is loaded (so that we can add the rest of the actions through the code), the code fails to load the project with the following error:

[java] com.zerog.ia.auto.project.ProjectAutomationException: The class 'com.zerog.ia.installer.util.VariablePropertyDataNonBiDi' is not supported by the project automation API.
[java] at com.zerog.ia.auto.project.file.ProjAutoObjectBuilder.create(ProjAutoObjectBuilder.java:135)
[java] at com.zerog.ia.project.file.base.properties.IAPVectorBuilder.create(DashoA10*..)
[java] at com.zerog.ia.auto.project.file.ProjAutoObjectBuilder.create(ProjAutoObjectBuilder.java:155)
[java] at com.zerog.ia.project.file.base.properties.IAPVectorBuilder.create(DashoA10*..)
[java] at com.zerog.ia.auto.project.file.ProjAutoObjectBuilder.create(ProjAutoObjectBuilder.java:155)
[java] at com.zerog.ia.auto.project.file.ProjAutoIAPReaderImpl.loadInstaller(ProjAutoIAPReaderImpl.java:39)
[java] at com.zerog.ia.auto.project.ProjectAutomation.loadProject(ProjectAutomation.java:110)
[java] at com.zerog.ia.auto.project.ProjectAutomation.loadProject(ProjectAutomation.java:89)
...
[java] Caused by: java.lang.NullPointerException
[java] at java.lang.Class.forName(Class.java:130)
[java] at com.zerog.ia.auto.project.file.ProjAutoObjectBuilder.create(ProjAutoObjectBuilder.java:130)
[java] ... 9 more


This is when we set the value for the LA_HOME property.

If we don't set the value (which is not really an option for us), the following errors are thrown, although this time the project doens't fail to load:

[java] Unable to invoke the method:
[java] PlugInPanelAction.setStepTitle(String)
[java] Some installer configuration information may be lost
[java] java.lang.NoSuchMethodException
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.c(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGlg.a(DashoA10*..)
[java] at ZeroGlg.a(DashoA10*..)
[java] at ZeroGlg.c(DashoA10*..)
[java] at ZeroGlg.v(DashoA10*..)
[java] at com.zerog.ia.designer.build.ProjAutoRuntimeFacade.loadAndSaveInstaller(DashoA10*..)
[java] at com.zerog.ia.auto.project.ProjectAutomation.saveProject(ProjectAutomation.java:160)
[java] at com.zerog.ia.auto.project.ProjectAutomation.saveProject(ProjectAutomation.java:178)
[java] at com.ibm.cognos.express.module.updater.autogenerate.AbstractIAProjectCreator.create(AbstractIAProjectCreator.java:41)
[java] at com.ibm.cognos.express.module.updater.autogenerate.shell.AutoGenerateMain.main(AutoGenerateMain.java:33)
[java] Unable to invoke the method:
[java] PlugInPanelAction.setPrompt(String)
[java] Some installer configuration information may be lost
[java] java.lang.NoSuchMethodException
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.c(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGlg.a(DashoA10*..)
[java] at ZeroGlg.a(DashoA10*..)
[java] at ZeroGlg.c(DashoA10*..)
[java] at ZeroGlg.v(DashoA10*..)
[java] at com.zerog.ia.designer.build.ProjAutoRuntimeFacade.loadAndSaveInstaller(DashoA10*..)
[java] at com.zerog.ia.auto.project.ProjectAutomation.saveProject(ProjectAutomation.java:160)
[java] at com.zerog.ia.auto.project.ProjectAutomation.saveProject(ProjectAutomation.java:178)
[java] at com.ibm.cognos.express.module.updater.autogenerate.AbstractIAProjectCreator.create(AbstractIAProjectCreator.java:41)
[java] at com.ibm.cognos.express.module.updater.autogenerate.shell.AutoGenerateMain.main(AutoGenerateMain.java:33)
[java] Unable to invoke the method:
[java] PlugInPanelAction.setAdditionalText(String)
[java] Some installer configuration information may be lost
[java] java.lang.NoSuchMethodException
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.c(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGfg.a(DashoA10*..)
[java] at ZeroGlg.a(DashoA10*..)
[java] at ZeroGlg.a(DashoA10*..)
[java] at ZeroGlg.c(DashoA10*..)
[java] at ZeroGlg.v(DashoA10*..)
[java] at com.zerog.ia.designer.build.ProjAutoRuntimeFacade.loadAndSaveInstaller(DashoA10*..)
[java] at com.zerog.ia.auto.project.ProjectAutomation.saveProject(ProjectAutomation.java:160)
[java] at com.zerog.ia.auto.project.ProjectAutomation.saveProject(ProjectAutomation.java:178)
[java] at com.ibm.cognos.express.module.updater.autogenerate.AbstractIAProjectCreator.create(AbstractIAProjectCreator.java:41)
[java] at com.ibm.cognos.express.module.updater.autogenerate.shell.AutoGenerateMain.main(AutoGenerateMain.java:33)
[java] Merged locals dir path: wow


This problem is blocking us from using the automation API; any idea when the automation API is going to support plugins/LAP/VariablePropertyDataNonBiDi? Is there a way to request a fix for this?

Thanks
Labels (1)
0 Kudos
1 Reply
Nio_the_Champ_2
Level 6

Do not use the crapy automation api. Its of no use. If your project data is substantial, it cannot digest. Better to use xsl transforms.
I also faced the similar issue.
http://community.acresso.com/showthread.php?t=189990
0 Kudos