airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chathuri Wimalasena (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-914) Failed to authenticate when connecting to an existing database
Date Wed, 11 Sep 2013 19:32:51 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13764663#comment-13764663
] 

Chathuri Wimalasena commented on AIRAVATA-914:
----------------------------------------------

Error occurs from the authenticate method of the JDBCUserStore class. Below is the error message
we get. It seems the hash generated for the credential does not match with the hash already
saved in the database. We did not get this error in previous releases because we used to override
user information at each time server is created. For this release, we changed it to save user
information only for the initial database creation. The hash function we are using, seems
to have a parameter related to the machine it ran the server. 

Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=false]
did not match the expected credentials.
org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken
- admin, rememberMe=false] did not match the expected credentials.
                
> 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

Mime
View raw message