Asynchronous FDK Client (FDK8) connection to Frame Maker Process

Dear Sir:
Product: Windows Frame Maker 8, Windows FDK 8, Windows XP 2002, Service Pack 2, 1.99 GB of RAM.
1. If I would like to do a Frame Maker 8 created XDocBook XML file to RTF without manual intervention, like Open Frame Maker and do SaveAs as .rtf, I would like to know if write an Asynchronous FDK Client which could connect to the registered Frame Maker process and perform Open and SaveAs is the direction to go? If not, what should I do? Our project would like to run an batch process that can be called to do the conversion.
2. If followed all the steps, from pages 41 to 54, in FDK 7.2 Platform Guide, Windows. I compiled and run the sample program on pages 51-52. Things look good until line 42. The Frame Maker was up, but I got the "No connection: xxx" for my Frame Maker process after I called the "if (!F_ApiAlive())". The GUID for the registered process is "{0FAE997D-FCA0-4C84-8574-27676C0F4E79}". After line 38, I got "fae997d" for the pclsid. if the conversion is correct or wrong? What's might be the problem?
Thank you so much and I am looking forward to hearing from your answers.
Sylvia

Hi Russ:
Thank you for your reply. After a few more twists, I made the connection between my asynchronous client and FM, and I got the positive return from "F_ApiAlive()". So that's great.
BTW, have you done any things like batch conversion for one file format to other file format, like from .XML to .rtf on Windows? If so, how do you do it?
Thanks a lot.

Similar Messages

  • Can I find out how many clients are connected to a server process?

    Hi, I am hoping I can find out how many clients are connected to a server process. This could be either a programmatic lookout number, a number in a log file etc.
    By the way, does lookout have any application (not data) logs? I have noticed that occasionally lookout will crash and I cannot find any logs to determine why, what processes were running, who last accessed it etc.
    Thanks

    Hello,
    There's currently no way to acquire this data. I think that'd be a great suggestion for the product. Please submit your feedback to our developers at the following link: http://digital.ni.com/applications/psc.nsf/default?OpenForm&temp1=&node=
    Best regards,
    Yusuf C
    Application Engineer
    National Instruments

  • Query about Frame maker 11

    Hi All
    This is regarding a query about Frame maker 11.
    I have seen the in the FDK guide of FM 11 which states that  "To compile FDK clients for Windows, you must use Microsoft Visual Studio 2010."
    So do we need a separate installation of  Microsoft Visual Studio 2010 in order to develop/compile  FDK clients apart from FM11 installation  or is its a part of FM11 software?
    could you please any one can clarify on this .
    Thank you .
    Regards
    Ramesh

    AFAIK, you have to supply your own IDE & compiler.

  • Windows 7 Pro Client loses connectivity to internal Win2k8 web server

    1. affected workstation are Optiplex 380 running Win 7 pro sp1 with broadcom NICs.
    2. Internal users use a internal webserver for customer invoicing application. Users lose connectivity to this internal web server, all other networking works, network shares, internet, etc. If I try to ping the webserver IP I get no reply. XP
    machines are not affected. Not a DHCP issue as there are plenty of IPs.
    3. I have tried different internal NICs (3com) but still had issue. I have upgraded BIOS, nic drivers. etc.
    4. I rebuilt one of the machines using Windows XP pro sp3 and have had no issue with that workstation.
    the problem started a few months or so ago. I have not been able to determine the source. I tried running wireshark but nothing stuck out. I have changed the session settings on the IIS server from 15 minutes to 6 hours but did not make a difference.
    5. Today when client lost connectivity to the server I tried pinging from the server back to the client and the connection was restored. This issue really has me confused as I cannot find anything in the logs that sticks out.

    Hello,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.

  • Remote access VPN client gets connected fails on hosts in LAN

    Hi,
    VPN client gets connected fine, I have a inter VLAN routing happening on the switch in the LAN so all the LAN hosts have gateway IP on the switch, I have the defult route pointing to ASA inside interface on the switch, the switch I can reach after Remote Access VPN is connected how ever I cannot ping/connect to other hosts in the LAN and if I make the gateway point to the ASA then that host is accessible, any suggestions? I really want to have gateway to be the Switch as I have other networks reachable through the Switch (Intranet routing)

    Hi Mashal,
    Thanks for your time,
    VPN Pool(Client) 192.168.100.0/24
    Internal Subnets 192.9.200.0/24(VLAN 4000) and 192.168.2.0/24 (VLAN 1000)
    =============
    On the Switch
    =============
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2
           i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
           ia - IS-IS inter area, * - candidate default, U - per-user static route
           o - ODR, P - periodic downloaded static route
    Gateway of last resort is 192.168.2.5 to network 0.0.0.0
         172.32.0.0/24 is subnetted, 1 subnets
    C       172.32.0.0 is directly connected, Vlan101
    C    192.168.200.0/24 is directly connected, Vlan2000
    C    192.9.200.0/24 is directly connected, Vlan4000
    S    192.168.250.0/24 [1/0] via 192.9.200.125
    S    192.168.1.0/24 [1/0] via 192.9.200.125
    C    192.168.2.0/24 is directly connected, Vlan1000
    S    192.168.252.0/24 [1/0] via 192.9.200.125
    S*   0.0.0.0/0 [1/0] via 192.168.2.5
    ===============
    On ASA
    ===============
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
           i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
           * - candidate default, U - per-user static route, o - ODR
           P - periodic downloaded static route
    Gateway of last resort is 172.32.0.2 to network 0.0.0.0
    C    172.32.0.0 255.255.255.0 is directly connected, outside
    C    192.9.200.0 255.255.255.0 is directly connected, inside
    C    192.168.168.0 255.255.255.0 is directly connected, failover
    C    192.168.2.0 255.255.255.0 is directly connected, MGMT
    S    192.168.100.2 255.255.255.255 [1/0] via 172.32.0.2, outside
    S    192.168.100.3 255.255.255.255 [1/0] via 172.32.0.2, outside
    S*   0.0.0.0 0.0.0.0 [1/0] via 172.32.0.2, outside
    We don't need route print on the PC for now as I can explain what is happening I can get complete access to the 192.168.2.0/24 (VLAN 1000) but for 192.9.200.0/24 (VLAN 4000) above from the switch I can only ping IP's on the switches/pair but cannot have any tcp connections, which explains the default route being pointed on the switch is on VLAN 1000, now my issue is How do I get access to VLAN 4000 as you can see these two are on different Interfaces/zones on the ASA and please note with default gateway pointing to ASA I will have access to both the VLAN's it is only when I move the gateway pointing to Switch I loose tcp connections to one VLAN depending on the default route  on the being pointing to on the switch.
    So we are left to do with how to on the switch with default route.

  • How to find a text in the Frame maker document via script?

    How to find a particular text in the Frame maker document via script?

    johnsyns wrote:
    Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
    Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
      5  /
    no rows selected
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY  '
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> SY.

  • VPN clients can connect via SSTP but not IKEv2 due to error 808

    I have a Windows Server 2012 R2 with RRAS configured to allow SSTP / IKEv2 VPN connections. I'm using an external certificate for server authentication and the client authentication is done via domain username/password (Protected EAP). The clients can
    connect successfully when using SSTP, but if IKEv2 is selected, then the following error is displayed:
    Error 808:
    The network connection between your computer and the VPN server could not be established because the remote server refused the connection. This is typically caused by a mismatch between the server's configuration and your connection settings. Please
    contact the remote server's Administrator to verify the server configuration and your connection settings.
    My external certificate has the Server Authentication EKU but not the IP security IKE intermediate, however it's the only
    certificate installed, so I believe the certificate is OK.
    Any ideas on what is causing the error?
    Thank you.
    Ricardo Costa

    Hi,
    What NAT device you are using? You must configure the IKEv2 related protocol on your NAT device too. For example if you are using the Cisco® NAT device you must
    enable the IKEv2 support on the outside interface:
    Enabling IKE on the Outside Interface
     You must enable IKE on the interface that terminates the VPN tunnel. Typically this is the outside, or public interface. To enable IKEv1 or
    IKEv2, use the crypto ikev1 | ikev2 enable command from global configuration mode:
    =================================================
    crypto ikev1 | ikev2 enable interface-name
     For example:
    hostname(config)# crypto ikev1 enable outside
    =================================================
    The related third party information:
    Configuring IPSec and ISAKMP
    http://www.cisco.com/c/en/us/td/docs/security/asa/asa84/configuration/guide/asa_84_cli_config/vpn_ike.html#wp1042302
    You can refer the following KB to enable the RRAS logging.
    RRAS: Logging should be enabled on the RRAS server
    http://technet.microsoft.com/zh-cn/library/ee922651(v=ws.10).aspx
    Hope this helps.
    *** This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does
    not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers
    in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. ***
    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.

  • Monitor how many client is connected

    How can I monitor how many clients is connected to my statefull controller bean? I want to used it as a part of my license application.
    I have tried to make a static variable "clients" which increase when ejbcreate is called and decrease when ejbremove is called. But this solution is not realible? Any other solution?

    Hi...why dont you keep a counter in the class / java bean which calls this stateful controller bean ? That way each hit would be registered and you wont be relying on instance creations for an actual count.
    Just a thought.

  • Client wont connect to closest AP

    hi every one
    this is the second post. the first one is missing!
    long story short, client connection is random. doesnt connect to the closest AP.
    i have situation like 40 clients connected to one AP and 2 meter away an AP only servicing 4 ! 
    i have wlc 5508 and 100 AP. i tried aggressive load balancing and end up having more issue! tried restrict an AP to 25 but no use i can see some AP servicing 40 clients no matter what i define. i disabled the slow data rate nothing happened. i have none CCX clients but on few CCX client no difference and same result
    is there anyone who can tell me how to force the client to connect to closest AP?
    really frustrated , thanks for your comments. 

    HI Leo
    Thanks. I think you are making a valid point. here we are a school and have multiple brand laptops. some of them has the aggressive mobility feature. some dont. I start to play with a test machine and see if it actually makes a difference
    on the WLC the DCA is set to auti but the TPCv2 is enabled. I changed it to v1 and im going to test it now. I'll keep you posted as soon as the test finished.
    at the moment it is what the client see:
          Number of Mic Failured Packets............. 0
          Number of Mic Missing Packets.............. 0
          Number of RA Packets Dropped............... 0
          Number of Policy Errors.................... 0
          Radio Signal Strength Indicator............ -52 dBm
          Signal to Noise Ratio...................... 46 dB
    Client Rate Limiting Statistics:
          Number of Data Packets Recieved............ 0
          Number of Data Rx Packets Dropped.......... 0
          Number of Data Bytes Recieved.............. 0
          Number of Data Rx Bytes Dropped............ 0
          Number of Realtime Packets Recieved........ 0
          Number of Realtime Rx Packets Dropped...... 0
          Number of Realtime Bytes Recieved.......... 0
          Number of Realtime Rx Bytes Dropped........ 0
    --More-- or (q)uit
          Number of Data Packets Sent................ 0
          Number of Data Tx Packets Dropped.......... 0
          Number of Data Bytes Sent.................. 0
          Number of Data Tx Bytes Dropped............ 0
          Number of Realtime Packets Sent............ 0
          Number of Realtime Tx Packets Dropped...... 0
          Number of Realtime Bytes Sent.............. 0
          Number of Realtime Tx Bytes Dropped........ 0
    Nearby AP Statistics:
          VisualARTS_A(slot 0)
            antenna0: 34 secs ago.................... -88 dBm
            antenna1: 34 secs ago.................... -88 dBm
          Senior_DS2.4B(slot 0)
            antenna0: 34 secs ago.................... -90 dBm
            antenna1: 34 secs ago.................... -87 dBm
          Senior_DS2.8(slot 0)
            antenna0: 34 secs ago.................... -89 dBm
            antenna1: 34 secs ago.................... -85 dBm
          Senior_EnglishOff(slot 0)
            antenna0: 34 secs ago.................... -61 dBm
            antenna1: 34 secs ago.................... -54 dBm
          Senior_EnglishOff(slot 1)
            antenna0: 37 secs ago.................... -72 dBm
    --More-- or (q)uit
            antenna1: 37 secs ago.................... -76 dBm
          Senior_DS2.7(slot 0)
            antenna0: 34 secs ago.................... -87 dBm
            antenna1: 34 secs ago.................... -80 dBm
          SeniorSchool(slot 0)
            antenna0: 34 secs ago.................... -82 dBm
            antenna1: 34 secs ago.................... -78 dBm
          Senior_DS1.6(slot 0)
            antenna0: 34 secs ago.................... -62 dBm
            antenna1: 34 secs ago.................... -67 dBm
          Senior_DS1.6(slot 1)
            antenna0: 37 secs ago.................... -68 dBm
            antenna1: 37 secs ago.................... -71 dBm
          Senior_DS1.2A(slot 0)
            antenna0: 34 secs ago.................... -34 dBm
            antenna1: 34 secs ago.................... -37 dBm
          Senior_DS1.2A(slot 1)
            antenna0: 37 secs ago.................... -32 dBm
            antenna1: 37 secs ago.................... -49 dBm
          Senior_DS2.4A(slot 0)
            antenna0: 34 secs ago.................... -87 dBm
            antenna1: 34 secs ago.................... -89 dBm
          Science_Indonesia(slot 0)
    --More-- or (q)uit
            antenna0: 34 secs ago.................... -93 dBm
            antenna1: 34 secs ago.................... -89 dBm
          Senior_HeadOfHous(slot 0)
            antenna0: 34 secs ago.................... -73 dBm
            antenna1: 34 secs ago.................... -74 dBm
          Senior_DS2.2(slot 0)
            antenna0: 34 secs ago.................... -80 dBm
            antenna1: 34 secs ago.................... -80 dBm
          Senior_DS1.7(slot 0)
            antenna0: 34 secs ago.................... -59 dBm
            antenna1: 34 secs ago.................... -50 dBm
          Senior_DS1.7(slot 1)
            antenna0: 36 secs ago.................... -70 dBm
            antenna1: 36 secs ago.................... -74 dBm
          Senior_Students_R(slot 0)
            antenna0: 34 secs ago.................... -85 dBm
            antenna1: 34 secs ago.................... -83 dBm
          Senior_DS1.4(slot 0)
            antenna0: 34 secs ago.................... -60 dBm
            antenna1: 34 secs ago.................... -64 dBm
          Senior_DS1.4(slot 1)
            antenna0: 36 secs ago.................... -73 dBm
            antenna1: 36 secs ago.................... -74 dBm
    --More-- or (q)uit
          Senior_DS1.2B(slot 0)
            antenna0: 34 secs ago.................... -57 dBm
            antenna1: 34 secs ago.................... -50 dBm
          Senior_DS1.2B(slot 1)
            antenna0: 37 secs ago.................... -53 dBm
            antenna1: 37 secs ago.................... -62 dBm
          Senior_DS1.5(slot 0)
            antenna0: 34 secs ago.................... -63 dBm
            antenna1: 34 secs ago.................... -65 dBm
          Senior_DS1.5(slot 1)
            antenna0: 36 secs ago.................... -79 dBm
            antenna1: 36 secs ago.................... -84 dBm
    DNS Server details:

  • Get ip client is connecting to?

    Hi!
    I've a problem, i want to get the ip the client is using to connect to my server (i'm behind a router).
    For example: A client is connecting to my server on network (ip: 192.168.2.3)
    Server says: You're connecting to ip 192.168.2.3
    A client is connecting to my server on Internet (ip: 84.xx.xx.xx)
    Server says: You're connecting to ip 84.xx.xx.xx.
    (I don't want to fetch the public ip from whatsmyip.org)
    Thanks in advance
    Edited by: [email protected] on Oct 14, 2008 12:17 PM

    [email protected] wrote:
    To bad =/ thanks for your help!Well itz not tht bad if you think of employing a signed applet which still makes things possible for us.
    You can think of implementing something similar as stated below.
    Sample Signed Applet:
    =====================
    public class ClientApplet extends JApplet{
      protected ParamBean pb;
      static protected class ParamBean implementes java.io.Serializable{
           private String sessionId = "";
           private String servletUrl = "";
           private String redirectTo = "";
           /** Setters & Getters for the respective fields*/              
      public void init (){
        pb = new ParamBean();
        pb.setSessionId(this.getParameter("SESSION_ID"));
        pb.setServletUrl(this.getParameter("SERVLET_URL"));
        pb.setRedirectTo(this.getParameter("REDIRECT_TO"));
      public void paint(Graphics gr){
        setBackground(Color.white);
        int cde = this.sendDetails();
        if(cde == 200)
           this.dispatchApplet();
        else{
          gr.drawString("Cannot Pass On the details",25, 30);  
      protected int sendDetails(){
        int code = -1;
        URL servletUrl = null;
        HttpURLConnection urlConnection = null;
        try{
          StringBuffer sb = new StringBuffer();
          sb.append(pb.getServletUrl());
          sb.append(";jsessionid=");
          sb.append(pb.getSessionId()); 
          sb.append("?clientIp=");
          sb.append(InetAddress.getLocalHost().getHostAddress());
          servletUrl = new URL(sb.toString());
          urlConnection = (HttpURLConnection) servletUrl.openConnection();
          urlConnection.setRequestMethod("GET");
          urlConnection.connect();
          code = huc.getResponseCode();     
          urlConnection.disconnect();
        }catch(Exception exp){
        return code;
      protected void dispatchApplet(){
        try{
          StringBuffer sb = new StringBuffer();
          sb.append(pb.getRedirectTo());
          sb.append(";jsessionid=");
          sb.append(pb.getSessionId());
          getAppletContext().showDocument(new URL(sb.toString()));
        }catch(Exception exp){
    }Parent JSP Page :
    =================
    <jsp:plugin type=applet code="ClientApplet.class" codebase="/html">
         <jsp:params>
              <jsp:param name="SESSION_ID" value="<%=session.getId()%>"/>
              <jsp:param name="SERVLET_URL" value="http://www.xyz.com/requestAction.do"/>
              <jsp:param name="REDIRECT_TO" value="http://www.xyz.com/redirect.do"/>
         </jsp:params>
         <jsp:fallback>
              <p>Unable to load login module</p>
         </jsp:fallback>
    </jsp:plugin>
    -------------------------------now we can write our application code in such a way that "requestAction.do" can get ipaddress by request parameter clientIp
    and can scope that within the scope of the HttpSession and use it until the end of user's session.
    All you need to make sure is the Client installs this signed applet in his machine while accessing in your application.
    Hope the that helps :)
    REGARDS,
    RaHuL

  • 6.1 Client cannot connect 6.5 Server?

    We have two versions of Essbase Server. One is 6.1 and the other is 6.5. We want to connect both server using only one set of client software. I cannot connect to 6.1 server using 6.5 client software, it said version problem or something like this. When I connect 6.5 Server using 6.1 client software, I cannot connect the server at all, it said tcp/ip problem. I can ping or telnet to the server OS. Is it possible for me to connect both 6.1 and 6.5 server using the same client software?

    Generally, client software is "forwards compatible" meaning an older client can usually connect to an older server. The reverse is not true, unless you are on Essbase 6.2 or greater (the Essbase 6.5 API can talk down to a 6.2 server, but not any older).When clients are looking to upgrade, I tell them that - but in the same sentence recommend keeping client software on the same version/patch as the Essbase server. Issues like the one you are having illustrate the types of issues you can encounter - and Hyperion will just tell you to use the proper client version.That aside - one thing to check for - Essbase 6.5 allows a DBA to change the listening port of the server. The default is 1423, which the 6.1 client will try to connect to. Make sure the 6.5 server listening port has not been changed (you have to set up the parameters, so it won't just happen for no reason).Regards,Jade------------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Server/Client Socket Connection

    Hi, I am trying to program a simple server/client socket connection program, the main function is to send and receive objects between them. I somehow went wrong and the connection between them keeps terminating right after establishing connection. Is there anything I can do to resolve this?
    This is gonnna be kinda long post.. sorry. These are the code that starts and ends the socket connection. I'm kinda desperate for this to work.. so thanks in advance.
    appinterface.java:
    //Set up server to receive communications; process connections. 1x.
         public void runServer () {
              try {
                   //Create a ServerSocket
                   server = new ServerSocket(12345, 100);
                   try {
                             waitForSockConnection();     //Wait for a connection.
                             getSockStreams();               //Get input & output streams.
                             establishDbConnection();     //Open up connection to DB.
                   finally {
                             closeSockConnection(); //Close connection.
              //Process problems with I/O
              catch(IOException ioException) {
                   displayMessage("I/O Error: " + ioException);
                   runServer();
         //Wait for connection to arrive, then display connection info
         private void waitForSockConnection() throws IOException {
              displayMessage("Waiting for connection");
              connection = server.accept(); //Allow server to accept connection.
              displayMessage("Connection received from: " + connection.getInetAddress().getHostName());
         //Get streams to send and receive data.
         private void getSockStreams() throws IOException {
              //Set up output streams for objects
              ObjectOutputStream output = new ObjectOutputStream(connection.getOutputStream());
              output.flush(); //Flush output buffer to send header information.
              //Set up input stream for objects.
              ObjectInputStream input = new ObjectInputStream(connection.getInputStream());
              try {
              classHolderServer holderObj = new classHolderServer();
              holderObj = (classHolderServer)input.readObject();
              processSockConnection(holderObj);
              displayMessage("Got I/O Streams");
              //Catch problems reading from client
              catch (ClassNotFoundException classNotFoundException) {
                             displayMessage("Unknown object type received");
         //Process connection with client.
         private void processSockConnection(classHolderServer holderObj) throws IOException {
              //sendMessage("Connection Successful");
                        //True is query, and false is auth.
                        if(holderObj.type1==true)
                             processDbStatement(holderObj.type2, holderObj.sqlquery);
                        else {
                             authCheck(holderObj.userName, holderObj.passWord);
                             if(!authCheck)
                             closeDbConnection();
         //Send messages to client.
         private void sendMessage(String message) {
              // Send message to client
              try {
                   ObjectOutputStream output = new ObjectOutputStream(connection.getOutputStream());
                   output.flush();
                   output.writeObject(message);
                   output.flush();
                   displayMessage("Message Sent:" + message);
              catch (IOException ioException) {
                   displayMessage("\nError Sending Message: " + message);
         //Send object to client
         private void sendObject(Object holderObj) {
                   // Send object to client
                   try {
                        ObjectOutputStream output = new ObjectOutputStream(connection.getOutputStream());
                        output.writeObject(holderObj);
                        output.flush();
                        displayMessage("\nObject sent");
                   //Process problems sending object
                   catch (IOException ioException) {
                        displayMessage("\nError writing object");
         //Close streams and socket.
         private void closeSockConnection() {
                   displayMessage("Terminating connection");
                   try {
                        //output.close();
                        //input.close();
                        connection.close();
                        closeDbConnection();
                        this.userName = null;
                        this.passWord = null;
                        this.receiverId = 0;
                        this.authCheck = false;
                   catch (IOException ioException) {
                        displayMessage("I/O Error: " + ioException);
              }Client:
    private void runClient() {
              //Connect to sever and process messages from server.
              try{
                   connectToServer();
                   getStreams();
                   processConnection();
              //Server closed connection.
              catch(EOFException eofException) {
                   //displayMessage"Client Terminated Connection");
              //Process problems communicating with server.
              catch (IOException ioException) {
                   //displayMessage"Communication Problem");
              finally {
                   closeConnection();
         //Connect to server
         private void connectToServer() throws IOException {
              //displayMessage("Attempting connection\n");
              //Create Socket to make connection to sever.
              client = new Socket(InetAddress.getByName(chatServer), 12345);
              //Display connection information
              //displayMessage("Connected to: " + client.getInetAddress().getHostName());
         //Get streams to send and receive data.
         private void getStreams() throws IOException {
              //Set up output stream for objects.
              ObjectOutputStream output = new ObjectOutputStream(client.getOutputStream());
              output.flush(); //Flush outout buffer to send header information.
              //Set up input stream for objects.
              ObjectInputStream input = new ObjectInputStream(client.getInputStream());
              //displayMessage("\nGot I/O streams\n");
         //Close socket connection.
         private void closeConnection() {
              //displayMessage("\nClosing connection");
              try {
                   ObjectOutputStream output = new ObjectOutputStream(client.getOutputStream());
                   output.close();
                   ObjectInputStream input = new ObjectInputStream(client.getInputStream());
                   input.close();
                   client.close();
                   authCheck=false;
              catch(IOException ioException) {
                   ioException.printStackTrace();
         //Send data to server.
         private void sendObject(classHolderClient queryObj) {
              try {
                   output.writeObject(queryObj);
                   output.flush();
                   //displayMessage("Please wait..");
              //Process problems sending object.
              catch (IOException ioException) {
                   //displayMessage("\nError writing object");
         //Process connection with server.
         private void processConnection() throws IOException {
              try{
                   classHolderClient holderObj = new classHolderClient();
                   holderObj = (classHolderClient)input.readObject();
                   if(holderObj.type2==2) {
                             this.authCheck=holderObj.authCheck;
                             this.userName=holderObj.userName;
                             this.passWord=holderObj.passWord;
              catch(ClassNotFoundException classNotFoundException) {
                   //displayMessage(classNotFoundException);
              }

    private ObjectOutputStream output = new ObjectOutputStream(client.getOutputStream());Like this? But this will cause an error asking me to catch an exception:
    C:\Documents and Settings\Moon\My Documents\Navi Projects\School\OOPJ Project\Prototype\GPS-Lite v2 Alpha Debugger\client.java:41: unreported exception java.io.IOException; must be caught or declared to be thrown
            private ObjectOutputStream output = new ObjectOutputStream(client.getOutputStream());
                                                                                             ^
    C:\Documents and Settings\Moon\My Documents\Navi Projects\School\OOPJ Project\Prototype\GPS-Lite v2 Alpha Debugger\client.java:41: unreported exception java.io.IOException; must be caught or declared to be thrown
            private ObjectOutputStream output = new ObjectOutputStream(client.getOutputStream());
                                                ^
    2 errors

  • Softphone Jabber client unable connected

    Hi All,
    i've configure cisco IM and Presence v10 integrated to CUCM v10 some service running well (UDS, CTI Deskphone, VM, Presence) but Jabber client cannot connect to Softphone  (SIP) and i was configure ucsf(Client Service Framework) for jabber client.
    please your advice.
    thank you

    Hi amit Kumar
    thanks for your information and i've configure it. i found CTLSEP not found from wireshark capture .
    Is there something wrong?
    thank you

  • Can I determine what clients are connected to my weblogic server?

    Hi, is there anyway of determining what clients are connected to my Weblogic 8.1 server - I want this information to be generated for me, not by maintaining a list when clients login initially to the server.
    Also is there any thing that gets fired when a client terminates prematurely - for example being killed by the task manager. I need to know this, so the server knows what users are currently logged in, to prevent a user logging in twice (via the same username login).
    Cheers,
    Ants.

    Hi,
    Cousld u send me a simple example to check my Weblogic server for EJB with client.
    Iam struggling from last todays.
    and also tell what software i should use for deployment of EJB of weblogic 8.1.
    ur help highly appriciate by me
    My mail ID: [email protected]
    thanks,
    AHOY

  • How can I know which clients are connected to my network through express and which are connected through extreme?

    I have an airport express extending, through wireless, a network provided by an airport extreme. How can I know which clients are connected to my network through express and which are connected through extreme?
    Here you can see both routers:
    I would expect to some clients connected to the express, other than the extreme. And that's all I see: only the airport extreme appears as client of the airport express.
    Below, one can see the summary of the config for both routers.
    Would somebody explain it?
    Thanks,
    Marcelo
    Message was edited by: Marcelão

    please disregard this answer.
    Message was edited by: Marcelão

Maybe you are looking for

  • Geo tagging in Nokia Photos

    Hi, I have Nokia N 82, v 31.0.016.  For some of my geo-tagged pictures, after syncing with Nokia Photos, if i want to see my geo-tagged picture in Show item in Map View, i am able to see the picture in Map view of Nokia Photos, but in Timeline view,

  • SRM PPS 7.0 external requirements with outlines

    Dear gurus, I have managed to get services transferred to SRM from ECC, using the standard PDP configuration. How can we replicate Purchase Requisition with outlines in them. Remember, we have PPS switched on. Any hints will be appreciated. Points aw

  • Read image data from SQL Server database and display it in a JSP web page

    Hi experts, I am doing a project in which I have to upload images to the database via JSP/servlets. I am able to do this. Now I want users to view and dowload these images which are stored in the database. Please help me of how can I read the images

  • How to create a constant variable(or presentation variable) inside request

    hi i have a prompt with from_month and to_month(both i have declared as presentation variable) i need transactions of from_month to be saved as presentation variable say from_data and use it for further processing. I tried the below one created one m

  • Pausing audio until button is pressed

    I have a project that has a series of pdf's open in a slide. The slide pauses fine when the button is reached and the project pauses until it is pressed, but the audio continues to play. I want the audio to pause too. I know i can chop up the audio a