IBM Support

"java.lang.IllegalArgumentException" while running "initupgrade" when migrating.

Troubleshooting


Problem

"java.lang.IllegalArgumentException" while running "initupgrade" when migrating.

Symptom

The error happens because the value set for DataType in Extensions.xml is not valid for some of the custom table entities.

The valid values are present in the <INSTALL_DIR>/repository/datatypes/datatypes.xml and documentation recommends using only those values.

Error Message

Encountered the following error when doing " "initupgrade" (Step:4 under section 2.9.1 of Upgrade_Guide.pdf)
================================================================================ =====
[java] -genschemadiffofhistory:
[java] [echo] Generating schema differences for history tables...
[java] [java] java version "1.5.0_04"
[java] [java] Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
[java] [java] Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
[java] [java] Exception in thread "main"
[java] [java] <Errors>
[java] [java] <Error ErrorCode="FileParseFailure"

[java] [java] <Attribute Name="ErrorCode" Value="FileParseFailure"/>
[java] [java] <Attribute Name="ErrorDescription" Value="FileParseFailure"/>
[java] [java] <Attribute Name="DirectoryBeingParsed" Value="/tmp/entities"/><br /> [java] [java] <Attribute Name="FileBeingParsed" Value=""/>
[java] [java] <Error ErrorCode="java.lang.IllegalArgumentException"

[java] [java] <Stack>java.lang.IllegalArgumentException: Extn_Sparepart_Type is not a valid attribute
[java] [java] at com.yantra.tools.entityguru.generator.Entity.process(Entity.java:539)
[java] [java] at com.yantra.tools.entityguru.generator.Entity.<init>(Entity.java:233)
[java] [java] at com.yantra.tools.entityguru.generator.EntityRepository.handleEntityElement(Entit yRepository.java:325)
[java] [java] at com.yantra.tools.entityguru.generator.EntityRepository.processXML(EntityReposito ry.java:292)
[java] [java] at com.yantra.tools.entityguru.generator.EntityRepository.parseHangOffXML(EntityRep ository.java:235)
[java] [java] at com.yantra.tools.entityguru.generator.EntityRepository.getEntityRepositoryFor(En tityRepository.java:854)
[java] [java] at com.yantra.tools.entityguru.generator.EntityGenerator.callable(EntityGenerator.j ava:282)
[java] [java] at com.yantra.tools.entityguru.generator.EntityGenerator.main(EntityGenerator.java: 610)
================================================================================ ======

Resolving The Problem

Resolve the error by setting the DataType to valid values as mentioned in <INSTALL_DIR>/repository/datatypes/datatypes.xml.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX7925

Document Information

Modified date:
16 June 2018

UID

swg21558696