Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.2.0
-
None
-
Security Level: Public (Anyone can view this level - this is the default.)
-
None
Description
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)
Attachments
Issue Links
- is related to
-
CLOUDSTACK-5023 Deleting Port Forwarding Rule fails when generating usage events are enabled
- Resolved