Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
vidhya Trusted Contributor.
Trusted Contributor.
124 views

Unable to login to Userapplication

Hi, 

I  have installed IDM userapplication 4.7 in RHEL server. When i start the tomcat , the following errors are thrown the idapps.out log.  

It looks like Userapplication is not able to connect to Postgres using the port. Its port 5432 is not listening in the server, am not sure why and it did not throw any error during installation and configuration.  where can i change the postgres port number in userapplication

Is thete any settings i can look into it ? 

Anu help on this on how to clear t his error? 

 

idapps.out log: 

400 [ERROR] EboPortletProducer [RBPM] Producer 'IDMProv' error: init() method failed.
com.sssw.fw.exception.EboUnrecoverableSystemException: Failed to retrieve Portlet registration for portlet ID ThemeHelperPortlet.
at com.novell.afw.portlet.persist.jdbc.impl.EboRegistryPersistManager.getPortletRegistrationInfo(EboRegistryPersistManager.java:133)
at com.novell.afw.portlet.core.EboPortletContainer.autoRegisterPortlet(EboPortletContainer.java:286)
at com.novell.afw.portlet.core.EboPortletContainer.performAutoRegistrations(EboPortletContainer.java:255)
at com.novell.afw.portlet.producer.core.EboPortletProducer.init(EboPortletProducer.java:72)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4931)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.netiq.persist.PersistenceException: org.hibernate.HibernateException: Could not find datasource
at com.netiq.persist.HibernateUtil.getSessionFactory(HibernateUtil.java:94)
at com.netiq.persist.HibernateUtil.getCurrentSession(HibernateUtil.java:167)
at com.netiq.persist.HibernateDAO.findById(HibernateDAO.java:281)
at com.novell.afw.portlet.persist.jdbc.impl.EboPortletRegistrationInfoDAO.findById(EboPortletRegistrationInfoDAO.java:55)
at com.novell.afw.portlet.persist.jdbc.impl.EboRegistryPersistManager.getPortletRegistrationInfo(EboRegistryPersistManager.java:131)
... 20 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:91)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2833)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2829)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1840)
at com.netiq.persist.HibernateUtil.getSessionFactory(HibernateUtil.java:92)
... 24 more
Caused by: javax.naming.NamingException: Cannot create PoolableConnectionFactory (Connection to 10.42.56.121:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)
at org.apache.naming.NamingContext.lookup(NamingContext.java:856)
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
at org.apache.naming.NamingContext.lookup(NamingContext.java:827)
at org.apache.naming.NamingContext.lookup(NamingContext.java:173)
at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:152)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
at org.apache.naming.NamingContext.lookup(NamingContext.java:840)
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
at org.apache.naming.NamingContext.lookup(NamingContext.java:827)
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
at org.apache.naming.NamingContext.lookup(NamingContext.java:827)
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
at org.apache.naming.NamingContext.lookup(NamingContext.java:827)
at org.apache.naming.NamingContext.lookup(NamingContext.java:173)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:163)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
... 32 more
2019-11-12 01:55:22,447 [INFO] ActionServlet Loading chain catalog from jar:file:/opt/netiq/idm/apps/tomcat/webapps/IDMProv/WEB-INF/lib/struts-core.jar!/org/apache/struts/chain/chain-config.xml
2019-11-12 01:55:22,864 [INFO] TilesPlugin Tiles definition factory loaded for module ''.
2019-11-12 01:55:23,139 [INFO] EngineImpl [RBPM] Workflow Engine setState: [STARTING]
2019-11-12 01:55:35,207 [DEBUG] LoadContextConfigServlet [IDMDASH] NetIQ Identity Manager Dashboard version 4.7.0 was built on

 

 

Regards,

Vidhya.

Labels (1)
0 Likes
5 Replies
Knowledge Partner
Knowledge Partner

Re: Unable to login to Userapplication

When reading a Java error stack.  Two things to look at:

1) find the top most error, sometimes the class name reveals what it is doing. Sometimes you have to look down the stack to see what is going on.  In this case, less than helpful.

2) Look for a "Caused by:" element which in this case is very helpful:

Caused by: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)

 

So the Datasource (Aka Database for UA) cannot be found. 

Next one tells you more.

Caused by: javax.naming.NamingException: Cannot create PoolableConnectionFactory (Connection to 10.42.56.121:5432 refused. Check that the

Cannot connect to your DB on that address and port.

Is the DB working? Is there a firewall, etc?

 

0 Likes
rivey Super Contributor.
Super Contributor.

Re: Unable to login to Userapplication

The IDMProv init() method failure is a known issue.  I have a couple customers with this issue currently and have SR's open.  It is being targeted as either a 4.7.3.2 or 4.7.4 fix from what I'm being told.

The error is not consistent.  If you simply restart user application, it may not fail the next time.  Until the fix is issued, you'll need to monitor your catalina.out to look for that error, if it occurs during startup, simply restart until it starts up without that error.

0 Likes
Knowledge Partner
Knowledge Partner

Re: Unable to login to Userapplication

Well that is annoying!  Thanks for that tidbit. I would have spent tiime looking at the DB connection from that error.

0 Likes
vidhya Trusted Contributor.
Trusted Contributor.

Re: Unable to login to Userapplication

Thankyou for the Response. Yes right now we see it as database connection issue, port number is blocked in the server. Trying to use different port number to see how it goes
0 Likes
Knowledge Partner
Knowledge Partner

Re: Unable to login to Userapplication

If the port number is blocked, changing it is less than likely to work, instead you need to find the source of the block I suspect.

But read Rob Ivey's earlier post that there is possibly a bug and this MIGHT be intermittent in which case a restart MIGHT help.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.