Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Sharepoint web part using DLL created with IKVMC (Java to C# compiler) [modified]

Sharepoint web part using DLL created with IKVMC (Java to C# compiler) [modified]

Scheduled Pinned Locked Moved Web Development
csharpjavasharepointcomdesign
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kselman
    wrote on last edited by
    #1

    www.ikvm.net [^] Im trying to implement some features from a Java application on my employer's SharePoint site. I used IKVMC to compile the Java JAR file to a strongly named .DLL file. Before starting on the web part in VS2005, I wanted to make sure it would work. So I created a basic WinForm app and added the DLL as a referenced assembly (also added two DLLs that came with IKVM) in the application folder. Everything works. So -- I moved on to creating the web part. I fired up my Virtual Machine (using V2005, VSeWSS 1.1 and W2K3 Server). I added the DLL and put in the same code and I get the following: [IllegalArgumentException: interface com.iwi.teenserver.dao.hessian.cust.CustomerDataAccess **is not visible from class loader**] java.lang.reflect.Proxy.getProxyClass(ClassLoader loader, Class[] interfaces) +3149 java.lang.reflect.Proxy.newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h) +53 com.iwi.teenserver.dao.hessian.IWIHessianProxyFactory.create(Class api, String hostName, Int32 port) +122 com.iwi.teenserver.dao.hessian.IWIDataAccess.getCustomerDataAccess() +64 DriverSummary.DriverSummaryWebPart.CreateChildControls() +133 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +50 System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170

    modified on Thursday, July 24, 2008 4:48 PM

    S 1 Reply Last reply
    0
    • K kselman

      www.ikvm.net [^] Im trying to implement some features from a Java application on my employer's SharePoint site. I used IKVMC to compile the Java JAR file to a strongly named .DLL file. Before starting on the web part in VS2005, I wanted to make sure it would work. So I created a basic WinForm app and added the DLL as a referenced assembly (also added two DLLs that came with IKVM) in the application folder. Everything works. So -- I moved on to creating the web part. I fired up my Virtual Machine (using V2005, VSeWSS 1.1 and W2K3 Server). I added the DLL and put in the same code and I get the following: [IllegalArgumentException: interface com.iwi.teenserver.dao.hessian.cust.CustomerDataAccess **is not visible from class loader**] java.lang.reflect.Proxy.getProxyClass(ClassLoader loader, Class[] interfaces) +3149 java.lang.reflect.Proxy.newProxyInstance(ClassLoader loader, Class[] interfaces, InvocationHandler h) +53 com.iwi.teenserver.dao.hessian.IWIHessianProxyFactory.create(Class api, String hostName, Int32 port) +122 com.iwi.teenserver.dao.hessian.IWIDataAccess.getCustomerDataAccess() +64 DriverSummary.DriverSummaryWebPart.CreateChildControls() +133 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +50 System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170

      modified on Thursday, July 24, 2008 4:48 PM

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      No idea. It didn't occur to you to ask this question in one of the .NET forums? Or maybe an IKVM forum somewhere? I mean, presumably IKVM is doing something to make .NET's reflection look like Java's reflection to the Java code it's compiling, and those support routines are likely at fault here - perhaps contact the IKVM folks and ask 'em if they've tested their stuff in a restricted environment like SharePoint.

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups