Sending exceptions back to the client : in return object or in a SOAPFault?

Hi.
A question for all the JAX-RPC/SOAP experts out there.
What is your recommendation for the cleanest way to handle exceptions in a Java web service and send the info back to the client ?
I am considering two options :
1- Put the exception info in fields of the object returned by the web service method.
2- Throw a SOAPFaultException and add any necessary info in the Detail attribute of the Exception using a SAAJ SOAPFactory. In this case, how does the client retrieve the SOAPFaultException attributes ?
What is the best option ? Pros and cons ?
Thanks in advance.
Fabien

It throws jvm bind error. Please show the full exception stack trace and the block of code it occurs in. The server shouldn't be trying to do a bind at this point.

Similar Messages

  • Cannot log in to Nationwide internet banking in Firefox. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    Question
    Cannot log in to Nationwide internet banking. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    That issue can be caused by corrupted cookies.
    *https://support.mozilla.org/kb/Cannot+log+in+to+websites
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past

    I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past few days

    scottxx,
    That was very nice of you to provide your friend with a new phone! I am sorry to say that the device will not be able to activate while in Dubai. For a device to activate it must connect to the VZW network to become active. I apologize for any inconvenience.
    LindseyT_VZW

  • [svn:bz-trunk] 15217: Bug: BLZ-508 - If server receives message for an unknown destination it shouldn ' t include the destination name in the error message sent back to the client .

    Revision: 15217
    Revision: 15217
    Author:   [email protected]
    Date:     2010-04-05 03:43:36 -0700 (Mon, 05 Apr 2010)
    Log Message:
    Bug: BLZ-508 - If server receives message for an unknown destination it shouldn't include the destination name in the error message sent back to the client.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Changed the error message to not include destination id. I'm also checking in a few minor fixes I had locally.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-508
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties
        blazeds/trunk/modules/core/src/flex/messaging/MessageBroker.java
        blazeds/trunk/modules/core/src/flex/messaging/cluster/JGroupsCluster.java

    Thanx Mete, yeah i did...
    but i solved it some other way... not entirely sure this was
    it though as i was doing a lot of things at once...
    it was fds.swc... possibly it was out of date or missing.

  • I cannot open my apps on my iPod touch 4th generation. Every time I open an app it sends me back to the main page

    I cannot open my apps on my iPod touch 4th generation. Every time I try to open an app it sends me back to the app selection thing.

    Try a hard reset first. Press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear. 
    If still no luck, try downloading and installing a new app from the App Store.  Doing so has cleared the issue up for several users.
    B-rock

  • In Elements 12 how do I auto fix multiple pictures, then send them back to the organizer?

    In Elements 12 how do I auto fix multiple pictures, then send them back to the organizer?

    Hi,
    You can try the batch processing, refer the below link
    http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fff.html#WS287f927bd30d4b1f89cffc612e28adab65-7ff6

  • The new forced upon me upgrade for iPhoto '11 never opens. After I do all that is recommended, it sends me back to the beginning. How can I get it to work?

    I am using a mac mini version 10.9.5 which I have just updated. Now when I try to open i photo, all I get is a message telling me to "prepare" my library. I have installed and run the iPhoto library upgrader, but it only sends me back to the beginning telling me to install the upgrader (which has already been installed.)
    How can I actually get the upgrader to prepare my libraries and actually see photos?

    What version of iPhoto are you currently running and what version did you have previous to the upgrade to 9.5.1?
    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • Send Data back to the Server

    Hi.
    how to send data back to the server using J2ME or how to communicate with server using J2ME

    i am using http its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
    here is sample code which is run well on emulator but not on mobile.
    what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
    Pls reply asap.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * An example MIDlet to invoke a CGI script.
    public class ThirdExample extends MIDlet {
    private Display display;
    // String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
    String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
    public ThirdExample() {
    display = Display.getDisplay(this);
    * Initialization. Invoked when we activate the MIDlet.
    public void startApp() {
         try {
    getGrade(url);
         } catch (IOException e) {
         System.out.println("IOException " + e);
         e.printStackTrace();
    * Pause, discontinue ....
    public void pauseApp() {
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    * Retrieve a grade....
    void getGrade(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    TextBox t = null;
    int x = 5, y =7;
    try {
    c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = "?idnum=182016";
    byte postmsg[] = str.getBytes();
    for(int i=0;i<postmsg.length;i++) {
    os.writeByte(postmsg);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1) {
    b.append((char) ch);
    System.out.println((char)ch);
    t = new TextBox("Final Grades", b.toString(), 1024, 0);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(c != null) {
    c.close();
    display.setCurrent(t);

  • HT2242 How do I change my country in my apple account? Every time I sign in, the system automatically sends me back to the store my account is currently based in and I am unable to change this.  I keep going in circles.

    How do I change my country in my apple account? Every time I sign in, the system automatically sends me back to the store my account is currently based in and I am unable to change this.  I keep going in circles.

    No, What I mean  is, Now I am leaving in USA but every time that I tried to download an app only appear app available in Venezuela no the one available in USA. 
    I already change my address and select USA but still I can not download app for USA

  • BEA-423442-Exception while starting the client classifications file poller

    While Weblogic 10.3.2 server is started, below error is displayed in console. Please provide if any solution for this.
    <netuix> <BEA-423442> <Exception while starting the client classifications file poller: [java.lang.AbstractMethodError]
    java.lang.AbstractMethodError
    at com.bea.netuix.xml.util.DomToolkit.parse(DomToolkit.java:166)
    at com.bea.netuix.xml.util.JDomToolkit.build(JDomToolkit.java:45)
    at com.bea.netuix.client.repository.ClassifierRepository.getDocumentFromInputStream(ClassifierRepository.java:339)
    at com.bea.netuix.client.repository.ClassifierRepository.createRepositoryFromInputStream(ClassifierRepository.java:326)
    at com.bea.netuix.client.ClientClassifierImpl.<init>(ClientClassifierImpl.java:103)
    Truncated. see log file for complete stacktrace

    Hi Angel,
    Please see the following doc for instructions on starting an OMS.
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/emctl.htm#BABFEEAJ
    Regards,
    - Loc

  • Send a Link to the client

    Can i send a link to the client rather than sending it through echo sign database? I am trying to add a link to my email so that my client can just click on the link and sign the document

    Hi testdocument,
    If you want to send a link of document through your email instead of sending it through EchoSign, you can use our Widget feature( which is available from Enterprise accounts onwards).
    Here is the link:
    http://helpx.adobe.com/echosign/kb/widget-create-one.html
    You can also try Global trial (free for 14 days) which has the widget feature.
    Global Trial Registration | Adobe EchoSign
    Regards,
    -Rijul

  • Sending a certificate form the client to the server... how to ?

    how can I send a certificate from the client to the server trough a Java code ??

    Short answer: You specify a keyStore.
    Either via command line using the -Djavax.net.ssl.keyStore=keystorefile property,
    or in Java code:
    char[] passphrase = "password".toCharArray();
    SSLContext ctx = SSLContext.getInstance("TLS", "SunJSSE");
    // KeyStore for the SSL client certificate
    KeyStore keyStore = KeyStore.getInstance("PKCS12");
    keyStore.load(new FileInputStream("client-cert.p12"), passphrase);
    KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509", "SunJSSE");
    keyManagerFactory.init(keyStore, passphrase);
    // keyStore for trusted server certs or CAs
    KeyStore trustedKeyStore = KeyStore.getInstance("JKS");
    trustedKeyStore.load(new FileInputStream("verisign-test-cert"), passphrase);
    TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("SunX509", "SunJSSE");
    trustManagerFactory.init(trustedKeyStore);
    ctx.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), null);
    SSLSocketFactory sslSocketFactory = ctx.getSocketFactory();
    HttpsURLConnection.setDefaultSSLSocketFactory(sslSocketFactory);
    // open the http connection to the party
    myConn = (HttpsURLConnection)myURL.openConnection();

  • Safari will automatically send me back to the previous page

    Every time when I click a link on any website, it will automatically send me back to the page where I just was; or if I'm at the homepage and enter a website, it brings me back to the homepage. It only happens once per page but it is very frustrating having to do everything twice.
    Thanks,
    Tiffany

    HI Tiffany and welcome to Apple Discussions...
    Empty the Safari Cache from the Safari Menu Bar, Safari/Empty Cache
    Relaunch Safari.
    If you still have problems, go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    If third party add ons aren't the issue, try troubleshooting the Safari .plist file.
    Go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
    Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash.
    One more thing. Please click My Settings on the right side of this page and tell us which Mac you are using and which Mac OS X. Thanks!
    Carolyn

  • I have OS X Yosemite - my current version of iPhoto is not compatible with it / how do i find the correct version of iPhoto?  The APP Store keeps sending me back to the same 'current version' that is NOT Compatible...

    I have OS X Yosemite - my current version of iPhoto is not compatible with it / how do i find the correct version of iPhoto?  The APP Store keeps sending me back to the same 'current version' that is NOT Compatible...

    If you have Yosemite you need iphoto 9.6 from the App store - what is the exact error message you are getting?
    Try dragging the iphoto Application to the trash from your applications folder (wait tot empty the trash) and then install iPhoto 9.6 from the App store
    LN

  • I have a iphone4 and I cannot go on my messages or my settings otherwise it crashes or sends me back to the home screen, what do I do?

    I am having a big problem with my iphone as it is only allowing me to go on certain apps, I cannot get onto my settings or messages because if I do it crashes or sends me back to the home screen, I've had this problem for a while and have tried almost everything, can anyone help me please?.

    Quit Safari and reset the iPad.
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app. Then reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

Maybe you are looking for

  • Error while adding Excise Incoming Invoice

    Hi while saving the excise invoice everytime i receive same error i.e No matching record found 'G/L Accounts' (OACT) (ODBC-2028)[Message 131-183] Though i've give excise information to BP as well as items and also in G/L acc determination 'general ta

  • When deploy: Wizard error a connection to the deployment share could not be made "check physical connection"

    Hello everybody, yet another issue with deploying a masterdisk. I will give you a short explanation of the situation. I need to deploy Windows 8.1 PRO x86.  Using: Microsoft Deployment Workbench Microsoft Version: 6.2.5019.0 1. Reference PC: Windows

  • Opening iTunes when iPod is plugged in

    iTunes won't start when I plug in the iPod nano to the computer. When i go to manualy open iTunes a message appears saying: "another user on this computer is using the iPod softwear, so iTunes is unable to communicate with this iPod. Please ask the o

  • SAP Query PNPCE LDB with additional table.

    Hi ABAP Gurus, I am developing a SAP Query. I have created an infoset with the custom infotype 9050 and added the table ZPA9050 into the Infoset. The fields of ZPA9050 is not available as selection fields when I try to Query through SQ01. (How do I i

  • Not showing up on App Store with more than 200k downloads in last three days?

    My app Flying Bieber HD has gotten more than 200k downloads since our launch on Saturday, but we are not showing up on App Store ranks at all.  We got so many downloads through social media promotions and we got Bieber's entourage to promote it.  Are