Sponsored Content
Full Discussion: address already in use
Operating Systems SCO address already in use Post 302080761 by reborg on Thursday 20th of July 2006 11:54:22 AM
Old 07-20-2006
change
Code:
    catch (Exception ex) {
      System.out.println("\n\nError: " + ex.getMessage());
    }

to
Code:
    catch (Exception ex) {
      ex.printStackTrace();
    }

There may be something more useful than just the error message in the stacktrace.
 

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
ExtUtils::XSpp::Exception(3pm)				User Contributed Perl Documentation			    ExtUtils::XSpp::Exception(3pm)

NAME
ExtUtils::XSpp::Exception - Map C++ exceptions to Perl exceptions DESCRIPTION
This class is both the base class for the different exception handling mechanisms and the container for the global set of exception mappings from C++ exceptions (indicated by a C++ data type to catch) to Perl exceptions. The Perl exceptions are implemented via "croak()". The basic idea is that you can declare the C++ exception types that you want to handle and how you plan to do so by using the %exception directive in your XS++ (or better yet, in the XS++ typemap): // OutOfBoundsException would have been declared // elsewhere as: // // class OutOfBoundsException : public std::exception { // public: // OutOfBoundsException() {} // virtual const char* what() const throw() { // return "You accessed me out of bounds, fool!"; // } // } %exception{outOfBounds}{OutOfBoundsException}{stdmessage}; If you know a function or method may throw "MyOutOfBoundsException"s, you can annotate the declaration in your XS++ as follows: double get_from_array(unsigned int index) %catch{outOfBounds}; When "get_from_array" now throws an "OutOfBoundsException", the user gets a Perl croak with the message "Caught exception of type 'OutOfBoundsException': You accessed me out of bounds, fool!". There may be any number of %catch directives per method. Note: Why do we assign another name ("outOfBounds") to the existing "OutOfBoundsException"? Because you may need to catch exceptions of the same C++ type with different handlers for different methods. You can, in principle, re-use the C++ exception class name for the exception map name, but that may be confusing to posterity. Instead of adding %catch to methods, you may also specify exceptions that you wish to handle for all methods of a class: class Foo %catch{SomeException,AnotherException} { ... }; The %catch{Foo,Bar,...} syntax is shorthand for "%catch{Foo} %catch{Bar} ...". If there are exceptions to be caught both from the class and attached to a method directly, the exceptions that are attached to the method only will be handled first. No single type of exceptions will be handled more than once, therefore it is safe to use this precedence to re-order the class-global exception handling for a single method. If there are no %catch decorators on a method, exceptions derived from "std::exception" will be caught with a generic "stdmessage" handler such as above. Even if there are %catch clauses for the given method, all otherwise uncaught exceptions will be caught with a generic error message for safety. Exception handlers There are different cases of Perl exceptions that are implemented as sub-classes of "ExtUtils::XSpp::Exception": ExtUtils::XSpp::Exception::simple implements the most general case of simply throwing a generic error message that includes the name of the C++ exception type. ExtUtils::XSpp::Exception::stdmessage handles C++ exceptions that are derived from "std::exception" and which provide a "char* what()" method that will provide an error message. The Perl-level error message will include the C++ exception type name and the exception's "what()" message. ExtUtils::XSpp::Exception::code allows the user to supply custom C/C++/XS code that will be included in the exception handler verbatim. The code has access to the exception object as the variable "e". Your user supplied code is expected to propagate the exception to Perl by calling croak(). ExtUtils::XSpp::Exception::object maps C++ exceptions to throwing an instance of some Perl exception class. Syntax: %exception{myClassyException}{CppException}{object}{PerlClass}; Currently, this means just calling "PerlClass->new()" and then die()ing with that object in $@. There is no good way to pass information from the C++ exception object to the Perl object. Will change in future. ExtUtils::XSpp::Exception::unknown is the default exception handler that is added to the list of handlers automatically during code generation. It simply throws an entirely unspecific error and catches the type "..." (meaning anything). There is a special exception handler "nothing" which is always available: int foo() %catch{nothing}; It indicates that the given method (or function) is to handle no exceptions. It squishes any exception handlers that might otherwise be inherited from the method's class. METHODS
new Creates a new "ExtUtils::XSpp::Exception". Calls the "$self->init(@_)" method after construction. "init()" must be overridden in subclasses. handler_code Unimplemented in this base class, but must be implemented in all actual exception classes. Generates the "catch(){}" block of code for inclusion in the XS output. First (optional) argument is an integer indicating the number of spaces to use for the first indentation level. indent_code Given a piece of code and a number of spaces to use for global indentation, indents the code and returns it. cpp_type Fetches the C++ type of the exception from the "type" attribute and returns it. ACCESSORS
name Returns the name of the exception. This is the "myException" in %exception{myException}{char*}{handler}. type Returns the ExtUtils::XSpp::Node::Type C++ type that is used for this exception. This is the "char*" in %exception{myException}{char*}{handler}. CLASS METHODS
add_exception Given an "ExtUtils::XSpp::Exception" object, adds this object to the global registry, potentially overwriting an exception map of the same name that was in effect before. get_exception_for_name Given the XS++ name of the exception map, fetches the corresponding "ExtUtils::XSpp::Exception" object from the global registry and returns it. Croaks on error. perl v5.14.2 2011-12-20 ExtUtils::XSpp::Exception(3pm)
All times are GMT -4. The time now is 12:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy