C++ client to CORBA server on 8i

I have seen a few posts on this topic, but no replies so far.
I have downloaded the interop.tar file required for a C++ to be authenticated to the Corba server.
At this stage I am unable to link the Login.lib library (using Borland builder compiler)
If anyone managed to get the example going included in interop.tar please respond.
null

There is a known issue with Visibroker for C++ 3.3 orb, which is mentioned
in the readme file that is part of interop.tar. A (not too pretty) workaround is also suggested in the readme file.
Hope this helps

Similar Messages

  • ClassCastException for RMI-IIOP client hitting CORBA server

    I am writing a RMI-IIOP client to connect to an existing CORBA C++ server. I started out with writing a RMI Interface mimicking the IDL and then converting into a stub using rmic -iiop option. I then use COSNaming to connect to the server. When I narrow the reference using PortableRemoteObject.narrow(), I get a ClassCastException. Probably because the object that I get from naming service will be a CORBA object which cannot be casted to RMI Interface object.
    Exception in thread "main" java.lang.ClassCastException
    at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
    at com.att.cswd.poc.RMIIIOPClient.IMSConnect(RMIIIOPClient.java:46)
    at com.att.cswd.poc.RMIIIOPClient.main(RMIIIOPClient.java:27)
    Caused by: java.lang.ClassCastException: Object is not of remote type com.att.cswd.poc.CORBAInterface
    at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:221)
    ... 3 more
    Code
                                    CORBAInterface ims;
              String tranCode="CRTUN130";
              byte[][] input_segs = null;
               try {
                    Hashtable hm = new Hashtable();
                    hm.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
                    hm.put("java.naming.provider.url", "corbaloc:iiop:BSYS.MVS.SC.COM:14050/NameService");
                    Context initialNamingContext = new InitialContext(hm);
                   Object objref = initialNamingContext.lookup("O2K/AdapterInterface");
                   ims = (CORBAInterface) PortableRemoteObject.narrow(objref, CORBAInterface.class);
                   byte output_segs[][] = ims.run_transaction_binary(tranCode, input_segs);               
                   System.out.println ("Response is " + output_segs);
              } catch (NamingException e) {
                   e.printStackTrace();
              } catch (RemoteException e) {
                   e.printStackTrace();
              }

    I am writing a RMI-IIOP client to connect to an existing CORBA C++ serverAs it says in [the Javadoc|http://java.sun.com/j2se/1.5.0/docs/guide/rmi-iiop/rmiiiopUsing.html#when], you can't do that. For RMI/IIOP you have to start with a PortableRemoteObject and rmic -iiop. You can use a C++ client to that but you can't use an RMI/IIOP client to a C++ server.
    Use IDLJ.

  • RMI-IIOP client - CORBA Server

    I already have a CORBA server in C++ which has already been written. I am trying to develop an RMI-IIOP client which would talk to this CORBA Server.
    The CORBA server has several interfaces that I would like to use with my RMI-IIOP client. How do I proceed?? Can somebody give me an example of an RMI-IIOP client? Basically my question is: how do I take the IDL and build an RMI-IIOP client with it???

    Hello
    I already have a CORBA server in C++ which has already
    been written. I am trying to develop an RMI-IIOP
    client which would talk to this CORBA Server.
    The CORBA server has several interfaces that I would
    like to use with my RMI-IIOP client. How do I
    proceed?? Can somebody give me an example of an
    RMI-IIOP client? Basically my question is: how do I
    take the IDL and build an RMI-IIOP client with it???The steps to do are the following:
    * Creating the Remote interface
    * Using the rmic compiler to genarate the IDL and the client stub.
    * Generating stub and skeleton of the C++ server using that IDL (the one you already made is no longer compatible)
    * Bulding up the new C++ server
    * Using a nameservice (tnameserver for example) and binding your server to that.
    * Writing the RMI-IIOP client
    I proceeded like this (using Visibroker 4.5 on the server side) and I was able to do it... but as you can see from my last post, I wasn't able to pass Strings from the client to the server.
    Bye

  • Force CORBA server and client to localhost

    Hi,
    i have to run an omg corba server and client via orbd on a single machine with win xp. The machine is connected to the network, but this is not relevant for the corba communication.
    I can now force the orbd to start at localhost. After starting server and client everything works well until disconnecting machine from network, because client and server are started at ip of network card.
    How can i force the client and server to use a localhost port for corba communication (client and server)?
    Hope anyone has an idea...
    br
    ralf
    P.S.: If I start the applications after disconnecting network everthing works.

    Resolved the problem myself.
    The correct property is a java system property:
    com.sun.CORBA.ORBServerHost=localhost
    If you set this property in your application before instanciating an ORB, the orb will be forced to run on the set value (in this case localhost). If you do not set this property the ORB will be started at the IP of your network card if it is active (connected to the network)...

  • How to register remote client in java to a Corba server in C++

    Hi All,
    Although i know that it spossible for to have a Corba client in java and Corba server in C++.What am nto sure is whether i can have this client and server on 2 different machines.In a vwgue way i think it shoudl be possible but not sure.
    I have Server running in Corba in one machine, how to register java client on another machine to this server .??
    Thanks,
    Ranjitha

    Hi,
    You can do that by defining the DB link to use while you register the function.
    From the Administrator go to "Tools-> Register PL/SQL Functions..."
    Fill in the information of the function (name, display, owner ...)
    And in the "Database Link" choose your new DB link.
    Tamir

  • Running CORBA Server in a Linux Box

    Dear friends,
    I have written a corba server program in Java and started the server after starting the naming sever (i am using 'orbd') in a linux box. I have started the orbd by using the command (The server ip is 10.200.9.153)
    # orbd -ORBInitialPort 1050 -ORBInitialHost localhost &
    After this , I have started the corba server by
    # java Sever -ORBInitialPort 1050
    Then I am trying to run the client from a different machine by :
    # java Client -ORNInitialHost 10.200.9.153 -ORBInitialPort 1050
    But when I executed this , I am getting the following error. But if I am running the same server program in a Windows machine it's working perfectly. The error I am getting is given below:
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 10.200.9.153; port: 1050"
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
    at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
    at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:74)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1157)
    at StockMarket.CorbaClient.connect(CorbaClient.java:35)
    at StockMarket.CorbaClient.run(CorbaClient.java:27)
    at StockMarket.CorbaClient.main(CorbaClient.java:65)
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:188)
    ... 13 more
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
    at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
    at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:74)
    at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
    at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1157)
    at StockMarket.CorbaClient.connect(CorbaClient.java:35)
    at StockMarket.CorbaClient.run(CorbaClient.java:27)
    at StockMarket.CorbaClient.main(CorbaClient.java:65)
    Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:188)
    ... 13 more
    Please help me to solve the problem..

         I got the solution So please do not post the solution lest others sould learn from this case.

  • Host IP address in CORBA server IOR

    CORBA servers running on java orb (java 1.4.2 on Windows 2000) embed IP address and port number inside the IOR. The host information is always a numeric IP address, not symbolic host name.
    My system is setup to create network traffic separation. As a result, the host on which the CORBA server is running has two network cards. The result of ipconfig command lists two IP addresses: X-net followed by Y-net. My server is being successfully accessed by CORBA processes on the X-net.
    Now I need to set up some clients to access the server from the Y-net. When the clients obtain the server reference from the NameService, they cannot establish connection, because the X-net IP address embedded in the IOR is not accessible from the Y-net.
    Is there a work around for this issue?
    Is there an option in newer versions of java to specify a symbolic host name to be embedded in the IOR instead of the IP address?
    Is there another network configuration that will achieve the same goal?

    Hello,
    We're you able to change CUCM IP address on Presence server?
    Did you find any documentation to accomplish this?
    Regards,

  • Connections to a CORBA server

    Hi,
    We have developed the following for an action system written entirely in Java:
    - SQL Server database
    - CORBA server (connects to db using JDBC/ODBC)
    - Applet client connecting to server using CORBA technology.
    When we access the applet from the local computer using Internet Explorer everything works as it should, but when we access it from another computer in the network, a CORBA exception is thrown.
    Example: All services (NameService, CORBA server, webserver, etc) run on computer D200-01. When we access the website with the applet from this computer and type http://D200-01:8080/index.html in IE we get an applet and works as it should (Object transfer between server and client). Now, when we connect to the same url from D200-02, this exception is thrown.
    Could anyone help us.
    Many thanks!

    I am presently running an applet that is operating as both
    a corba server and a corba client.
    I am having a little problem with the corba server, but
    the client works find.
    What is the corba exception?
    I have found that java security policies, browser and
    JRE are all very important in this type of development.
    We are developing for mozilla (0.9.7) with JRE 1.4.
    We use the JRE policy tool to set the policy file as
    grant codeBase "http://192.168.1.27:8080/lms1/*" {
    permission java.security.AllPermission;
    We have to set the JRE ControlPanel to enable the
    -Djava.security.manager and
    -Djava.security.policy=http://xxx.xxx.xxx.xxx:port/location of policy file
    I think the JRE control panel is very important.
    You are probabaly failing on a java access violation but
    continuing through it. This will inhibit you from getting
    the correct object reference from the nameserver.
    When you try to connect with the bogus reference,
    you will then get a CORBA exception.
    Take a look at the JRE security settings.
    Mark

  • CORBA Server listens to more than one port

    My CORBA server and client are written in Java. I start tnameserv daemon at port 900. I have four different corba servers running on server. When I run my client and check connections on server machine, I see one of the connections to a port number different than 900. Everytime I restart my corba server, this port number changes but its always greater than 32000. I don't want to open any port other than 900 to my client. Any help to solve this problem is appreciated.

    No one had this problem?

  • Iam trying to acces Remote corba Server

    im trying to access Remote corba Server from beans in WLS.
    the client program is corba client. When i ever that JSP page Excuted ,
    it is not able to find Remote Corba Server...what should i add to access
    that Corba Server.
    what classpath should i add in WLS.
    is there any examplein which corba client from bean call Remote Corba
    Server
    thanks
    khaleel.

    1)i start WLS by runnig "startWeblogic" in this file i set java_home =.\jre1_2\jre ..if i run using this
    ***orb class = class com.inprise.vbroker.orb.ORB id diplayed
    Error in binding Corba objects
    org.omg.CORBA.OBJECT_NOT_EXIST:
    Could not locate the following POA:
    poa name : /rx_agent_poa
    minor code: 0 completed: No
    Mon Oct 09 18:06:41 CDT 2000:<E> <ServletContext-General> Servlet failed with Exception
    2) but if i run the WEBLogic by seting java_home="jdk1.3"
    i get this out put
    ***** orb class = class com.sun.corba.se.internal.iiop.ORB
    java.lang.NoClassDefFoundError: com/inprise/vbroker/CORBA/portable/ObjectImpl
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
    at weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java
    :334)
    at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:102)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at PreQual.PreQualManager.qualifyService(PreQualManager.java:66)
    at PreQual.Main.main(Main.java:40)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:148)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    Tue Oct 10 00:23:01 CDT 2000:<E> <WebLogicServer> Failed to invoke startup class
    qualify=PreQual.Main
    java.lang.NoClassDefFoundError: RX/_preQualifyStub
    at PreQual.PreQualManager.qualifyService(PreQualManager.java:66)
    at PreQual.Main.main(Main.java:40)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:148)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    khaleel wrote:
    when i run the sample program as startup it prints
    *** orb class = class com.inprise.vbroker.orb.ORB
    Eduardo Ceballos wrote:
    When you run the sample program as a startup, what does the following print?
    //Initialize the orb
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null);
    System.out.println("\n\n***** orb class = "+orb.getClass());
    Also, why is the 1.2 jre involved? You wrote that you've added an orb.properties file, in
    " i added orb.properties file in weblogic\jre1_2\jre\lib "
    I think that, for what you are trying to do, it might work better that you run in 1.2.
    In 1.3, you may also need to reset the property value for javax.rmi.CORBA.UtilClass and javax.rmi.CORBA.PortableRemoteObjectClass. If these are weblogic classes, set them to com.sun.corba.se.internal.javax.rmi.CORBA.Util and com.sun.corba.se.internal.javax.rmi.PortableRemoteObject, respectively. In
    1.3, we set them to to classes that only work to support our implementation of rmi-iiop.
    khaleel wrote:
    hi
    thanks for your help in advance...
    1)ya, i had set jspcomplier classpath and Servlet's loader's class path.
    i using WLS5.1 and jdk1.3... visibroker4.1....
    these are jsp.properties in properties page...
    weblogic.httpd.register.*.jsp=\
    weblogic.servlet.JSPServlet
    weblogic.httpd.initArgs.*.jsp=\
    pageCheckSeconds=1,\
    compileCommand=D:/jdk1.3/bin/javac.exe,\
    workingDir=E:/weblogic/myserver/classfiles,\
    verbose=true
    (2) i wrote standalone test program to comminicate with Corba Server, and
    executed it outside WLS and it runs succesfully... here is the code from
    that stand alone program which comunicates the server
    //Initialize the orb
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null);
    // Get the preQualify Id
    byte[] preQualifyId = "Qualify".getBytes();
    RX.preQualify qualify = RX.preQualifyHelper.bind(orb, "/rx_agent_poa",
    preQualifyId);
    (3) when i tried this in startup class it gives this error
    Error in binding Corba objects
    org.omg.CORBA.OBJECT_NOT_EXIST:
    Could not locate the following POA:
    poa name : /rx_agent_poa
    minor code: 0 completed: No Mon Oct 09 23:26:51 CDT 2000:<E>
    <WebLogicServer>
    Failed to invoke startup class qualify=PreQual.Main
    (4) and when i tries this in servlet it again gives same error as in (3)
    more Info ---
    i added orb.properties file in weblogic\jre1_2\jre\lib
    thanks in advance
    your help will be appriciated..
    thanks
    khaleel

  • Async tcp client and server. How can I determine that the client or the server is no longer available?

    Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
    I thought I will get an exception if the client or the server is not available but this is not happening.
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    How can I determine that the client or the server is no longer available?
    Server
    public class Server
    private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
    private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
    private TcpListener tcpListener;
    private bool isStarted;
    public event Action<string> NewMessage;
    public async Task Start(int port)
    this.tcpListener = TcpListener.Create(port);
    this.tcpListener.Start();
    this.isStarted = true;
    while (this.isStarted)
    var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
    var cts = new CancellationTokenSource();
    this.cancellationTokens.Add(cts);
    await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
    public void Stop()
    this.isStarted = false;
    foreach (var cancellationTokenSource in this.cancellationTokens)
    cancellationTokenSource.Cancel();
    foreach (var tcpClient in this.clients.Values)
    tcpClient.GetStream().Close();
    tcpClient.Close();
    this.clients.Clear();
    public async Task SendMessage(string message, IPEndPoint endPoint)
    try
    var tcpClient = this.clients[endPoint];
    await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
    try
    var stream = tcpClient.GetStream();
    this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
    while (!cancellationToken.IsCancellationRequested)
    var data = await this.Receive(stream);
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(NetworkStream stream, byte[] buf)
    await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive(NetworkStream stream)
    var lengthBytes = new byte[4];
    await stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await stream.ReadAsync(buf, 0, buf.Length);
    return buf;
    Client
    public class Client
    private TcpClient tcpClient;
    private NetworkStream stream;
    public event Action<string> NewMessage;
    public async void Connect(string host, int port)
    try
    this.tcpClient = new TcpClient();
    await this.tcpClient.ConnectAsync(host, port);
    this.stream = this.tcpClient.GetStream();
    this.Process();
    catch (Exception exception)
    public void Disconnect()
    try
    this.stream.Close();
    this.tcpClient.Close();
    catch (Exception exception)
    public async void SendMessage(string message)
    try
    await this.Send(Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(byte[] buf)
    await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await this.stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive()
    var lengthBytes = new byte[4];
    await this.stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await this.stream.ReadAsync(buf, 0, buf.Length);
    return buf;

    Hi,
    Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
    According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    Console.WriteLine(exception.Message);
    Unable to read data from the transport connection: An existing   connection was forcibly closed by the remote host.
    By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Copy file from client PC to server in a web deployed application

    I have developed one application using Oracle forms 6i, which is deployed on the web server.
    I run this application from a client PC in Internet Explorer using internet.
    I want to copy one file from the client PC to the web server.
    I have done following things
    - Created a shared folder on the server and given full rights to every one on this folder
    - I use 'net use' command in my program to connect to this shared folder
    - I use copy command to copy file from local client pc to server. This copy command I am executing using host command of my programming (PL/SQL: eg. host('copy abc.txt \\server\share\') )
    But this does not work.
    When I do the same thing in command window, it works.
    (ie. Start-Run cmd to open command window and then type the above copy command)
    Can you please tell me, how to copy a file from client PC to the sever in Web deployed application?
    Thanks

    I downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
    Using D2KWUTIL in Web Deployed Applications
    The use of this library is not supported with Web deployed applications.
    In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
    Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
    Functions such as those in WIN_API_BITOP will continue to work without change.
    so this will not work in web deployed application.
    Any other suggestion?
    Thanks

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • Is it possible to lock the keyboard of a client from a server using java

    please explain wheterit is possible to lock the keyboard of a client from a server using java

    You want to process code on one machine, and thereby lock the keyboard on another machine? No, that's not possible. It is extremely far from possible.
    Of course, if the client is running software with security holes in it you might hack into it and crash the thing. This will lock up the keyboard pretty good. I hope that's not what you want ...
    Or are you talking about a setup where you already have code running on the client, and some sort of communication between client and server? In that case what you need to know is whether it is possible to lock the keyboard at all. Once you have figured that out, it is trivial to add the communication code to have the server software tell the client software to lock the keyboard.
    So what do you mean with "lock the keyboard"? It's pretty easy to remove/disable all keyboard related listeners in your own application. It's a lot harder (and AFAIK impossible with pure java) to disable alt-tabbing out of the application. And impossible, except from exploiting security holes, to lock the ctrl-alt-delete-combination on windows machine.

  • ORA-03113 while connect from 8i client to 7 Server

    Hi,
    I have a Oracle 7.3.3 Server running on a SCO OpenSever 5.0.5 and a Oracle 8i Client 8.1.6.0.0 on a RedHat Linux 6.2.
    When I try to connect from the client to the server by issue command "sqlplus user@test", it responses me "Error while trying to retrieve text for error ORA-03113". But when I run "netasst" to test the connection, it says the connection was sucessful.
    Can anyone help? Here are my configuration files:
    Listener.ora on Server side:
    LISTENER=
    (ADDRESS LIST=
    (ADDRESS =
    (COMMUNITY=TCP.world)
    (PROTOCOL=TCP)
    (Host=10.128.64.52)
    (Port=1526)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
    (SID_LIST=
    (SID_DESC =
    (SID_NAME = test)
    (ORACLE_HOME = /usr/app/oracle/product/7.3.3
    (PRESPAWN_MAX=10)
    tnsnames.ora on client side:
    TEST.888.COM
    (DESCRIPTION =
    (ADDRESS_LISTS =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 10.128.64.52)
    (PORT = 1526)
    (CONNECT_DATA =
    (SID = test)
    )

    Hi,
    I don't have a 64 bit instance, but maybe another test will be usefull, try to get a connection with sqlplus on the server but via sqlnet like "user/passwd@tnsentry" I think if that also is not possible it is not the 64 bit issue but more that the listener itself coundn't etsablish a db connection, be aware tnsping is only testing if the listener is running and do not check if the listener is able to connect to the db.
    Hope this helps a little to find your real proble ;-), Olaf

Maybe you are looking for