Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Recent Tasks breaks with java.lang.NoClassDefFoundError

$
0
0

The error happens intermittently. I'm running vSphere Web Client: Version 5.1.0 Build 1063329 with vCenter Support assistant installed.

 

Here is the error message that covers recent tasks:

faultCode:Server.Processing

faultString:'java.lang.NoClass

DelFoundError:

com/vmware/vin/vmomi/client

Client'faultDetail:null'

When recent tasks is broken I see the following log message in vsphere_client_virgo log:

[2013-07-12 14:43:55.720] ERROR [ERROR] data-service-pool-44          c.v.v.vim.data.adapters.search.impl.PropertyCollectorDataAdapter  Error getting data from PropertyCollector for QS: ds-auto-generated-name-4 java.lang.NullPointerException: null

  at com.vmware.vise.vim.commons.MixedUtil.throwIfSessionNotAuthenticated(MixedUtil.java:275)

  at com.vmware.vise.vim.data.adapters.search.impl.PropertyCollectorDataAdapter.getResultSet(PropertyCollectorDataAdapter.java:338)

  at com.vmware.vise.vim.data.adapters.search.impl.PropertyCollectorDataAdapter.processQuery(PropertyCollectorDataAdapter.java:240)

  at com.vmware.vise.vim.data.adapters.search.impl.PropertyCollectorDataAdapter.getData(PropertyCollectorDataAdapter.java:193)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getDataFromAdapter(DataAdapterUtil.java:126)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getResultFromAdapter(DataAdapterUtil.java:92)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.access$000(DataAdapterUtil.java:31)

  at com.vmware.vise.data.query.impl.DataAdapterUtil$1.run(DataAdapterUtil.java:69)

  at com.vmware.vise.util.concurrent.ExecutorUtil$1.run(ExecutorUtil.java:185)

  at com.vmware.vise.util.concurrent.ExecutorUtil$ThreadContextPropagatingRunnable.run(ExecutorUtil.java:573)

  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

 

 

[2013-07-12 14:43:55.727] ERROR [ERROR] data-service-pool-42          com.vmware.vise.data.query.impl.DataServiceImpl                   Error occurred while executing query:

QuerySpec

   QueryName: ds-auto-generated-name-4

   ResourceSpec

      Constraint: RelationalConstraint

         TargetType: Task

         Relationship: recentTask

         IsSourceConstrained: true

         Constraint: ObjectIdentityConstraint

            TargetType: TaskManager

            Target: ManagedObjectReference: type = TaskManager, value = TaskManager, serverGuid = 9AD7FFD6-176E-4FA3-9536-E85066B1BBDB

      PropertySpec[1]

         ProviderType: Task

         Relationship: null

         Properties[1]

            PropertyName: info

   ResultSpec:

      Offset: null

      MaxResultCount: null

      OrderingCriteria

         OrderPropertySpec[1]

            ProviderType: Object

            Relationship: null

            SortType: ASCENDING

            OrderingProperties[1]

               PropertyName: id

com.vmware.vim.binding.vmodl.MethodFault: null

  at com.vmware.vise.vim.commons.MixedUtil.getMethodFault(MixedUtil.java:118)

  at com.vmware.vise.vim.data.adapters.search.impl.PropertyCollectorDataAdapter.processQuery(PropertyCollectorDataAdapter.java:245)

  at com.vmware.vise.vim.data.adapters.search.impl.PropertyCollectorDataAdapter.getData(PropertyCollectorDataAdapter.java:193)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getDataFromAdapter(DataAdapterUtil.java:126)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getResultFromAdapter(DataAdapterUtil.java:92)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.access$000(DataAdapterUtil.java:31)

  at com.vmware.vise.data.query.impl.DataAdapterUtil$1.run(DataAdapterUtil.java:69)

  at com.vmware.vise.util.concurrent.ExecutorUtil$1.run(ExecutorUtil.java:185)

  at com.vmware.vise.util.concurrent.ExecutorUtil$ThreadContextPropagatingRunnable.run(ExecutorUtil.java:573)

  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NullPointerException: null

  at com.vmware.vise.vim.commons.MixedUtil.throwIfSessionNotAuthenticated(MixedUtil.java:275)

  at com.vmware.vise.vim.data.adapters.search.impl.PropertyCollectorDataAdapter.getResultSet(PropertyCollectorDataAdapter.java:338)

  at com.vmware.vise.vim.data.adapters.search.impl.PropertyCollectorDataAdapter.processQuery(PropertyCollectorDataAdapter.java:240)

  ... 10 common frames omitted

 

 

[2013-07-12 14:43:55.728] ERROR [ERROR] data-service-pool-42          com.vmware.vsphere.client.task.impl.TaskSearchAdapter             Error processing task adapter query:  java.lang.NullPointerException: null

  at com.vmware.vise.vim.commons.VimSessionUtil.getService(VimSessionUtil.java:57)

  at com.vmware.vise.vim.commons.VimSessionUtil.getService(VimSessionUtil.java:47)

  at com.vmware.vsphere.client.task.impl.TaskSearchUtil.getSessionUser(TaskSearchUtil.java:158)

  at com.vmware.vsphere.client.task.impl.TaskSearchAdapter.getRecentTasks(TaskSearchAdapter.java:295)

  at com.vmware.vsphere.client.task.impl.TaskSearchAdapter.processQuery(TaskSearchAdapter.java:125)

  at com.vmware.vsphere.client.task.impl.TaskSearchAdapter.getData(TaskSearchAdapter.java:78)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getDataFromAdapter(DataAdapterUtil.java:126)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getResultFromAdapter(DataAdapterUtil.java:92)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.access$000(DataAdapterUtil.java:31)

  at com.vmware.vise.data.query.impl.DataAdapterUtil$1.run(DataAdapterUtil.java:69)

  at com.vmware.vise.util.concurrent.ExecutorUtil$1.run(ExecutorUtil.java:185)

  at com.vmware.vise.util.concurrent.ExecutorUtil$ThreadContextPropagatingRunnable.run(ExecutorUtil.java:573)

  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

When everything is working, including recent tasks, I see this error message:

[2013-07-17 11:17:14.482] ERROR [ERROR] data-service-pool-39          com.vmware.vise.util.concurrent.WorkerThread                      data-service-pool-39 terminated with exception:  java.lang.NoClassDefFoundError: com/vmware/vim/vmomi/client/Client

  at com.vmware.vco.session.impl.VcoUriAsExtensionLookup.getVcExtensionManager(VcoUriAsExtensionLookup.java:150)

  at com.vmware.vco.session.impl.VcoUriAsExtensionLookup.calculateVcoServiceConfigurations(VcoUriAsExtensionLookup.java:114)

  at com.vmware.vco.session.impl.VcoUriAsExtensionLookup.access$000(VcoUriAsExtensionLookup.java:33)

  at com.vmware.vco.session.impl.VcoUriAsExtensionLookup$1.reset(VcoUriAsExtensionLookup.java:49)

  at com.vmware.vco.session.impl.VcoUriAsExtensionLookup$1.reset(VcoUriAsExtensionLookup.java:46)

  at com.vmware.vco.adapter.AbstractCachedValue.get(AbstractCachedValue.java:15)

  at com.vmware.vco.session.impl.VcoUriAsExtensionLookup.getVcoServiceConfigurations(VcoUriAsExtensionLookup.java:101)

  at com.vmware.vco.session.impl.VcoServiceFactoryImpl.getVcoServiceConfigurations(VcoServiceFactoryImpl.java:386)

  at com.vmware.vco.session.impl.VcoServiceFactoryImpl.createVcoServices(VcoServiceFactoryImpl.java:99)

  at com.vmware.vco.session.impl.VcoSessionFactoryImpl.lookupVcoSession(VcoSessionFactoryImpl.java:363)

  at com.vmware.vco.session.impl.VcoSessionFactoryImpl.getVcoServicesForVc(VcoSessionFactoryImpl.java:323)

  at com.vmware.vco.session.impl.VcoSessionFactoryImpl.getVcoServices(VcoSessionFactoryImpl.java:144)

  at com.vmware.vco.adapter.dataservice.RecentActivitiesAdapter.getServices(RecentActivitiesAdapter.java:392)

  at com.vmware.vco.adapter.dataservice.RecentActivitiesAdapter.getWorkflowExecutions(RecentActivitiesAdapter.java:319)

  at com.vmware.vco.adapter.dataservice.RecentActivitiesAdapter.processQuery(RecentActivitiesAdapter.java:88)

  at com.vmware.vco.adapter.dataservice.RecentActivitiesAdapter.getData(RecentActivitiesAdapter.java:63)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getDataFromAdapter(DataAdapterUtil.java:126)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.getResultFromAdapter(DataAdapterUtil.java:92)

  at com.vmware.vise.data.query.impl.DataAdapterUtil.access$000(DataAdapterUtil.java:31)

  at com.vmware.vise.data.query.impl.DataAdapterUtil$1.run(DataAdapterUtil.java:69)

  at com.vmware.vise.util.concurrent.ExecutorUtil$1.run(ExecutorUtil.java:185)

  at com.vmware.vise.util.concurrent.ExecutorUtil$ThreadContextPropagatingRunnable.run(ExecutorUtil.java:573)

  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: com.vmware.vim.vmomi.client.Client in KernelBundleClassLoader: [bundle=com.vmware.vco.vcoservice_5.1.0]

  at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:138)

  at java.lang.ClassLoader.loadClass(Unknown Source)

  ... 25 common frames omitted

Caused by: java.lang.ClassNotFoundException: com.vmware.vim.vmomi.client.Client

  at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

  at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

  at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

  at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

  at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:134)

  ... 26 common frames omitted

I noticed this question is similar to: http://comm-prod.vmware.com/message/2230187.

  • is it with vSphere Web Client 5.5 beta or 5.1?  vSphere Web Client 5.1
  • is it happening with specific views and when your plugin is involved?  Is the UI affected at all? After the UI loads, recent tasks pane breaks.
  • does your plugin have a data provider which uses DataException or throw exceptions?  In that case can you log when this happens and see if it's related?

Yes, my plugin has a data provider but it's not throwing any exceptions (added try catches and logging around constructor and getData methods).


Thanks in advance,

Ben


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>