API Gateway Login Issue with Default credentials

On signing in with the default username administrator/manage after installation I got the below error in APIGateway logs, Please your support:

2021-05-20 23:13:14 ERROR [apigatewayui] [com.softwareag.apigateway.ui.ISConfiguration$1] - Attempt to login with technical user failed: org.glassfish.jersey.server.wadl.internal.WadlAutoDiscoverable cannot be cast to org.glassfish.jersey.internal.spi.AutoDiscoverable
java.lang.ClassCastException: org.glassfish.jersey.server.wadl.internal.WadlAutoDiscoverable cannot be cast to org.glassfish.jersey.internal.spi.AutoDiscoverable
at org.glassfish.jersey.model.internal.CommonConfig$2.compare(CommonConfig.java:594) [jersey-common-2.22.2.jar:?]
at java.util.TreeMap.compare(TreeMap.java:1295) [?:1.8.0_222]
at java.util.TreeMap.put(TreeMap.java:538) [?:1.8.0_222]
at java.util.TreeSet.add(TreeSet.java:255)[?:1.8.0_222]
at java.util.AbstractCollection.addAll(AbstractCollection.java:344) [?:1.8.0_222]
at java.util.TreeSet.addAll(TreeSet.java:312) [?:1.8.0_222]
at org.glassfish.jersey.model.internal.CommonConfig.configureAutoDiscoverableProviders(CommonConfig.java:612) [jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientConfig$State.configureAutoDiscoverableProviders(ClientConfig.java:364) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:399) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientConfig$State.access$000(ClientConfig.java:90) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientConfig$State$3.get(ClientConfig.java:122) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientConfig$State$3.get(ClientConfig.java:119)[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:340) [jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:733) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientRequest.getConfiguration(ClientRequest.java:286) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation.validateHttpMethodAndEntity(JerseyInvocation.java:135) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation.(JerseyInvocation.java:105) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation.(JerseyInvocation.java:101) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation.(JerseyInvocation.java:92) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:437) [jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:343) [jersey-client-2.22.2.jar:?]
at com.softwareag.apigateway.ui.servlet.WebUtil.execute(WebUtil.java:97) [com.softwareag.apigateway.webapp.apimanager_10.5.0.0009-0362.jar:?]
at com.softwareag.apigateway.ui.utils.SAMLAssertionUtil.getISSession(SAMLAssertionUtil.java:108) [com.softwareag.apigateway.webapp.apimanager_10.5.0.0009-0362.jar:?]
at com.softwareag.apigateway.ui.utils.SAMLAssertionUtil.getISSession(SAMLAssertionUtil.java:90) [com.softwareag.apigateway.webapp.apimanager_10.5.0.0009-0362.jar:?]
at com.softwareag.apigateway.ui.utils.SAMLAssertionTechnicalUser.getIsSession(SAMLAssertionTechnicalUser.java:29) [com.softwareag.apigateway.webapp.apimanager_10.5.0.0009-0362.jar:?]
at com.softwareag.apigateway.ui.ISConfiguration$1.run(ISConfiguration.java:104) [com.softwareag.apigateway.webapp.apimanager_10.5.0.0009-0362.jar:?]
at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_222]
at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_222]

Try “Administrator” (i.e., upper case A).

KM

I tried but same error, I don’t think it’s authorization error.

API Gateway is partially loaded in IS and when trying to reload it I found this error in IS server.log file:

