1 Reply Latest reply on Jul 11, 2008 9:39 AM by webwann

    Trouble using .NET assembly in CF8

    matthewkogan
      I have built a very simple .NET assembly, but when I try to use it in a ColdFusion page I get the following error:

      500

      ROOT CAUSE:
      java.lang.ClassFormatError: Illegal class name "TestAssembly/TTestClass$@MetaTTestClass" in class file TestAssembly/TTestClass
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
      at coldfusion.runtime.dotnet.DynamicClassLoader.access$100(DynamicClassLoader.java:27)
      at coldfusion.runtime.dotnet.DynamicClassLoader$1.run(DynamicClassLoader.java:101)
      at java.security.AccessController.doPrivileged(Native Method)
      at coldfusion.runtime.dotnet.DynamicClassLoader.findClass(DynamicClassLoader.java:92)
      at coldfusion.runtime.dotnet.DynamicClassLoader.loadClass(DynamicClassLoader.java:76)
      at coldfusion.runtime.dotnet.DynamicClassLoader.loadClass(DynamicClassLoader.java:53)
      at coldfusion.runtime.dotnet.Assembly.loadClass(Assembly.java:236)
      at coldfusion.runtime.dotnet.Assembly.loadClass(Assembly.java:223)
      at coldfusion.runtime.dotnet.DotNetProxyFactory.getProxy(DotNetProxyFactory.java:77)
      at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:65)
      at coldfusion.runtime.CFPage.createObjectProxy(CFPage.java:4688)
      at coldfusion.tagext.lang.ObjectTag.doStartTag(ObjectTag.java:427)
      at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:2644)
      at cfindex2ecfm1434913482.runPage(C:\webs\fuseboxes\dev\test\r4\index.cfm:5)
      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
      at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366)
      at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
      at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
      at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
      at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
      at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.CfmServlet.service(CfmServlet.java:175)
      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
      at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
      at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
      at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
      at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
      at jrun.servlet.FilterChain.service(FilterChain.java:101)
      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)
      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

      What have I done wrong, and how do I fix it?

      Thanks,

      Matthew