<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: VIJava Browser &#8211; A Great Tool To Recommend!</title>
	<atom:link href="http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/</link>
	<description>A blog for architects and developers on virtualization and cloud computing</description>
	<lastBuildDate>Thu, 09 Sep 2010 09:56:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: yan</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2567</link>
		<dc:creator>yan</dc:creator>
		<pubDate>Thu, 19 Aug 2010 09:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2567</guid>
		<description>Hi Steve,
You are right,my lib is messed up with a vim25 jar file from AXIS stub.</description>
		<content:encoded><![CDATA[<p>Hi Steve,<br />
You are right,my lib is messed up with a vim25 jar file from AXIS stub.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jin</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2555</link>
		<dc:creator>Steve Jin</dc:creator>
		<pubDate>Thu, 19 Aug 2010 05:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2555</guid>
		<description>Hi Vishal,

Just wrote a comprehensive blog: http://www.doublecloud.org/2010/08/how-to-get-event-type-with-vsphere-api/. Hope you find it helpful.

Steve</description>
		<content:encoded><![CDATA[<p>Hi Vishal,</p>
<p>Just wrote a comprehensive blog: <a href="http://www.doublecloud.org/2010/08/how-to-get-event-type-with-vsphere-api/" rel="nofollow">http://www.doublecloud.org/2010/08/how-to-get-event-type-with-vsphere-api/</a>. Hope you find it helpful.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2533</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Tue, 17 Aug 2010 17:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2533</guid>
		<description>Steve,

Any reason why the severity is skipped from the Event object? in our NMS tool we need to set the severity for each event, and i was planning to have it same as your Enum - EventEventSeverity. we are currently processing 87 Events, it would be tough to parse the event name to get the severity.

is it possible to add severity to the event object?

Thanks
Vishal</description>
		<content:encoded><![CDATA[<p>Steve,</p>
<p>Any reason why the severity is skipped from the Event object? in our NMS tool we need to set the severity for each event, and i was planning to have it same as your Enum &#8211; EventEventSeverity. we are currently processing 87 Events, it would be tough to parse the event name to get the severity.</p>
<p>is it possible to add severity to the event object?</p>
<p>Thanks<br />
Vishal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jin</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2519</link>
		<dc:creator>Steve Jin</dc:creator>
		<pubDate>Tue, 17 Aug 2010 05:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2519</guid>
		<description>Hi Vishal,
I am going to GA the 2.1 very soon. You can either pick the source code from SVN right now or wait a little bit. I prefer the former because you can double check if the problem is solved. Please update the bug tracker upon validation.
As you said, the event object itself does not have field for the type, but the concrete event (subtypes of Event) does indicate something. For example, HostEnableAdminFailedEvent tells the nature of the event by its type name. Hope it helps.
Steve</description>
		<content:encoded><![CDATA[<p>Hi Vishal,<br />
I am going to GA the 2.1 very soon. You can either pick the source code from SVN right now or wait a little bit. I prefer the former because you can double check if the problem is solved. Please update the bug tracker upon validation.<br />
As you said, the event object itself does not have field for the type, but the concrete event (subtypes of Event) does indicate something. For example, HostEnableAdminFailedEvent tells the nature of the event by its type name. Hope it helps.<br />
Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2515</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Mon, 16 Aug 2010 23:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2515</guid>
		<description>Thanks Steve, for a quick fix, I am assuming i can pick it up in a patch release of 4.1.

One more question.

I see that when viClient reports events there is a type field {error&#124;info&#124;warning}, how do i get this info along with the event object, seems like event object doesnt have a severity or type field.

Thanks
Vishal</description>
		<content:encoded><![CDATA[<p>Thanks Steve, for a quick fix, I am assuming i can pick it up in a patch release of 4.1.</p>
<p>One more question.</p>
<p>I see that when viClient reports events there is a type field {error|info|warning}, how do i get this info along with the event object, seems like event object doesnt have a severity or type field.</p>
<p>Thanks<br />
Vishal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jin</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2506</link>
		<dc:creator>Steve Jin</dc:creator>
		<pubDate>Mon, 16 Aug 2010 15:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2506</guid>
		<description>Hi Yan,

It&#039;s most likely a classpath issue with AXIS generated stub included in your classpath. Remove it and try again.

-Steve</description>
		<content:encoded><![CDATA[<p>Hi Yan,</p>
<p>It&#8217;s most likely a classpath issue with AXIS generated stub included in your classpath. Remove it and try again.</p>
<p>-Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yan</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2502</link>
		<dc:creator>yan</dc:creator>
		<pubDate>Mon, 16 Aug 2010 08:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2502</guid>
		<description>Hi Setve,

when I run this tools,it throw following error:
Exception occurred during event dispatching:
java.lang.InstantiationError: com.vmware.vim25.VimPortType
	at com.vmware.vim25.mo.ServiceInstance.(ServiceInstance.java:82)
	at com.vmware.vim25.mo.ServiceInstance.(ServiceInstance.java:69)
	at vijavaBrowser.LoginDialog.onOk(LoginDialog.java:256)

I used this version vi java api:
vijava2120100715.jar

And I also have the same error when writing my own class when only invoke this constructor method:

public class newtest {

	public static void main(String[] args) throws RemoteException, MalformedURLException {
		ServiceInstance si = new ServiceInstance(new URL(&quot;https://10.10.10.147/sdk&quot;), &quot;root&quot;, &quot;password&quot;, true);
	}

}

It is the same code as in the tool source code, I can not figure out why,can you help me? Cause if I can not have this &quot;ServiceInstance&quot; I can do nothing</description>
		<content:encoded><![CDATA[<p>Hi Setve,</p>
<p>when I run this tools,it throw following error:<br />
Exception occurred during event dispatching:<br />
java.lang.InstantiationError: com.vmware.vim25.VimPortType<br />
	at com.vmware.vim25.mo.ServiceInstance.(ServiceInstance.java:82)<br />
	at com.vmware.vim25.mo.ServiceInstance.(ServiceInstance.java:69)<br />
	at vijavaBrowser.LoginDialog.onOk(LoginDialog.java:256)</p>
<p>I used this version vi java api:<br />
vijava2120100715.jar</p>
<p>And I also have the same error when writing my own class when only invoke this constructor method:</p>
<p>public class newtest {</p>
<p>	public static void main(String[] args) throws RemoteException, MalformedURLException {<br />
		ServiceInstance si = new ServiceInstance(new URL(&#8220;https://10.10.10.147/sdk&#8221;), &#8220;root&#8221;, &#8220;password&#8221;, true);<br />
	}</p>
<p>}</p>
<p>It is the same code as in the tool source code, I can not figure out why,can you help me? Cause if I can not have this &#8220;ServiceInstance&#8221; I can do nothing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jin</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2233</link>
		<dc:creator>Steve Jin</dc:creator>
		<pubDate>Fri, 06 Aug 2010 23:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2233</guid>
		<description>Thanks Vishal for filing the bug: https://sourceforge.net/tracker/index.php?func=detail&amp;aid=3040909&amp;group_id=228007&amp;atid=1073396. It&#039;s fixed. Check the bug record for more info.

Steve</description>
		<content:encoded><![CDATA[<p>Thanks Vishal for filing the bug: <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=3040909&amp;group_id=228007&amp;atid=1073396" rel="nofollow">https://sourceforge.net/tracker/index.php?func=detail&amp;aid=3040909&amp;group_id=228007&amp;atid=1073396</a>. It&#8217;s fixed. Check the bug record for more info.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jin</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2230</link>
		<dc:creator>Steve Jin</dc:creator>
		<pubDate>Fri, 06 Aug 2010 18:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2230</guid>
		<description>Hi Vishal,

This is a bug in vijava api. Could you please file a bug: https://sourceforge.net/tracker/?group_id=228007

Thanks!

Steve</description>
		<content:encoded><![CDATA[<p>Hi Vishal,</p>
<p>This is a bug in vijava api. Could you please file a bug: <a href="https://sourceforge.net/tracker/?group_id=228007" rel="nofollow">https://sourceforge.net/tracker/?group_id=228007</a></p>
<p>Thanks!</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://www.doublecloud.org/2010/02/vijava-browser-a-great-tool-to-recommend/comment-page-1/#comment-2228</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Fri, 06 Aug 2010 16:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=346#comment-2228</guid>
		<description>Fails to browse the HostProfiles, from HostProfileManager.
Got the following exception.
Caused by: java.lang.ClassCastException: [Lcom.vmware.vim25.ManagedObjectReference; cannot be cast to [Lcom.vmware.vim25.mo.Profile;
	at com.vmware.vim25.mo.ProfileManager.getProfile(ProfileManager.java:52)

Wrote a small code to test Profile[] getProfile call in HostProfilesManager. I get the same exception. is viJava broken for HostProfiles?

Thanks
V


  private void testHostProfiles() {
    HostProfileManager hpm = si.getHostProfileManager();   
    Profile[] profiles = hpm.getProfile(); // this call throws the exception.
    for (Profile p : profiles) {
      System.out.println(&quot;Profile &quot;+ p);
    }
  }
/*
 * Method from ProfileManager.java
  public Profile[] getProfile()
  {
    return (Profile[]) getCurrentProperty(&quot;profile&quot;); // this is the call in ProfileManager causing the exception.
  }
*/</description>
		<content:encoded><![CDATA[<p>Fails to browse the HostProfiles, from HostProfileManager.<br />
Got the following exception.<br />
Caused by: java.lang.ClassCastException: [Lcom.vmware.vim25.ManagedObjectReference; cannot be cast to [Lcom.vmware.vim25.mo.Profile;<br />
	at com.vmware.vim25.mo.ProfileManager.getProfile(ProfileManager.java:52)</p>
<p>Wrote a small code to test Profile[] getProfile call in HostProfilesManager. I get the same exception. is viJava broken for HostProfiles?</p>
<p>Thanks<br />
V</p>
<p>  private void testHostProfiles() {<br />
    HostProfileManager hpm = si.getHostProfileManager();<br />
    Profile[] profiles = hpm.getProfile(); // this call throws the exception.<br />
    for (Profile p : profiles) {<br />
      System.out.println(&#8220;Profile &#8220;+ p);<br />
    }<br />
  }<br />
/*<br />
 * Method from ProfileManager.java<br />
  public Profile[] getProfile()<br />
  {<br />
    return (Profile[]) getCurrentProperty(&#8220;profile&#8221;); // this is the call in ProfileManager causing the exception.<br />
  }<br />
*/</p>
]]></content:encoded>
	</item>
</channel>
</rss>
