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

ASF GitHub Bot commented on CLOUDSTACK-8669:
--------------------------------------------

Github user karuturi commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/695#discussion_r37133216
  
    --- Diff: 
vmware-base/test/com/cloud/hypervisor/vmware/util/VmwareContextTest.java ---
    @@ -0,0 +1,46 @@
    +package com.cloud.hypervisor.vmware.util;
    +
    +import java.io.InputStream;
    +import java.io.OutputStream;
    +import java.net.HttpURLConnection;
    +
    +import org.junit.Test;
    +import org.junit.runner.RunWith;
    +import org.mockito.Mockito;
    +import org.mockito.runners.MockitoJUnitRunner;
    +
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    --- End diff --
    
    license generated from an intellij template... rat didnt complain.. will 
rearrange it anyway.. 


> [VMWare] create volume failed due to Exception: 
> java.lang.NullPointerException Message: charsetName
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8669
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8669
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Volumes
>    Affects Versions: 4.6.0
>         Environment: Latest build from ACS master with commit 
> 2984acca83fff03c2ad8bdd28c097e797d4ce087 
> Hypervisor: VMWares
>            Reporter: Sanjeev N
>            Assignee: Rajani Karuturi
>            Priority: Critical
>         Attachments: management-server.zip
>
>
> [VMWare] create volume failed due to Exception: 
> java.lang.NullPointerException Message: charsetName
> Steps to reproduce:
> ================
> 1.Bring up CS in advanced zone with vmware cluster
> 2.Deploy one guest vm using default cent os template
> 3.Create one data disk with shared disk offering
> 4.Attach the data disk to the vm created in step 2
> Result:
> =====
> Attach volume failed with NPE:
> 2015-07-23 16:06:58,103 ERROR [c.c.s.r.VmwareStorageProcessor] 
> (DirectAgent-64:ctx-6becb596 10.81.28.111, job-48/job-49, cmd: 
> CreateObjectCommand) create volume failed due to Exception: 
> java.lang.NullPointerException
> Message: charsetName
> java.lang.NullPointerException: charsetName
>         at java.io.InputStreamReader.<init>(InputStreamReader.java:99)
>         at 
> com.cloud.hypervisor.vmware.util.VmwareContext.uploadResourceContent(VmwareContext.java:486)
>         at 
> com.cloud.hypervisor.vmware.mo.VirtualMachineMO.detachDisk(VirtualMachineMO.java:1217)
>         at 
> com.cloud.storage.resource.VmwareStorageProcessor.createVolume(VmwareStorageProcessor.java:1545)
>         at 
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:113)
>         at 
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:56)
>         at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:470)
>         at 
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:302)
>         at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>         at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at 
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>         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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>         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:722)
> 2015-07-23 16:06:58,104 DEBUG [c.c.a.m.DirectAgentAttache] 
> (DirectAgent-64:ctx-6becb596) Seq 2-8089027880710832216: Response Received:
> 2015-07-23 16:06:58,104 DEBUG [c.c.a.t.Request] (DirectAgent-64:ctx-6becb596) 
> Seq 2-8089027880710832216: Processing:  { Ans: , MgmtId: 187822473365406, 
> via: 2, Ver: v1, Flags: 10, 
> [{"org.apache.cloudstack.storage.command.CreateObjectAnswer":{"result":false,"details":"java.lang.NullPointerException:
>  charsetName","wait":0}}] }
> 2015-07-23 16:06:58,105 DEBUG [c.c.a.t.Request] 
> (Work-Job-Executor-10:ctx-d0586dc9 job-48/job-49 ctx-7737cd68) Seq 
> 2-8089027880710832216: Received:  { Ans: , MgmtId: 187822473365406, via: 2, 
> Ver: v1, Flags: 10, { CreateObjectAnswer } }
> 2015-07-23 16:06:58,112 WARN  [o.a.c.s.d.ObjectInDataStoreManagerImpl] 
> (Work-Job-Executor-10:ctx-d0586dc9 job-48/job-49 ctx-7737cd68) Unsupported 
> data object (VOLUME, 
> org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@58dd2323), no 
> need to delete from object in store ref table
> Please look for job-48 in the attached Management server log file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to