Resolving UPGMED-02047 Failed to look up PortType from WSDL
Just a quick post about an issue i ran in today which maybe can helpful. Today the migration of a specific Oracle 10G esb service failed using our ant SCA-build script. In the ant script a task, upgradeESB, is defined based on the class oracle.ias.upgrade.task.MediatorUpgradeTask. During the execution of the upgradeESB task the portType in the wsdl of the esb service is fetched (UPGMED-02044). Although the portType is there, it is not found (UPGMED-02045) in the wsdl and subsequently also not in the service resulting in a MediatorUpgradeException, UPGMED-02047.
If you experience the same upgrade issue. Check the schema locations in the mapSource and mapTarget of the XSL transformations used in the routing rules of the esb service. When the mapSource and mapTarget both use the same (service) wsdl as the schema location, fix or alter the XSL transformation and try to migrate the service again.
Tweet
If you experience the same upgrade issue. Check the schema locations in the mapSource and mapTarget of the XSL transformations used in the routing rules of the esb service. When the mapSource and mapTarget both use the same (service) wsdl as the schema location, fix or alter the XSL transformation and try to migrate the service again.
[upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] INFO: UPGMED-02044: Fetching Porttype "{http://some.company.com/domain/esb/namespaces/DefaultSystem}execute_ppt" from WSDL definition {http://some.company.com/domain/esb/namespaces/DefaultSystem_3588C7D0EA7311E0AF7EAF6DBA550FF5}someEsbService [upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] FINEST: PortType {http://some.company.com/domain/esb/namespaces/DefaultSystem}execute_ppt not found in the definition {http://some.company.com/domain/esb/namespaces/DefaultSystem_3588C7D0EA7311E0AF7EAF6DBA550FF5}someEsbService [upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] INFO: UPGMED-02045: Not found directly in WSDL, looking into Service [upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] SEVERE: oracle.tip.mediator.upgrade.MediatorUpgradeException: oracle.tip.mediator.upgrade.MediatorUpgradeException: UPGMED-02047: Failed to look up PortType from WSDL [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeContext.parseServiceWSDL(MediatorUpgradeContext.java:588) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeContext.getOperationForQName(MediatorUpgradeContext.java:435) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeUtil.getTargetOperation(MediatorUpgradeUtil.java:1738) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.addRoutingRules(MediatorUpgradeFwk.java:564) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeRoutingService(MediatorUpgradeFwk.java:485) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeService(MediatorUpgradeFwk.java:329) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgrade(MediatorUpgradeFwk.java:197) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.main(MediatorUpgradeFwk.java:126) [upgradeEsb] Caused by: oracle.tip.mediator.upgrade.MediatorUpgradeException: UPGMED-02047: Failed to look up PortType from WSDL [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeContext.getPortType(MediatorUpgradeContext.java:665) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeContext.parseServiceWSDL(MediatorUpgradeContext.java:564) [upgradeEsb] ... 7 more [upgradeEsb] [upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] SEVERE: oracle.tip.mediator.upgrade.MediatorUpgradeException: UPGMED-02065: Migrating one of the routing rules into med iator case failed [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.addRoutingRules(MediatorUpgradeFwk.java:607) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeRoutingService(MediatorUpgradeFwk.java:485) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeService(MediatorUpgradeFwk.java:329) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgrade(MediatorUpgradeFwk.java:197) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.main(MediatorUpgradeFwk.java:126) [upgradeEsb] [upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] SEVERE: oracle.tip.mediator.upgrade.MediatorUpgradeException: UPGMED-02064: Routing service someEsbService[GUID:3588C7D0EA7311E0AF7EAF6DBA550FF5] migration failed. Either migration failed or it cannnot persist the migrated artifact. Please see log file for more details. [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeRoutingService(MediatorUpgradeFwk.java:512) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeService(MediatorUpgradeFwk.java:329) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgrade(MediatorUpgradeFwk.java:197) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.main(MediatorUpgradeFwk.java:126) [upgradeEsb] [upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] SEVERE: UPGMED-02005: Projects are not migrated, Please make sure source artifacts are valid. Restore original projects from the backup and remigrate the projects. [upgradeEsb] Aug 22, 2012 11:52:43 AM oracle.tip.mediator.upgrade.UpgradeLogger log [upgradeEsb] SEVERE: UPGMED-02006: Upgrading ESB 10.1.3 to AS 11 Mediator failed, If log file does not provide sufficient details, Contact Oracle, if needed. [upgradeEsb] Exception in thread "main" oracle.tip.mediator.upgrade.MediatorUpgradeException: UPGMED-02064: Routing service someEsvServiceToo[GUID:3588C7D0EA7311E0AF7EAF6DBA550FF5] migration failed. Either migration failed or it cannnot persist the migrated artifact. Please see log file for more details. [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeRoutingService(MediatorUpgradeFwk.java:512) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgradeService(MediatorUpgradeFwk.java:329) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.upgrade(MediatorUpgradeFwk.java:197) [upgradeEsb] at oracle.tip.mediator.upgrade.MediatorUpgradeFwk.main(MediatorUpgradeFwk.java:126)
Tweet
blog comments powered by Disqus