Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / June 2007



Tip: Looking for answers? Try searching our database.

Errors Creating Java Stub for COM Object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JR "Bob" Dobbs - 14 Dec 2006 22:42 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.