OWB CLient Application Problem

Hi All,
We have the installed the OS as Windows 2003 server Enterprise Edition and on which we have installed the ORACLE 9i Database. Even our OWB Design time installation went on successfuly with the creation of Target schema & Run time repository schema. Still the problem we are facing is as soon as we try to start the OWB Client application it gets hung immediatly after showing the first popup of OWB Client server 9.2.0 screen. Please let us know is there any other setting we need to do for this to start off smoothly. Is there any OWB server installation needed? Your early reply would be very helpful.
Thanks & Best Regards,
Ratna

Hi Ratna,
Please follow the steps as given:
1) change datetime in your client machine to current date.
2) reboot your machine
3) move the following files to another backup place eg desktop:
$OWB92_CLIENT_HOME/jdk/jre/lib/ext/US_export_policy.jar
$OWB92_CLIENT_HOME/jdk/jre/lib/ext/jce1_2_1.jar
$OWB92_CLIENT_HOME/jdk/jre/lib/ext/local_policy.jar
$OWB92_CLIENT_HOME/jdk/jre/lib/ext/sunjce_provider.jar
Where $OWB92_CLIENT_HOME is the path to your owb9.2 client home.
4) Copy the 4 replacement files, (mail me to - [email protected], I'll send you the 4 .jar files), to the directory OWB92_CLIENT_HOME/jdk/jre/lib/ext/
5)start owb…
If all has gone well, delete the files moved in step 3.
Cheers,
Swagata

Similar Messages

  • SBS Client Application Launcher has encountered a problem and needs to close

    I logged in to a remote session on the SBS to add a user to a security group. Now, when I log on to my computer with the domain administrator account, I get the error "SBS Client
    Application Launcher has encountered a problem and needs to
    close." There is an event in the Application log associated with the error:
    Event Type: Error
    Event Source: Application Error
    Event Category: None
    Event ID: 1000
    Date:  8/29/2011
    Time:  2:27:46 PM
    User:  N/A
    Computer: CONTROLLERASST
    Description:
    Faulting application applnch.exe, version 5.2.2893.2, faulting module applnch.exe, version 5.2.2893.2, fault address 0x0002442a.
    For more information, see Help and Support Center at
    http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 46 61 69 6c   ion Fail
    0010: 75 72 65 20 20 61 70 70   ure  app
    0018: 6c 6e 63 68 2e 65 78 65   lnch.exe
    0020: 20 35 2e 32 2e 32 38 39    5.2.289
    0028: 33 2e 32 20 69 6e 20 61   3.2 in a
    0030: 70 70 6c 6e 63 68 2e 65   pplnch.e
    0038: 78 65 20 35 2e 32 2e 32   xe 5.2.2
    0040: 38 39 33 2e 32 20 61 74   893.2 at
    0048: 20 6f 66 66 73 65 74 20    offset
    0050: 30 30 30 32 34 34 32 61   0002442a
    0058: 0d 0a                     ..     
    After clicking to send/not send an error report, I get back to the desktop where all appears normal. However, I can no longer access the internet while logged in under this account.
    I can log in on another PC with the domain admin account with no error.
    Any help would be appreciated.

    Hi,
    I would like to suggest you run System File Checker with command: sfc /scannow to scan and repair the system files.
    If it does not work, please also test the issue in Clean Boot.
    Clean Boot
    ================
    Let’s disable all startup items and third party services when booting. This method will help us determine if this issue is caused by a loading
    program or service. Please perform the following steps:
    1. Click the Start Button type "msconfig" (without quotation marks) in the Start Search box, and then press Enter.
    Note: If prompted, please click Continue on the User Account Control (UAC) window.
    2. Click the "Services" tab, check the "Hide All Microsoft Services" box and click "Disable All" (if it is not gray).
    3. Click the "Startup" tab, click "Disable All" and click "OK".
    Then, restart the computer. When the "System Configuration Utility" window appears, please check the "Don't show this message or launch the System
    Configuration Utility when Windows starts" box and click OK.
    What’s the result in Clean Boot?
    For more information regarding Event ID 1000, please refer to the following link:
     http://www.microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows%20Operating%20System&ProdVer=5.2&EvtID=1000&EvtSrc=Application%20Error&LCID=1033 
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • URGENT : Problem in DataSource usage in Client applIcation

    URGENT : Problem in DataSource usage in Client applIcation
    Hi ALL
    I have deployed a EJB(Session Bean) in Oracle-OC4J Container.I am using datasources, in my bean as well as in my client
    application.Here Client is deployed along with bean in container.
    I am using "ejb-location"JNDI Name inside Client to get connection.
    (Which is mentioned in datasource element of datasources.xml)
    For this i have configured datasources.xml also.
    If i use "oracle.jdbc.pool.OracleDataSource" in datasources.xml then ClassNotFoundException is coming.
    But i have included classes12.jar in home/lib directory
    But if i use "com.evermind.sql.ConnectionDataSource" then i am getting connection.But if i do some operations(Even
    setAutoCommit(false))its giving NULL PointerException.
    Why this is happening?
    Thanx in advance
    Venky

    Hi Venkastesh,
    There are two issues. If your entry is like this....
    location="microDS"
    xa-location="jdbc/xa/MicroXADS"
    ejb-location="MicroPool"
    ...then use ejb-location for database calls through ejb and location when you try to get through normal java client.
    This will help you.
    regards,
    Vijay
    null

  • Facing problem in connection with OWB client

    Dear All
    Greetings!!!
    Im new to Datawarehouse building. I have installed OWB R1 at my own pc.I am facing problems in connecting OWB client..What exactly to put in Host name and Oracle Service name. i am logging in with the same system/password with normal login. Please guide me to enter in the datawarehouse world..
    Thanx and Regards
    Nukesh Bhoyar
    Mumbai(India)

    Hi Nukesh
    I know this doesn't really answer your question but Oracle have just made Release 2 of Warehouse Builder available and based on all of the info through this forum and other places, if I was you I would download R2 and install it instead of R1, as it is deemed to have way more functionality.
    Cheers
    M

  • OWB Design Client Performance Problems

    I am currently testing OWB 9.2.0.4 and i quite often experience what I can only describe as the program hangs. If I wait approximately 30 - 90 seconds, the program will begin to respond again. This is quite annoying and would like to know if there is any config that I can check or change to improve performance of the OWB client.
    My Desktop PC configuration:
    Windows XP Pro
    Dual Pentium Xeon 2.4 GHz
    512 MB RAM
    30GB SCSI Hard Drive
    All my repositories are on a single server on my network. Network connections are at 100 MBs.
    Server configuration:
    Windows 2000 Advanced Server
    Dual Xeon 3.00 GHz
    5 GB RAM
    300 GB Hard drive space on RAID 1 and RAID 5 arrays.
    Oracle 9i Enterprise (9.2.0.4.0)

    Hi Mark
    I too have OWB and a 9i database on my laptop and it works fine. My laptop has 1 Gb RAM and a very fast processor. I have run it on a machine with less memory and it definitely goes slower.
    About 9 months ago I paid a lot of money to have Oracle University come to the company that I then worked for to give private OWB training. The instructor who came in told us that 1 Gb should be considered the minimum for machine running OWB in a real-world situation. He said that if we wanted to run OWB against a database on the same machine with a smaller amount of data and maps and not have many other applications open then a lower memory would suffice.
    I also definitely agree with you about the latency of the network because I have seen OWB "hang" on even a small map on a congested network. However, I have also seen it hang because of insufficient memory. It happened to me a couple of days ago on my own laptop which as I say has 1 Gb RAM. On the day it happened to me I opened my task manager and it was showing 1.5 Gb memory being consumed by various processes and therefore it was paging to my hard disk.
    Now granted OWB was not the only process on my machine because I had an email system, several word documents, an excel spreadsheet, and a couple of browswer windows open. This is what I mean by a real-world situation.
    I think I should therefore clarify that its not necessarily OWB that needs 1 Gb RAM but, because it has to share resources with several other typical office tools, it is the machine that needs to have plenty.
    Hope this helps
    Regards
    Michael

  • Problems Logging in Client Application after Download and Setup

    I'm having trouble running the desktop Client x64 bit Client application for the Primavera (P6) Version 7 Project Management program. Throughout the entire download and configuration process, I have written down all user names and passwords needed.
    Once installed, I attempted to log in to the software with both "admin" and "system" usernames (along with my password configured during my registration with the E-Delivery Oracle software. The default database provided is "ORAPMDB".
    After attempting there, I went through the user guides that came with the zip file(s) and ran through the "Getting Started Guide" for Oracle Database Express Edition (Oracle Database XE), which included signing in as the database administrator and setting up a sample user profile (username "hr", password "hr") and creating my first application. I have no idea what the significance of having an "application" created has on logging in to Primavera, but the "Stand Alone V7.0.0.0.3." PDF guide suggested I run through that process and obtain a database username and password before launching the Project Management Module. Of course, none of the usernames or passwords used in the Oracle Database XE program work with P6.
    Has anyone run in to this similar issue before? Any help would be much appreciated.
    Drew

    It sounds as if you ran a stand-alone P6v7 installation... Did you try username = "admin" password = "admin" when logging into the P6 client?
    What is the exact error message you receive? Invalid login or unable to connect to the database?

  • Iphone client application using SUP build problem

    Hi,
      I created client application for iphone. while building i am getting the following error Parse issue in the "SUPLogLevel.h" file like "Expected selector for objective-c method" at the
    +(int)DEBUG method.  Howevevr i did not change anything in that SUP given include file. Can anybody plese help me how to solve this.
    Thanks in Advance.
    bala

    Hi Bala,
    Did you manage to resolve this error?
    I saw on a different post of yours that this was something to do with the version of SUP and SDK you were using at the time? Error while building SUP based iphone client application
    Our developer is facing the same issue with her libraries now and I am trying to investigate where this comes from. Your insight will be very useful.
    The issue takes place under the SUPLogLevel.h for the (int) Error method.
    She mentioned that she updated her xCode recently. Is this something that may caused the issue?
    Thanks in advance!!
    George Lazaridis

  • Owb client+performance+x-windows

    Hi,
    We are using 11.2.0.1 and finding the performance of OWB slow e.g opening mappings, control center etc.
    Machine has enough memory (2.5 GB and checked memory being used in task manager for owb.exe (about 400 M), total being used on PC at any time for all applications aboout 1.5gb and ruled out network latency as tested other cleint/server applications to access the same machine and dataabse and these are fine performance-wise.
    The server is located in the same building as the cleint and is a UNIX server.
    We are using the cumulative patch recommended by Oracle for performance reasons - still same problem.
    Anybody any other tips to get design center/control center to open quickly etc?
    Used previous suggestions such as Tools/Optimise repository etc and purging of audit tables.
    Another question
    Is it possible to run owb client (i.e. open/amend/deploy/run mapppings etc with the windows interface directly on the UNIX server (~e.g using x-windows) as opposed to the client WINDOWS pc
    Many Thank

    Hi
    There are patches with performance related fixes in this area, if you can upgrade to 11.2.0.2 that is advised otherwise there is a mega patch for 11.2.0.1;
    BEST --> OWB 11.2.0.2 + megapatch v3 (12874883)
    ALTERNATE --> OWB 11.2.0.1 + patch for bug 10270220: Mega Patch v2 (supersedes patch 9802120)
    Cheers
    David

  • Cannot launch OWB Client 9.0.3.36.3

    I applied the 9.0.3.36.3 patch Archive successfully without any problems. Post installation, the OWB Client hangs without even bringing up the login dialog box. My desktop OS is Windows XP. Before this patch application, there was no problem with OWB Client. Anyone had this problem or know of this issue?
    Thanks,
    Chida

    Hi Chida,
    What happens if you try to start the client using the .Bat file? It is in your OWB home, owb\bin\wind32
    This gives you and us an idea on what is happening. If you get to the text in the dos box, please copy it and add it to the forum. We'll take a look at it.
    Thanks,
    Jean-Pierre

  • Error while invoking a Dataservice from client application

    Hi,<br><br>
    Code snippet of Client to invoke DataService is....<br><br>
    Hashtable h = new Hashtable();<br>
    h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");<br>
    h.put(Context.PROVIDER_URL,"t3://10.1.5.31:7001");<br>
    h.put(Context.SECURITY_PRINCIPAL,"weblogic");<br>
    h.put(Context.SECURITY_CREDENTIALS,"weblogic"); <br>
    Context context = new InitialContext(h);<br>
    DataService ds =DataServiceFactory.newDataService(context, "HLCApp","ld:HLCAppDataServices/com/pfizer/hlc/dataservices/HCP_DETAILS"); <br>
    <u>DataObject obj= (DataObject) ds.invoke("HCP_DETAILS", null);</u><br>
    System.out.println(" HCP details : \n" + obj);
    <br><br><br>
    The line(which is underlind) is causing the error(I checked by putting some System.outs).
    <br>
    While invoking a DataService from the Client application(Java Client) I am getting the following error in the console.
    <br><br>
    Exception in thread "main" com.bea.ld.dsmediator.client.exception.SDOMediatorExc
    eption: com.bea.ld.dsmediator.client.exception.SDOMediatorException: weblogic.rj
    vm.PeerGoneException: ; nested exception is:
    java.io.EOFException
    at com.bea.ld.dsmediator.client.XmlDataServiceBase.invoke(XmlDataService
    Base.java:114)
    at com.pfizer.hlc.DSClient.HCP.main(HCP.java:23)
    Caused by: com.bea.ld.dsmediator.client.exception.SDOMediatorException: weblogic
    .rjvm.PeerGoneException: ; nested exception is:
    java.io.EOFException
    at com.bea.ld.dsmediator.client.XmlDataServiceBase.invokeQuery(XmlDataSe
    rviceBase.java:183)
    at com.bea.ld.dsmediator.client.XmlDataServiceBase.invoke(XmlDataService
    Base.java:102)
    ... 1 more
    Caused by: weblogic.rjvm.PeerGoneException: ; nested exception is:
    java.io.EOFException
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
    ava:108)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:290)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:248)
    at com.bea.ld.Server_ydm4ie_EOImpl_816_WLStub.executeFunction(Unknown So
    urce)
    at com.bea.ld.dsmediator.client.XmlDataServiceBase.invokeQuery(XmlDataSe
    rviceBase.java:157)
    ... 2 more
    Caused by: java.io.EOFException
    at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:897
    at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.ja
    va:599)
    at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:549)
    at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:707)
    at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:654)
    at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
    82)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
    32)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    <br><br><br><br>
    <b>And in the server's log file the exception is like below</b><br><br>
    <Nov 1, 2006 4:29:31 PM IST> <Error> <RJVM> <gsipl-c2-8> <cgServer> <ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <BEA-000503> <Incoming message header or abbreviation processing failed
    <b>java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940</b>
    java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
         at java.io.ObjectStreamClass.initNonProxy(Ljava.io.ObjectStreamClass;Ljava.lang.Class;Ljava.lang.ClassNotFoundException;Ljava.io.ObjectStreamClass;)V(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
         at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
         at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:33)
         at java.io.ObjectInputStream.readExternalData(Ljava.io.Externalizable;Ljava.io.ObjectStreamClass;)V(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
         at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
         at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
         at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
         at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:212)
         at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:251)
         at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:748)
         at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:782)
         at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    <br><br><br>
    <b>My workstation environment is</b>
    Weblogic 8.1 SP6,Aqualogic 2.0 ,os is WindowsXP and JDK is jrockit81sp6_142_10.
    <br><br><br>
    Does anyone have any idea, why i am getting this error.
    <br><br>
    Thanks,<br>
    Suresh varma.

    Hi Suresh varma
    Did you get any answer for your problem?
    I'm having the exact same problem. Working with Weblogic 8.1 SP6 and getting this strange message whenever I'm calling my data service.
    I've followed the guidlines given on the URL posted here, and still getting the same message.
    Let me know if you have any idea.
    Cheers
    Rod

  • Java.nio select() method return 0 in my client application

    Hello,
    I'm developing a simple chat application who echo messages
    But my client application loop because the select() method return 0
    This is my code
    // SERVER
    package test;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.ServerSocketChannel;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    public class Server {
         private int port = 5001;
         public void work() {               
              try {
                   ServerSocketChannel serverSocketChannel = ServerSocketChannel.open();
                   serverSocketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(port);               
                   serverSocketChannel.socket().bind(isa);
                   Selector selector = Selector.open();
                   serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);
                   System.out.println("Listing on "+port);
                   while(selector.select()>0) {
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();) {
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isAcceptable()) {
                                  ServerSocketChannel keyChannel = (ServerSocketChannel)key.channel();                              
                                  SocketChannel channel = keyChannel.accept();
                                  channel.configureBlocking(false);                              
                                  channel.register(selector, SelectionKey.OP_READ );
                             } else if (key.isReadable()) {
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  String m = Help.read(keyChannel );
                                  Help.write(m.toUpperCase(), keyChannel );
              } catch (IOException e) {                                             
                   e.printStackTrace();                         
         public static void main(String[] args) {
              Server s = new Server();
              s.work();
    // CLIENT
    package test;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Client extends JFrame  {
         private String host = "localhost";
         private int port = 5001;
         private SocketChannel socketChannel;
         private Selector selector;
         public void work() {               
              try {
                   socketChannel = SocketChannel.open();
                   socketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(host, port);               
                   socketChannel.connect(isa);
                   selector = Selector.open();
                   socketChannel.register(selector, SelectionKey.OP_CONNECT | SelectionKey.OP_READ );
                   while(true) {
                        selector.select();
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();) {
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isConnectable()) {
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  if (keyChannel.isConnectionPending()) {
                                       System.out.println("Connected "+keyChannel.finishConnect());                                                                           
                             } else if (key.isReadable()) {                                                                                                                                                           
                                  SocketChannel keyChannel = (SocketChannel) key.channel();                                             
                                  String m = Help.read(keyChannel);
                                  display(m);                                                                                                                                                                                                                   
              } catch (IOException e) {                                             
                   e.printStackTrace();                         
         private void display(final String m) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        area.append(m+"\n");
                        textFieed.setText("");
         private void sendMessage(final String m) {
              Thread t = new Thread(new Runnable() {               
                   public void run() {                                                                                
                        try {                         
                             Help.write(m, socketChannel);
                        } catch (IOException e) {               
                             e.printStackTrace();
              t.start();                    
         public Client() {
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(1);
              textFieed.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode()== KeyEvent.VK_ENTER) {
                             String m = textFieed.getText();
                             sendMessage(m);     
              area.setEditable(false);
              getContentPane().add(textFieed, "North");
              getContentPane().add(new JScrollPane(area));
              setBounds(200, 200, 400, 300);
              show();
         private String messageToSend;
         private JTextArea area = new JTextArea();
         JTextField textFieed = new JTextField();
         public static void main(String[] args) {
              Client s = new Client();
              s.work();
    // HELPER CLASS
    package test;
    import java.io.IOException;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    import java.nio.channels.SocketChannel;
    import java.nio.charset.Charset;
    import java.nio.charset.CharsetDecoder;
    import java.nio.charset.CharsetEncoder;
    public class Help {
         private static Charset charset = Charset.forName("us-ascii");
         private static CharsetEncoder enc = charset.newEncoder();
         private static CharsetDecoder dec = charset.newDecoder();
         private static void log(String m) {
              System.out.println(m);
         public static String read(SocketChannel channel) throws IOException {
              log("*** start READ");                              
              int n;
              ByteBuffer buffer = ByteBuffer.allocate(1024);
              while((n = channel.read(buffer)) > 0) {
                   System.out.println("     adding "+n+" bytes");
              log("  BUFFER REMPLI : "+buffer);
              buffer.flip();               
              CharBuffer cb = dec.decode(buffer);          
              log("  CHARBUFFER : "+cb);
              String m = cb.toString();
              log("  MESSAGE : "+m);          
              log("*** end READ");
              //buffer.clear();
              return m;                    
         public static void write(String m, SocketChannel channel) throws IOException {          
              log("xxx start WRITE");          
              CharBuffer cb = CharBuffer.wrap(m);
              log("  CHARBUFFER : "+cb);          
              ByteBuffer  buffer = enc.encode(cb);
              log("  BUFFER ALLOUE REMPLI : "+buffer);
              int n;
              while(buffer.hasRemaining()) {
                   n = channel.write(buffer);                         
              System.out.println("  REMAINING : "+buffer.hasRemaining());
              log("xxx end WRITE");

    Here's the fix for that old problem. Change the work method to do the following
    - don't register interest in things that can't happen
    - when you connect register based on whether the connection is complete or pending.
    - add the OP_READ interest once the connection is complete.
    This doesn't fix all the other problems this code will have,
    eg.
    - what happens if a write is incomplete?
    - why does my code loop if I add OP_WRITE interest?
    - why does my interestOps or register method block?
    For code that answers all those questions see my obese post Taming the NIO Circus
    Here's the fixed up Client code
    // CLIENT
    package test
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Client extends JFrame  {
         private String host = "localhost";
         private int port = 5001;
         private SocketChannel socketChannel;
         private Selector selector;
         public void work() {
              try {
                   socketChannel = SocketChannel.open();
                   socketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(host, port);
                   socketChannel.connect(isa);
                   selector = Selector.open();
                   int interest = 0;
                   if(socketChannel.isConnected())interest = SelectionKey.OP_READ;
                   else if(socketChannel.isConnectionPending())interest = SelectionKey.OP_CONNECT;
                   socketChannel.register(selector, interest);
                   while(true)
                        int nn = selector.select();
                        System.out.println("nn="+nn);
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();)
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isConnectable())
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  System.out.println("Connected "+keyChannel.finishConnect());
                                  key.interestOps(SelectionKey.OP_READ);
                             if (key.isReadable())
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  String m = Help.read(keyChannel);
                                  display(m);
              } catch (IOException e) {
                   e.printStackTrace();
         private void display(final String m) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        area.append(m+"\n");
                        textFieed.setText("");
         private void sendMessage(final String m) {
              Thread t = new Thread(new Runnable() {
                   public void run() {
                        try {
                             Help.write(m, socketChannel);
                        } catch (IOException e) {
                             e.printStackTrace();
              t.start();
         public Client() {
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(1);
              textFieed.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode()== KeyEvent.VK_ENTER) {
                             String m = textFieed.getText();
                             sendMessage(m);
              area.setEditable(false);
              getContentPane().add(textFieed, "North");
              getContentPane().add(new JScrollPane(area));
              setBounds(200, 200, 400, 300);
              show();
         private String messageToSend;
         private JTextArea area = new JTextArea();
         JTextField textFieed = new JTextField();
         public static void main(String[] args) {
              Client s = new Client();
              s.work();

  • How can I start a client Application from a procedure?

    Hello, can someone help me to solve this problem?
    I've written a client Application.(just one file Client.java) Then I created a .jar file for my applicaiton component and loaded it to the server using loadjava. (MyExample.jar)
    It should be invoked by a procedure, which I've created.
    create or replace procedure TEST as language java name 'MyExample.main(java.lang.String[])';
    But when I want to start it in the SQl*Plus using "call TEST();", I received the message:
    Executing PL/SQL: CALL COSMOS."JDEV_TMP_PROC_1"()
    ORA-29541: Klasse COSMOS.CompUpdateClient konnte nicht aufgelöst werden
    ORA-06512: in "COSMOS.TEST", Zeile 0
    ORA-06512: in "COSMOS.JDEV_TMP_PROC_1", Zeile 3
    ORA-06512: in Zeile 1
    Process exited.
    Can someone tell me why and how I can solve it?
    Thanks
    Lucia

    As Andrew suggested, it might be an issue with broken java installation on your system.
    You could try performing following steps to see if you get similar results. This will verify if there is something with your java installation or something to with the way you coded your java class(es).
    (since you did not post the code, I'm not sure which one might be a problem.
    SQL> create or replace and compile java source named "Hello" as
      2  import java.lang.* ;
      3  import java.util.* ;
      4
      5  public class Hello
      6  {
      7    public static void Say()
      8    {
      9     System.out.println("Hello World in Java!") ;
    10    }
    11  }
    12  /
    Java created.
    SQL>
    SQL> create or replace procedure Hello_Java is
      2  language java
      3  name 'Hello.Say()' ;
      4  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> set serveroutput on size 100000
    SQL> exec dbms_java.set_output(100000) ;
    PL/SQL procedure successfully completed.
    SQL> exec Hello_Java ;
    Hello World in Java!
    PL/SQL procedure successfully completed.
    SQL>

  • Error while fetching data from OWB Client using External Table.

    Dear All,
    I am using Oracle Warehouse Builder 11g & Oracle 10gR2 as repository database on Windows 2000 Server.
    I facing some issue in fetching data from a Flat File using external table from OWB Client.
    I have perform all the steps without any error but when I try to view the data, I got the following error.
    ======================================
    RA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
         at oracle.wh.ui.owbcommon.QueryResult.<init>(QueryResult.java:18)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleQueryResult.<init>(OracleDVTableModel.java:48)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleDVTableModel.doFetch(OracleDVTableModel.java:20)
         at oracle.wh.ui.owbcommon.dataviewer.RDVTableModel.fetch(RDVTableModel.java:46)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel$1.actionPerformed(BaseDataViewerPanel.java:218)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel.executeQuery(BaseDataViewerPanel.java:493)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.init(BaseDataViewerEditor.java:116)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.<init>(BaseDataViewerEditor.java:58)
         at oracle.wh.ui.owbcommon.dataviewer.relational.DataViewerEditor.<init>(DataViewerEditor.java:16)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.wh.ui.owbcommon.IdeUtils._tryLaunchEditorByClass(IdeUtils.java:1412)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1349)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1367)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:869)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:856)
         at oracle.wh.ui.console.commands.DataViewerCmd.performAction(DataViewerCmd.java:19)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ===========================
    In the error it is showing that file expense_categories.csv in SOURCE_LOCATION not found but I am 100% sure that file is very much there.
    Is anybody face the same issue?
    Do we need to configure something before loading data from a flat file from OWB Client?
    Any help would higly appreciable.
    Regards,
    Manmohan Sharma

    Hi Detlef / Gowtham,
    Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
    One way I have achieved as suggested by you
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copy all flat files on OWB Server
    5) Updated the location which I created at the client.
    Other way
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
    Hence my problem solved.
    Thanks a lot.
    Regards,
    Manmohan

  • How to invoke A CORBA-Java Client Application, from Oracle???

    Hi,
    I have a CORBA-Java Client Application, which takes the input parameters from a Oracle table and calls the CORBA Server, passes these parameters to the C++ Server Application and gets the results back thorugh CORBA.
    My problem is, this java application needs to be invoked, when ever there is a new record in the Oracle table.
    I am not sure if i can use Java Stored Procedures in Oracle in this case, because my app is in Sun JVM and i am using BEA WebLogic Enterprise 5.1 for the CORBA.
    Is there any other way by which i can invoke this app, when a new record is updated in the Oracle table?
    Currently, i have just put a TIMER in my java App, to check the oracle table in every few seconds, to see if there is a new reocrd. If it finds a new record it invokes the corresponding class(corba class), or else just keep sending a messsage that no new record is available.
    The problems i am facing in this method are as follows;
    1. Unnecessarily, the application has to keep on running if there is no request coming frequently.
    2. When there is a new record found, the Corba Class is called and the whole process (till it gets the result back from the server) takes about 20 - 30 secs. But within this period, if there is another record coming into Oracle table, my timer class doesnt invoke another corba class....(though i am using multithreading by using the RemidTask method in the timer.schedule.
    (timer.schedule(new RemindTask(),10,5*1000);)
    3. Also, if during the first call, there is some error, then the whole process exits, instead of another process running parallely (when a second new record is found).
    So how does this timer class act like a multithreading process?
    Well, i hope i am not confusing....Please let me know if anyone wants bit more elaboration on this.
    It would be really helpful if someone can suggest some answer to my problem.
    Thanks in advance.

    Thank you very much Keith.
    Though i am really getting a hope of solving this problem, from you answer, i am actually not 100% sure if i understood your reply properly.
    First of all, about
    1. "use the update stored procedure to place the updated record (or unique index) onto an Oracle Application Queue."
    -- Why do i need to put the record in the AQ. (Frankly speaking, at this moment i dont have much idea about AQ, probably i can learn more about it from oracle technet site? Or would u suggest anything else?)
    Then,
    2."Your app then waits on this queue and for each new message, consumes it, gets the data required from the AQ load (e.g the index and or record), and fires off the CORBA class"
    -- How does my application stay in the queue? and gets the data from the queue?
    Of course, as far as i understand, i am going through the same principle...keeping on running a timer class, which keeps on checking the table for a new record, and when it finds, it calls the CORBA class.
    Of course, i feel there should be a difference in running the timer continuosly and staying in queue. However i am totally unaware, how can i make my java app to wait in the queue and waits for a new record?
    Can you please elaborate your answer a bit more, because i dont know about the AQ, that you have mentioned.
    Thank you very much in advance for your time. But please know that it will be of great help to me and hence will be higly appreciated.
    Regards,
    Subhasree.

  • Getting Error While Deploying SOADEMO-CLIENT Application

    Hi All,
    I got an error while deploying the SOADEMO-CLIENT application. Below is the error message.
    Error(119,9): CustomerServiceSoapHttp_Stub not found in class oracle.soademo.view.services.runtime.CustomerSvc_Impl .
    Please help how to resolve this problem .
    Thanks
    KOTI

    Yes, I did previously did the same thing, got same error. After I deleted the workspace. Again started the process from new work space.
    But this time also got same error.
    When I double click on the error, CustomerSvc_Impl.java opened in Jdeveloper and showinf errors at below line.
    oracle.soademo.view.services.runtime.CustomerServiceSoapHttp_Stub stub = new oracle.soademo.view.services.runtime.CustomerServiceSoapHttp_Stub (handlerChain);
    try {
    stub. _initialize* (super.internalTypeRegistry);
    Note : The bold string is showing errors.
    Edited by: user11118888 on May 14, 2009 5:25 PM

Maybe you are looking for

  • Studio 12.1 Performace Analyzer 7.7 problem, with 'er_print' utility.

    I am having a minor but nagging problem with a regression in the ‘er_print’ utility of the Sun Performance Analyzer suite bundled in Studio 12. is there maybe a patch available or in the works? I have not had any success in finding a resolution by se

  • Asset Report

    Hi Friends, Please help me on the below Aset report My Client need the Aseet report with the below details 1. ASSET Name 2. Vendor name 3. Supplier name 4. Capitalized date 5. Invoice date and bill no 6. CENVAT 7. CST/VAT 8. Freight 9. Total credit t

  • How do I reset Safari (clear cache) from the command line?

    I have a macmini that runs in Safari in kiosk mode. I would like to be able to ssh into it and clear the browser cache. I don't have access to the system via a keyboard or mouse. Which files do I need to edit? Do I need to restart Safari after I make

  • How to change the Schema Location ??

    Hi , I need to change the Schema name which is registered through the Deployment Manager . OWB allows all other Parameters to change except the Schema name . Any workaround ???

  • How to identify the Photoshop Trial or Licensed version installed, only through files/registry ?

    Hi, Please help me out here. I need to identify the Adobe Photoshop CS4 Trial installation to that of fully purchased/licensed installation, only using files/registry entries. Thanks in Advance.