ClassCastException, and we *are* using "-Djbo.server.in_oc4j=true "

Hi,
We have several applications using the same BC4J objects running on the same AppSer (Oracle9iAS Containers for J2EE 9.0.2.0.0, running on Ibm AIX 4.3.3).
Each time we deploy a specific application, all OTHER applications get ClassCastExceptions, like
"java.lang.ClassCastException: <myPackage>.<myTable>ViewRowImpl"
We DO start OC4J with the -Djbo.server.in_oc4j=true option.
Any ideas?
Regards,
Jaime Conejo/ Martijn Hinten

Hi,
I already tried this, but the getClass() method reports exactly the class as I am expecting! To be more precise:
I am executing the following code:
ApplicationModule am;
ViewObject vo;
VCboLookupArtFeViewRow titelRow; // This is an interface, which is implemented by
// VCboLookupArtFeViewRowImpl
vo = am.findViewObject("VCboLookupArtFeView");
Sytem.out.println("rowtype:"+vo.first().getClass()); // (1)
titelRow = (VCboLookupArtFeViewRow) = vo.first(); // (2)
Now, at line (1) the console reports that the object type is is 'com.centraalboekhuis.cbonline.model.VCboLookupArtFeViewRowImpl'. Note this is the "impl" class that implements my VCboLookupArtFeViewRow-interface. I am not casting to the "impl" class, as the Bc4j manual tells me I should use the interface instead (which makes sense). So, I am casting to an interface reference type, which my class implements. Should work.
However at line (2) the following ClassCastException is thrown (see below). It tells me my object is not a VCboLookupArtFeViewRowImpl. But I now it is, as my debug statement tells me it is. Again, I am casting to an interface type, but VCboLookupArtFeViewRowImpl implements this interface type, so this should work. As a proof that it indeed works I can demonstrate that when I deploy my application all works fine, but when another project member deploys his application, my application fails with the ominous ClassCastException.
So, what is happening here?
java.lang.ClassCastException: com.centraalboekhuis.cbonline.model.VCboLookupArtFeViewRowImpl     at com.centraalboekhuis.cbonline.bestellen.ModelGetBestelTitelDetails.perform(ModelGetBestelTitelDetails.java:55)     at com.cumquatit.j2ee.controller.web.HttpController.doAction(HttpController.java:139)     at com.centraalboekhuis.cbonline.CBOnline.doAction(CBOnline.java:124)     at com.cumquatit.j2ee.controller.web.HttpController.doPost(HttpController.java:163)     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle9iAS (2.0.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java(Compiled Code))
Thanks

