Sponsored Content
Full Discussion: address already in use
Operating Systems SCO address already in use Post 302080754 by rmurtagh on Thursday 20th of July 2006 10:54:13 AM
Old 07-20-2006
address already in use

The following code, when run under Linux (any variant) runs fine, but when I run it under SCO Openserver 5.0.7 i get an "address already in use" error. I had resoved this issue some time ago by doing something and now i do not recall. I have already confirmed the port 5510 is not in use by any process in the system at any time. Any information or advice would be greatly appreciated.

rmurtagh

CODE:

Code:
package javaclient;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.lang.*;
import java.io.*;
import java.net.*;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.message.SOAPEnvelope;

public class getresv {

  public boolean execute() {
    boolean retBool = true;
    String xmlinput;
    String endpoint;
    try
    {
      System.out.print("\n\nStarted");
      ServerSocket welcomeSocket = new ServerSocket(5510);
      Socket connectionSocket = welcomeSocket.accept();
      System.out.print("\n\nServer has connected!");

      BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
      DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());

      xmlinput = inFromClient.readLine();

      System.out.print("\n\nxml in: " + xmlinput);

      endpoint = inFromClient.readLine();

      System.out.print("\n\nendpoint: " + endpoint);

      StringBuffer xmlBuffer = new StringBuffer();
      xmlBuffer.append(xmlinput);
      
      ByteArrayInputStream byteIn = new ByteArrayInputStream(xmlBuffer.toString().getBytes());
      InputStream input = byteIn;

      SOAPEnvelope reqMsg = new SOAPEnvelope(input);
      String websrvendpt = endpoint;
      Service webService = new Service();
      Call call = (Call)webService.createCall();
      call.setTargetEndpointAddress(websrvendpt);
      call.setTimeout(new Integer(1000000));

      System.out.println("\n\nOutgoing:\n" + reqMsg);

      SOAPEnvelope xmlin = (SOAPEnvelope)call.invoke(reqMsg);
      String respMsg = xmlin.toString();

      System.out.println("\n\nIncoming:\n" + respMsg + "\n");
      
      outToClient.writeBytes(respMsg + '\n');

      Thread.sleep(1000);

      System.out.println("\n\nSent response to PMS...\n");

      connectionSocket.close();
      welcomeSocket.close();
    }
    catch (UnknownHostException ex) {
      System.out.println("\n\nUnknown Ssytem Error: " + ex.getMessage());
    }
    catch (Exception ex) {
      System.out.println("\n\nError: " + ex.getMessage());
    }
    return retBool;
  }

   public static void main(String[] args) throws Exception {
   boolean retBool = (new getresv()).execute();
  }
}


Last edited by reborg; 07-20-2006 at 12:31 PM.. Reason: code tags
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

network address and broadcast address?

say I have a IP address which is 10.0.0.12, and subnet mask is 255.255.255.240, what is the network address and what is the broadcast address which host lives on? And could you explain how to get the answer? thanx in advance! (7 Replies)
Discussion started by: pnxi
7 Replies

2. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

3. Shell Programming and Scripting

ksh - how to list all ip address between 2 ip address

Trying to do a ksh script that needs to list all ip address between ip address a and b .. ie. Ip address A=192.168.1.200 Ip address B=192.168.2.15 So the subnet changes from 1 to 2 but I want to list all possible ip addresses between the 2.. Which would be: 192.168.1.200... (4 Replies)
Discussion started by: frustrated1
4 Replies

4. UNIX for Dummies Questions & Answers

Panic kernal-mode address fault on user address 0x14

:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message: PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14 KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD) EAX=EF822000... (10 Replies)
Discussion started by: Twix
10 Replies

5. Solaris

Get ip address from mac address

I have following message in my messages file on solaris 10 WARNING: e1000g3712000:3 has duplicate address 010.022.196.011 (in use by 00:50:56:85:25:ef); disabled Now is there any way i can find which server has 00:50:56:85:25:ef mac address either IP or Hostname ? (6 Replies)
Discussion started by: fugitive
6 Replies

6. UNIX for Dummies Questions & Answers

What would the physical address be for virtual address?

Hi guys, I got one problem which I definetily no idea. What would the physical address be for virtual address? 1) 2ABC 2) 3F4B Here is the page table:see attached Thank you sos sososososso much!! (0 Replies)
Discussion started by: lemon_06
0 Replies

7. IP Networking

Tracing a MAC address to IP address: Solaris

Hi there I lost connectivity to one of our remote systems and when I checked the messages log I found the following: Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1 Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies

8. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

9. IP Networking

MAC Address - Four Interfaces with the same MAC Address

four interfaces with ifconfig all interfaces have the same mac. If is not set for unique. but it still works. what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies
yhsm-linux-add-entropy(1)				      General Commands Manual					 yhsm-linux-add-entropy(1)

NAME
yhsm-linux-add-entropy - Seed the Linux entropy pool with data from YubiHSM TRNG SYNOPSIS
yhsm-linux-add-entropy [options] DESCRIPTION
The YubiHSM uses "Avalanche Noise" TRNG together with USB SOF jitter sampling to feed a DRBG_CTR algorithm (NIST publication SP800-90). The result has been verified as being random data of good quality by at least one third party cryptographer. <http://sartryck.idg.se/Art/ Yubihsm_1_TW072011.html> Use this program to add random data from the YubiHSM to the entropy pool of your Linux operating system. This is useful whenever lots of random data is needed, such as when generating chryptographic keys (GPG-keys), on a server terminating SSL sessions etc. You may run this script from cron, or in a while-loop. Make sure it does not run at the same time as something else accessing the YubiHSM though, or the two tasks may interrupt each other - probably making both fail. OPTIONS
-D, --device device file name (default: /dev/ttyACM0). -v, --verbose enable verbose operation. -c, --count number of iterations to run (default: 100). -r, --ratio bits per byte read to use. 8 is probably fine, but as a conservative default 2 is used. --debug enable debug printout, including all data sent to/from YubiHSM. EXIT STATUS
0 Entropy added successfully 1 Failure BUGS
Report python-pyhsm/yhsm-linux-add-entropy bugs in the issue tracker <https://github.com/Yubico/python-pyhsm/issues/> SEE ALSO
The python-pyhsm home page <https://github.com/Yubico/python-pyhsm/> YubiHSMs can be obtained from Yubico <http://www.yubico.com/>. python-pyhsm December 2011 yhsm-linux-add-entropy(1)
All times are GMT -4. The time now is 11:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy