Getting UnexpectedException but the exception IS declared in the clause

I am using RMI in a small application that I am writing. The remote interface specifies several methods that need to be implemented by the concrete class implementation. One of these methods might throw several exceptions in addition to the java.rmi.RemoteException. The throws clause of the interface and the concrete class are identical; both specify the same set of possible exceptions that could happen. I checked the code (i.e., stub) that was generated by the rmic compiler for that method and it seems OK. There, I see a catch() block for each one of the exceptions that I declared in the throws clause of the remote interface. No exception is missing in the generated code. However, at run time if one of the exceptions in the throws clause is generated, the remote JVM process does not get the exception that was thrown! Instead, it gets a java.rmi.UnexpectedException. Does any one has had this problem before? Is this a known bug? I am using JDK 1.2.2_006. Thanks.

I'm getting the exact same problem, no idea why.

Similar Messages

  • TS4268 Why does my Imessage not take my Apple ID and password? it has me reset it to get in, but once reset imessage still rejects the password. It seems to randomly deactivate my Imessage

    Why does my Imessage not take my Apple ID and password? it has me reset it to get in, but once reset imessage still rejects the password. It seems to randomly deactivate my Imessage

    Try signing out and then back in again by going into Settings>Store>Apple ID:>Sign Out>

  • TS3274 My ipad2 is not responding..I want to restart it but i can get nothing but a black screen with only the apple logo and a small gear icon. It occasionally beeps but no other response.  Any ideas as to what may be wrong and what I can do?

    My ipad2 is not responding..I want to restart it but i can get nothing but a black screen with only the apple logo and a small gear icon. It occasionally beeps but no other response.  Any ideas as to what may be wrong and what I can do?

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPad fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • I get audio but no video unless I play the file from UTube

    I get audio but no video unless I play the file from UTube

    Use a different browser?
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.
    Even if it's just to redownload the driver. I recommend another browser.

  • My iphone 5 does not show callid when there is a call, i used to get it but after my trip to China, the cller id is always unknown, how can I get it back? thanks

    Hi
    My iphone 5 does not show callid when there is a call, i used to get it earlier but after my recent trip to China, the cller id is always shows unknown, how can I get it back? thanks

    Thanks Malcom,  I was able to restablish the caller id feature through the carrier as you suggested

  • Why does the installer keep getting stuck but no error messages appear in the log?

    So as of I think recently, I've been having problems installing things. I'm using installer version 2.1.
    I found myself having to re-install a driver for my tablet awhile ago, and every time I tried to install it the installer got stuck in the 90%s somewhere. However, no error window popped up and when i went to look at the log, it didn't show any errors.
    I again encountered this same installing problem today when I went to install a newer slightly updated version of Java which would work on os x 10.4 and the installer got stuck at 99% again showing no errors.
    Help? I have no idea what the problem could be, I believe it's way beyond me.

    Hello, took me awhile to find this out, but...
    Get the combo update for Intel-based Macs...
    http://www.apple.com/support/downloads/macosx10411comboupdateintel.html
    Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reapply the Combo Update.
    Repair Permissions afterwords, reboot.

  • I just upgraded to ios 7.1 on my ipad 2. The main reason I upgraded was to get FaceTime, but it does not appear in the new settings (I didn't have it before either). How can I get it?

    I just upgraded my ipad 2 to ios 7.1, mostly to get FaceTime. However, it's not in the settings even with the upgrade. How can I solve this?

    You have an iPad2 and that model has the camera. Do you have the camera app on the iPad?
    Did you search for the app in Spotlight? Swipe down from the middle of the home screen to reveal the Spotlight Search and type FaceTime into the search field.
    Is your iPad company owned?

  • How to main the message type is I for the exceptions when we create the FM

    HI ,
    I have created one FM.in that i need to maintain the exceptions. for handling the exceptions message type is I.
    where can i maintain the exceptions message type I.is it at the creation of FM or calling of FM?
    tell me in details.
    for handling exceptions:
    No Sales Order Created  = Message type 'I'
    OTHERS = Message type 'I'
    thanks in advance

    Exceptions are only code and text, the kind of message comes from the raising statement in the FM code.
    RAISE <Exception>.
    MESSAGE..... RAISING <Exception>.
    The management of the resulting code is in the caller program. ([Calling Function Modules From Your Programs|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801edb454211d189710000e8322d00/frameset.htm])
         EXCEPTIONS
              no_values_found = 1
              ERROR_MESSAGE   = 2
              OTHERS          = 3.
    CASE SY-SUBRC.
      WHEN 1.
    I don't understand your requirement, try to read some documentation like [Specifying Parameters and Exceptions|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm] in [Function Builder|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm] and reformulate please.
    Regards,
    Raymond

  • How can I catch the exception which is from the server validation of item.

    I create a messageTextInput and then set the maximumLength is 10.
    At the same time, I create a submitButton and set the attribute serverUnvalidated is FALSE and unvalidated is TRUE.
    Running the page, after I input the 10 Japanese word(20 bytes), the page will show a error message.
    it's meaning that the input value is too long.
    My request is I don't need to show the error in the page. How can I deal with it.
    Thanks.

    Check by increasing maximum length (more than 20) if possible to you.

  • Adobe asked me to update - I agreed. The fiorst 2 screens led me to a third which asked me to purchase a photo plan for $9.99 that I didn't want. I couldn't get out of that except by returning to the previous screens. I just want to download the updated v

    Adobe asked me to update and when I tried to download it I got to a screen that asked me to buy a photo program for $9.99 that I didn't want. I could only get out of it by going backwards and repeating the whole thing. So I couldn't down;ad what Adobe wanted me to do.

    There was a reply. But if you didn't get that, you won't get this one I suppose. Come back to the forum, don't rely on email.

  • TS1702 My garage band app has crashed & keeps returning to the main screen when I try to open it... I've tried most of the trouble shooting options with the exception of re-installing the app, because I fear I will lose a number of recent projects I have

    My garage band app has crashed &amp; keeps returning to the main screen when I try to open it... I've tried most of the trouble shooting chart (no updates available, tried restarting app, restarted device) all I have left is to re-install the app... My main fear is that if I do this I will lose a load of recent projects that are saved to the app that I've spent the last few days creating... Help...

    I have tried all those things I even updated the software to the new iOS system and it still did fix my problem.
    What happened is that my garage band looks like it will open then it shuts down.
    I have lot of important things on my garage band and I'm afraid that if I uninstall it deleting it then reinstalling it all my work on it will be gone and I can't have that happen.
    Everyday I am hoping that when i go to open the app that is will work but it doesn't it gets ready to turn on then it shuts off , the app doesn't even open all the way and turns off.
    I really hope I don't have to erase it.
    It'll say it's ,lading my songs then it shuts down .
    If I waited for the App Store to come up with an update for garage band should I wait till then to update my app so it doesn't get damaged . I don't want to erase it and all my data get erased . I figured if I wait for an update then my garage band will reset itself but won't delete my data. I'm not sure if that will help. Is there anything you or anyone else might know that can help me with this matter ?
    Thank you
    Simachyahi

  • How to handle the Exception in GP using executable callabel object.

    Hi all,
            I handled an exception in GP using Background callable Object. That is working fine.
    (Ex: Exception_No_User_Found). The Problem is I am not able to handle the exceptions for normal callable object. I have done the same thing as i did in background callable object except implementing IGPBackgroundCallableObject Class.  I have created an WebDynpro DC Project where in getDescription method i declared an Exception and in execute method of component controller I caught the exception if no user found.
    Then i created an callable object for this simple DC project. but that is not working i could not catch the exception. when i execute the process it is asking the User ID if i give the wrong userId it is not refreshing back to the user id input form.
    But if i test that simple callable object separately it is throwing an Exception when I give the wrong input..
    but the same thing is working fine using background callable object.
    I couldn't handle the exception for the simple callable object or executable callable object.
    Please If anyone bring me the solution that would be appreciated.
    Thanks in advance.
    Regards,
    Malar.

    Hi Shikhil
    Thanks for your reply
    Please have a look below for exceptions which i am getting in GP and let me know how to handle these exceptions.
    1) "Activity could not be read"
    2) "Action has been stopped"
    3) error while processing the item can not be displayed
    if you give any idea/clue how to handle these exceptions then it would be great help to me
    Thanks
    Sunil

  • Cannot get Win8 Pro computer run the Connect a Computer to the Server Wizard (computerconnector) of Essentials 2012

    I've spent 1/2 the day trying to troubleshoot this problem and finally give up.
    My client has a Windows Server 2012 Essentials server (with all updates installed - no errors in error logs nor SFC /SCANNOW).  Purchased a new Windows 8 Pro computer, which we installed all the updates from Windows Updates and are now trying to join
    the domain using the "Microsoft way" (i.e.:  http://[servername]/connect).
    The site comes up and it prompts us to download the software and run... so far so good, but when we get to the screen where it asks, "Type your new network user name and password" - the next screen after that we get the error, "Cannot connect
    this computer to the network...". 
    I've been looking at cases all day long through Microsoft and Google - all pointing to problems with the SSL on the server - that's not the problem here (as other workstations have, in the past, successfully connected and we verified today that the local
    server certificate is what is the default, as it should be).
    I've tried just about everything I can think of and cannot get this silly wizard to work (why Microsoft, WHY!??!?!).  Yet, I can join this domain just fine doing it through normal means.  I've even tried joining the domain this way, and tried installing
    the software afterwards (as the Essentials Console won't reflect the new workstation, thus it won't add it to group policies etc... though yes, I could manually do that and have - but we'd still like to get it to show up in the console).  I even
    tried the trick noted in a KB talking about running the connect software without joining the domain (registry key that gets added) - that didn't work either.
    I'm out of ideas - and at this point had to get the client online and working today - so we joined it manually, configured it and left it.  But I would like to get this fixed the "proper" way.  Help?
    I do have the clientdeploy.log file - which only points out an internal error, but I'm unsure how to enable the improved logging it suggests (I'll gladly post the logs if someone tells me how - I'll skip posting the log file here for now):
    [1544] 140204.203620.0794: ClientSetup: MachineIdentityManager.GetMachineStatus had errors: ErrorCatalog:NetworkError ErrorCode:-1
    BaseException: Microsoft.WindowsServerSolutions.Devices.Identity.MachineIdentityException: MachineIdentityManager.GetMachineStatus ---> System.ServiceModel.FaultException: The server was unable to process the request due to an internal error.  For more
    information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on
    tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.
    Suggestions?  Thoughts?  I hope Essentials 2012 R2 improves this - as I've had this error for other various reasons with other clients (and spent 1/2 days troubleshooting to clear those up).  Essentials Connect, IMHO, needs a re-write - as
    it's been nothing but a hassle... miss the SBS connect.

    Hi slemay,
    Before going further, please uninstall the Connector software from Control panel. Then connect again, will
    the same issue persists? Would you please use another client to connect with the Server 2012 Essentials by using this way? Then monitor the result. Please make sure the computer has a physical connection to the local network.
    Please refer to the TechNet article (Here)
    and troubleshoot, then check if can help you to solve it.
    In addition, please refer to the following articles and enable
    WCF tracing to go further. Please check if you can find some clues.
    How to enable WCF tracing
    http://blogs.msdn.com/b/madhuponduru/archive/2006/05/18/601458.aspx
    [wcf: solution] The server was unable to process the request due to an internal error.
    http://blog.bitlinkit.com/wcf-solution-the-server-was-unable-to-process-the-request-due-to-an-internal-error/
    Hope this helps.
    Best regards,
    Justin Gu

  • Exception in declarative section to propagating in PL/SQL Block

    Hi All, I have a requirement to send emails to some receipient whenever there is an error in a process. The is working untill the put a wrong database link in the parameter, the cursor is in declarative statement, hence when other exception does not work, create and enclosing block around the initial block so that the exception can propagate to the enclosing block, but this does not work either, please advice. Below is the a brief pseudo code. The bold is the initial block. Please advice.
    DECLARE
    Invalid_table EXCEPTION;
    PRAGMA EXCEPTION_INIT(Invalid_table, -00942);
    BEGIN
    declare
    c_test number;
    cursor c1 is select 1 from tt@sro4link1 --- wrong databaselink sent as a parameter
    where 1 =1;
    */*Because the error is in the cursor select, no email is been sent, that was the reason I put an enclosing block, but the exception is not propagate either */*
    BEGIN
    OPEN C1;
    FETCH C1 into c_test;
    CLOSE C1;
    EXCEPTION
    WHEN OTHERS THEN
    --- Send email
    END; EXCEPTION
    WHEN Invalid_table THEN
    --- send email
    END;
    /

    Ade2 wrote:
    it is not a dynamic sql. Your description is not very clear about what is code and what is pseudo code, but if you are using substitution variables in sqlplus, then that is dynamic SQL.
    sqlplus scans for substitution variables, prompts when needed, replaces the variable (substitutes) with the text input and passes the entire result to the database for validation.
    If the substitution text input results in an invalid PL/SQL block then a compilation error is returned from the database. The PL/SQL cannot be compiled, it never runs, no run time exceptions are possible.
    So you cannot use exceptions to detect errors in values input to substitution variables.
    SQL> declare
      2    l_dummy number;
      3  begin
      4    select 1 into l_dummy from dual;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> declare
      2    l_dummy number;
      3  begin
      4    &5
      5  end;
      6  /
    Enter value for 5: select 1 into l_dummy from dual;
    old   4:   &5
    new   4:   select 1 into l_dummy from dual;
    PL/SQL procedure successfully completed.
    SQL> /
    Enter value for 5: this will not compile
    old   4:   &5
    new   4:   this will not compile
      this will not compile
    ERROR at line 4:
    ORA-06550: line 4, column 8:
    PLS-00103: Encountered the symbol "WILL" when expecting one of the following:
    := . ( @ % ;

  • It takes long time to invoke the Exception handler code

    In our setup there is firewall between the Appserver that is using toplink and the database.The firewall terminates idle connection on any port if the connection is idle for 1 hr.So i have implemented an exception handler to reconnect when the connection is broken.The code works fine but It takes 15 mins for the exception handler code to be invoked.
    The database is Oracle and the driver is thin driver,OS is solaris.No external connection pool
    I had registered the exceptionhandler to the serversession,should i register it with each ClientSession?

    yes ,15 mins is the time taken before the server session's exception handler code is invoked.
    The following is the exception handler code on the sever session.Any thing wrong?
    server.setExceptionHandler(new ExceptionHandler()
    public Object handleException(RuntimeException ex)
    {//This method is executed only after 15 min ,if the connection is broken
    String mess=ex.getMessage();
    System.out.println("In handler excep mess is "+mess);
    if ((ex instanceof DatabaseException) && (mess.equals("connection reset by peer.")||(mess.indexOf("IOException :Broken pipe")!=-1)))
    DatabaseException dbex = (DatabaseException) ex;
    dbex.getAccessor().reestablishConnection (dbex.getSession());
    return dbex.getSession().executeQuery(dbex.getQuery());
    return null;
    What could be wrong ?
    I tried Oracle's connection cache Impl created a connection pool using the same thin driver and on the same env.SQLException is thrown immediately on using the broken connection.so I feel the driver is not causing any problem.
    Is there any way in toplink to keep the connections active?or Is there any way to poll all connections in the connection pool and check If they are connected instead of waiting until the exception gets thrown and handle it?

Maybe you are looking for