You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Eroma (JIRA)" <ji...@apache.org> on 2015/06/18 16:50:02 UTC

[jira] [Closed] (AIRAVATA-914) Failed to authenticate when connecting to an existing database

     [ https://issues.apache.org/jira/browse/AIRAVATA-914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eroma closed AIRAVATA-914.
--------------------------
    Resolution: Not A Problem

User store will be handled by a third party tool.Only user name will be listed in the Airavata registry in future releases.

> Failed to authenticate when connecting to an existing database
> --------------------------------------------------------------
>
>                 Key: AIRAVATA-914
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-914
>             Project: Airavata
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 0.9
>            Reporter: Chathuri Wimalasena
>            Assignee: Chathuri Wimalasena
>              Labels: Contributor
>             Fix For: 1.0
>
>
> I have a backup of 0.8 paramchem database. I restore the database in my local machine and tried to connect to it with 0.9 RC1. I'm getting authentication failure exception when I tried to connect to registry using XBaya. 
> Previously in registry service code, we override Gateway info, User Info at each time airavata server is started. But for 0.9 release, we changed it to add those basic info only for the initial registry creation. With the previous code, it will not give authentication failure exception. 
> We need to figure out why the authentication failing when we point to an already created database. 
> Below is the stack trace I'm getting in xbaya console. 
> org.apache.airavata.client.api.exception.AiravataAPIInvocationException: Error while initializing the Airavata API
> 	at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:64)
> 	at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:43)
> 	at org.apache.airavata.xbaya.ui.dialogs.registry.RegistryWindow.getAiravataAPI(RegistryWindow.java:260)
> 	at org.apache.airavata.xbaya.ui.dialogs.registry.RegistryWindow.ok(RegistryWindow.java:121)
> 	at org.apache.airavata.xbaya.ui.dialogs.registry.RegistryWindow.access$100(RegistryWindow.java:54)
> 	at org.apache.airavata.xbaya.ui.dialogs.registry.RegistryWindow$2.actionPerformed(RegistryWindow.java:236)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
> 	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> 	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
> 	at java.awt.Component.processMouseEvent(Component.java:6414)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
> 	at java.awt.Component.processEvent(Component.java:6179)
> 	at java.awt.Container.processEvent(Container.java:2083)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4776)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2141)
> 	at java.awt.Component.dispatchEvent(Component.java:4604)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2127)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2489)
> 	at java.awt.Component.dispatchEvent(Component.java:4604)
> 	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
> 	at java.awt.EventQueue.access$400(EventQueue.java:82)
> 	at java.awt.EventQueue$2.run(EventQueue.java:676)
> 	at java.awt.EventQueue$2.run(EventQueue.java:674)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
> 	at java.awt.EventQueue$3.run(EventQueue.java:690)
> 	at java.awt.EventQueue$3.run(EventQueue.java:688)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
> 	at java.awt.Dialog$1.run(Dialog.java:1049)
> 	at java.awt.Dialog$3.run(Dialog.java:1101)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.awt.Dialog.show(Dialog.java:1099)
> 	at java.awt.Component.show(Component.java:1615)
> 	at java.awt.Component.setVisible(Component.java:1567)
> 	at java.awt.Window.setVisible(Window.java:843)
> 	at java.awt.Dialog.setVisible(Dialog.java:984)
> 	at org.apache.airavata.xbaya.ui.dialogs.XBayaDialog.show(XBayaDialog.java:187)
> 	at org.apache.airavata.xbaya.ui.dialogs.registry.RegistryWindow.show(RegistryWindow.java:95)
> 	at org.apache.airavata.xbaya.util.XBayaUtil.updateJCRRegistryInfo(XBayaUtil.java:161)
> 	at org.apache.airavata.xbaya.ui.menues.RegistryMenuItem$1.actionPerformed(RegistryMenuItem.java:97)
> 	at org.apache.airavata.xbaya.ui.widgets.ToolbarButton.actionPerformed(ToolbarButton.java:55)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
> 	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> 	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
> 	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
> 	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
> 	at java.awt.Component.processMouseEvent(Component.java:6414)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
> 	at java.awt.Component.processEvent(Component.java:6179)
> 	at java.awt.Container.processEvent(Container.java:2083)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4776)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2141)
> 	at java.awt.Component.dispatchEvent(Component.java:4604)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2127)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2489)
> 	at java.awt.Component.dispatchEvent(Component.java:4604)
> 	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
> 	at java.awt.EventQueue.access$400(EventQueue.java:82)
> 	at java.awt.EventQueue$2.run(EventQueue.java:676)
> 	at java.awt.EventQueue$2.run(EventQueue.java:674)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
> 	at java.awt.EventQueue$3.run(EventQueue.java:690)
> 	at java.awt.EventQueue$3.run(EventQueue.java:688)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> Caused by: org.apache.airavata.client.api.exception.AiravataAPIInvocationException: Error while initializing the Airavata API
> 	at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:167)
> 	at org.apache.airavata.client.AiravataAPIFactory.getAPI(AiravataAPIFactory.java:61)
> 	... 89 more
> Caused by: java.lang.RuntimeException: Failed : HTTP error code : 401
> 	at org.apache.airavata.rest.client.ConfigurationResourceClient.getEventingURI(ConfigurationResourceClient.java:507)
> 	at org.apache.airavata.rest.client.RegistryClient.getEventingServiceURI(RegistryClient.java:168)
> 	at org.apache.airavata.client.AiravataClient.createConfig(AiravataClient.java:121)
> 	at org.apache.airavata.client.AiravataClient.initialize(AiravataClient.java:155)
> 	... 90 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)