Need a substitue for OrionPooledDataSource **ClassCastException **

Hi
we are getting a "null, java.lang.ClassCastException" when executing the following:
InitialContext ic = new InitialContext();
Object o = ic.lookup("jdbc/od_jdbc_connectionPooledDS");
OracleConnectionPoolDataSource ds = (OracleConnectionPoolDataSource) o;
even though my data-sources.xml in my
C:\JDev\jdev\mywork\DVDOrdering\DVDOrdering-data-sources.xml
contains the following
<data-source name="jdev-connection-od_jdbc_connection"
class="com.evermind.sql.DriverManagerDataSource"
location="jdbc/od_jdbc_connectionCoreDS"
xa-location="jdbc/xa/od_jdbc_connectionXADS"
ejb-location="jdbc/od_jdbc_connectionDS"
pooled-location="jdbc/od_jdbc_connectionPooledDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="hr" password="hr"
url="jdbc:oracle:thin:@localhost:1521:Metadata" inactivity-timeout="30"/>
Thru the debugger i can see that o is of type OrionPooledDataSource
What package / class else can i cast the datasource to?
All the best
Jim

Thru the debugger i can see that o is of type OrionPooledDataSourceHm,,, this Orion thing must have faded away from oracle jdbc packages some time ago.
Anyway, you can probably cast it to javax.sql.ConnectionPoolDataSource. You can check it by reflection         Class orionDs = OrionPoolDataSource.class;
        Class[] ifs = orionDs.getInterfaces();
        for ( int i =0; i< ifs.length; i++) {
            System.out.println(ifs.getName());
System.out.println(orion.Ds.getSuperClass.getName());
What is better, if you use Jdeveloper, right click the object and choose "view Type Hierachy". You can see them all.

Similar Messages

  • ORA-04054 : using variable substitution for the database link name

    Hi,
    I need to use variable substitution for the database link name.
    Here is my command :
    declare
    GET VARCHAR2(50);
    begin
    select OIA_GET_DESIGNATION into GET from INFODRI.OMA_IN_ARTICLES;
    for rec in (select * from [email protected]_GET_DESIGNATION)
    LOOP
    dbms_output.put_line('TEN_CODE vaut : '||rec.ten_code);
    END LOOP;
    exception
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERREUR ORACLE DETECTEE : '||rec.OIR_CUR);
    DBMS_OUTPUT.PUT_LINE('Message Erreur : '||SUBSTR(SQLERRM,1,245));
    :crd := -1;
    end;
    When I run this programm, I receive the error :
    ORA-04054: database link REC.OIA_GET_DESIGNATION does not exist
    When I replace :
    for rec in (select * from [email protected]_GET_DESIGNATION)
    by :
    for rec in (execute immediate 'select * from tensions@'||rec.OIA_GET_DESIGNATION)
    I receive the error :
    PLS-00103 : Encountered the symbol "IMMEDIATE" while parsing.
    What can I do to resolv my problem ?
    Regards,
    Rachel

    What is the name of the DB Link and the name of the object you are selecting
    from?
    I find it easier to create a view on the remote object then use that in selects.
    e.g,
    Link Name = MyLink
    Object_name = Addr_Loc
    create or replace VIEW Rem_Addr_Loc AS
    select * from addr_loc@mylink;
    In the code I then use the view
    begin
      for C_Rec in (select * from Rem_Addr_loc)
      loop
         dbms_output.put_line('Rec: '|| C_Rec.Col1);
      end loop;
    end;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Profit Center Substitution for Migrated line item

    Dear Expert,
    we migrated the data on feb 2014. past records having the default profit center value in each line item, after the migration we are not using the default profit center , we blocked that through some validation, but some situation, for clearing vendor or customer or gl, the migrated line item having default profit
    center with disabled mode to change. so its throwing the validation error, we cant able to unblock the validation also. we need to write a substitution for this to replace automatically . Eg :
    Default Profit center is : 38000
    it should be replace with to 2038100001
    like wise we have multiple company codes.
    i try to write the prerequisite, herewith i have attached the screen shot, i am getting the error for this, anyone can explain this situation ?
    Regards
    Prince

    Hi
    Please, check these notes
    SAP Note 173798 - User exit for PCA substitution
    SAP Note 1532865 - FAQ: Profit center in the billing document
    SAP Note 150959 - Profit center is incorrect in production order
    SAP Note 530578 - Special stocks in PCA
    SAP Note 594507 - PC with valuated special stock incorrect
    and related notes
    I hope this helps you
    Regards
    Eduardo

  • How  we can mention varible substitution for diffrent message payloads

    Hi,
    How  we can mention varible substitution for diffrent message payloads,
    My sceanrio like following,
    According the Outbound idoc message,based on the condition the messages to be split into 9 diffrent files.The sender message may or may not satisfied the condition to one or two messages or  all messages.
    I done the mapping 1:N multimapping in messagemapping & Interface mapping too.
    In reciever file adapter i put the variable substiution like as fallows.
    Variable            Refrence
    Name--            -
    Filename -- payload:message_type_1,1,Segment1,1,Segment2,1,Field_1,1
    <b>How we can mention variable substitution for remaining messages in the same communication channel.my message type names are diffrent for all 9 messagetypes.</b> Any ideas pl forward..,
    When i am testing this scenario,able to processing a one file but the file is not placed in the specified target & gives the follwing error:
    'Conversion configuration error: Unknown structure 'ns1:message_type_2' found in document', probably configuration error in file adapter (XML parser error)'.The file is
    In this case Idoc data satisfied the one message condition only.
    If any ideas & suggestions ..?

    Hi Anjan
    You could always put the "FileName" and "Directory" names into the Dynamic Configuration using a UDF in the map - possibly using a value mapping table to determine the correct values. Then simply reference "%Directory%" and "%FileName%" in the file adapter.  This way you do not have to reference payload variables and you set the names in the map. You will need to tick the box for "use adapter specific message attributes" in the file adapter. you UDF code will look something like
    String dir = "/path";
    String fil = "filename.txt";
    DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,dir);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key,fil);
    - Stephen

  • Substitution for Cost Center

    Dear all,
    I need to use substitution for cost center in some business scenario. Because FI document is automatically created by SD MM side, so cost center maynot be filled in if this account is configured for default accoun assignment in OKB9.
    Now, I want to define a substitution for Cost center field. Such as: if some combination is met, cost center will be filled with A or B ..... (depends on the combination of prerequisites).
    But when I create Substitution, I cannot find field Cost center BSEG-KOSTL in Substitutable fileds Table.
    Do you know how to do it ?
    Thank you very much in advance,
    Best regards,
    Sylvecat.

    Hello!
    See table GB01 for field KOSTL.
    The field EXCLUDE are assigned? If positive that´s should be the cause of your problem.
    Disable this mark to turn field KOSTL able to substitution.
    best regards.

  • Substitution for services

    Colleagues
    We need to create and FI substitution for services in order to apply the cost of them as if the purchase document had Account Assignment Categoryu201DJu201D instead the real u201CFu201D
    For us this mean that the cost will be applied to an account 5XXXXXXX instead of the defined onto the purchase document.
    We havenu2019t been able to this due to into the substitution we cant have  the data of the entry sheet, to identify the replacement account on the T030 table.
    Please let us to know if this is possible.
    Thanks a lo for your help

    Colleagues
    We need to create and FI substitution for services in order to apply the cost of them as if the purchase document had Account Assignment Categoryu201DJu201D instead the real u201CFu201D
    For us this mean that the cost will be applied to an account 5XXXXXXX instead of the defined onto the purchase document.
    We havenu2019t been able to this due to into the substitution we cant have  the data of the entry sheet, to identify the replacement account on the T030 table.
    Please let us to know if this is possible.
    Thanks a lo for your help

  • Issues about substitution for network activity

    Hi guys,
    Today we have tried to creat a substitution for the network activity (Tcode: OPSN).  we also create some by reference the existing ones. When we choose form menu Edit->Validation/Substitution->Substitution, it really triger the our defined exit. But when we save the network, after we change the activity. It trigger nothing! So I am very confused.
    Welcome any suggestion!
    thanks very much!
    --James

    Hi James,
    check settings in network profile. For automatic substitution you need to make settings there.
    Cheers
    Thorsten

  • FI substitutions for custom fields in BKPF table

    Hi,
    We are having trouble making the substitution work for the custom header fields in table BKPF.
    We have tried straight substitutions, exits and populating the fields on the interface table ACCHD.
    Nothing works. But the substitution for the custom fields in BSEG works.
    We did activated these substitution rules.
    Do we need to have blank instead of "X" in the GB01 table for the field BEXCLUDE ?
    Did we miss any thing here or we cannot use substitutions for header custom fields ?
    Thanks
    Steve

    Hi Dave,
    Currently, In BKPF table we have entries as follows:
    For BOOCLASS "008" we have BEXCLUDE as blank
    where as for "015" we have BEXCLUDE as "X" .
    Do we need to change this "X" to blank as well ? Also I do not see the custom fields in GB01 table, but I see them in BKPF table though.
    We have already regenerated the rules by running RGUGBR00 program.
    Thanks
    Steve

  • I NEED ADOBE SERVICE FOR A REFUND -- TONIGHT

    I'm ready to scream -- I was supposed to be transferred to the department for a refund and instead it timed out and ended my chat:
    The chat line is: (EMPHASIS ON THE RED FONT AREAS -- I NEED TO CANCEL DREAMWEAVER CS6 (AS I WAS ASSURED I WOULD HAVE NO PROBLEM DOING) AND GET A REFUND -- I JUST PURCHASED DREAMWEAVER CC.
    One moment please while we route your chat to a representative.
    All representatives are currently assisting others. Thanks for your patience. A representative will be with you shortly.
    Thank you for contacting Adobe Sales. My name is Gavin. How may I help you today?
    Gavin: Hi, may I have your first name please?
    you: Hi, my name is Barry.  I spoke with your chat line the other night, the night I purchased CS6.  I was on the fence, do I want CS6 (for about $400) or CC (with the ongoing $20 a month fee).  I was told that if I wanted to cancel CS6 and move to CC, it would be OK, since I had only installed CS6 and had not used it yet.  And that I could get the refund for CS6 and install CC at the same time.  At the moment, my purchase from Best Buys had not registered in your system, but I'm sure it has now.  SO THE QUESTION AGAIN -- could you discuss with me the pros and cons of CS6 vs. CC -- I have heard that I will not be able to update/upgrade CS6, that it is close-ended, and that CC will be a constant addition of latest features.  PLEASE ELUCIDATE ME ON WHICH PROGRAM I (A NEOPHYTE WHO JUST PAID SOMEONE TO BUILD ME A WEBSITE) MIGHT WANT TO USE.
    Gavin: Hello Barry
    Gavin: Let me explain that for you.
    you: Hi, -- can you read my lengthy question and provide me your insights, CS6 or CS CC?  Thanks, Gavin - I might have spoken with you the other night even.
    Gavin: No, its with other representative.
    Gavin: Adobe Creative Cloud is our newest option for you, That will give you everything , plus the ability to sync and store your files
    Gavin: If you purchase the software outright at once then you'll be paying the upgrade cost when new version releases but that is not the case when subscribed to Creative Cloud membership since you get free upgrades to future version and will remain current with the latest software tools.
    you: Is there some comparison sheet which would lay out the features and benefits of the two programs, side by side, for an educated decision?  I was told that CS6 if purchased outright is NOT UPGRADABLE -- wouldn't that lean me toward DW CC instead, to stay current as features are added and tools too?  IF THAT IS THE CASE, PLEASE REFUND ME THE CS6 COST AND SIGN ME UP FOR THE DW CC PROGRAM INSTEAD.  I was told you could transfer me to the folks in your place who could make this happen -- but I NEED IT DONE TONIGHT!  My website developer is coming tomorrow and needs an installed program to train me on.
    Gavin: We are connected, right?
    you: sorry, it took time to frame my question
    Gavin: That's okay.
    Gavin: Barry, I see that going forward all new versions will be through creative cloud membership.
    Gavin: I'll help you with the cancellation for your CS6 purchase made once you complete the sign up for Dreamweaver CC, Okay
    you: SO, HELP ME TO A DECISION, GAVIN.  What do I do?  Get the monthly fee program and turn in the CS6 for a refund?  HELP
    you: Lead the way -- BUT.... AND IT'S A BIG "BUT" -- will it be installed and functioning TONIGHT so my guy can train me tomorrow?  PLEASE ANSWER THEN let's get this new sign up & cancellation into action.
    Gavin: I see that there is no option to equalize the CS6 purchase for the CC subscription plan however you need to subscribe first and then will refund the CS6 purchase made.
    Gavin: After subscribing to Dreamweaver CC you can download/ install the software immediately
    Gavin: Sounds great, right?
    you: So you cannot help me -- what do I do?  How do I subscribe first, and how do I get the refund for CS6?  Please advise.  I'm ready to do it NOW! 
    Gavin: I'll help you now with the link to subscribe Dreamweaver CC and then help you to get the refund for CS6, Okay
    you: fantastic -- I'm at your disposal
    you: what do you need from me?
    Gavin: Please click here to subscribe
    Gavin: I'll stand by please let me know once your done.
    you: one last question -- as I said, I'm new to this -- can I later upgrade to Creative Cloud's whole family by just increasing my monthly payment by the difference?  please advise.
    Gavin: Yes, that's possible.
    Gavin: You can later switch or upgrade to complete creative cloud membership when you require other products.
    you: great - I'm purchasing now and will let you know when it goes through
    Gavin: Sure
    you: do I have to un-install CS6 first? PLEASE ADVISE - I'M STARTING TO DOWNLOAD AND DIDN'T THINK OF IT!!!!
    Gavin: Excellent!
    Gavin: You can uninstall CS6 version once you complete the download for CC.
    Gavin: Barry, please stay online while I transfer this chat to our Customer Service Team for more help on cancellation for your CS6 purchase made, Okay
    you: I am online, and DW CC has extracted and is half-way through the next step
    you: by the way, here's my proof of purchase--should I proceed through the entire installation and checking for upgrades.  Need I check for upgrades, or is this the latest version?
    you:   We received your payment - thank you! Here are the details about that order for your records:   Order Details:    Creative Cloud single-app membership for Dreamweaver (one-year) $19.99 per month Order # AD010920985  
    Gavin: Excellent!
    Gavin: Please run the download to install, mean while you cancel the order for CS6 purchase made, Okay.
    you: Ok - how do I cancel it?  Will you turn me over to that department to effect the cancellation?
    Gavin: Yes, please stay online while I transfer this chat.
    you: Dreamweaver CC is now installed.  Thanks for your help, Gavin.  I'm so nervous about this because I can't afford to screw it up and have my website guy come tomorrow and not be able to train me.
    Gavin: Not to worry!
    Please wait while I transfer you to an operator at Adobe Service.
    We are still assisting other customers, thank you for your patience. You can also try our community forums, where experts are online 24/7.
    We are still assisting other customers, thank you for your patience. You can also try our community forums, where experts are online 24/7.
    You are not currently connected to a chat representative.
    Your chat transcript will be sent to [email protected] at the end of your chat.
    We are still assisting other customers, thank you for your patience. You can also try our community forums, where experts are online 24/7.
    You are not currently connected to a chat representative.
    We are still assisting other customers, thank you for your patience. You can also try our community forums, where experts are online 24/7.
    You are not currently connected to a chat representative.

    Hello Barry,
    as one of these DW fans here, I'm very surprised and disappointed how your chat passed off. And I can fully understand your immeasurable disappointment. So I/we won't give up this quickly. Maybe you would succeed by using the written form. The employees have time to reflect your problem in an optional way. Please try it once more and use this form for "Sales Inquiries" (Contact us online):
    http://www.adobe.com/products/request-consultation/marketing-cloud.html?promoid=KAWSG
    Good luck!
    Hans-Günter

  • Do We need access key for Additional Data B in VA01

    Hi all,I have to add fields in Additional Data B,I have searched SDN about it and came to know that it is screen '8459' of program 'SAPMV45A',but it is asking key for that,is it safe applying access key for this screen?
    Thanks in advance.

    >is it safe applying access key for this screen?
    yes it is safe. SAP provided the screen 8459 only for adding our own custom fields to it. For this you need access key for the first time. along with that you need access key for
    PBO include, PAI include
    MV45AOZZ ,MV45AIZZ .
    check it once.

  • Need standrad program for vendor aging report

    Hi
      Need standrad program for vendor aging report.
    Please reply me only standrad programs.
    Point are sure.
    Regards,
    kumar

    Hi Pankaj
       sorry to say that this is not my required program.
    I need vendor aging report like s_alr_87012178 tc leads to customer aging report.
    Thanks for your effort.
    points are awarded.
    Regards,
    kumar

  • Keynote and pages are now free, but why do i need to pay for them still when there now free?!?

    keynote and pages are now free, but why do i need to pay for them still when there now free?!?

    Users can obtain the iWorks and iLife applications free, if they purchased a Mac after the beginning of October 2013.
    Older Mac purchases require a paid purchase of these applications.

  • HT201209 How to get an itunes gift card code, no need to wait for shipping

    Good day to all,
    I want to get an itunes gift card just to download whatsapp on my iphone 3gs. I have my credit card but the billing address is in Haiti, unfortunately Haiti is not in your list of  countries. How can I get itunes gift card code immediately in order to download that application? No need to wait for shipping, just want to have the code to add it to my apple account.
    If you have a better solution, it's welcome.
    Thank you in advance for your reply

    Sorry, but you can't, if you live in Haiti. As you say yourself, there is no iTunes Store for Haiti and you are not allowed to use the iTunes Store of any other country.
    If you live in a country where there is an iTunes Store, check to see if Apple sells physical gift cards in your country and if so purchase and redeem one of those. There is no way to purchase an electronic gift certificate from Apple without a credit card from the country whose iTunes Store you wish to use.
    Regards.

  • I have multiple computers set up on homesharing under one itunes account. Can I use face time on all of them or do i need seperate accounts for each?

    I have multiple computers set up on homesharing under one itunes account. Can I use face time on all of them or do i need seperate accounts for each?

    I'd suggest you consider a cloud-based file sharing service such as Dropbox for this sort of use. iOS is not designed to be synched with more than one iTunes library at a time, so attempting to use it as you describe, connecting a single iPad to multiple computers, almost certainly won't work as you intend and is likely to cause nothing but headaches.
    Regads.

  • How to set an alerting substitution for another user as admin?

    Dear experts,
    having the case on of our employees went on vaction without entering a substitution for his alerts.
    How can I as an administrator setup a substitution for the alerts of this user?
    Thanks in advance,
    BR Matthias

    No ideads around?

Maybe you are looking for

  • Acrobat 10.1.3 update file format issues

    I have recently updated my Acrobat Pro to 10.1.3. I run a music notation software called Finale which I "Save as Adobe PDF" to create my pdfs and get them ready for publishing. This latest update seems to be having a problem holding onto my files. Wh

  • Access Services Issue

    SharePoint 2013 Enterprise. This is a single server just for proof of concept demonstration. I setup Access Services and when I go to access 2013 to create a web app I get an error. "An error has occurred" Here are  the messages that I get from the l

  • Multi Lingual ....

    Hi, We are in the process of developing a Multilingual portal. I have a login page which has some info about the company etc. How do I /where do I store this information and How to transalte to the corresponding lagauage's translation if I have the e

  • Cs4 install on macbook pro

    unable to install the master collection cs4 on my macbookpro without getting an error code. wanted to know if there are any suggestions.

  • Boot from SCSI CD Drive?

    The ATA port on my Power Mac G4 AGP failed so I purchased an internal SCSI CD-ROM drive to replace it, and hooked it up to the SCSI PCI card that came with the computer. The drive works fine on both Mac OS 9.2.2 and 10.4.11 but I cannot get the compu