Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 480A710793 for ; Wed, 11 Sep 2013 16:08:01 +0000 (UTC) Received: (qmail 46283 invoked by uid 500); 11 Sep 2013 16:08:01 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 46142 invoked by uid 500); 11 Sep 2013 16:08:00 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 44400 invoked by uid 99); 11 Sep 2013 16:07:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 16:07:53 +0000 Date: Wed, 11 Sep 2013 16:07:52 +0000 (UTC) From: "Chathuri Wimalasena (JIRA)" To: dev@airavata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AIRAVATA-914) Failed to authenticate when connecting to an existing database MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AIRAVATA-914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chathuri Wimalasena updated AIRAVATA-914: ----------------------------------------- Assignee: Chathuri Wimalasena > 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 > Priority: Blocker > Fix For: 0.9 > > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira