Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nullpointer exception in access url migrator #2400

Open
nadeepoornima opened this issue Jan 22, 2024 · 0 comments
Open

Fix nullpointer exception in access url migrator #2400

nadeepoornima opened this issue Jan 22, 2024 · 0 comments

Comments

@nadeepoornima
Copy link

Description

Migration has stopped at the "ApplicationAccessURLMigrator" step within the IS 5.11.0 to 6.0.0. It has thrown the below error.

INFO {org.wso2.carbon.is.migration.service.v600.migrator.ApplicationAccessURLMigrator} -  WSO2 Product Migration Service Task : Started migrating redirect URLs for tenant: carbon.super
TID: [] [] [2024-01-17 16:50:15,142] [] ERROR {org.wso2.carbon.is.migration.MigrationClientImpl} - Migration process was stopped. java.lang.NullPointerException: Cannot invoke "org.wso2.carbon.user.core.service.RealmService.getTenantManager()" because the return value of "org.wso2.carbon.identity.application.mgt.internal.ApplicationManagementServiceComponentHolder.getRealmService()" is null
    at org.wso2.carbon.identity.application.mgt.dao.impl.ApplicationDAOImpl.getServiceProviderNameByClientId(ApplicationDAOImpl.java:4083)
    at org.wso2.carbon.identity.application.mgt.dao.impl.CacheBackedApplicationDAO.getServiceProviderNameByClientId(CacheBackedApplicationDAO.java:153)
    at org.wso2.carbon.identity.application.mgt.ApplicationManagementServiceImpl.getServiceProviderNameByClientId(ApplicationManagementServiceImpl.java:1074)
    at org.wso2.carbon.identity.application.mgt.ApplicationManagementServiceImpl.getServiceProviderByClientId(ApplicationManagementServiceImpl.java:1240)
    at org.wso2.carbon.is.migration.service.v600.migrator.ApplicationAccessURLMigrator.getServiceProviderByRelyingParty(ApplicationAccessURLMigrator.java:338)
    at org.wso2.carbon.is.migration.service.v600.migrator.ApplicationAccessURLMigrator.migratingRelyingPartyURL(ApplicationAccessURLMigrator.java:136)
    at org.wso2.carbon.is.migration.service.v600.migrator.ApplicationAccessURLMigrator.migrate(ApplicationAccessURLMigrator.java:204)
    at org.wso2.carbon.is.migration.VersionMigration.migrate(VersionMigration.java:52)
    at org.wso2.carbon.is.migration.MigrationClientImpl.execute(MigrationClientImpl.java:85)
    at org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:151)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
    at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
    at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
    at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:113)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:985)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:866)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:228)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:525)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:544)
    at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:529)
    at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:305)
    at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:973)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

Steps to Reproduce

  • Do an identity data migration from APIM 3.0.0 to APIM 4.2.0 with the latest APIM Identity Migration client.

Affected Component

APIM

Version

APIM 4.2.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant