UnmarshalException (ClassNotFoundException) on the presentation tier

Hi!
We experience a problem when throwing application exceptions from a session bean
in one cluster to the client, implemented as a servlet running in another cluster.
We currently use WLS 6.1 SP1.
When the session bean throws a "home grown" subclass of java.lang.Exception, the
presentation tier never receives the exception. Instead, a ClassNotFoundException
occurs and is thrown as an UnmarshalException. The specific exception class IS available
to the web application class loader. There are no problems with returning instances
of our own classes from the session bean to the web application.
I am pretty sure that the problem can be solved by including the exception classes
in the system classpath. This is however not an option, as the classes may exist
in several version across projects deployed on the cluster. Also I suspect that our
platform people will not accept that we enable network class loading on the presentation
server.
Are there any other solutions to this problem (which do not involve a redesign of
our services).
Best regards,
Jesper

Just to follow up: I have now tried with NetworkClassLoadingEnabled="true". This no
longer results in a ClassNotFoundException. However, the network loaded class is
not compatible with the class already known in the web tier.
Any suggestions are welcome...
Regards,
Jesper
"Ade Barkah" <[email protected]> wrote:
The reason I ask is that one would expect a ClassCastException instead of
a
ClassNotFoundException if the client has an incompatible copy? However,
going back through this newsgroup's achives, I see there have been a few
others
intermittently experiencing what you're seeing, none with solutions.
Since the client can already "see" the class, I doubt putting it in the
system
classpath would solve it? Network classloading should, but as you say it
may not be acceptable. I'll try to do some further digging here when I have
time... sorry I can't help further.
regards,
-Ade
"Jesper Kamstrup Linnet" <[email protected]> wrote in message
news:[email protected]...
Hi Ade,
Yes, I know for sure that it works on the presentation tier since theweb
application
uses the same exception class internally.
Regards,
Jesper
"Ade Barkah" <[email protected]> wrote:
Jesper,
Can you verify that the exception class (and not merely its
interface/definition) is available to the
client app? I.e., if from the client code you do a "Exception test =
new
HomeGrownException()"
will it work at runtime??
regards,
-Ade
<Jesper Kamstrup Linnet jesper.linnet> wrote in message
news:[email protected]...
Hi!
We experience a problem when throwing application exceptions from asession bean
in one cluster to the client, implemented as a servlet running in
another
cluster.
We currently use WLS 6.1 SP1.
When the session bean throws a "home grown" subclass ofjava.lang.Exception, the
presentation tier never receives the exception. Instead, aClassNotFoundException
occurs and is thrown as an UnmarshalException. The specific exceptionclass IS available
to the web application class loader. There are no problems with
returning
instances
of our own classes from the session bean to the web application.
I am pretty sure that the problem can be solved by including the
exception
classes
in the system classpath. This is however not an option, as the classesmay
exist
in several version across projects deployed on the cluster. Also I
suspect
that our
platform people will not accept that we enable network class loading
on
the presentation
server.
Are there any other solutions to this problem (which do not involve
a
redesign of
our services).
Best regards,
Jesper

