JPublisher problem - SQLJ Team please respond

I'm trying to use JPublisher to generate code for a PL/SQL package that contains functions with a REF CURSOR type return value. The REF CURSOR is declared in the package spec as a TYPE, NOT strongly typed.
(defined as:
TYPE qry_results IS REF CURSOR;
For some reason, JPublisher will generated classes for my object types used in the package, but it will not generated the java class for the package itself.
If I change the type of these functions, they generate.
The only mention of REF CURSORs I see in the JPub docs is no support for STRONGLY TYPED ones. Mine aren't, yet they don't get generated.
Is this supposed to work?? Or does JPub have NO support for REF CURSOR return values in a packaged function?
Thanks
David
null

I retried this using the command line, as well as JDeveloper 3.1.1.2. It does not work.
Here are the specs:
Windows 2000
JDK 1.2.2
Oracle 8.1.6
JDBC & SQLJ 8.1.6 (comes with Oracle 8.1.6)
The package looks like this:
CREATE OR REPLACE PACKAGE qry IS
TYPE qry_results IS REF CURSOR;
FUNCTION get_all_appliances RETURN qry_results;
END qry;
Body looks like this:
CREATE OR REPLACE PACKAGE BODY qry IS
FUNCTION get_all_appliances RETURN qry_results IS
results qry_results;
BEGIN
OPEN results FOR
SELECT app_id, usr_app_name
FROM appliances
ORDER BY usr_app_name;
RETURN results;
END get_all_appliances;
END qry;
JPublisher does its thing, but it DOES NOT produce any output. It doesn't give any errors or anything, but it doesn't give any output files either.
I figure it must not be able to construct a SQL/J iterator? I don't know what's going on.
Please let me know if this is supposed to work or not? Is there anything in my code that should be changed to get it to work? Do I need to strongly type the REF CURSOR? The Jpub docs say it doesn't support strongly typed REF CURSORs.
Please advise, thanks in advance! Also please define whether this is unsupported or a bug.
David
null

Similar Messages

  • JDBC/SQLJ Team - Please respond - invalid column type error

    Hi, I have posted several messages regarding problems using SQL/J to call out a stored packaged function that returns a ref cursor, but haven't gotten one response. I have yet a new problem with it. JDBC team, please acknowledge!
    I change the way I obtain a connection to the database from using the Oracle.connect along with a properties file, to now using a DataSource connection pool. As a result, I am constantly getting a SQLException: Invalid column type error. If I change the call to the stored function to a query in the SQLJ code, it's fine. What's going on??
    A previous message I wrote stated I was constantly getting a "closed statement" error when I tried to call the next method of the iterator. I corrected this by removing the finally clause in the generated JDBC code that released the execution context.
    Again, the environment is JDK1.2.2, SQLJ 8.1.6 SDK, JDBC 8.1.6 thin, all on NT.
    Thanks
    David

    I am getting the same error message - Invalid Column Type. I am creating a Default Context by calling Oracle.getConnection(connection) passing in an instance of my own connection class that basically delegates to the OracleConnection. We wrapped the Connection so that we could trap and recover from lost database connections.
    My environment is Solaris 2.6, Oracle 7.3.4 with Sqlj 8.0.5.
    Thanks!
    [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Christopher ([email protected]):
    Hi, I have posted several messages regarding problems using SQL/J to call out a stored packaged function that returns a ref cursor, but haven't gotten one response. I have yet a new problem with it. JDBC team, please acknowledge!
    I change the way I obtain a connection to the database from using the Oracle.connect along with a properties file, to now using a DataSource connection pool. As a result, I am constantly getting a SQLException: Invalid column type error. If I change the call to the stored function to a query in the SQLJ code, it's fine. What's going on??
    A previous message I wrote stated I was constantly getting a "closed statement" error when I tried to call the next method of the iterator. I corrected this by removing the finally clause in the generated JDBC code that released the execution context.
    Again, the environment is JDK1.2.2, SQLJ 8.1.6 SDK, JDBC 8.1.6 thin, all on NT.
    Thanks
    David<HR></BLOCKQUOTE>
    null

  • SetCustomDatum performance SQLJ team please respond

    I am facing performance overhead when using Jpub generated
    classes for the object types.
    I am using 817 jdbc and jpub but my database is 816. I have seen
    that following statements each take around 2-3 seconds to
    execute. Is there any communication between driver and database
    to resolve the object type ?
    I have found some posting regarding this but no solution. has
    anyone here faced this problem ?
    Please help.
    cCallableStatement =
    (OracleCallableStatement)m_cConnection.prepareCall("{call
    list_unsync_appts_array(?,?,?,?,?,?,?,?)}");
    ((OracleCallableStatement)cCallableStatement).setCustomDatum
    (1,ct_number_arr);
    cCallableStatement.registerOutParameter
    (2,OracleTypes.ARRAY,"T_EVENT_SUMMARY_ARR");
    cCallableStatement.registerOutParameter
    (3,OracleTypes.ARRAY,"T_EVENT_DETAIL_ARR");
    cCallableStatement.registerOutParameter
    (4,OracleTypes.ARRAY,"T_EVENT_SUMMARY_ARR");
    cCallableStatement.registerOutParameter
    (5,OracleTypes.ARRAY,"T_EVENT_DETAIL_ARR");
    cCallableStatement.registerOutParameter
    (6,OracleTypes.ARRAY,"T_EVENT_SUMMARY_ARR");
    cCallableStatement.registerOutParameter
    (7,OracleTypes.ARRAY,"T_ATTENDEE_EMAIL_ARR");
    cCallableStatement.registerOutParameter
    (8,OracleTypes.ARRAY,"T_ATTENDEE_EMAIL_ARR");
    cCallableStatement.execute();

    I retried this using the command line, as well as JDeveloper 3.1.1.2. It does not work.
    Here are the specs:
    Windows 2000
    JDK 1.2.2
    Oracle 8.1.6
    JDBC & SQLJ 8.1.6 (comes with Oracle 8.1.6)
    The package looks like this:
    CREATE OR REPLACE PACKAGE qry IS
    TYPE qry_results IS REF CURSOR;
    FUNCTION get_all_appliances RETURN qry_results;
    END qry;
    Body looks like this:
    CREATE OR REPLACE PACKAGE BODY qry IS
    FUNCTION get_all_appliances RETURN qry_results IS
    results qry_results;
    BEGIN
    OPEN results FOR
    SELECT app_id, usr_app_name
    FROM appliances
    ORDER BY usr_app_name;
    RETURN results;
    END get_all_appliances;
    END qry;
    JPublisher does its thing, but it DOES NOT produce any output. It doesn't give any errors or anything, but it doesn't give any output files either.
    I figure it must not be able to construct a SQL/J iterator? I don't know what's going on.
    Please let me know if this is supposed to work or not? Is there anything in my code that should be changed to get it to work? Do I need to strongly type the REF CURSOR? The Jpub docs say it doesn't support strongly typed REF CURSORs.
    Please advise, thanks in advance! Also please define whether this is unsupported or a bug.
    David
    null

  • OTN TEAM Please respond-matrix reports row limitation(very urgent)

    Hi ,
    using with matrix reports for delimited reports what's the maxmimum row limitation for text and excel?
    thanks in advance.
    please advice asap.
    thx in advance.

    See response in OTN TEAM Please respond-matrix reports row limitation(very urgent)

  • JDev903 custom tag (bug?)-JDev Team please respond

    JDeveloper is continually hanging while working with custom tags. For example, I will select Add Tag and nothing will happen and JDeveloper stops responding. If I go to End Task, I am told that JDeveloper is waiting for a response, but by then JDev is just a gray window. This behavior becomes more frequent after a change, i.e. change a tag name, try to delete a tag or library. In fact, I have had to completely start over in the creation of a tag library when I notice a necessary change within a tag due to the hanging and disappearance of menu items. Please see previous post, Re: 10.1.3.1 xpath-functions.xml
    Please look into this issue. Our team feels that custom tags could be a valuable tool, but we are RAPID and we don't have time to constantly shut-down and restart our IDE.
    Thanks,
    Deb

    David,
    One thing to try would be JPublisher from the command line. If your problem persists with JPublisher from the command line, then the bug needs to be filed against that product. If not, then the problem is with us.
    In either case, please post your code so we can try to reproduce the error.
    The JPublisher command line facility is documented in the JPublisher User's Guide, available from the Oracle8i 8.1.6 documentation pages on OTN.
    Thanks!

  • Simple questions for Oracle XML Team - please respond

    1) Which class/methods should be used to obtain the content
    model (mixed-content or element-content) associated with each
    element declaration in a DTD? In other words, how do I know if a
    particular element can have child elements and/or data in a
    valid XML document, the frequency each child element can appear
    under a particular element, and whether a sequence list or a
    choice list was used to declare the element?
    2) Do you have any bug reported so far for this part of Oracle's
    parser made available in the last released?
    Thanks,
    Renilton
    null

    Renilton Oliveira (guest) wrote:
    : 1) Which class/methods should be used to obtain the content
    : model (mixed-content or element-content) associated with each
    : element declaration in a DTD? In other words, how do I know if
    a
    : particular element can have child elements and/or data in a
    : valid XML document, the frequency each child element can
    appear
    : under a particular element, and whether a sequence list or a
    : choice list was used to declare the element?
    Look at oracle.xml.parser.v2.ElementDecl class and then
    getContentType and getContentElements methods.
    : 2) Do you have any bug reported so far for this part of
    Oracle's
    : parser made available in the last released?
    : Thanks,
    : Renilton
    Each release contains a list of bugs fixed. Is there a
    particular bug you are interested in?
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Otn please respond

    Using oracle8i with webdb how can I get oracle's servlet based survey example (posted on their web site) to work?

    See response in OTN TEAM Please respond-matrix reports row limitation(very urgent)

  • My I-cloud says I have no devices set up even when i'm logged in to my apple , how do I fix this problem? Please respond quickly, I lost my ipod and even when I try to place it in lost mode it still won't recognize that I have a device. What do I do?

    My I-cloud says I have no devices set up even when i'm logged in to my apple ID account, how do I fix this problem? Please respond quickly, I lost my I-pod and even when I try to place it in lost mode it still won't recognize that I have a device. What do I do?

    If you did not set up find my iPhone on the iPod, you can't find it.

  • IPod nano problems! PLEASE RESPOND ASAP!!

    HELP!
    A couple days ago I had to re-format the computer due to a virus. I didn't save any of the songs that were on iTunes. That night I listened to some songs on my iPod. The next day I plugged it in my computer for it to charge. When it was done charging, I went to listen to some songs but there were NO SONGS ON IT!! I have no clue what happened... has this happened to anyone? Does anyone know how to fix it? Please respond ASAP!
    Thanks,
    Molly =)
      Windows XP  

    Hi Molly,
    Welcome to Apple Discussions
    Copying songs from your iPod to your computer
    "The iTunes library on your computer holds all the songs you've encoded from your CD collection or purchased from the iTunes Music Store. With default settings, iTunes automatically copies the songs in your library to your iPod. When you use your iPod as a hard disk, you can't see the songs iTunes copies to your iPod in the Finder or My Computer. This is normal. Using the Finder or My Computer, you can't copy these song files from your iPod back to iTunes or to any other computer. The synchronization between your iPod and your computer is always one way: from iTunes to iPod.
    If you've erased the music library on your computer, there's no way to use the Finder or My Computer to copy the songs from your iPod to reconstitute the library on your computer. One solution is to encode the songs from your CD collection again, then sync your new library with iPod. If you purchased songs from the iTunes Music Store and didn't back them up, there's no way to download them again. You'll have to buy new copies of the songs."
    Taken from Using your iPod as a hard disk
    So even if there were any tracks on your iPod, Apple has set it so you shouldn't be able to get them back.
    You need to reload iTunes with music, and then get into the habit of backing them up as well. Once you've done that you can start loading onto the nano.
    To help with backing up your music this link will explain what the files are:
    What are the iTunes library files?
    If you have problems with your nano here is a useful link:
    The 5 Rs: Reset, Retry, Restart, Reinstall & Restore
    Regards
    Colin R.

  • Account problems - PLEASE RESPOND

    F.A.O. OTN Customer Team,
    I posted these issues 12 days ago and have had no reply, please respond:
    1. I have changed jobs and created a new account using [email protected] Could you please remove my old account jdjwright / [email protected] Note I no longer have access to my old email address but can provide further account details if required.
    2. When I created my new account my company address state/province was not listed. My postal city is London and I would have expected to see Greater London in the state/province drop-down list but it is not available. I eventually selected Berkshire instead which is not correct. Can you please remove Berkshire from my address and/or add Greater London to the state/province drop-down list?
    Joss

    Hey there , welcome to the community!
    The only way to do this would be to create a new Spotify account using your e-mail address. If you contact the accounts team through the online contact form they can definitely set you up with a new account and transfer over all your music content. If you receive an automated e-mail directing you back to the community, just reply to it and you will hear from a representative within 24-48 hours.

  • I have ongoing problems with "application not responding" in various programmes, ie Word, Excel, Illustrator, Photoshop, iPhoto etc. I recently subscribed to CC but the problem still persists. Any advice please?

    I have ongoing problems with "application not responding" in various programmes, ie Word, Excel, Illustrator, Photoshop, iPhoto etc. I recently subscribed to CC but the problem still persists. Any advice please? This applies to my iMac and my macbook air! I'm using OSX Version 10.9.3

    Hi Shauneenb,
    Welcome to the Apple Support Communities!
    If you are having issues with multiple applications becoming unresponsive I would suggest the steps in the following article, including starting in safe mode.
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    I hope this helps,   
    -Joe

  • IPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    iPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    Please clarify:
    What is your iPhoto version?
    And what do you mean by "not responding"? Is iPhoto hanging and showing the spinning beachball?
    Can you launch iPhoto, if you hold down the options key while launching and select or create a different library?

  • VERY BIG PROBLEMS WITH MY ZEN MICRO AND MEDIASOURCE! PLEASE PLEASE PLEASE HELP ME! PLEASE RESPOND

    Ok so a while back I had to give up my computer because it wasn't working.
    I thought that with my new computer I'd be able to transfer all of my music from my zen micro onto my new computer.
    Now my new computer is set up and I have installed creative mediasource and everything. I started to transfer my music from my zen onto my computer. My first 2 songs transfered successfully onto my computer. On the third song, I get this message:
    "Unable to read file, file may be in use, missing, or corrupted."
    I thought that maybe it was just that one song so I shrugged it off. But then it says the same thing for every single other song that i have! Only my first 2 songs out of my entire music library on my zen will transfer!!!
    Please i really need your help!!!
    And say that there is no hope in getting the rest of my songs to transfer and i have to download 094 songs from limewire? I'll surely be arrested for downloading that much! What should i do if i must download all of them?
    And one more problem with my zen: Some of my Jump Little Children songs are doing something weird. The song will be fine and then a clip from another song will play during it! And then press next and it just keeps playing all of my Jump songs in order even though my player is on shuffle and they do the same thing with the clip from another song interupting it. Whats going on?
    Most importantly though, i really need the questions answered about transfering from my zen to my computer because i'll be getting a new player soon. But this is my entire music library at stake!! PLEASE RESPOND!!!

    Might try this:? http://forums.creative.com/creativel...mp=true#M95059

  • NSU Team, Please urgently respond regardning N73 f...

    As you may not know or aware of, many N73 users around the world are experience the same problem trying to update their N73s (including mine, in Bangkok). Even though there are newer version of firmware, when using Updater, it keeps saying there's no updates available. I'm stuck on using the old firmware with SO MANY problemS! SO Please do something about this. Please fix the Updater so that it can actually does what it's supposed to do. Please read this topic. (/discussions/board/message?board.id=swupdate&;message.id=4300) We're so counting on you. Regards!

  • Any update on the VTEXT application problem?  is there a timetable for the fix so account holders can access their messages?  tech support please respond and thank you.

    please respond with a timetable of a fix or repair of the issue.  everyone is frustrated with the application and wants to know when it will be up and running.  thanks.

        bobber11 We want your apps and texting to work properly. What phone do you have? Please describe the exact issues you are experiencing with the VText application.
    SheritaH_vzw
    Follow us on Twitter
    @VZWSupport

Maybe you are looking for