johndemic
Contributor
Contributor

WaitForUpdates Not Working After Upgrading to 2.5u6

Hello All,

We recently upgraded Virtual Center from 2.5u5 to 2.5u6. After the upgrade all SOAP calls using the "waitForUpdates" method are failing in Tomcat on VC. I've appended the stack trace in proxy.log. All subsequent calls to waitForUpdates have failed after this exception.

Any help would be greatly appreciated,

-jd

[2010-03-17 15:08:27,685,Thread-39<=>,VIMProxyImpl] UpdatesThread ServiceNotAvailableException

com.vmware.sdk.proxy2.exceptions.ServiceNotAvailableException: java.net.SocketException: Connection reset

at com.vmware.sdk.proxy2.VimPortTypeWrapper.waitForUpdates(Unknown Source)

at com.vmware.sdk.proxy2.VIMProxyImpl$1.run(Unknown Source)

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

Caused by: java.net.SocketException: Connection reset

at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)

at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

at org.apache.axis.client.Call.invoke(Call.java:2748)

at org.apache.axis.client.Call.invoke(Call.java:2424)

at org.apache.axis.client.Call.invoke(Call.java:2347)

at org.apache.axis.client.Call.invoke(Call.java:1804)

at com.vmware.vim25.VimBindingStub.waitForUpdates(Unknown Source)

... 3 more

Caused by: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(Unknown Source)

at java.io.BufferedInputStream.fill(Unknown Source)

at java.io.BufferedInputStream.read(Unknown Source)

at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)

... 13 more

[2010-03-17 15:08:29,498,Thread-39<=>,VIMProxyImpl] UpdatesThread ServiceNotAvailableException

com.vmware.sdk.proxy2.exceptions.ServiceNotAvailableException: java.lang.reflect.InvocationTargetException

at com.vmware.sdk.proxy2.VimPortTypeWrapper.waitForUpdates(Unknown Source)

at com.vmware.sdk.proxy2.VIMProxyImpl$1.run(Unknown Source)

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

Caused by: java.lang.reflect.InvocationTargetException

at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)

at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

at org.apache.axis.client.Call.invoke(Call.java:2748)

at org.apache.axis.client.Call.invoke(Call.java:2424)

at org.apache.axis.client.Call.invoke(Call.java:2347)

at org.apache.axis.client.Call.invoke(Call.java:1804)

at com.vmware.vim25.VimBindingStub.waitForUpdates(Unknown Source)

... 3 more

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)

at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)

at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)

at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)

... 13 more

Caused by: java.lang.NoClassDefFoundError: java/net/ConnectException

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(Unknown Source)

at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

... 21 more

0 Kudos
1 Reply
Steve_Jin
Expert
Expert

Hi JD,

Thanks for reporting this issue!

I assume the exactly same client code lead to different results in different versions. If so, I think it goes beyond what this forum can help. Please submit a bug through VMware Tech Support team.

Thanks!



Steve JIN

Author of VMware VI and vSphere SDK (Prentice Hall)

Creator of open source vSphere (VI) Java API(Tutorial, Testimonials, Download, Samples, Forum)

Blog: DoubleCloud.ORG ( Top 10 Best Practices,[Object Model|http://www.doublecloud.org/2010/02/object-model-of-vmware-vsphere-api-a-big-picture-in-2-minutes/],[Common Mistakes|http://www.doublecloud.org/2010/01/31/common-mistakes-using-vmware-vi-and-vsphere-sdk/], Tiny REST API, Cloud Application Architecture)

Twitter: @sjin2008

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org