You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Likitha Shetty (JIRA)" <ji...@apache.org> on 2013/06/07 11:18:21 UTC

[jira] [Commented] (CLOUDSTACK-2170) NPE while updating the updatePhysicalNetwork to enable state with invalid ID

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

Likitha Shetty commented on CLOUDSTACK-2170:
--------------------------------------------

No NPE seen.
InvalidParameterValueException was thrown as expected - 
2013-06-07 14:12:47,658 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-18) Unexpected exception while executing org.apache.cloudstack.api.command.admin.network.UpdatePhysicalNetworkCmd
com.cloud.exception.InvalidParameterValueException: Physical Network with specified id doesn't exist in the system
        at com.cloud.network.NetworkServiceImpl.updatePhysicalNetwork(NetworkServiceImpl.java:2521)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.admin.network.UpdatePhysicalNetworkCmd.execute(UpdatePhysicalNetworkCmd.java:104)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
        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:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
                
> NPE while updating the updatePhysicalNetwork  to enable state with invalid ID
> -----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2170
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2170
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Network Controller
>    Affects Versions: 4.2.0
>            Reporter: Sailaja Mada
>            Assignee: Likitha Shetty
>             Fix For: 4.2.0
>
>
> Setup: Advanced Networking Zone with Nexus, MS : RHEL 6.3
> Steps:
> 1. Add VNMC provider to cloudstack:
> http://localhost/client/api?command=addNetworkServiceProvider&physicalnetworkid=200&name=CiscoVnmc
> 2) Tried to update the above provider state as enabled: (http://10.102.192.194:8096/client/api?command=updatePhysicalNetwork&id=4&state=Enabled) 
> Observation: 
> NPE while updating the updatePhysicalNetwork  to enable state with invalid ID 
> 2013-04-24 16:41:19,108 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-12) Executing org.apache.cloudstack.api.command.admin.network.UpdatePhysicalNetworkCmd for job-12
> 2013-04-24 16:41:19,147 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-12) Unexpected exception while executing org.apache.cloudstack.api.command.admin.network.UpdatePhysicalNetworkCmd
> java.lang.NullPointerException
>         at com.cloud.utils.AnnotationHelper.getTableName(AnnotationHelper.java:34)
>         at com.cloud.utils.exception.CloudRuntimeException.addProxyObject(CloudRuntimeException.java:59)
>         at com.cloud.network.NetworkServiceImpl.updatePhysicalNetwork(NetworkServiceImpl.java:2301)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.admin.network.UpdatePhysicalNetworkCmd.execute(UpdatePhysicalNetworkCmd.java:104)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         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:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-04-24 16:41:19,148 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-12) Complete async job-12, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: null
> 2013-04-24 16:41:23,502 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) VmStatsCollector is running...
> This XML file does not appear to have any style information associated with it. The document tree is shown below.
>       <queryasyncjobresultresponse cloud-stack-version="4.2.0-SNAPSHOT"><accountid>1daa4ce0-acca-11e2-8b37-c2ae49691a00</accountid><userid>1dac1908-acca-11e2-8b37-c2ae49691a00</userid><cmd>org.apache.cloudstack.api.command.admin.network.UpdatePhysicalNetworkCmd</cmd><jobstatus>2</jobstatus><jobprocstatus>0</jobprocstatus><jobresultcode>530</jobresultcode><jobresulttype>object</jobresulttype><jobresult><errorcode>530</errorcode><errortext>Command failed due to Internal Server Error</errortext></jobresult><created>2013-04-24T16:41:19+0530</created><jobid>6e7887c1-83da-4d02-98e7-2cc36949364b</jobid></queryasyncjobresultresponse>

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