Similar Messages

  • Separating business Tier from presentation tier your opinion welcom

    Hi'
    I'va a business object which data members are stored in DB. The question
    is while I'm creating new object should I return exception to the
    presentation tier if object doesn't exist in DB(it's data members) or
    should I initialize object with empty values and afterwards call a
    function which will initialize object with values and test result of this
    function?

    It is okay to include basic logic like:
    Object a;
    try {
    a = getExistingObject(key);
    catch (Exception e) {
    a = createNewObject(key);
    finally {
    a.initilise();
    }just make sure no real business logic seeps into your presentation layer.

  • Prevent Editing the Presentation Server Administrators Group

    In OBIEE 10.1.3.4, I have created a Catalog Group "Second Tier Administrators" and grant it access to "Settings -> Administration -> Manage Presentation Catalog Groups and Users". How can I prevent the users in the "Second Tier Administrators" group from adding themselves to the "Presentation Server Administrators" group?

    Hi Evaldo,
    I don't see a way of you being able to edit one line without reading the entire file into memory.  You could hold the data you are writing to the file in a custom table in SAP, and when an edit is required, delete the old table and recreate a new one based on your custom table.
    Best of luck.
    SL

  • Intra page "security" within the web tier

    we currently have a web application using turbine/velocity technologies. we currently have security at the page level where based on a users's role (credentials managed in oracle database tables), they can or can't see a particular page.
    now we have a requirement to present a different view based on the user's role. for instance, users in the "worker" role can't cancel an order, but they can update an order. thus they wouldn't see the cancel button. somone in the "supervisor" role could cancel an order and should see the cancel button. we want the ability to take this to the level of specifying view (and access) to any object on a particular page/screen/form/whatever.
    so, i'm interested in what others have done to perhaps tackle this interesting issue of providing component level views based on a users credentials. we also do not currently have security on our back end components (slsb), and it would be nice to use the same security model in both areas. meaning you've gotta provide security credentials to get access to the beans and those same credentials are the ones used by the web tier.
    any thoughts, reading suggestions, patterns, etc would be most most appreciated.
    Thanks!
    ~mark

    i think you should look towards jGuard (http://jguard.sourceforge.net).
    jGuard provides easy JAAS integration into J2EE.
    with jGuard, you can configure, and change on-the-fly your authentication and/or authorization settings in a unique way(works on multiple application servers).
    jGuard provides too a tag library to protect your ressources depending on your roles,or your access right to a specific url, or a specific credential like it seems you are looking for.
    to have more information on the jGuard features, you can grab them on the web site( http://jguard.sourceforge.net), or on the sourceforge page (http://sourceforge.net/projects/jguard).
    hope it helps,
    Charles (jGuard team).

  • OIM  - Separating Presentation Tier from Application Server

    Does anyone know if it is possible to extract OIM's presentation tier from the business logic tier. Effectively, I'd like to run the User and Administrative Console on its own dedicated server while leaving all EJBs, servlets, etc. on the application server.
    I know there are ways to use proxies to render the admin pages on a separate web server, but I'd like the ability to place the user and admin console its own physical box.

    It is okay to include basic logic like:
    Object a;
    try {
    a = getExistingObject(key);
    catch (Exception e) {
    a = createNewObject(key);
    finally {
    a.initilise();
    }just make sure no real business logic seeps into your presentation layer.

  • I am trying to connect a Macbook Pro to a projector for a Powerpoint presentation. When I use a VGA cable, the color of the projected images are not good. When I use a USB cable, the projected image includes the presenter notes on my computer screen?

    I am trying to connect a Macbook Pro to a projector for a Powerpoint presentation. When I use a VGA cable, the color of the projected images are not good. When I use a USB cable, the projected image includes the presenter notes on my computer screen?

    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    and select the Library that you moved.  That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Your first option didn't work because you imported one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    Your second option didn't work because you simply referenced her library on the old machine.
    Regards
    TD

  • How can I make sure fonts in a Keynote presentation developed on iMac will show/match when transferring the presentation to MacBook Air?

    It would seem (to me) this should not be an issue, but I have an iMac and MacBook Air with the identical version of OS (10.7.4) and Keynote ('09 5.1.1).  Yet, the fonts don't match.  Fonts I would regularly use when developing the presentation on the iMac do not transfer (create "Review" errors) to the Air.  How can I fix it so that all the fonts on iMac show on Air?

    If I am understanding your question correctly what you are wanting to achieve is not possible. You can't run the same keynote presentation on both devices at the same time. Also, why would you want to use the small screen size of the iPhone as your display instead of the iPad? If it is just to see your presenter notes then print them out and use the iPhone as your remote.
    Perhaps more info is needed so i fully understand your issue.

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • How can i display the presentation variable in my reports

    Was facing a problem to display the Presentation variable on my report, however i managed to display it on answers, but when i try to display it on my Publisher report it doesnt shows any data.
    I use to Select the Values From my prompt, and it shows the Reflection of Presentation Variable on my Answers Report. but i cannot see the Reflection of data on my Publisher Report Please any One Can help me with this.

    Removing '' does not work it given the following error
    "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)"
    and by adding space you mean that I use it as '@{ BbranchCode}'?
    What I am doing at the moment is
    1. Write the given query in oracle BI Answers.
    2. Made a dashboard prompt in Answers.
    3. Made a report in dashboard using the Answers report and the dashboard prompt.
    Up till this step it works perfectly fine and the data displayed in manipulated on the basis of the values selected in the prompt.
    4. Now what I want is to display this report in Dashboards using oracle BI publisher. For that I use the template builder provided for microsoft word.
    5. I login to that add-on, open the answers report where I can see the field in the rowset. I select that field and save the template.
    6. I open the oracle BI publisher and make a new reprt with data model of the answer's report and Layout of the one I just created.
    7. I open the dashboard and put in the BI publisher report in the same page in which the asnwers report and the prompt was.
    8. Upon changing the values of the prompt the report in the answers is still getting manipulated but I am not able to see its reflection of the BI publisher report.
    The thing is that I am currently using this presentation variable to manipulate my reports in dashbords using dashboard prompts. The report is built in oracle BI Answers and it is working perfectly fine with it. Now when I use the template builder for Microsoft Word and open the template with the answers's report of this query I see the field in the row set but when I display the template in the dason the bases of this presentation variable the report in the oracle BI Answers is getting updated when I change values but when I use the template builder for microsoft word the the field is being shown in the row set.

  • How can I change my email account address on my Drop Box account. The present address is wrong.

    How can I change my email account address on my Drop Box account? The present address is wrong.

    Dropbox is not in any way associated with Adobe.  Ask Dropbox support, or start using Workspaces at https://www.acrobat.com/

  • The iWork Public Beta allowed me to share Keynote presentations with anyone via the web. How can I share a Keynote presentation online via iCloud? Must the presentation be downloaded to view?

    The iWork Public Beta allowed me to share Keynote presentations with anyone via the web. Now Apple tells me the Public Beta is being replaced by iCloud. How can I share a Keynote presentation online via iCloud? Must the presentation be downloaded to view?

    iCloud is not designed for sharing data with other people: you will need a third-party alternative such as DropBox or Sugarsync.
    More details here (written for migrators from MobileMe but the basic information may be helpful):
    http://rfwilmut.net/migrate3

  • How to delete a local file in the presentation server.

    Hi All,
    How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let me know, how can i achieve this.
    Thanks in advance.
    Regards,
    Vishal

    data: l_rc type i.
      data: f_name type string.
        move 'c:\YourFile.txt' to f_name.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
          EXPORTING
            FILENAME             = f_name
          CHANGING
            RC                   = l_rc
         EXCEPTIONS
           FILE_DELETE_FAILED   = 1
           CNTL_ERROR           = 2
           ERROR_NO_GUI         = 3
           FILE_NOT_FOUND       = 4
           ACCESS_DENIED        = 5
           UNKNOWN_ERROR        = 6
           NOT_SUPPORTED_BY_GUI = 7
           WRONG_PARAMETER      = 8
           others               = 9
        IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

  • I shall open delete my present account with iTunes and open a new one - but I do not have the password. How can I then delete the present account??

    I shall open delete my present account with iTunes and open a new one - but I do not have the password. How can I then delete the present account??

    Since you can't delete Apple IDs and having multiple Apple IDs can cause confusion, what you may want to do is rename your existing Apple ID to the new email (desired Apple ID).  That would in effect do what you want, get rid of the old and give you the new.
    See "Apple ID: Changing your Apple ID"
    ivan

  • Is there any way to run a timer on the presentation screen during two consecutive presentations?

    I administer exams that require running two consecutive presentations and interact with the person being tested. With each candidate we use two different presentations, so I can't just make only one presentation.  Is there a way to have a timer display on the presentation screen through both presentations? Each person only has thirty minutes to get thru both presentations. If one only takes ten minutes, then they have twenty for the final one. I'd like to get away from using egg timers.

    take a look at this thread, you can find some useful info about running old and some new games on Booklet there.

  • Is there any way to view a keynote presentation and the presenter notes on the iPad at the same time?

    Is there any way to view a keynote presentation and the presenter notes on the iPad at the same time? My professors at school have keynote presentations and i take notes during class with the presenter notes feature. I was wondering if there was any way i can view both of them on the same screen on my iPad while studying? This way I could see their slides along with the notes i take during class.

    None that I know of. Suggest to Apple.
    Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
     Cheers, Tom

Maybe you are looking for

  • Can't prevent unwanted toolbar from loading in Acrobat Pro 9

    I downloaded an evaluation copy of EverMap AutoBookmark plug-in.  I prefer not to automatically open toolbars that I don't use regularly when first opening Acrobat, but I can't keep the AutoBookmark toolbars from loading, even if I uncheck those part

  • Types of replications in oracle 10g

    Hi Iam new to oracle10g. I want to replicate my database. Before that i want to know how many types of replication methods are available in oracle 10g? Thanks

  • Special ledger splitting

    Hi, my customer have Ecc.6 with AFSS and  without the new special ledger Actually, when a sales invoice is posted, I have the following document Customer 120 Taxes 20 Revenue 50 for production line A Revenue 50 for production line B Now, I want to be

  • Directory Server 6.3.1 and Directory Server 7.0 agent module

    Hello Folks- I am having a strange issue with my directory servers. I had three directory server replicas and they were all on 6.3.1 installed with the zip distribution. One of the directory server was a vmware virtual machine running on Solaris Upda

  • I am having problems w/ FCE-HD accepting M4Ps

    I am having problems w/ FCE-HD accepting M4Ps. iMovie has no problem importing M4Ps yet FCE and Sound Track does not seem to be recognising the format. Am I doing something wrong or do you need to convert the files? Thanks-