You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Minder (JIRA)" <ji...@apache.org> on 2013/07/02 22:23:20 UTC

[jira] [Updated] (KNOX-57) NPE when GATEWAY_HOME deleted out from underneath a running gateway instance

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

Kevin Minder updated KNOX-57:
-----------------------------

    Fix Version/s: 0.3.0
    
> NPE when GATEWAY_HOME deleted out from underneath a running gateway instance
> ----------------------------------------------------------------------------
>
>                 Key: KNOX-57
>                 URL: https://issues.apache.org/jira/browse/KNOX-57
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Kevin Minder
>            Assignee: Kevin Minder
>             Fix For: 0.3.0
>
>         Attachments: KNOX-57.patch
>
>
> This occurs when the directory in which the Knox Gateway is installed is deleted while the Gateway is running.  In particular the gateway is monitoring the deployments directory and doesn't handle it well when that is deleted.
> java.lang.NullPointerException
> 	at org.apache.hadoop.gateway.GatewayServer$InternalTopologyListener.handleTopologyEvent(GatewayServer.java:354)
> 	at org.apache.hadoop.gateway.topology.file.FileTopologyProvider.notifyChangeListeners(FileTopologyProvider.java:150)
> 	at org.apache.hadoop.gateway.topology.file.FileTopologyProvider.reloadTopologies(FileTopologyProvider.java:115)
> 	at org.apache.hadoop.gateway.topology.file.FileTopologyProvider.handleFileEvent(FileTopologyProvider.java:181)
> 	at org.apache.hadoop.gateway.topology.file.FileTopologyProvider.fileDeleted(FileTopologyProvider.java:192)
> 	at org.apache.commons.vfs2.events.DeleteEvent.notify(DeleteEvent.java:36)
> 	at org.apache.commons.vfs2.provider.AbstractFileSystem.fireEvent(AbstractFileSystem.java:600)
> 	at org.apache.commons.vfs2.provider.AbstractFileSystem.fireFileDeleted(AbstractFileSystem.java:550)
> 	at org.apache.commons.vfs2.impl.DefaultFileMonitor$FileMonitorAgent.check(DefaultFileMonitor.java:634)
> 	at org.apache.commons.vfs2.impl.DefaultFileMonitor$FileMonitorAgent.access$200(DefaultFileMonitor.java:430)
> 	at org.apache.commons.vfs2.impl.DefaultFileMonitor.run(DefaultFileMonitor.java:385)
> 	at java.lang.Thread.run(Thread.java:680)

--
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