Hi all,
A client of us is programming Visual C++ activeX components that need
to be
installed on the Jaguar Server. Underneath is given the exact problem
description:

Product: Jaguar CTS 3.0.1, PowerDynamo 3.0.1, Visul C++ 5.0
OS: Windows NT4 Server, servicepack 5


Actually there are two problems:
Visual C++ ActiveX component (dll)
1.When we build a C++ ActiveX component (a dll file), then jaguar gives
the following error message:
>> The import completed but not all methods could be imported<<

2. When we build a C++ ActiveX component (an ocx file), then jaguar
installs the component without any problems.
The creation of an instance of the C++ component in Powerdynamo is
working fine BUT as soon as we call a method of this
component then we get error messages.

Underneath you'll find:
1. the Powerdynamo source code that I 've used
2. the error messages of PowerDynamo
3. the log file of Jaguar CTS

>>SOURCE CODE POWERDYNAMO<<
<HTML>
<TITLE>comdll.stm</TITLE>
<BODY>
<!--SCRIPT

java.CreateComponent("vc/TESTOCX_TestocxCtrl","iiop://localhost:9000","jagad

min","");
if (proxy != null){
document.writeln("object created");
var retBstr = proxy.retBstr();
document.writeln(retBstr);
document.writeln(site.GetErrorInfo());
var retShort = proxy.returnShort();
document.writeln(retShort);
document.writeln(site.GetErrorInfo());
var retShort2 = proxy.retShort2(10);
document.writeln(retShort2);
document.writeln(site.GetErrorInfo());
} else {
document.writeln("Error creating activex object\n" +
site.GetErrorInfo());
}
-->
</BODY>
</HTML>
>> END SOURCE CODE POWERDYNAMO<<


>>OUTPUT PowerDynamo<<
object created
null
Exception thrown: org.omg.CORBA.BAD_OPERATION: in method retBstr of
class vc/_st_TESTOCX_TestocxCtrl.

0
Exception thrown: org.omg.CORBA.BAD_OPERATION: in method returnShort of
class vc/_st_TESTOCX_TestocxCtrl.

0
Exception thrown: org.omg.CORBA.BAD_OPERATION: in method retShort2 of
class vc/_st_TESTOCX_TestocxCtrl.
>>END OUTPUT PowerDynamo<<


>>SERVER LOG Jaguar CTS<<
Mar 24 12:19:47 2000: Jaguar CTS - Component Transaction Server/Version
3.0.1 (Build 30031)/P/PC Intel/Windows NT 4.0/OPT/Jun 24 1999 14:42:26

Confidential property of Sybase, Inc.
(c) Copyright Sybase Inc. 1987,1998
All rights reserved.

Use, duplication, or disclosure by the United States Government
is subject to restrictions as set forth in FAR subparagraphs
52.227-19 (a)-(d) for civilian agency contracts and DFARS 252.227-7013
(c)(1)(ii) for Department of Defense contracts. Sybase reserves all
unpublished rights under the copyright laws of the United States.
Sybase, Inc. 6475 Christie Avenue, Emeryville, CA 94608 USA.
Mar 24 12:19:49 2000: Listener # 1: Jaguar_tds: Active: yes Protocol:
'TDS': 'localhost',7878 Security Profile: '*NONE*'
Mar 24 12:19:49 2000: Listener # 2: Jaguar_OpenServer: Active: yes
Protocol: 'TDS': 'localhost',7979 Security Profile: '*NONE*'
Mar 24 12:19:49 2000: Listener # 3: Jaguar_http: Active: yes Protocol:
'HTTP': 'localhost',8080 Security Profile: '*NONE*'
Mar 24 12:19:49 2000: Listener # 4: Jaguar_https1: Active: yes
Protocol: 'HTTPS': 'localhost',8081 Security Profile: 'sybpks_intl'
Subject DN: CN = Sample1, O = Some Organization, L = Some Locality, ST =
Some State, C = US
Mar 24 12:19:49 2000: Listener # 5: Jaguar_https2: Active: yes
Protocol: 'HTTPS': 'localhost',8082 Security Profile:
'sybpks_intl_mutual_auth'
Subject DN: CN = Sample2, O = Some Organization, L = Some Locality, ST =
Some State, C = US
Mar 24 12:19:49 2000: Listener # 6: Jaguar_iiop: Active: yes Protocol:
'IIOP': 'localhost',9000 Security Profile: '*NONE*'
Mar 24 12:19:49 2000: Listener # 7: Jaguar_iiops1: Active: yes
Protocol: 'IIOPS': 'localhost',9001 Security Profile: 'sybpks_intl'
Subject DN: CN = Sample1, O = Some Organization, L = Some Locality, ST =
Some State, C = US
Mar 24 12:19:49 2000: Listener # 8: Jaguar_iiops2: Active: yes
Protocol: 'IIOPS': 'localhost',9002 Security Profile:
'sybpks_intl_mutual_auth'
Subject DN: CN = Sample2, O = Some Organization, L = Some Locality, ST =
Some State, C = US
Mar 24 12:19:49 2000: Listener # 9: Jaguar_iiop1: Active: yes
Protocol: 'IIOP': 'PC100131001',9000 Security Profile: '*NONE*'
Mar 24 12:19:49 2000: Listener # 10: Jaguar_iiops3: Active: yes
Protocol: 'IIOPS': 'localhost',9003 Security Profile:
'sybpks_intl_mutual_auth'
Subject DN: C = NL, O = Bouwfonds (KvK=123456), OU = Servercertificaat -
zie CPS Test Purposes Only, L = Hoevelaken, CN = Jaquar
Mar 24 12:19:49 2000: Warning: DLL name is different, using previous
name
Mar 24 12:19:49 2000: Warning: DLL name is different, using previous
name
Mar 24 12:19:49 2000: Starting Jaguar CTS 3.0.1
Mar 24 12:19:49 2000: Java JIT Compiler disabled
Mar 24 12:19:49 2000: Java component debugging disabled
Mar 24 12:19:50 2000: Java virtual machine initialized (version 10001)
Mar 24 12:19:50 2000: Repository: C:\Program Files\Sybase\Jaguar CTS
3.0\Repository
Mar 24 12:19:50 2000: Server's native codeset is utf8
Warning: Failed to initialize SSLServiceProvider: reason: 23
Mar 24 12:19:50 2000: NameServiceURL: iiop://0:0
Mar 24 12:19:50 2000: Starting services...
Mar 24 12:19:50 2000: Authentication timeout period is 3600 seconds.
Mar 24 12:19:50 2000: Note: authentication timeout can be disabled.
Mar 24 12:19:50 2000: Authentication lockout period is 600 seconds.
Mar 24 12:19:50 2000: Note: authentication lockout can be disabled.
ORB_init option = 'NameServiceURL' value = 'iiop://0:0' from environment

Mar 24 12:19:51 2000: Started: Jaguar/Repository
Mar 24 12:19:51 2000: Started: Jaguar/GarbageCollector
Mar 24 12:19:52 2000: Started: Jaguar/JCM
Mar 24 12:19:52 2000: Starting Jaguar Naming Services...
Mar 24 12:19:52 2000: Started: CosNaming/NamingContext
Mar 24 12:19:52 2000: Started: CtsServlet/ServletService
Mar 24 12:19:52 2000: Loading: C:\Program Files\Sybase\Jaguar CTS
3.0\java\classes\surfsidevideo\CleanupServiceImpl.class
Mar 24 12:19:52 2000: Loading: C:\Program Files\Sybase\Jaguar CTS
3.0\java\classes\surfsidevideo\_sk_SurfSideVideoPJ_CleanupService.class
Mar 24 12:19:52 2000: Loading: C:\Program Files\Sybase\Jaguar CTS
3.0\java\classes\surfsidevideo\CleanupImpl.class
Mar 24 12:19:52 2000: Loading: C:\Program Files\Sybase\Jaguar CTS
3.0\java\classes\surfsidevideo\_sk_SurfSideVideoPJ_Cleanup.class
Mar 24 12:19:52 2000: Started: SurfSideVideoPJ/CleanupService
Mar 24 12:19:52 2000: Running services...
Mar 24 12:19:52 2000: Running: CosNaming/NamingContext
Mar 24 12:19:52 2000: Running: Jaguar/GarbageCollector
Mar 24 12:19:52 2000: Running: CtsServlet/ServletService
Mar 24 12:19:52 2000: Running: SurfSideVideoPJ/CleanupService
Mar 24 12:19:53 2000: Stopped: CosNaming/NamingContext
Mar 24 12:19:55 2000: SQLException after JDBC getConnection():JZ006:
Caught IOException: java.net.ConnectException: Connection refused
Mar 24 12:20:26 2000: Loading: C:\Program Files\Sybase\Jaguar CTS
3.0\Repository\vc.idl
ORB_init option = 'NameServiceURL' value = 'iiop://0:0' from environment

Mar 24 12:20:35 2000: Library: 'axdisp.dll' for component type 'com'
ORB_init option = 'NameServiceURL' value = 'iiop://0:0' from environment

Mar 24 12:20:35 2000: Warning: property com.sybase.jaguar.method.name is
invalid in C:/Program Files/Sybase/Jaguar CTS
3.0/Repository/Method/vc/TESTOCX_TestocxCtrl/retBstr.props
Mar 24 12:20:35 2000: Changed to 'vc/TESTOCX_TestocxCtrl/retBstr'
COMComponent_create(vc/TESTOCX_TestocxCtrl) -> object 1
Mar 24 12:20:36 2000: An error was encountered while invoking method
56150120n the ActiveX Component TESTOCX_TestocxCtrl.
Mar 24 12:20:36 2000: Warning: property com.sybase.jaguar.method.name is
invalid in C:/Program Files/Sybase/Jaguar CTS
3.0/Repository/Method/vc/TESTOCX_TestocxCtrl/returnShort.props
Mar 24 12:20:36 2000: Changed to 'vc/TESTOCX_TestocxCtrl/returnShort'
COMComponent_create(vc/TESTOCX_TestocxCtrl) -> object 2
Mar 24 12:20:36 2000: An error was encountered while invoking method
10045620360n the ActiveX Component TESTOCX_TestocxCtrl.
Mar 24 12:20:36 2000: Warning: property com.sybase.jaguar.method.name is
invalid in C:/Program Files/Sybase/Jaguar CTS
3.0/Repository/Method/vc/TESTOCX_TestocxCtrl/retShort2.props
Mar 24 12:20:36 2000: Changed to 'vc/TESTOCX_TestocxCtrl/retShort2'
COMComponent_create(vc/TESTOCX_TestocxCtrl) -> object 3
Mar 24 12:20:36 2000: An error was encountered while invoking method
10045622240n the ActiveX Component TESTOCX_TestocxCtrl.
ile invoking method 10045622240n the ActiveX Component
TESTOCX_TestocxCtrlTESTOCX_TestocxCtrl.
>> END SERVER LOG JAGUAR<<


I have also tried to acces the C++ Active component from PowerJ. From a
Java applet I call the method 'retBstr()', the result that nothing is
returned.
So, this did not work either.
Underneath you'll find:
1. Debug Log file PowerJ
2. Server Log Jaguar

>> DEBUG LOG POWERJ<<
Logging started 24-Mar-00 12:23:41 PM
PowerJ component library (PJClass) version 3.0.5 (debug)
setUser: new user is jagadmin
setPassword: new password is
setURL: new URL is iiop://localhost:9000
connect: trigger event: Connecting
connect: trigger event: Connected
getComponent: component vc/TESTOCX_TestocxCtrl connected=true
component vc/TESTOCX_TestocxCtrl found

>> END DEBUG LOG POWERJ <<

>> SERVER LOG JAGUAR<<

Jaguar melding
COMComponent_create(vc/TESTOCX_TestocxCtrl) -> object 4
Mar 24 12:23:53 2000: An error was encountered while invoking method
10045642620n the ActiveX Component TESTOCX_TestocxCtrl.
while invoking method 10045642620n the ActiveX Component
TESTOCX_TestocxCtrl.

>> END SERVER LOG JAGUAR

Greetings,

Arjen Hup