osdir.com
mailing list archive

Subject: Using IKVM - msg#00002

List: java.ikvm.devel

Date: Prev Next Index Thread: Prev Next Index
I was faced with a task of building a Windows application (.NET, what
else?) and hooking up with a Java-based server that uses SSLSockets
and Anonymous Ciphers (DH)...

.NET doesn't have a library that can handle what I needed believe it
or not... need my SSLSockets! Found a 3rd party that does SSLSockets
via COM, but still no Anonymous Ciphers. I was avery frustrated at
that point and was about to give in and do the whole thing in Java.

Lo and behold, IKVM... writing Java in .NET? This I gotta see...
*writing code* Bam! It works!!

IKVM was a life saver for me! Thanks to you Jeroen F. and those who
contributed to the project!

Two questions...

1. your docs says GNU.Classpath... but we got OpenJDK... and
2. I'm seeing a couple of throws in Mono's MoMA. Isn't IKVM 100%
complaint with Mono 1.9 yet?

Regards,
-rob

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: JMX connector using Web Service

More info, when i manually make the connection i get the following exception :System.TypeInitializationException: Une exception a été levée par l'initialiseur de type pour 'com.sun.jmx.remote.ws.client.JMXW SConnector'. ---> System.TypeInitializationException: Une exception a été levée par l'initialiseur de type pour 'javax.xml.ws.wsaddressing.W3CEndpointReference'. ---> java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from ikvmres://com.ullink.jmx,%20Ve rsion=0.0.0.0,%20Culture=neutral,%20PublicKeyToken=null/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)    --- Fin de la trace de la pile d'exception interne ---   à System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(IntPtr type)   à System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type)    à IKVM.Internal.TypeWrapper.RunClassInit()   à IKVM.NativeCode.java.lang.Class.forName0(String name, Boolean initialize, Object loader)   à java.lang.Class.forName0(String , Boolean , ClassLoader )    à java.lang.Class.forName(String className)   à com.sun.jmx.remote.ws.DependencyChecker.checkClass(String , String , String )   à com.sun.jmx.remote.ws.DependencyChecker.checkDependencies()    à com.sun.jmx.remote.ws.client.JMXWSConnector..cctor()   --- Fin de la trace de la pile d'exception interne ---   à com.sun.jmx.remote.ws.client.JMXWSConnector..ctor(JMXServiceURL url, Map map)    à JMXConsole.Program.Main(String[] args) dans C:\visualWorkspace\JMXConsole\JMXConsole\Program.cs:ligne 35It seems that i'm looking for a 2.1 version of JAXB, and ikvm is using 2.0, am i wrong ? Thanks,Antoine.2008/6/3 Antoine Perridy <antoine.perridy@xxxxxxxxx>: Hi Jeroen! I wanna connect to a JMX connector in web service . I'm using external library which implements that connector (JSR 262, Web Services Connector for Java Management Extensions (JMX) Agents).  Here is my client in C#:          // Update with your agent port         int port = 9998;         // Update with your agent host         String host = "localhost";         // Update with your agent url path         String urlPath = "/jmxws";         // Create JMX Agent URL         JMXServiceURL url = "" style="color:blue">new JMXServiceURL("ws", host, port, urlPath);         // Connect the JMXConnector         JMXConnector connector = JMXConnectorFactory.connect(url, null); // Exception raised           // Get the MBeanServerConnection         MBeanServerConnection connection = connector.getMBeanServerConnection();           //SimpleClient.printProperties(connection);           // getAttribute         ObjectName mbeanName = new ObjectName("punki:type=User");         String value = (String) connection.getAttribute(mbeanName, "Name");         System.Console.WriteLine("Received : " + value);         // close connection         connector.close();    System.Console.WriteLine("Connection closed.");  I get the following error message : "java.net.MalformedURLException: Unsupported protocol: ws " The same client in java is working.Do you have any idea, do i miss something ?Thanks a lot :) Antoine. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Ikvm-developers mailing list Ikvm-developers@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ikvm-developers