Similar Messages

  • Tables and structures are used in a standard scripts

    how to find which tables and structures are used in a standard scripts?
    pls explain step by step process...
    Edited by: abap on Jun 21, 2008 4:36 PM

    Go to Transaction SE80, Select Program and paste that program name below..
    Then drop down the tree of that program...then you will find option " Dict. Structures"..
    Here you can find the tables which has been you for that transaction / program.
    Regards,
    Santosh

  • HT204053 My wife and I are using the same apple ID. since last week, i am required to pay twice for the same app on our 2 devices (even though we are using the same ID). what can I do to fix this?

    My wife and I are using the same apple ID. Up until last week we used to buy an app and pay for it only once, but use it on both devices.
    since last week, the app store asks me to pay again for an app i already paid for on one device. On both devices automatic downloads (in settings) is and was always turned off.
    what can I do to fix this?

    Actually no. After installing an app on one device, I used to see an "install" button on the second device (since it's already been paid for). Now i get the full price button on the second device. I didn't want to proceed with the purchase because i didn't want to be billed twice.

  • My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my com

    My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my computer and load them in my LR. The photos appear but witthout any editing or tagging. We need to be able to have her working on the photos on her computer with her copy of LR and me on my computer with my version of LR being able to access what is already tagged and given back to me. This seems hard. We need advice on if it is at all possible to have two computers simultaneously working on LR . I bought her her own version because I was told at the time of purchasing that that was the only way to share. Please advise urgently! Thanks.

    Sounds like your assistant isn't instructing Lightroom to write the tagging and editing to the files themselves, so wehn the files return to you, they don't have editing and tagging information. She need to select the photos in Lightroom and then Ctrl-S (Cmd-S on Mac). Or alternatively turn on the option to autmoatically write this information to the files.
    If you are using RAW photos, then this information will be written to a sidecar XMP file, and your assistant must provide you with the sidecar file. If these photos are not RAW photos, then the information is written directly into the photo file itself.
    Lightroom wasn't designed to be a multi-user program, and so it is truly not possible to have two people working on the same catalog at once. The way you are doing things, as modified above, is probably the way to go.
    As an alternative, you can transfer (portions of) catalogs as well as photos back and forth and then all of these issues disappear, but a catalog might be rather large for a flash drive (or maybe not, it depends)

  • I have two iPads and one iPod Touch and they are using iTunes on the same computer.

    I have two iPads and one iPod Touch and they are using iTunes on the same computer. I have not been able to backup the second iPad. Is there a reason this is happening? iPad one is an iPad 1 and the second is an iPad 2 not sure if this has something to do with it. I just tried to upgrade to IOS 5 and when it went to back up it gave me an error code (-5000). I tried to back up using iTunes and it told me that my backup was corrupted and to delete it and try to back up again. When I went into the device portion where I was instructed to go to delete the backup I found that there was no backup for my iPad just the iPad 1.
    I have synced many times and all of the apps, podcasts, music, etc... show up in iTunes, and iTunes recognizes that is is the second iPad but there is not a backup for it.
    Any Ideas?

    Read this:  How to use multiple iPods, iPads, or iPhones with one computer, http://support.apple.com/kb/HT1495

  • TS4036 I purchased an iphone for my daughter and we are using the same account and she deleted some contacts from her phone and they were deleted off of my contacts as well. Is there a way to use icloud backup to reinstall the contacts to my phone?

    I purchased an iphone for my daughter and we are using the same account and she deleted some contacts from her phone and they were deleted off of my contacts as well. Is there a way to use icloud backup to reinstall the contacts to my phone?

    Welcome to the Apple community.
    You can only restore them from a Computer backup. This has occurred because you are sharing an iCloud account. ideally you should each have your own iCloud account, that way you can each manage your own mail, contacts, calendars, documents etc and avoid unintentional deletions and unwanted editing. If there is information you wish to share between you, this can be done with a secondary account.
    Having separate iCloud accounts, doesn't mean you have to have separate iTunes accounts, so whilst you keep your personal data separate, you can continue to share music, apps, books, TV shows, movies etc.

  • We have 30 ipads at our school and it is great.  We are about 850 student on my school and everyone are using the ipads. One hour at the time. (we have a booking system.)   I teach music and are using Garageband. I need to find away were my students that

    We have 30 ipads at our school and it is great.  We are about 850 student on my school and everyone are using the ipads. One hour at the time. (we have a booking system.)
    I teach music and are using Garageband. I need to find away were my students that are working on a project can export the files and save them somewhere, so when they 7 days later open Garage band can import there song with all the correct  midi-tracks. When I export the song to Icloud the song become an Mp4 file (I think).  And I can import the files via Icloude.
    This is because too many times the song has been sabotages during the week
    Dan Sweden

    Dan,
    your students could store their projects in iCloud, only you would continously have to change the AppleIDs of the iPads, so each student could store the songs with their own AppleID.  I don't think this will be feasable.
    The other possibility would be to share the projects to iTunes and to download them to iTunes  on a Mac at the end of each lesson. Does your school have Macs? This will not work with PCs.
    See this link:  GarageBand for iPad: Get answers fast http://help.apple.com/garageband/ipad/1.2/index.html#chsec12c387
    Look at the section "Share GarageBand songs",   
    Send a GarageBand song to iTunes:
    -- Léonie

  • How can one find out how much hard drive space the apps and media are using?

    how can one find out how much hard drive space the apps and media are using?

    See Here  >  Where did my Disk Space go?
    And Here  >  The Storage Display

  • HT204053 my boyfriend and i are using the same apple account, i was wondering if there is a way for him to stop recieving txt msgs thats are sent to me through email accounts without removing him from my account altogether?

    my boyfriend and i are using the same apple account, i was wondering if there is a way to stop him recieveing txt msgs that are sent through email addresses without removing him from my account altogether?

    gemmie87 wrote:
    my boyfriend and i are using the same apple account, i was wondering if there is a way to stop him recieveing txt msgs that are sent through email addresses without removing him from my account altogether?
    Or remove you from his, it's moot because You and He are the same account, either get him his own (they are free) or live with this cozy but privacy compromised method.

  • Hi there,both my uncle and i are using iphone 5 that runs on 6.1.2 whenever i send or receive tweets i'am not getting the twitter default sound,i'am getting tri-tone sound.My uncle however would get the default twitter sound whenever he sends or receive.W

    Hi there,both my uncle and i are using iphone 5 that runs on 6.1.2 whenever i send or receive tweets i'am not getting the twitter default sound,i'am getting tri-tone sound.My uncle however would get the default twitter sound whenever he sends or receive.What's up with that?

    Check: Settings - Sounds - Tweet - Set to your preference.

  • Drawing for text and string fails using X server(xsun) xlib

    Hi all,
    I have sparc system and Iam using xsun on solaris 10 and ps -ef | grep
    -i xsun gives this:
    /usr/openwin/bin/Xsun :0 nkeyboard nmouse -dev vfb -dev vfb screen 0
    1028x102
    Now I am trying to use XDrawString and XDrawText for simple one
    character drawing but to no avail as these calls don't generate
    anything. All line generation and bitmap are rendered correctly on the
    virtual frame buffer to generate a tiff file.
    The same set of calls are working great on sun 2.6.
    What can be the problem? I can't seem to find any solution to that?
    ////////////////////// These calls fail completely returnig
    0 ////////////////////////////////////
    CR_CHAR Temp[2];
    Temp[1] = 0;
    Temp[0] = textString;
    int rt = XDrawString(_CRDisplay, *pagePixmap, CRGC, xPos, yPos, Temp,
    1);
    XTextItem item;
    item.chars = Temp;
    item.nchars = 1;
    item.delta = 0;
    item.font = 0;
    int rt = XDrawText(_CRDisplay, *pagePixmap, CRGC, xPos, yPos, &item,
    1);
    Regards,
    RUI

    Partial Solution Found
    I used the method below to boot single-user from GRUB.
    <URL:http://docs.sun.com/app/docs/doc/817-1985/>
    Solaris 10 System Administrator Collection >>
    System Administration Guide: Basic Administration >>
    11. x86: GRUB Based Booting (Tasks) >>
    x86: Booting a System in the GRUB Based Boot Environment >>
    x86: How to Boot a System to Run Level S (Single-User Level)
    Now I can login as root in single-user level.
    I installed NVIDIA-Solaris-x86-169.12.run driver file successfully.
    I used the /usr/X11/bin/xorgconfig command to create a basic xorg.conf
    file. After reboot it locked up when I tried to start the graphics login.
    From what I have read I need to use kdmconfig to change from Xsun
    server to Xorg server but when I try to run the command kdmconfig I
    get the message kdmconfig not found.
    New Questions:
    1. Where is kdmconfig located and how do I start kdmconfig?
    2. Is there some other method to change from Xsun server to Xorg server?
    3. In single-user level what command do I use to startx?
    Thanks in advance,
    Ken

  • How to find Where does Data Elements and structures are used ?

    Hi everyone .
    Is there any table which stores data elements/structures and where they are used ?
    If not is there any way to find by writing some <b>program</b> where does a data element or a structure is used ? Which tables will require for that ? If any one can give example it will be most helpful .
    Thanks and Regards,
    Kaushal N. Shah

    Hi Kaushal,
    DD04L stores the data elements.
    DD02L stores the structures.
    So you can query these tables & find them.
    Regards,
    Chetan.
    PS:Reward points if this helps.

  • Failed to search the log and log repository using Application Server Contro

    I installed the OAS 9.0.4(10g) and tried to use Application Sever Control to search the log files or log repository. However, each time I clicked the Search button, the error page showed the following messages:The operation cannot be performed because the page contains expired data. The data will be automatically refreshed so you can try your operation again.
    I checked the emias.log and something like following existed:
    ERROR chart.EmChartCacheWorker getCachedChart.505 - EmChartCacheWorker.getCachedChart: 4abdc63146b7578d9853d1adc2aec4245fbf113b.png
    EXCEPTION: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
    2004-09-14 11:27:37,414 [HttpRequestHandler-24691856] ERROR chart.EmChartBean getChartImage.2662 - ERROR generating chart image: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
    2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2655 - EXCEPTION while generating chart image [id]: 030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png
    2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2658 - java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png.png (No such file or directory)
    I searched the directory specified in the emias.log and found it was empty!
    So what should I do to avoid this problem?
    Thanks in advance!

    Thank you.
    When you fire the processes to the report server you
    can trace the report with the following parameter:
    RWCLIENT.EXE SERVER=my_server
    TRACEFILE=c:\my_trace.trc
    TRACEMODE=TRACE_REPLACE
    TRACEOPTS=TRACE_ALL

  • How can I use firefox between windows 7 & windows XP on a network, where we are using Samba server. If a user logs on different workstation(and OS) with same account.

    we have a Linux fileserver with Samba share and have several users.
    The users tend to be in different locations and need to login at different workstations, sometimes the workstation may be WindowsXP and othertimes it is windows7.
    How can we use Firefox & Thunderbird in this situation.
    I find that Windows7 uses compressed files to store the location information.
    when a user logs on to win7 it creates a new account.

    we have a Linux fileserver with Samba share and have several users.
    The users tend to be in different locations and need to login at different workstations, sometimes the workstation may be WindowsXP and othertimes it is windows7.
    How can we use Firefox & Thunderbird in this situation.
    I find that Windows7 uses compressed files to store the location information.
    when a user logs on to win7 it creates a new account.

  • HT204053 My wife and me are using the same apple id on our ipads, can we have separate icloud accounts?

    I want to know if you can have a separate icloud account on your ipad, the account is in my wife's apple id, i want a separate icloud account on my ipad.

    If you are talking about Game Center, she can migrate to a different iCloud account and keep her Game Center ID the same (it doesn't need to be the same as her iCloud ID.
    To migrate her iPad to a separate iCloud account, start by saving any photo stream photos she wants to keep to her camera roll (unless already there) by opening her my photo stream album, tapping Select (Edit in iOS 6), tap the photos, tap the share icon -- box with upward pointing arrow (Share in iOS 6), then tap Save to Camera Roll.  If she is syncing notes with iCloud, you'll need to open each of your notes and email them to her so she can later copy and paste the text into new notes created in her new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud; this won't effect your iPad), choose Keep on My iPad and provide the password to turn off Find My iPhone (if using iOS 7).  Then sign back in with a different Apple ID to create her new account and choose Merge to upload her data to the new account.
    Once she is on a separate account, you can each go to icloud.com from your computer and delete the other person's data from your account.
    To avoid getting each other's text messages and FaceTime calls, make sure you are not sharing the same Apple ID for these services.  If you are, on her iPad go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with a separate ID (such as her new iCloud ID).

Maybe you are looking for