cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Grizzanti (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-5220) NullPointerException when invalid zone is passed into UsageEventUtils
Date Wed, 20 Nov 2013 19:56:35 GMT

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

David Grizzanti commented on CLOUDSTACK-5220:
---------------------------------------------

Given that this issue is appearing in more places than just one, I'd like to propose a generic
approach to this and update the Usage Event Utils code to leave off the Zone UUID when an
invalid zone is passed in (for events where a zone may not be relevant).

Patch @ https://reviews.apache.org/r/15722/ (for 4.2.0)

> NullPointerException when invalid zone is passed into UsageEventUtils
> ---------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5220
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5220
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.2.0
>            Reporter: David Grizzanti
>            Assignee: David Grizzanti
>
> When generating usage events are enabled (using RabbitMQEventBus bean configuration),
enabling a remote access VPN on a IP Address/network fails.  This issue appeared with CLOUDSTACK-5023
and CLOUDSTACK-5062 as well for similar reasons.
> Error seen in the log:
> 2013-11-20 09:43:17,633 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-95:job-2567
= [ f9f87613-f944-45dd-8e53-b6cd8d70bf5b ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.vpn.CreateRemoteAccessVpnCmd
> java.lang.NullPointerException
> 	at com.cloud.event.UsageEventUtils.publishUsageEvent(UsageEventUtils.java:147)
> 	at com.cloud.event.UsageEventUtils.publishUsageEvent(UsageEventUtils.java:81)
> 	at com.cloud.network.vpn.RemoteAccessVpnManagerImpl.startRemoteAccessVpn(RemoteAccessVpnManagerImpl.java:416)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at com.cloud.network.vpn.RemoteAccessVpnManagerImpl.startRemoteAccessVpn(RemoteAccessVpnManagerImpl.java:85)
> 	at org.apache.cloudstack.api.command.user.vpn.CreateRemoteAccessVpnCmd.execute(CreateRemoteAccessVpnCmd.java:168)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> 	at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:679)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message