Next Message by Date: click to view message preview

Re: Using IKVM

Rob Koch wrote: > I was faced with a task of building a Windows application (.NET, what > else?) and hooking up with a Java-based server that uses SSLSockets and > Anonymous Ciphers (DH)... > > .NET doesn't have a library that can handle what I needed believe it or > not... need my SSLSockets! Found a 3rd party that does SSLSockets via > COM, but still no Anonymous Ciphers. I was avery frustrated at that > point and was about to give in and do the whole thing in Java. > > Lo and behold, IKVM... writing Java in .NET? This I gotta see... > *writing code* Bam! It works!! > > IKVM was a life saver for me! Thanks to you Jeroen F. and those who > contributed to the project! Thanks for the positive feedback. > Two questions... > > 1. your docs says GNU.Classpath... but we got OpenJDK... and Yeah, the docs are unfortunately a bit out of date. Contributions are most welcome :-) > 2. I'm seeing a couple of throws in Mono's MoMA. Isn't IKVM 100% > complaint with Mono 1.9 yet? There is some Windows/.NET specific code in a few places in IKVM (and some Mono specific code as well), but the right codepath will be executed based on the current platform, so that shouldn't be a problem. Regards, Jeroen ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php

Previous Message by Thread: click to view message preview

JMX connector using Web Service

Hi Jeroen! I wanna connect to a JMX connector in web service . I'm using external library which implements that connector (JSR 262, Web Services Connector for Java Management Extensions (JMX) Agents).  Here is my client in C#:          // Update with your agent port         int port = 9998;         // Update with your agent host         String host = "localhost";         // Update with your agent url path         String urlPath = "/jmxws";         // Create JMX Agent URL         JMXServiceURL url = "" style="color:blue">new JMXServiceURL("ws", host, port, urlPath);         // Connect the JMXConnector         JMXConnector connector = JMXConnectorFactory.connect(url, null); // Exception raised           // Get the MBeanServerConnection         MBeanServerConnection connection = connector.getMBeanServerConnection();           //SimpleClient.printProperties(connection);           // getAttribute         ObjectName mbeanName = new ObjectName("punki:type=User");         String value = (String) connection.getAttribute(mbeanName, "Name");         System.Console.WriteLine("Received : " + value);         // close connection         connector.close();    System.Console.WriteLine("Connection closed.");  I get the following error message : "java.net.MalformedURLException: Unsupported protocol: ws " The same client in java is working.Do you have any idea, do i miss something ?Thanks a lot :) Antoine. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Ikvm-developers mailing list Ikvm-developers@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ikvm-developers

Next Message by Thread: click to view message preview

Re: Using IKVM

Rob Koch wrote: > I was faced with a task of building a Windows application (.NET, what > else?) and hooking up with a Java-based server that uses SSLSockets and > Anonymous Ciphers (DH)... > > .NET doesn't have a library that can handle what I needed believe it or > not... need my SSLSockets! Found a 3rd party that does SSLSockets via > COM, but still no Anonymous Ciphers. I was avery frustrated at that > point and was about to give in and do the whole thing in Java. > > Lo and behold, IKVM... writing Java in .NET? This I gotta see... > *writing code* Bam! It works!! > > IKVM was a life saver for me! Thanks to you Jeroen F. and those who > contributed to the project! Thanks for the positive feedback. > Two questions... > > 1. your docs says GNU.Classpath... but we got OpenJDK... and Yeah, the docs are unfortunately a bit out of date. Contributions are most welcome :-) > 2. I'm seeing a couple of throws in Mono's MoMA. Isn't IKVM 100% > complaint with Mono 1.9 yet? There is some Windows/.NET specific code in a few places in IKVM (and some Mono specific code as well), but the right codepath will be executed based on the current platform, so that shouldn't be a problem. Regards, Jeroen ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by