I have a .NET assembly that I have exposed through COM. I am able to use the
object with cfobject. I would like to create a java stub for ColdFusion 7. I
have used the com2java tool to create the .java files from the .tlb for the com
object, but am recieving error messages when I try to compile them.
Command used: javac -J-mx100m -J-ms100m *.java -classpath
C:\CFusionMX7\lib\jintegra.jar
_ConnectProxy.java:26: illegal start of expression
static { .JIntegraInit.init(); }
^
IeConnectHelperProxy.java:26: illegal start of expression
static { .JIntegraInit.init(); }
^
2 errors
My platform is Windows 2003, ColdFusion 7.02
Any help is appreciated.
tim.clearview - 18 Jan 2007 14:09 GMT
Did you ever get an answer to this? I'm having the same issue.
JR "Bob" Dobbs - 18 Jan 2007 14:15 GMT
I have not resolved this issue. I have worked around it by using an ASP.NET web service to expose the .NET assembly.
jaguilar - 28 Jun 2007 15:59 GMT
I was able to get past this step by editing the Java files referenced in the
error message and removing the period in front of .JintegraInit.init() such
that:
static { .JIntegraInit.init(); }
becomes:
static { JIntegraInit.init(); }
I have not completed a COM to Java conversion successfully though the error
above did keep me stopped for a while.
I'm trying to work around the following error when intantiating a COM object:
"The cause of this exception was that: AutomationException: 0x800a000d - Type
mismatch." but have had no luck.
tim.clearview - 18 Jan 2007 14:23 GMT
Too bad... that's the backup plan I'm looking at. I'll let you know if I find an answer. Has the performance on the web service been good?
JR "Bob" Dobbs - 18 Jan 2007 14:26 GMT
Its not great but it's acceptable, your opinion may vary.