Unable to deploy module from file:policyGatewayModule.mar. Error:null org.apache.axis2.deployment.DeploymentException: null
at org.apache.axis2.deployment.DeploymentEngine.buildModule(DeploymentEngine.java:1063) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at com.softwareag.pg.PolicyGateway.deployModules(PolicyGateway.java:420) ~[?:?]
at com.softwareag.pg.PolicyGateway.deployModules(PolicyGateway.java:410) ~[?:?]
at com.softwareag.pg.PolicyGateway.deployModulesFromPGRepository(PolicyGateway.java:393) ~[?:?]
at com.softwareag.pg.PolicyGateway.init(PolicyGateway.java:200) ~[?:?]
at com.softwareag.pg.PolicyGateway.init(PolicyGateway.java:133) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1870) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1813) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:307) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans.jar:?]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083) ~[spring-context.jar:?]
at com.softwareag.pg.init.BeanConfigUtil.getBean(BeanConfigUtil.java:205) ~[?:?]
at com.softwareag.apigateway.core.approval.handlers.ApplicationRegistrationCompletionHandler.(ApplicationRegistrationCompletionHandler.java:37) ~[?:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_222]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_222]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_222]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_222]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1262) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1164) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans.jar:?]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring-beans.jar:?]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring-beans.jar:?]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846) [spring-beans.jar:?]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863) [spring-context.jar:?]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) [spring-context.jar:?]
at com.softwareag.pg.init.BeanConfigUtil.initAppContext(BeanConfigUtil.java:326) [?:?]
at com.softwareag.pg.init.BeanConfigUtil.init(BeanConfigUtil.java:89) [?:?]
at com.softwareag.apigateway.is.init.ISPackageManager.startup(ISPackageManager.java:131) [?:?]
at apigateway.startup(apigateway.java:37) [?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:411) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:744) [wm-isserver.jar:10.5.0.0000-0084]
at wm.bci.internal.BciServiceInvokeNotifier.process(BciServiceInvokeNotifier.java:32) [?:?]
at com.wm.ps.serviceMock.ServiceInterceptor.process(ServiceInterceptor.java:360) [?:?]
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:61) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:250) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:56) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:178) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:331) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:41) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:401) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:615) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:425) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:383) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:253) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:122) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:81) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.app.b2b.server.SessionInvoke.run(SessionInvoke.java:35) [wm-isserver.jar:10.5.0.0000-0084]
at com.wm.util.pool.PooledThread.run(PooledThread.java:134) [wm-isclient.jar:1.0.3]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
Caused by: org.apache.axis2.deployment.DeploymentException
at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:568) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.DeploymentEngine.buildModule(DeploymentEngine.java:1036) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
… 69 more
Caused by: org.apache.axis2.deployment.DeploymentException
at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:233) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:555) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.DeploymentEngine.buildModule(DeploymentEngine.java:1036) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
… 69 more
Caused by: org.apache.axis2.deployment.DeploymentException
at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:86) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:121) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:555) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.DeploymentEngine.buildModule(DeploymentEngine.java:1036) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
… 69 more
Caused by: java.lang.NullPointerException
at com.softwareag.apigateway.core.persistence.handlers.base.ReverseMap.get(ReverseMap.java:86) ~[?:?]
at com.softwareag.apigateway.is.managers.UserLocaleFinder.getUserLocale(UserLocaleFinder.java:59) ~[?:?]
at com.softwareag.pg.logging.PGLoggingResources.bundleName(PGLoggingResources.java:352) ~[?:?]
at com.softwareag.pg.pgmen.axis2.PgMenModule.(PgMenModule.java:52) ~[?:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_222]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_222]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_222]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_222]
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_222]
at org.apache.axis2.deployment.ModuleBuilder$1.run(ModuleBuilder.java:76) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:74) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:121) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:555) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
at org.apache.axis2.deployment.DeploymentEngine.buildModule(DeploymentEngine.java:1036) ~[axis2-kernel-1.6.2.jar:1.6.2.14-v0061]
… 69 more

Any help please would be appreciated.

Did you install API Gateway via Installer or did you import the package manually?
Either way, please reinstall API Gateway and then install all latest fixes - let me know if this solves the issue.

KM

This happens when API GW package is partially loaded. Most common reason for this is giving the wrong license key. In my case customer was using IS license instead of API GW. So that might be issue.

Murat

yes it’s partially loaded but the IS license is correct, hos could i change API license file or check if it’s valid or not please?

unfortunately not solved yet :S

The license file is an xml file mostly under instances/instance_name/ config. You can check the location it from IS administration(port 5555 of you didn’t change it during installation). Your product code should start with letter Y. IS licenses start with letter P.

I have checked license and they are both correct either for IS or API, data are fetched in license file correctly.
is there any reason behind being the package partially loaded?

There are many cases that can cause package to be partially loaded. Event Data Store cluster problems, license issues etc.
I suggest you check the internal data store and it’s connection from GW. Other than that I didn’t face any issues that can cause this problem…

Thanks Murat for your help :slight_smile:

1 Like