Challenging problem--who can take this

Hi All,
I am facing problem while accesing data from nested table in stored procedure. please go through the QUERY what i pasted below.
SELECT /*+CHOOSE*/ B.PRODUCT_TYPE CONSOLIDATION_TYPE,
D.SUPER_PRODUCT_CODE CONSOLIDATION_PRODUCT_CODE, D.SUPER_PRODUCT_DESCRIPTION, D.SUPER_PRODUCT_ASSET_LIABILITY,
D.SUPER_PRODUCT_TYPE, D.SUPER_PRODUCT_CATEGORY, NULL, NULL, 0, 0, 0, 0, 0, NULL,
0, 0, 0, 0, 0, D.USER_ID, D.AUTHORIZATION_ID, B.PRODUCT_ORDER MAPPING_ORDER
FROM NT_STATIC_PF_MASTER A, TABLE(OB_STATIC_PF_MASTER_INFO) B,
TB_STATIC_PF_SPG_MAPPING C, NT_STATIC_SPG_MASTER D WHERE A.DOMAIN_ID =10101201
AND A.PORTFOLIO_CODE = 'NPFSAP' AND B.PRODUCT_TYPE=1
AND C.DOMAIN_ID = A.DOMAIN_ID AND C.PORTFOLIO_CODE = A.PORTFOLIO_CODE
AND C.SUPER_PRODUCT_CODE = B.PRODUCT_CODE
AND D.DOMAIN_ID = C.DOMAIN_ID AND D.SUPER_PRODUCT_CODE = C.SUPER_PRODUCT_CODE UNION ALL
SELECT /*+CHOOSE*/ B.PRODUCT_TYPE CONSOLIDATION_TYPE,
D.PRODUCT_GROUP_CODE CONSOLIDATION_PRODUCT_CODE, D.PRODUCT_GROUP_DESCRIPTION, D.PRODUCT_GROUP_ASSET_LIABILITY,
D.PRODUCT_GROUP_TYPE, D.PRODUCT_GROUP_CATEGORY, D.PRODUCT_GROUP_FORMULA,
NULL, 0, 0, 0, 0, 0, NULL, 0, 0, 0, D.PRODUCT_GROUP_RESERVED,
D.PRODUCT_GROUP_RESERVED_TYPE, D.USER_ID, D.AUTHORIZATION_ID, B.PRODUCT_ORDER MAPPING_ORDER
FROM NT_STATIC_PF_MASTER A, TABLE(OB_STATIC_PF_MASTER_INFO) B,
TB_STATIC_PF_PG_MAPPING C, TB_STATIC_PRODUCT_GROUP_MASTER D WHERE A.DOMAIN_ID=10101201 AND A.PORTFOLIO_CODE = 'NPFSAP' AND B.PRODUCT_TYPE=2
AND C.DOMAIN_ID = A.DOMAIN_ID AND C.PORTFOLIO_CODE = A.PORTFOLIO_CODE
AND C.PRODUCT_GROUP_CODE = B.PRODUCT_CODE
AND D.DOMAIN_ID = A.DOMAIN_ID AND D.PRODUCT_GROUP_CODE = C.PRODUCT_GROUP_CODE UNION ALL
SELECT /*+CHOOSE*/ B.PRODUCT_TYPE CONSOLIDATION_TYPE,
D.PRODUCT_CODE CONSOLIDATION_PRODUCT_CODE, D.PRODUCT_DESCRIPTION, D.PRODUCT_ASSET_LIABILITY, D.PRODUCT_TYPE,
D.PRODUCT_CATEGORY, D.ACCOUNTING_METHOD_CODE, D.PRODUCT_DOWNLOAD_CODE,
D.PRODUCT_INCLUDE, D.PRODUCT_DEPEND_PRODUCT, D.PRODUCT_CLASSIFICATION,
D.PRODUCT_SFS, D.PRODUCT_HEDGE, D.YIELD_CURVE_CODE, D.USE_DEALSPREAD,
D.METHODOLOGY, D.PRODUCT_INTEREST_FREQUENCY, 0, 0, D.USER_ID, D.AUTHORIZATION_ID,
B.PRODUCT_ORDER MAPPING_ORDER FROM NT_STATIC_PF_MASTER A, TABLE(OB_STATIC_PF_MASTER_INFO) B,
TB_STATIC_PF_PL_MAPPING C, TB_STATIC_PRODUCT_LINE D WHERE A.DOMAIN_ID=10101201
AND A.PORTFOLIO_CODE='NPFSAP' AND B.PRODUCT_TYPE=3
AND C.DOMAIN_ID = A.DOMAIN_ID AND C.PORTFOLIO_CODE = A.PORTFOLIO_CODE
AND C.PRODUCT_CODE = B.PRODUCT_CODE AND D.DOMAIN_ID = C.DOMAIN_ID AND D.PRODUCT_CODE = C.PRODUCT_CODE ORDER BY MAPPING_ORDER ASC;
While it is running the PL/SQL it is giving an error object should be declared...
OB_STATIC_PF_MASTER_INFO(OB_STATIC_PF_MASTER_NT).
when we REFERED in the oracle errors it they saying use CAST to..
please solve this and help me out..
Regards
--Ravi

