WL 7.0 jCom Compling
Hello,
I stubbed out my COM dll fine. But when I went to compile the .java files, it could
not find the com.bea.jcom.Dispatch class. This class was not in weblogic.jar.
Anybody know where it is?
TIA,
Jeff
There are a whole bunch of objects besides the documented Dispatch that are missing
from weblogic jar. I changed the locations to com.linar.jintegra and finally got
it to compile, but could not make any invocations because I got Jintegra licensing
error messages.
My attempts to go in the COM-WLS direction have been equally unsuccessful. Using
a late-bound client, binding with the jndi moniker does not seem to work. Also,
attempting to obtain a jvm moniker results in the following error:
U:\>java com.bea.jcom.GetJvmMoniker localhost 7001
J-Integra 1.5.0 SB004 Copyright (C) 1999-2001 Intrinsyc Software Inc. http://www
.intrinsyc.com/j-integra/
java.lang.RuntimeException: No valid licensing information found.
In order to use the J-Integra runtime a proper license file must be installed.
If you have acquired a license, or if you are evaluating J-Integra or any
J-Integra Integra products, then you should have received such a license file, t
ogether
with installation instructions by email when you downloaded the kit.
If you are having trouble installing the license, please goto http://www.intrins
yc.com
or refer to your documetation in the section about Licensing
Help!!
"lars" <[email protected]> wrote:
>
To make the picture complete the typelibrary I used is based on a C# component.
"lars" <[email protected]> wrote:
I changed my code according to what you wrote but I still get compilererrors
for
"_Object" and "_ProxyObject" which can't be located.
Is there a working example for communication from Java to Com?
dan seeman <[email protected]> wrote:
FYI - you'll find an equivalent issue documented in
http://e-docs.bea.com/wls/docs70/notes/issues.html#1071850.
dan
dan seeman wrote:
Hi,
This is a known issue. The Dispatch class is located in com.linar.jintegra.Dispatch.
For now you'll have to hand-edit your generated classes to import andreference this
class location. If you have more than a few generated classes, a quickscript (perl,
python, sed, awk) is probably best suited to this task.
We apologize for the mistake. The issue will be resolved in a futurerelease.
dan
Jeff Blumenthal wrote:
Hello,
I stubbed out my COM dll fine. But when I went to compile the .java
files, it could
not find the com.bea.jcom.Dispatch class. This class was not in weblogic.jar.
Anybody know where it is?
TIA,
Jeff
Similar Messages
-
Error while compling a Function:
Hi,
I am unable to complie a function as shown below:
CREATE OR REPLACE FUNCTION GET_SUBS_TYPE_KEY(
SUBNO VARCHAR2 DEFAULT NULL
RETURN SUBS_TYPE_KEY_1 PIPELINED AS
V_SUBNO VARCHAR2(40);
V_PAID VARCHAR2(10);
V_SUBS_TYP_KEY VARCHAR2(10);
V_VAL1 VARCHAR2(255);
CURSOR C1_REC IS SELECT SUBNO,PREPOST_PAID,SUBS_TYPE_KEY
FROM CTVA_ETL.RA_CRM_USER_INFO,DIM_SUBSCRIBER_TYPE
WHERE SUBSTR(DIM_SUBSCRIBER_TYPE.SUBS_TYPE_DESC,1,4)=RA_CRM_USER_INFO.PREPOST_PAID
--WHERE MSISDN='8615025400109'
--WHERE MSISDN IN ('8615025400068','8615025400083','8615025400101','8615025400132','8615025400109')
GROUP BY SUBNO,PREPOST_PAID,SUBS_TYPE_KEY;
BEGIN
OPEN C1_REC;
LOOP
FETCH C1_REC INTO V_SUBNO SUBNO_TYP_1,V_PAID,V_SUBS_TYP_KEY SUBS_TYP_KEY;
--DBMS_OUTPUT.PUT_LINE('THE MSISDN VALUE'||V_MSISDN);
EXIT WHEN C1_REC%NOTFOUND;
IF V_PAID='PREP' THEN
V_SUBS_TYP_KEY ='2';
ELSIF V_PAID='POST' THEN
V_SUBS_TYP_KEY ='2';
ELSE
V_SUBS_TYP_KEY ='-99';
LOOP
PIPE ROW ( SUBS_TYPE_KEY(C1_REC.SUBNO_TYP_1 ,C1_REC.SUBS_TYP_KEY ));
END LOOP;
END LOOP;
RETURN;
CLOSE C1_REC;
END;
its giving error in the SUBNO_TYP_1 TypeUn-formatted code is nothing but garbage. So always format your code.
CREATE OR REPLACE FUNCTION get_subs_type_key(
subno VARCHAR2 DEFAULT NULL) RETURN subs_type_key_1 pipelined
AS
v_subno VARCHAR2(40);
v_paid VARCHAR2(10);
v_subs_typ_key VARCHAR2(10);
v_val1 VARCHAR2(255);
CURSOR c1_rec
IS
SELECT subno,
prepost_paid,
subs_type_key
FROM ctva_etl.ra_crm_user_info,
dim_subscriber_type
WHERE SUBSTR(dim_subscriber_type.subs_type_desc, 1, 4) = ra_crm_user_info.prepost_paid
GROUP BY subno,
prepost_paid,
subs_type_key;
BEGIN
OPEN c1_rec;
LOOP
FETCH c1_rec INTO v_subno subno_typ_1, v_paid, v_subs_typ_key; <<-- Here i removed subs_typ_key Only god knows why you had it there.
--DBMS_OUTPUT.PUT_LINE('THE MSISDN VALUE'||V_MSISDN);
EXIT WHEN c1_rec % NOTFOUND;
IF v_paid = 'PREP'
THEN
v_subs_typ_key = '2';
ELSIF v_paid = 'POST'
THEN
v_subs_typ_key = '2';
ELSE
v_subs_typ_key = '-99';
LOOP
pipe ROW(subs_type_key(c1_rec.subno_typ_1, c1_rec.subs_typ_key));
END LOOP;
ENDIF; <<-- Here i closed your IF statement
END LOOP;
RETURN;
CLOSE c1_rec;
END; -
How to solve the "type mismatch" error in jCOM early binding program?
I got a "type mismatch" error jCOM early binding program.
I use the VB as the jCOM client to access the EJB deployed on WLS7. While using the
object parameter like "java.lang.Integer" in EJB method call, I got that error message
and my VB client had to be stopped?
The same situation, the VB program work perfect when using the "int" as the parameter.
And I try to instance the "myTLB.JavaLangInteger" in my VB program, but how ? The
"New", "CreateObject" and "GetObject" all failure, I don't know what to do next ???Hi,
This problem Could happen when you referesh quality or test system.
Your delta setup for the related master and transaction data needs to be reinit.
What happens is when you init. the delta and subsequent delta is all maintained in your source system
please check Notes 852443,424848,834229
Hope this helps
Thanks
Teja
Message was edited by:
Teja badugu -
Problem with Pro*C/C++ complie in linux
I install Oracle8.1.7 in my Mandrake 7.2 ( like redhat7.1) , and it works well except with proc not works well.
when I complie the precomp demo program, it gives much errors. I note the proc config file length was zero.
The following is errors I get when do:
cd precomp/demo/proc
make -f demo_proc.mk sample1
it print very large errors, like follow:
Pro*C/C++: Release 8.1.7.0.0 - Production on PGFZNe 7TB 6 11:46:04 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /home/u01/precomp/admin/pcscfg.cfg
Error at line 33, column 11 in file /usr/include/stdio.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 38, column 11 in file /usr/include/stdio.h
# include <stdarg.h>
..........1
PCC-S-02015, unable to open include file
Error at line 29, column 10 in file /usr/include/bits/types.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 14, column 10 in file /usr/include/_G_config.h
when I run proc without file, it print options as following:
Pro*C/C++: Release 8.1.7.0.0 - Production on Mon Jul 9 11:19:38 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /home/u01/precomp/admin/pcscfg.cfg
Option Name Current Value Description
auto_connect no Allow automatic connection to ops$ account
char_map charz Mapping of character arrays and strings
close_on_commitno Close all cursors on COMMIT
code kr_c The type of code to be generated
comp_charset multi_byte The character set type the C compiler supports
config default Override system configuration file with another
cpp_suffix none Override the default C++ filename suffix
dbms native v6/v7/v8 compatibility mode
def_sqlcode no Generate '#define SQLCODE sqlca.sqlcode' macro
define none Define a preprocessor symbol
duration transaction Set pin duration for objects in the cache
dynamic oracle Specify Oracle or ANSI Dynamic SQL Semantics
errors yes Whether error messages are sent to the terminal
errtype none Name of the list file for intype file errors
fips none FIPS flagging of ANSI noncompliant usage
header none Specify file extension for Precompiled Headers
hold_cursor no Control holding of cursors in the cursor cache
iname none The name of the input file
include none Directory paths for included files
intype none The name of the input file for type information
lines no Add #line directives to the generated code
lname none Override default list file name
ltype none The amount of data generated in the list file
maxliteral 1024 Maximum length of a generated string literal
maxopencursors 10 Maximum number of cached open cursors
mode oracle Code conformance to Oracle or ANSI rules
nls_char none Specify National Language character variables
nls_local no Control how NLS character semantics are done
objects yes Support object types
oname none The name of the output file
oraca no Control the use of the ORACA
pagelen 80 The page length of the list file
parse full Control which non-SQL code is parsed
prefetch 1 Number of rows pre-fetched at cursor OPEN time
release_cursor no Control release of cursors from cursor cache
select_error yes Control flagging of select errors
sqlcheck syntax Amount of compile-time SQL checking
sys_include none Directory where system header files are found
threads no Indicates a multi-threaded application
type_code oracle Use Oracle or ANSI type codes for Dynamic SQL
unsafe_null no Allow a NULL fetch without indicator variable
userid none A username/password [@dbname] connect string
varchar no Allow the use of implicit varchar structures
version recent Which version of an object is to be returned
PCC-F-02135, CMD-LINE: User asked for help
How can I do to solve this problem now?
Note: I need pro*c/c++ to works well in my project.
Thank you very much for your kindly help!
chen chuanwen: [email protected]
nullSorry! I have not explain it clearly.
To solve it , you do following :
1. locate stdarg.h ( or find /usr -name stdarg.h ), assume you find a stdarg.h in /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h
2.ln -s /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include/stdarg.h or cp /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include
( above 2 step was to make Pro*C can find stdarg.h in /usr/include )
3. for file stddef.h do like step 1,2
4. append a line in your Pro*C config file:
CODE=ANSI_C
null -
Problem in starting server with native mode enabled in jcom tab
Hi
I am trying to use com component using jcom
For this
As per the document I enebled Enable com option under Servers -> Protocol ->Jcom
tab
I also wnat to enable the Native mode..
But when I eneble native mode server is not starting up
It is giving following exception
java.lang.RuntimeException: RegSetValueEx failed
at com.linar.jintegra.NativeObjectProxy.registerJvm(Native Method)
at com.linar.jintegra.Jvm.register(Jvm.java:202)
at weblogic.com.COMService.initialize(COMService.java:68)
at weblogic.t3.srvr.SubsystemManager.initialize(SubsystemManager.java:118)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:893)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
Can someone help to to enable this jcom native mode
Thanx in advance
Manish RathiI get the same problem. I don't expect we'll get any answers here.
"Manish" <[email protected]> wrote:
>
Hi
I am trying to use com component using jcom
For this
As per the document I enebled Enable com option under Servers -> Protocol
->Jcom
tab
I also wnat to enable the Native mode..
But when I eneble native mode server is not starting up
It is giving following exception
java.lang.RuntimeException: RegSetValueEx failed
at com.linar.jintegra.NativeObjectProxy.registerJvm(Native Method)
at com.linar.jintegra.Jvm.register(Jvm.java:202)
at weblogic.com.COMService.initialize(COMService.java:68)
at weblogic.t3.srvr.SubsystemManager.initialize(SubsystemManager.java:118)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:893)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
Can someone help to to enable this jcom native mode
Thanx in advance
Manish Rathi -
Using JCom for getting the user name
I am using jcom610-win.exe and weblogic610sp2_win.exe .I need to use the Jcom for getting the user name of the NT Iser Logged in.I have got the process for this on the page at http://e-docs.bea.com/wls/docs61/jcomreference/Security.html .But this page uses a method isCallerAuthenticated() from a class file called jcom .I looked into the whole bea directory but there was no class like in the server dir.Can you tell where to get this class from.And if this has not been provided into the jar files that come along with the installable then why is it mentioned in the page @ http://e-docs.bea.com/wls/docs61/jcomreference/Security.html
Hi.
You might have better luck posting this in teh jcom newsgroup.
Regards,
Michael
Manoj Gupta wrote:
I am using jcom610-win.exe and weblogic610sp2_win.exe .I need to use the Jcom for getting the user name of the NT Iser Logged in.I have got the process for this on the page at http://e-docs.bea.com/wls/docs61/jcomreference/Security.html .But this page uses a method isCallerAuthenticated() from a class file called jcom .I looked into the whole bea directory but there was no class like in the server dir.Can you tell where to get this class from.And if this has not been provided into the jar files that come along with the installable then why is it mentioned in the page @ http://e-docs.bea.com/wls/docs61/jcomreference/Security.html
Michael Young
Developer Relations Engineer
BEA Support -
While compling the form error occurs
Hi,
while compling the form error occurs like this
(Error 0 ,At line 0,column 0
Automatic recompile of procedure body pro_query failed)
it is not allowing form to compile for runing it ,what to do to solve this problem?
any idea please help
Regards
VNHi,
while compling the form error occurs like this
(Error 0 ,At line 0,column 0
ORA-00600:internel error code,arguments:(17069),(55243136),(),(),(),(),() )
(Error 0 ,At line 0,column 0
Automatic recompile of procedure body pro_query
failed)
it is not allowing form to compile for runing it
,what to do to solve this problem?
any idea please help
Regards
VN -
WRT54G - Is there anyway to add a separate VPN/Firewall device to complement this product
I have a WRT54G v.2 device and I hate to throw it out. My dilemma is that I'm in need of a VPN/Firewall device as well. So I would like to know if there is a device that I can purchase from Linksys that will provide the VPN/Firewall features as a complement to my existing WRT54G? I'd appreciate any info someone might be able to provide.
Regards.Hi,
you have options between the RV series of VPN routers and the BEFSX41 and the BEFVP41.however you will have to change your network a bit.Your main router will have to be either of the VPN routers.The DHCP of the wrt will have to be disabled and you will also need to change the ip of the wrt from 192.168.1.1 to 1962.168.1.2
The connection will be.modem to internet port of the VPN router and then from port 1 of the VPN router to port 1 on the wrt.Do not use the internet ports of the wrt. -
JCOM throwing SocketException: Connection reset by peer: socket write error
I have an ejb which is calling a simple ActiveX component using JCOM.
Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
The application server and the ActiveX component are running on the same server.
Any suggestions as to why the JIntegra DCOM request could be failing?
Thanks,
Greg.I have an ejb which is calling a simple ActiveX component using JCOM.
Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
The application server and the ActiveX component are running on the same server.
Any suggestions as to why the JIntegra DCOM request could be failing?
Thanks,
Greg. -
Accessing COM from Java using JCOM
When I tried to access a simple COM component with the com2java generated files,
I got the following error. Can someone help me with this?
<Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP> <[WebAppServletContext(366665,Defaul
tWebApp,/DefaultWebApp)] Servlet failed with IOException
AutomationException: 0x80070005 - General access denied error
at com.bea.jcom.bm.b(bm.java)
at com.bea.jcom.Rpc.a(Rpc.java)
at com.bea.jcom.bf.a(bf.java)
at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
at com.bea.jcom.Dispatch.<init>(Dispatch.java)
at com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
at jsp_servlet.__jcom._jspService(__jcom.java:91)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>I did everything earlier except the second point you mentioned. Everything started
working as soon as I added a line to call com.bea.jcom.AuthInfo.setDefault() method.
I didn't think this was necessary since I already gave permissions to that user
using DCOMCNFG. Thanks for you help.
"BEA jCOM Support" <[email protected]> wrote:
>
Your jcom.log indicates you are trying to access the COM object with
Authentication
"BXDOMAIN/akumar". Add this user to the default access/launch permissions
(using
DCOMCNFG) on the machine hosting the COM object.
Also, make sure you put this in your Java code:
com.bea.jcom.AuthInfo.setDefault("BXDOMAIN", "akumar", "<password>");
"Anil Kumar" <[email protected]> wrote:
Here's the log
jCOM checkconfig 6.1 Beta - Copyright (C) 2001 BEA Systems, Inc. Copyright
(C)
1999-2001 Linar Ltd. and Intrinsyc Software, Inc. http://www.bea.com/jcom/
--- Checking OS ---
Microsoft Windows NT 5.0 (Build: 2195) Service Pack 2
--- Checking Time ---
Time: 15:20:49
Date: 11/13/01
--- opening typelib: JComTestProject.exe ---
Class Name = JComTest
Class Id = 742db055-77df-404a-a579-e0cbfd3007a7
Class Name = JComTestProject.JComTest
AppID = {742DB055-77DF-404A-A579-E0CBFD3007A7}
{742DB055-77DF-404A-A579-E0CBFD3007A7} = JComTestProject.JComTest
Implemented Categories = no value(259)
{40FC6ED5-2438-11CF-A3DB-080036F12502} = no value(259)
LocalServer32 = D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe
("D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe"
file exists)
ProgID = JComTestProject.JComTest
Programmable = no value(259)
TypeLib = {E0BF28D6-6347-4017-8D2E-52B145CE47DA}
VERSION = 2.0
--- Checking Username ---
USER:WARANGAL\akumar
GROUP:WARANGAL\None
GROUP:\Everyone
ALIAS:WARANGAL\ORA_DBA
ALIAS:BUILTIN\Administrators
ALIAS:BUILTIN\Users
ALIAS:BUILTIN\Power Users
GROUP:\LOCAL
GROUP:NT AUTHORITY\INTERACTIVE
GROUP:NT AUTHORITY\Authenticated Users
--- Checking DCOM settings ---
DCOM version supports accessing Java from COM
EnableDCOM = Y
DefaultLaunchPermission:
Access enabled for NT AUTHORITY\SYSTEM
Access enabled for NT AUTHORITY\INTERACTIVE
Access enabled for BUILTIN\Administrators
--- Connecting to SCM ---
Connecting to SCM on localhost
Connect successful
--- IP configuration ---
Hostname = warangal.bxsys.com
Address 0 = 172.18.32.102
Connecting to SCM on 172.18.32.102
Connect successful
Address 1 = 169.254.25.129
Connecting to SCM on 169.254.25.129
Connect successful
--- Winsock Information ---
Version: 202
Description: WinSock 2.0
--- Environment Variables ---
ALLUSERSPROFILE=C:\WINNT\Profiles\All Users
APPDATA=C:\WINNT\Profiles\anil\Application Data
BOOKSHELF=D:\ifor\WIN\BIN\EN_US
CLASSPATH=.;d:\mystuff\javastuff\jarz;d:\weblogic\lib\weblogic510sp6boot.jar;d:/jdk122/javamail112/mail.jar;d:/jdk122/jaf-1.0.1/activation.jar;d:/jdk122/jsdk2.1/server.jar;d:/jdk122/jsdk2.1/servlet.jar;D:\WebLogicCommerceServer3.2\classes;D:\Oracle\Ora81\jdbc\lib\classes111.zip;D:\weblogic\lib\WebLogic_RDBMS.jar;D:\Oracle\Ora81\orb\classes\yoj.jar;D:\Oracle\Ora81\orb\classes\share.zip
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=WARANGAL
ComSpec=C:\WINNT\system32\cmd.exe
HELP=D:\IBMVJava3.0\eab\;D:\IBMVJava20\eab\;D:\ifor\WIN\BIN
HOMEDRIVE=C:
HOMEPATH=\
I4_INSTALL_DRIVE=D:
I4_LANG=EN_US
IPF_PATH32=D:\ifor\WIN\BIN\EN_US
J2EE_CLASSPATH=D:\j2ee121\lib\cloudscape\cloudspace.jar;
JAVA_HOME=d:\jdk13
LOGONSERVER=\\WARANGAL
NLSPATH=D:\ifor\LS\MSG\%L\%N
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=d:\jdk13\bin;D:\Oracle\Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStuff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Java2\Bin;C:\Program
Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0803
ProgramFiles=C:\Program Files
PROMPT=$P$G
StarTeam=D:\StarTeam 4.0\StarTeam.ini
StarTeamApp=D:\StarTeam 4.0
STLicense=D:\StarTeam 4.0
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=D:\TEMP
TMP=D:\TEMP
USERDOMAIN=WARANGAL
USERNAME=akumar
USERPROFILE=C:\WINNT\Profiles\anil
windir=C:\WINNT
WorkstationID=D:\StarTeam 4.0\ConnectionManager.ini
"Damon Hon" <[email protected]> wrote:
hi anil,
can you run the checkconfig tool as well
checkconfig /typelib <path to tlb> config.log
and post the log
thanks
damon
"Anil Kumar" <[email protected]> wrote in message
news:[email protected]...
Hi Damon,
I am just calling the default constructor of the com2Java generatedclass(in this
case, it is JComTest.class) from a simple JSP. I am not calling anymethods on
this component. Here are the contents of the log file.
jCOM version 6.1 Beta logger started in immediate mode at Tue Nov
13
12:32:41
CST 2001 at level 3 (VERBOSE)
License:
Classloader is bootstrap
java.version is 1.3.1
java.vendor is Sun Microsystems Inc.
java.class.path is..;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\BEA\wlserver6.1\jcom\lib\jcom.
jar;D:\Projects\JCom\src
java.library.path isD:\BEA\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;d:\jdk13\bin;D:\Oracle\
Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system
32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStu
ff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Jav
a2\Bin;C:\Program
Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
os.name/os.arch/os.version is Windows 2000/x86/5.0
1005676361251 +: New RemOxidResolver initialised for Net={{ 0x7,127.0.0.1[135]}}
Sec={}
1005676361271 +: Looking for free connection handler to 127.0.0.1[135]for
BXDOMAIN/akumar
1005676361311 : OXID Resolver started. Listening on port 3895
1005676361321 : Object Exporter binding is Net={{ 0x7,172.18.32.102[3896]},
{ 0x7, 169.254.25.129[3896]}} Sec={{ 0xa, 0xffff, }, { 0x0, 0x0,
OXID
is 1005676361311
1005676361331 +: Opening a TCP/IP connection to 127.0.0.1[135] withauth
BXDOMAIN/akumar
1005676361361 : Sending RemoteActivation request to Net={{ 0x7,127.0.0.1[135]}}
Sec={} to activate cls/iid742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5
1005676361832 : Sending IRemoteActivation::RemoteActivation request,with
RPC
call id 2 on ipid null
1005676361892 : Received the response toIRemoteActivation::RemoteActivation
request, with RPC call id 2
1005676361902 +: Remote server's version: 5.1
1005676361942 *: Error activating742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5:
AutomationException: 0x80070005 - General access denied error
"Damon Hon" <[email protected]> wrote:
hi anil,
can you post the snippet of java code that is calling the methods
from your COM object and post the following logs
jcom.log
- In your java code, add the following line to the start of your
initialization code.
com.bea.jcom.Log.logImmediately(3, "c:\\temp\\jcom.log");
config.log
- Run the checkconfig utility to generate this log
checkconfig /typelib <path to tlb> config.log
thanks
damon
"Anil Kumar" <[email protected]> wrote in message
news:[email protected]...
Thanks for the info. I had already done this before. I checked
everything
a dozen
times. I am not sure why this is happening. Please let me know,
if
there
are any
other ideas.
"Damon Hon" <[email protected]> wrote:
hi anil,
The exception you are getting, indicates that your java client
does
not
have
sufficient permissions to access your com component.
if you are running your java code and com component on the same
machine,
- make sure that your jcom/bin directory is in your path environment
variable
- run the DCOMCNFG tool to configure accesss for the interactiveuser
or the
user you are logged in as.
if you are not running your java code under windows, add this
call
in
your
java code:
com.bea.jcom.AuthInfo.setDefault("nt domain", "user", "password");
- use the DCOMCNFG tool to configure has dcom access to the
com
component for this user
let me know if this helps
damon
"Anil Kumar" <[email protected]> wrote in message
news:[email protected]...
When I tried to access a simple COM component with the com2java
generated
files,
I got the following error. Can someone help me with this?
<Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP><[WebAppServletContext(366665,Defaul
tWebApp,/DefaultWebApp)] Servlet failed with IOException
AutomationException: 0x80070005 - General access denied error
at com.bea.jcom.bm.b(bm.java)
at com.bea.jcom.Rpc.a(Rpc.java)
at com.bea.jcom.bf.a(bf.java)
at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
at com.bea.jcom.Dispatch.<init>(Dispatch.java)
at
com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
at jsp_servlet.__jcom._jspService(__jcom.java:91)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> -
Using JCOM in Native mode JIntegra Registry Entry Error
Hi
When I am using the weblogic's jcom feature and when I turn on the native mode
feature I get the foillowing error
The WebLogic Server did not start up properly.
java.lang.RuntimeException: RegSetValueEx failed
at com.linar.jintegra.NativeObjectProxy.registerJvm(Native Method)
at com.linar.jintegra.Jvm.register(Jvm.java:202)
at weblogic.com.COMService.initialize(COMService.java:68)
at weblogic.t3.srvr.SubsystemManager.initialize(SubsystemManager.java:11
8)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:855)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:627)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:337)
at weblogic.Server.main(Server.java:32)
Reason: java.lang.RuntimeException: RegSetValueEx failed
The google search took me to a jintegra support page which says that
The
user of the application MUST have access privileges to the registry
(specifically, HKEY_LOCAL_MACHINE->SOFTWARE->Linar->JintMkr->[jvm name]).
I uninstalled and installed the weblogic hoping that this registry entry would
figure in my registry but it does not - so folks any clues!The got the same error when I try to register the jvm using regjvmcmd command. Unfortunately regjvmcmd does not like dots in the jvmid. e.g., wlsgam47.gammadom.com will not work. So, you have to use wlsgam47 and then go to the registry and update the following property manually as HKEY_LOCAL_MACHINE->SOFTWARE->Linar->JintMkr->wlsgam47.gammadom.com.
Ofcourse you should have administrative privileges to do this.
After that the weblogic server starts without problem.
Good luck ! -
Bit Complement in an Expression Node
I can use bit complement in a formula node but not the expression node. The
"~" tilde is the only text in the expression node. The error is "~#" with
# being the error. The input is a U8. Thanks in advance for any help.Hi Catherine,
I've tried your suggestion earlier and tried it again after your
post but it still doesn't work. I am new to expression nodes so maybe my
syntax is incorrect. To do the same in C language I think it looks like
this: "a = ~ b;". I made a picture and a copy of the error. Let me know
if you see anything wrong. Thanks!
Error on line 1 is marked by a '#' character: "~#"
[Image]
Pat S.
cfpautx wrote:
> Hello Pat,
> The way to fix this problem is fairly simple, if you change your
> inputs and outputs to I8, u16 or I16 it will run correctly.
> Regards,
> Catherine Petronino
> National Instrument
> www.ni.com/ask -
JCOM with Weblogic6.1(migrating from weblogic 6.0)
Hello,
We are currently running our application on Weblogic 6.0. Also we have a VB client
which talks to Enity beans deployed in the Weblogic server, via JINTEGRA(jintegra.jar)
Now, we are planning to migrate from Weblogic 6.0 to Weblogic 6.1. In this context,
I have following questions,
1] Can I use JCOM for my requirement(talking to EJB's from VB client)
2] Is JCOM shipped along with Weblogic 6.1, if so is it shipped as a separate
jar file or as part of weblogic.jar
3] With Weblogic 6.1, do I have to still install Jintegra.jar for accessing my
beans from VB or does JCOM solve the purpose ?
Would really appreciate if you could share your thoughts
reg
nileshHello,
We are currently running our application on Weblogic 6.0. Also we have a VB client
which talks to Enity beans deployed in the Weblogic server, via JINTEGRA(jintegra.jar)
Now, we are planning to migrate from Weblogic 6.0 to Weblogic 6.1. In this context,
I have following questions,
1] Can I use JCOM for my requirement(talking to EJB's from VB client)
2] Is JCOM shipped along with Weblogic 6.1, if so is it shipped as a separate
jar file or as part of weblogic.jar
3] With Weblogic 6.1, do I have to still install Jintegra.jar for accessing my
beans from VB or does JCOM solve the purpose ?
Would really appreciate if you could share your thoughts
reg
nilesh -
I am not ablr to complie client bean, i have created 2 directories beans,client under beans dir i have put home,remote,bean classes. named it as beans package. in client directory i am refering this classes by importing the beans package, but it gives error like package beans does not exist. client & beans both directory are placed in simplesessionapp directory.
error screen shot is
E:\8333\ch08\SimpleSessionApp>javac -d . client/*.java
client/SimpleSessionClient.java:3: package beans does not exist
import beans.SimpleSession;
^
client/SimpleSessionClient.java:4: package beans does not exist
import beans.SimpleSessionHome;
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:14: cannot find symbol
symbol : class SimpleSession
location: class client.SimpleSessionClient
SimpleSession simpleSession = home.create();
^
6 errors
a
//import beans.SimpleSession;
//import beans.SimpleSessionHome;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class SimpleSessionClient {
public static void main(String [] args) {
try {
InitialContext jndiContext = new InitialContext();
Object ref = jndiContext.lookup("ejb/beans.SimpleSession");
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narrow(ref,SimpleSessionHome.class);
SimpleSession simpleSession = home.create();
for (int i=0;i<args.length;i++) {
String returnedString = simpleSession.getEchoString(args);
System.out.println(returnedString);
} //close for loop
}catch(Exception e) {
e.printStackTrace();
} //close catch
}//close main
} // close main class
help me.I hope this question is not too simple. Does your CLASSPATH contain the path to the beans package .class file location, or the jar file that contains them?
-
Problem in compling with G++ compiler
Hi ,
I have written one application in java which is calling the C API and after processing it is giving result to the Java application.
Now i have changed the extension of the C API to .cpp then i am compiling the same source code using the g++ complier but it is giving error in the function where i am calling my Java function in C API .
Can any one tell me is there is any thing wrong i am doing ...
For compiling the C API i am using the command (It is compling fine )
gcc -o libpixim.so -shared piximImager.c -I /home/java/include -I /home/java/include/linux
For compiling the C++ API
g++ -o libpixim.so -shared piximImager.cpp -I /home/java/include -I /home/java/include/linux
But it is giving error ....I know both langugaes are not same but c is a sub part of C++ if it is compling in C then with C++ complier it also should compile.
I am found the solution for that
ie
g++ -o libpiximImager.so -shared -I /home/narendra/javatest/j2sdk1.4.2_15/include/ -I /home/narendra/javatest/j2sdk1.4.2_15/include/linux/ -lc
I have miss to put the -lc option
Maybe you are looking for
-
PowerBook crash and now Mail won't open
My PowerBook G4 crashed hard some time ago, and since then Mail hasn't worked (I defaulted back to Eudora because I was swamped, but now I finally have some time to try to deal with this). When I open it, I get as far as the menu headings (File, Edit
-
Purchase order creation : internal pricing error
Hi, While creating a purchase order, i am getting an error 'internal pricing error'. Message type : V1806 This is basically for creating an Invoicing plan ! Let me know in case of any clue. -Sachin D
-
Making a vlan for all wireless devices on network
Hello, We connected 4 wireless access points (AP541N-E-K9) to an SG300-10P switch. We want to be sure that no wireless clients can alter settings to the network by connecting to any of the networking devices. We also want that no wireless devices (ex
-
Is there a way to change the ring tone to none for one particular contact?
I see there is an option to turn the text message settings for a particular contact to 'none'. Is there a way to change the ring tone to 'none' or 'silent' for only one contact. This is a person who calls way too often and I used to turn their ring
-
Purchased Album not Appearing in Purchased Items in Itunes store
I purchased an album 5 days ago. Came to find out one song cut off after a few seconds. The band said it was a glitch and had since been fixed and to download it again. I went to itunes store, purchased items. The album wasn't there. Pther songs that