Give me your
object def.
nested table name
and the table that contains the nested table.
One more thing, try queries without unions I mean each part individually.
So you can reach to exact problem.
I am keen to solve your prob. If you have solved write me the solution.

Similar Messages

  • Ive finished my first website now my next problem, who can help?

    Hi there,
    With lots of help from Nadia, ive finished my website..
    http://www.tlmgoldman.com/
    Now ive got to move on to an other level and i hope you can help me.
    As you can see the website is working fine. Now ive got one new question from my client. Is it possible that my client can change the text himself? And he want to add a new page with a lot off new pictures.. for the employers.
    What is the best way to do this. Is it possible to do this without a cms system because cms is for me like flying to mars..
    Is there some kind of program so my client can upload some pictures and changes some text on all the pages?
    I will be happy to hear from you..
    Regards Brian

    Hi thank you for your response,
    but when i replace the text my whole left column dissapears. Must i replace the first text or just add it can you tell me where to put it?
    Welkome bij TLM Goldman<br />
    TLM Goldman levert sinds 2007 consultingdiensten in de branche Trading & Investments. De focus van onze cliënten ligt op de handel in financiële instrumenten en derivaten zoals aandelen, obligaties, energie, carbon, opties, equity swaps, futures en gerelateerde producten. TLM Goldman zet zich in voor zijn cliënten opdat zij concurrerend blijven in hun markt, operationele voordelen behalen en aan internationale wet- en regelgeving voldoen.
    Date: Mon, 24 May 2010 15:54:07 -0600
    From: [email protected]
    To: [email protected]
    Subject: Ive finished my first website now my next problem, who can help?
    Switch to Code View.
    <div id="left_column">
    h3. Welcome to TLM Goldman
    <!begin Cushy CMS editable division>
    <div class="cushycms">
    </div>  <!end cushycms>
    </div>  <!end left_column>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com
    >

  • I have a 2 year old iphone4 that got ran over by a car and although the outside screen isn't broken it is inside somehow, is it true I can take this into an apple store and get a discount when I buy a new one? Thanks

    have a 2 year old iphone4 that got ran over by a car and although the outside screen isn't broken it is inside somehow, is it true I can take this into an apple store and get a discount when I buy a new one? Thanks

    You can exchange for an out of warranty exchange iPhone 4 at a price of $149 in US
    you get an as new iPhone 4 and the Apple genius bar take your "bits"
    Apple are about to offer a trade in programme in the US but I believe the donor iPhone must be in full working order to qualify

  • Who can slove this avitek demo problem

    I have download avitek version 2 from inweb,
    and I establish the enviroment on my Wls portal sp1
    for win2000,wls61sp1 and oracle 817,but when I
    finish all of steps of setup, I start the
    /config/acitekDomainOracle/startAvitekOracle.bat
    but I find the error and could not solve it.
    <2002-4-19 ÏÂÎç05ʱ07·Ö56Ãë> <Error> <Data Synchronization> <Application: avitek;
    Master Data Repository construction failed. Application data will not be available
    to services; please see the following exception and restart the server.
    Exception[com.bea.p13n.management.data.repository.PersistenceException: An error
    ocurred refreshing a Data Repositorys PersistenceManager: {0}] - with embedded exception:
    [Exception[com.bea.p13n.management.data.repository.PersistenceException: Failed to
    refresh JDBC Persistence Manager.] - with embedded exception: [java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValue java.sql.SQLException:
    ORA-24334: no descriptor for this position]]
         at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<init>(AbstractDataRepository.java:198)
         at com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init>(MasterDataRepository.java:46)
         at com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataRepository(DataRepositoryFactory.java:255)
         at com.bea.portal.manager.internal.DeploymentManager.initializePortlet(DeploymentManager.java:174)
         at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:90)
         at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:94)
         at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:69)
         at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
         at com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(PortalManagerBean_w6xny9_Impl.java:112)
         at java.lang.reflect.Method.invoke(Native Method)
    and
    Caused by: Exception[com.bea.p13n.management.data.repository.PersistenceException:
    Failed to refresh JDBC Persistence Manager.] - with embedded exception: [java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValue java.sql.SQLException:
    ORA-24334: no descriptor for this position]
         at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(JdbcDataSource.java:453)
         at com.bea.p13n.management.data.repository.persistence.JdbcPersistenceManager.refresh(JdbcPersistenceManager.java:106)
         at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<init>(AbstractDataRepository.java:193)
         at com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init>(MasterDataRepository.java:46)
         at com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataRepository(DataRepositoryFactory.java:255)
         at com.bea.portal.manager.internal.DeploymentManager.initializePortlet(DeploymentManager.java:174)
         at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:90)
         at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:94)
         at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:69)
         at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
    I have not change the sample code, so I want to ask anyone who
    have install this demo. What can I do?

    Eric,
    You can download Oracle patches from their website. Open an account on
    http://metalink.oracle.com for detailed patch information etc.
    Sincerely,
    Daniel Selman
    "eric" <[email protected]> wrote in message
    news:[email protected]...
    >
    I have checked,Really have the JDBC Helper,but still
    can not work, I want to ask where can I find the patch
    of Oracle 817 and How can I do?
    "Daniel Selman" <[email protected]> wrote:
    Eric,
    Did you make the change to use the Oracle DB delegate for reading CLOBs
    (see
    instructions)? If so, please double check the patch level on your Oracle
    client and server installation.
    Sincerely,
    Daniel Selman
    "Eric" <[email protected]> wrote in message
    news:[email protected]...
    I have download avitek version 2 from inweb,
    and I establish the enviroment on my Wls portal sp1
    for win2000,wls61sp1 and oracle 817,but when I
    finish all of steps of setup, I start the
    /config/acitekDomainOracle/startAvitekOracle.bat
    but I find the error and could not solve it.
    <2002-4-19 ÏÂÎç05ʱ07·Ö56Ãë> <Error> <Data Synchronization>
    <Application:
    avitek;
    Master Data Repository construction failed. Application data will notbe
    available
    to services; please see the following exception and restart the server.
    Exception[com.bea.p13n.management.data.repository.PersistenceException:An
    error
    ocurred refreshing a Data Repositorys PersistenceManager: {0}] - withembedded exception:
    >[Exception[com.bea.p13n.management.data.repository.PersistenceException:
    Failed to
    refresh JDBC Persistence Manager.] - with embedded exception:[java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValuejava.sql.SQLException:
    ORA-24334: no descriptor for this position]]
    at
    com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<ini
    t>(AbstractDataRepository.java:198)
    at
    com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init
    (MasterDataRepository.java:46)
    at
    com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataR
    epository(DataRepositoryFactory.java:255)
    at
    com.bea.portal.manager.internal.DeploymentManager.initializePortlet(Deployme
    ntManager.java:174)
    at
    com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManag
    er.java:90)
    at
    com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManag
    erDelegateImpl.java:94)
    at
    com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFacto
    ry.java:69)
    at
    com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManage
    rBean.java:147)
    at
    com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(
    PortalManagerBean_w6xny9_Impl.java:112)
    at java.lang.reflect.Method.invoke(Native Method)
    and
    Caused by:Exception[com.bea.p13n.management.data.repository.PersistenceException:
    Failed to refresh JDBC Persistence Manager.] - with embedded exception:[java.sql.SQLException:
    IOException during readClobData: Error in getLobStringValuejava.sql.SQLException:
    ORA-24334: no descriptor for this position]
    at
    com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(J
    dbcDataSource.java:453)
    at
    com.bea.p13n.management.data.repository.persistence.JdbcPersistenceManager.r
    efresh(JdbcPersistenceManager.java:106)
    at
    com.bea.p13n.management.data.repository.internal.AbstractDataRepository.<ini
    t>(AbstractDataRepository.java:193)
    at
    com.bea.p13n.management.data.repository.internal.MasterDataRepository.<init
    (MasterDataRepository.java:46)
    at
    com.bea.p13n.management.data.repository.DataRepositoryFactory.getMasterDataR
    epository(DataRepositoryFactory.java:255)
    at
    com.bea.portal.manager.internal.DeploymentManager.initializePortlet(Deployme
    ntManager.java:174)
    at
    com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManag
    er.java:90)
    at
    com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManag
    erDelegateImpl.java:94)
    at
    com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFacto
    ry.java:69)
    at
    com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManage
    rBean.java:147)
    I have not change the sample code, so I want to ask anyone who
    have install this demo. What can I do?

  • Who can resolve this problem? I'm urgent.

    My programe is running ,
    When I used the "CTRL+C" to stop the client and restart the client ,the server throw the following Exception:
    2004-2-10 13:59:25 com.hanwei.update.rmiservice.ServiceImpl send
    &#20005;&#37325;: RemoteException
    java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is:
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:89)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at com.hanwei.update.rmiservice._CallbackInterface_Stub.receive(_CallbackInterface_Stub.java:54)
    at com.hanwei.update.rmiservice.ServiceImpl.send(ServiceImpl.java:195)
    at com.hanwei.update.rmiservice._ServiceImpl_Tie._invoke(_ServiceImpl_Tie.java:68)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
    at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
    at com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:886)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
    at com.hanwei.update.rmiservice._CallbackInterface_Stub.receive(_CallbackInterface_Stub.java:39)
    ... 6 more
    who can tell me why?
    Please help, I'm urgent.

    I couldnt say for certain, but I'm guessing that the CTRL-C command is being passed to your Server, which is interpreting it as an attempt to shut down the server.
    But you might what to try the RMI-IIOP forum for question about CORBA

  • My $20 to the person who can write this simple script for Fission

    Here is what I need to automate. I don't care if it's an Apple Script, or an Automator work flow - whatever - just so it will work with my present setup. Once I test it and it works, I'll send $20 to the first person who can help me.
    Script needs to apply to each (and every) MP3 file in a selected folder:
    Open the first file with Fission v1.6.6 (from: www.rogueamoeba.com)
    Select all
    Normalize
    Save audio (in same folder)
    A warning dialog pops up: "File already exists..." -- answer with "Replace"
    Close file
    Repeat for next file in the folder, until every file has been Normalized
    End script when the last file in folder has been Normalized
    I don't mind finding the folder (which will be in my iTunes Library), and then starting the set of actions on the folder but I definitely don't want to be required to take any additional action on each and every file.
    I'm presently running Fission v1.6.6 under MacOS 10.4.11 on a PPC desktop, so it needs to work in that environment.
    Note that the latest version of Fission requires MacOS 10.5 - I can't use any script that requires that version. Rogue Amoeba's Legacy software page (http://www.rogueamoeba.com/legacy/) shows Fission v1.6.8 as working with 10.4, but that contradicts the Version History for Fission which shows 1.6.6 as the last one for 10.4 - still investigating.

    Pierre L.
    Thanks for the effort!
    First, I can clarify this: Rogue Amoeba confirms that I can use the version 1.6.8 of Fission located on their Legacy page with my OS version 10.4.11, so I've upgraded from 1.6.6 to 1.6.8. Seems to be working OK.
    Next, let me apologize for being mostly ignorant about all things AppleScript. I'm really in over my head, here, because I've not used the ScriptEditor for more than a few minutes before today.
    What I've done so far:
    I checked the box in the Universal Access preferences pane to enable access for assistive devices.
    I copied your script from this forum and pasted it into Script Editor.
    I've Compiled your script, then "Saved As" an "Application" on my Desktop.
    When I double click the icon for the saved script (which ends in xyz.app), a navigation window appears, which I used to select a test folder on my desktop.
    When I Choose the test folder, Fission launched, and selected the whole file, as expected. Then I get an error:
    "NSReceiverEvaluationScriptError: 4" - with buttons to "Edit" or "OK"
    Thinking it might be a timing error, I edited the delays:
    set theFolder to choose folder
    tell application "Fission" to activate
    tell application "Finder"
    set theApp to POSIX path of (get file of process "Fission")
    set theFiles to document files of theFolder
    repeat with thisFile in theFiles
    open thisFile using POSIX file theApp
    tell application "System Events" to tell process "Fission"
    delay 18 -- adjust if necessary
    keystroke "a" using command down -- Select All
    delay 2 -- adjust if necessary
    click menu item "Normalize Selection" of menu 1 of menu bar item 7 of menu bar 1
    delay 4 -- adjust if necessary
    keystroke "s" using {shift down, command down} -- Save Audio…
    delay 3 -- adjust if necessary
    keystroke return -- Save
    delay 2 -- adjust if necessary
    click button "Replace" of sheet 1 of window "Save Audio"
    end tell
    end repeat
    end tell
    tell application "Fission" to quit -- optional
    ... Compiled, and Saved again.
    Now, the script runs up to the point where it should answer the Save pop-up window: "File already exists..." with the keystroke to "Replace" - but the script stops there, with the same error: "NSReceiverEvaluationScriptError: 4"
    Bottom line: so far, I've been able to get the first mp3 file in my test folder Normalized, but not Saved. Any suggestions?

  • $100 Reward for anyone who can fix this issue

    I will give $100 to the first person who can fix the false empty cartridge issue described here:
    http://h30434.www3.hp.com/t5/Other-printing-questions/Ink-cartridge-empty-but-it-s-not/m-p/176836
    The fix must eliminate the false error message that a cartridge is empty and enable the printer to resume printing. 
    As you can see in the link, people have struggled with this problem for years and no consistent fix has been discovered.  I am hoping that a smart person out there can find the cause of this problem and a solution for it. 
    I suspect that a file or registry entry must be set that indicates a false empty cartridge.  This false entry is retained even when a new cartridge is installed, or the printer software is removed and reinstalled.
    Even though many people have worked on this issue over the years, there still may be a creative solution out there.  Let's hear it and if it works you get the money.

    Hi,
    Reward not required nor needed...
    But... I didn't see a post in your link about using a newly created utility by hp.  I don't know if there is a fix in the utility although it has fixed some other printer issues... something that could be tried.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-82717-1&lc=en&dlc=en&cc=us&...=
    Say Thanks by clicking the Kudos Star in the post that helped you. Please mark the post that solves your problem as Accepted Solution.
    I am employed by HP

  • Zombie email message won't die! $1 bounty to anyone who can solve this.

    I have a message that absolutely will not die. I've tried everything I can think of to delete it, but it keeps coming back. I've tried moving it from one mailbox to another, killing it with the delete key, killing it by cutting it (Command-X), but it lingers on. At this point, it only shows up in the index with a subject and date, but the content of the message is gone. I've tried rebuilding the mailboxes a number of times, but it always reappears. I've tried logging into my various accounts through the web interface, but it doesn't exist on the servers anywhere, it's only local as far as I can see.
    In my last attempt to get rid of it, I scanned my ENTIRE HARD DRIVE for the string of text containing the subject line using grep, and narrowed it down to a few files in the ~/Library/Mail folder, which I deleted through the Terminal using rm. I then re-opened Mail and rebuilt the mailboxes, and the email STILL appears. It will no longer let me move the message to another mailbox, however, but I can't get the damned thing to disappear.
    I will PayPal $1 to anyone who can come up with a solution that doesn't involve recreating my Mail accounts. May the game begin!

    Hello,
    Are you using an IMAP or POP account?
    Anything you do in the Terminal, Finder or some third party Mail app enhancers will very often mess up the index, which appears to be a symptom of.
    I think you should force a reindexing by deleting the Envelope Index. With IMAP or Exchange account, forcing reindexing requires removing the account folder. See:
    http://docs.info.apple.com/article.html?path=Mail/4.0/en/14019.html
    Ask any questions needed to get comfortable with doing this.
    Ernie

  • Who can do this?

    Hi
    The code below prints this out
    [goods out, firstname, lastname]
    [id, adress1]
    [country, phone]
    [goods in]
    Now how can i get my code to print out the same, but instead of using the strings Values and keys,
    use hashtables?
    Also how can i do it without using the (public static void getval)
    Hope You can solve this
    thanks
    loftty
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class has3{
            public static void main(String[] args)    {
            String keys[] = {
                "firstname", "lastname", "id", "adress1",  "phone",
                "county",  "post code", "country", "goods in", "goods out"
            };//System.out.println(keys);
            String values[] = {
                "ben", "ben", "alex", "alex", "matt",
                "matt", "mum", "mum", "dad", "ben"
            // First, map keys to values in a hashtable
            Hashtable hash = new Hashtable();
            // the code matches values one by one for each of the keys
            for(int i = 0; i < keys.length; i++)
                hash.put(keys, values[i]);
    // Then we find each value and remove it from the hashtable
    for(int j = 0; j < values.length; j++)
              getval(values[j],hash);
    // This will also print it to the screen
         private static void getval(Object value, Hashtable ht ){
              ArrayList arr = new ArrayList();
    if( ht.containsValue( value ))
    Enumeration e = ht.keys();
    while (e.hasMoreElements())
    String tempkey = (String)e.nextElement();
    String tempvalue = (String)ht.get(tempkey);
    if (tempvalue.equals(value))
                   arr.add(tempkey);
    ht.remove(tempkey);
    }System.out.println(arr);

    lol
    i like your answers
    could you please be so kind and show me please?
    loftty

  • I will give $100 to the person who can solve this problem once and for all.

    I'm not even kidding, dude. We can do PayPay, I'll mail you a check, whatever you want. That is how frustrating this is, that is how badly I want it fixed, and that is how much overtime I've worked lately thanks to being shorthanded at my place of biz-nass. I'm an hombre of my word, so if you actually come up with a solution that works, the cheddar will be yours. Okay let's hit it.
    It's the skipping thing. First 10-12 seconds of a song - every song - will play fine, then iTunes skips, stutters, and basically does the god **** hokey pokey and shakes it all about. It happens most notably with songs that I double-click to play, but I'm pretty much noticing it on any song now after a transition is made. I've been using iTunes for ages and this didn't happen until the upgrade to 7.3. I have poured over these forums for nearly a week, tried every solution offered (even offered one of my own that actually worked for maybe four days before the whole thing started up again) and NOTHING. To save us all some time, here's what I've tried:
    - Downgrading. I'll admit I didn't do this correctly at first. I didn't remove everything according to the support guidelines, but I went down to version 6.05 and that did nothing to quell the skipping. I upgraded back up to 7.3 because hey, why not, and attempted the remaining trial fixes. I have since removed both iTunes and Quicktime, step my step according the the guidelines, and not only have I downgraded to my current running version of 7.2, I put both of the programs on my F drive (as opposed to the default C drive), my gigantic bonus internal drive where I typically keep nothing but my giganto music library. I thought putting the app on the same drive as the music might fix things. I thought wrong. Dead wrong. Dead diddly dum iddly wrong.
    - Quicktime settings. My settings for Quicktime have always been in safe mode with the output size at 16 bits. So when I saw this "fix" I just rolled my eyes. I used to have that dealio back in the dizzle when iTunes would just get all static-y and skip when I'd open other programs or even just minimize it, so that fix worked for that, but it's nothing compared to this. In simpler terms, that fix is like Superman, and this skipping? The kryptonite. Actually that's probably not a great metaphor, but we've got a ways to go and this is going to get mucho boring if I don't throw some chuckles out there. Ready for fix three? Giddy up!
    - Turn off cross-fade? It's never been on. I never really got the appeal of that, and also I think it resulted in some minor skipping back in the d. I also attempted similar fixes like turning off the equalizer, messing with the volume, closing last.fm, REMOVING an old album art retrieval program from back before iTunes got its **** together with album art, ANYTHING that might interfere with playback was turned off, removed, b-slapped, and sent crying home to its moms. Nada.
    - Recreating my library. This was the fix I offered someone else, because it actually did the trick for a few days. After an entire night spent reimporting 73 gigs worth of music, it played fine, but I did lose a ton of album art, playcounts, etc, so you can imagine how ****** I was when this wound up not being a permanent fix. I was beyond ******. I was livid. But I was taught in the dojos of my youth to channel my anger into productivity, and instead of sculpting a lovely bonsai tree, I set out to fix this pup once and for all.
    - That darn anti-virus! This was the final fix I tried, even though I wasn't using any of the culprit programs listed in the forums as causes of the skipping, and even those offering this as a solution confessed it was pretty hit or miss. But having tried everything else, having resorted to playing my music on MediaMonkey of all things, I figured I'd give it a shot. I used (reason for the past-tense forthcoming) AVG Anti-Virus, Lavasoft AdAware and something called Spyware Doctor that I think just came bundled with XP. I removed all of them. I had just done a virus scan recently to see if that's what was causing this, so I figured I'd be okay until I could redownload them after this fix wound up not working. And it didn't work, so there's that.
    There may be a couple of fixes I've tried that I'm forgetting now, since I'm delirious after spending practically every night for the past week trying to fix this problem, while my girlf, Heather, sits and laughs at me while watching Clark and Michael on her MacBook. In fact, she's laughing at the $100 offer as I type this, but I assure you, if you offer a solution that works, the money is as good as yours. If you come up with a workable solution, I'll have to test and make sure it isn't temporary like the recreating my library thing, but I won't leave you hanging once I'm satisfied that it's fixed for good. I know it's unorthodox, perhaps illegal in some states, but I'm desperate here, peeps. The ball is in your court, and I beg you not to give up the rock.
    Gateway E-2000 Windows XP

    I think the problem lays with Last.fm. I had the same exact problem as you. In your processes screen, end the task "lastfmhelper.exe" Last.fm still scrobbles. The tracks don't skip, although I notice there is still a bit of a lag in the first part of the song - but if you can deal with that, no skipping. I think you will have to end that task everytime you boot up your computer, or uninstall last.fm completely until they fix it; it is a bug in their software, as opposed to iTunes.

  • See who can solve this problem

    Parameter name   || Typing     ||  Associated Type
    ACGL_ITEM         || Structure ||  ACGL_ITEM
    this give error ( Typing is only for Like,Type,Type Ref To )
    therefore i change it to Type
    but it telling me that the ( TABLES parameters are obsolete!)
    guys what can i do, is there a solution to solve this problem??
    Thank you.
    Edited by: guanwei su on Mar 10, 2008 7:05 AM

    The following code might be helpful:
    TYPES: types_t_acgl_item TYPE STANDARD TABLE OF acgl_item.
    DATA: gt_acgl_item TYPE types_t_acgl_item.
    PERFORM sub_perform USING gt_acgl_item.
    *&      Form  SUB_PERFORM
    *       text
    *      -->UT_ACGL_ITEM  test Table
    FORM sub_perform USING ut_acgl_item TYPE types_t_acgl_item.
    ENDFORM.                    " SUB_PERFORM
    Hope That Helps
    Anirban M.

  • Who can understand this problem..im confused pls help me!!!

    first i have to say i dont no much about troubleshooting or software side of computers.so pls help me to find me an answer for my problem. i cant get any search results ,when i typed something and cliked search it comes with an error message.but when i click on any news or any thing on yahoo page ,it comes up with out any errors(my home page is yahoo )and also i can acssess to my email also.this problem began 4 , 5 months back.funny thing some times i can search any thing without errors.but in next time it goes totaly wrong with error masseges. i cant understand this problem.it makes me sick.pls anyone can help me?another thing im using IE and FIRE FOX .today i found another thing.when i type something on ask search bar it came up with search results but when i typed same thing on google search bar it came up with error message..i'm really confused with this problem.pls pls help me :(

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    * [[Searches are redirected to another site]]

  • Who can analyze this class ,does it will cause a problem?

    package db;
    import java.sql.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DbManager
    private static Context jdbcContext;
    public static Connection getConnect(String dataSource)
    throws ClassNotFoundException, SQLException
    String s;
    Connection conn=null;
    if (dataSource==null)
    s= "jdbc/hoss";
    else
    s=dataSource;
    if(jdbcContext == null)
    try
    jdbcContext = new InitialContext();
    catch(Exception exception)
    System.out.println(exception);
    try
    conn = ((DataSource)jdbcContext.lookup(s)).getConnection();
    catch(Exception exception1)
    System.out.println(exception1);
    return conn;
    public static ResultSet execQuery(String s,Connection conn)
    throws SQLException
    Statement statement = conn.createStatement();
    ResultSet resultset = statement.executeQuery(s);
         //statement.close();
    return resultset;
    public static ResultSet execQuery(String s,Connection conn,Statement statement)
         throws SQLException
         ResultSet resultset = statement.executeQuery(s);
         return resultset;
    public static int execUpdate(String s,Connection conn)
    throws SQLException
    Statement statement = conn.createStatement();
    int i = statement.executeUpdate(s);
         statement.close();
    return i;
    this is a class writed by me ,but now i have some problem with it
    all the problems is focus on the following method:
    public static ResultSet execQuery(String s,Connection conn)
    throws SQLException
    Statement statement = conn.createStatement();
    ResultSet resultset = statement.executeQuery(s);
         //statement.close();
    return resultset;
    if the statement is closed ,the resultset will automatically be close;
    if you don't close statement here i have two wonder:
    1)after the method return the statement is local variable,it will died
    and the resultset will can also do thing?
    2)whether it will lock the database after long run

    If you don't close the ResultSet and the Statement, I think you may have an SQLException sooner or later, telling you there are no more cursors left.

  • 10 points to the first whiteknight who can fix this simple problem

    Hello team,
    I'm working with this excellent Flash grid gallery for my current project, however, I've reached a snag.
    Instead of using a hex as the image background (currently set to #FFFFFF in the .xml), i'd like to use a moving gif, to give the transition a little more life. Is this possible, and simpler than I'm finding it to be?
    Other items on my wishlist of mods would be to remove the 'loading x of x thumbnails bar in the corner' and not requiring a second click to view a photo's desciption once it's been selected from the grid.
    I would appreciate anyone's help in this matter greatly.
    Best

    You can import an animated gif, but it will not remain intact as one such that you can drop it onto the stage and have it play.  What you can do is create a new movieclip symbol and while it is open for editing import the animated gif to the stage. 
    The frames of the animated gif will be planted sequencially in the timeline, with some attempt at automatically getting the timing correct via extending frames occupied by each panel of the animated gif.  At this point you will have a movieclip representation of the animated gif that you can place in the background.

  • Who can solve this difficult problem?

    I have written a java program:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    LinkedList[] Cate= new LinkedList[4];
    (Cate[0]).add(0,"cat");
    (Cate[0]).add("kate");
    System.out.println(Cate[0]);
    Cate[2].add("dog");
    Cate[2].add("girl");
    for(int i=0;i<4;i++){
    Cate.add("boy");
    System.out.println(Cate[i]);
    } // end of main class
    // end of class
    But i can not run it correctly,why?

    No, I can not compile it correctly:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    class Point{
    public int x=2;
    public int y=5;
    LinkedList[] Cate= new LinkedList[4];
    // according your advice:
    for(int i=0;i<4;i++){
    Cate = new LinkedList();
    Point x1 = new Point();
    Point x2 = new Point();
    Cate[0].add(x1);
    Cate[0].add(x2);
    Cate[2].add("dog");
    Cate[2].add("girl");
    System.out.println( ((Point)(Cate[0].get(0)) ).x );
    System.out.println( ((Point)(Cate[0].get(0)) ).y );
    System.out.println( ((Point)(Cate[0].get(1)) ).x );
    System.out.println( ((Point)(Cate[0].get(1)) ).y );
    for(int i=0;i<4;i++){
    //Cate.add("boy");
    System.out.println(Cate[i]+" "+Cate[i].size() );
    I got this:
    [xwl@zhyj_12 Test.old]$ javac Test0.java
    Test0.java:13: incompatible types
    found : java.util.LinkedList
    required: java.util.LinkedList[]
    Cate = new LinkedList();
    ^
    1 error
    But Ragnvald told me another method yestoday,it works perfectly, And I appreciate him. His code like this:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    class Point{
    public int x=2;
    public int y=5;
    LinkedList[] Cate= new LinkedList[4];
    // The difference is Cate or Cate[i] !!!!
    for(int i=0;i<4;i++){
    Cate[i] = new LinkedList();
    Point x1 = new Point();
    Point x2 = new Point();
    Cate[0].add(x1);
    Cate[0].add(x2);
    Cate[2].add("dog");
    Cate[2].add("girl");
    System.out.println( ((Point)(Cate[0].get(0)) ).x );
    System.out.println( ((Point)(Cate[0].get(0)) ).y );
    System.out.println( ((Point)(Cate[0].get(1)) ).x );
    System.out.println( ((Point)(Cate[0].get(1)) ).y );
    for(int i=0;i<4;i++){
    //Cate[i].add("boy");
    System.out.println(Cate[i]+" "+Cate[i].size() );

Maybe you are looking for

  • A better way to arrange icons?

    Is there a better way to arrange icons? iTunes just **ed up all of my sorted icons and they are now however iTunes determined them to be. I've got 7 pages that I really don't want to 'click & drag'. It'd be nice if I could arrange them in iTunes.

  • Regarding SD MAJOR REPORTS

    HI, i want make reports in SD module and i want to know what are d major reports to created?  can anbody provide me examples or reports tcodes of sd module,so dat i can work on it. if find useful<b>,<POINTS OFFER REMOVED></b>

  • Use of FIELD-SYMBOLS

    let me know how to use and why to use FIELD-SYMBOLS in the program

  • Best Way To Work Remotely

    I am a java programmer who develops software on a remote linux machine (connecting from a local windows machine). For years I've been hacking away using putty-ssh and vi. Since I move around a lot and work in a number of different places throughout t

  • Special Stock type O

    Hello I would like to know if there is a option in customazing for sended stock to subcontract. Now, we can see in trasaction MBLB all stock which are sended, but we can not see the PEP of them, so if we want to know the PEP we need to look for in da