Trouble with OracleCallableStatement - Ignore previous

Hi . . .
I am receiving the following exception: wrong number or types of arguments in call to 'FUNCTION_A'
Here are defined types:
create or replace TYPE NET_CHARTS_CHAR_ARRAY AS VARRAY(3) OF CHAR(10);
create or replace TYPE NET_CHARTS_NUMBER_ARRAY AS VARRAY(3) OF NUMBER;
Here is FUNCTION_A:
TYPE array_number IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
FUNCTION dial_chart_def(
field_a IN OUT ARRAY,
field_b IN ARRAY,
field_c IN OUT array_number,
field_d IN NUMBER, --unit is inches
field_e IN NUMBER, --unit is inches
field_f IN VARCHAR2,
field_g IN NUMBER DEFAULT cDefaultDPI,
field_h IN NUMBER DEFAULT cDefaultfontScale)
RETURN VARCHAR2;
Here is my Java code:
OracleCallableStatement proc = (OracleCallableStatement)
conn.prepareCall("{ ? = call net_charts.function_a(?,?,?,?,?,?,?,?) }");
proc.registerOutParameter(1, Types.VARCHAR);
ArrayDescriptor arrayDescVarchar = ArrayDescriptor.createDescriptor("NET_CHARTS_CHAR_ARRAY", conn);
ArrayDescriptor arrayDescDouble = ArrayDescriptor.createDescriptor("NET_CHARTS_NUMBER_ARRAY", conn);
ARRAY labels = new ARRAY(arrayDescVarchar, conn, aLabels);
ARRAY colors = new ARRAY(arrayDescVarchar, conn, aColors);
ARRAY values = new ARRAY(arrayDescDouble, conn, aValues);
proc.setARRAY(2, labels);
proc.registerOutParameter(2, Types.ARRAY);
proc.setARRAY(3, colors);
proc.setARRAY(4, values);
proc.registerOutParameter(4, Types.ARRAY);
proc.setInt(5, 4);
proc.setInt(6, 2);
proc.setString(7, "aString");
proc.setInt(8, 300);
proc.setDouble(9, (300/72));
proc.execute();
String value = proc.getString(1);
proc.close();
return value;
Any ideas?
Can I use NET_CHARTS_NUMBER_ARRAY in place of "array_number" is the type for parameter 4? My code cannot locate "array_number" on the database for some reason.

Sorry . . .
PLease use :
FUNCTION function_a(
field_a IN OUT ARRAY,
field_b IN ARRAY,
field_c IN OUT array_number,
field_d IN NUMBER, --unit is inches
field_e IN NUMBER, --unit is inches
field_f IN VARCHAR2,
field_g IN NUMBER DEFAULT cDefaultDPI,
field_h IN NUMBER DEFAULT cDefaultfontScale)
RETURN VARCHAR2;

Similar Messages

  • Trouble with registration of previous versions of acrobat

    I just purchased, regostered and installed the acrobat 10 update.  In the process it erased acrobat 10.  When it was ready to go a prompt advised me that there was no acrobet 10 registered on this adobe account and therefore it could not proceed.  The previous version where regostered on a different account using an email address that no longer exists because I changed companies.  What do I do?

    Moving this discussion to the Acrobat Installation & Update Issues forum.

  • Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore.

    Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore. Please help!

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • I  have been having nothing but trouble with OS 10.6.8.  Many of my appliatins will not work..  HOw can I revert back to a previous version of OS x?

    I  have been having nothing but trouble with OS 10.6.8.  Many of my applications will not work..  HOw can I revert back to a previous version of OS x?

    Before you revert anything try this:
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Next time don't post something like "nothing but trouble." Tell us exactly what the trouble is and provide any additional information such as error messages.

  • CanI downgrade back to the previous, non4.0 version? I am having too much trouble with 4.0

    How can I downgrade back to the previous, non4.0 version? I am having too much trouble with 4.0, such as:
    1) cannot save multible tabs in bookmarks
    2) 4.0 is not faster, perhaps even slower
    3) crashes often, especially when I scroll through my emails in Yahoo email.
    4) Moved the "stop loading" and "refresh" buttons to the right, ala MS Internet Explorer. I liked your old location better.
    Thank you,
    Gary Bright

    try this link http://www.mozilla.com/en-US/firefox/all-older.html
    Uninstall 4.0. DO NOT CHECK "Remove my Firefox personal data"

  • HT201269 Having trouble with ringtones that were previously paid for and now new ones as well on 4S upgrade

    4S trouble with ringtones

    Hi,
    Thanks for your response.  I did restore to new location, drive J, and chose "maintain folder structure".  So, the catalog and a complete set of my photos was copied to the new external drive J. However, the catalog is still linked to the original set of my photos that are still on drive M. Any ideas?
    JRD

  • (Trouble printing) Trouble with connection between Macbook Pro and Hp Deskjet 1510.

    Trouble with connection between Macbook Pro and Hp Deskjet 1510. (Nothing Prints).
    I have a Macbook Pro and am having difficulty printing documents from ‘Pages' from my Hp Deskjet 1510. I have installed the necessary software for the printer and it is connected via USB. Every time I try to print the printer icon comes up as it should, 'printing' and then 'job completed' and then the icon disappears. (Nothing is printed.) I thought it might be something to do with Pages compatibility with the printer but exporting the document to Word or making it a PDF doesn’t change anything. I don’t have Microsoft Word on my computer. The scanner does work and when I printed a ‘Test Page’ that worked too.
    Let me know if you know why this is happening.

    With these settings the network now works flawlessly, however, when i have my ethernet cable plugged in, my internet access via my airport card(on the macbook pro) is no longer available. Hoping you can tell me why this would be with this info i've provided.
    Educated guess. The networking devices have priorities as to which are used. The standard order is that Ethernet has a higher priority than Airport.
    While your Ethernet is unplugged it is inactive and the Mac ignores it. Once you plug it in, the Mac sees that it is active and switches traffic to that interface.
    I actually take advantage of this feature at home, but configuring my Airport and Ethernet with identical fixed IP addresses. Normally I'll use Airport, but if I'm copying a huge file and I want faster performance, I'll just walk my MacBook (previously iBook, previously Powerbook) over to my Ethernet switch and plug in my MacBook. Magically, the Mac detects that the Ethernet is active and continues the file transfer uninterrupted over the faster 100baseT Ethernet connection. When the transfer is finished, or if I really need to move back to the Comfy Chair, I unplug the Ethernet cable, and all activity reverts back to the Airport, all without disrupting any existing networking connections.
    You on the other hand have totally different settings for your Ethernet and your Airport, so when you switch to Ethernet, you basically loose your Airport connections.
    Something you can try:
    System Preferences -> Network
    Gear icon on the bottom left, next to the [+] [-] icons.
    Select *Set Service Order...*
    Now Drag the network interfaces into the perfer priority order you want. In this case put Airport above Ethernet.
    NOTE: You may want to create a new Network Location for this, instead of messing with your normal home Location (which is most likely the default Automatic. That way you have your original you can always fall back to.

  • Trouble with Toshiba built-in webcam: "unable to enumerate USB device"

    I am running archlinux on a Toshiba Satellite L70-B-12H laptop, and having troubles with the Webcam. *Once in a while*, everything goes well and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 004: ID 04f2:b448 Chicony Electronics Co., Ltd
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    # dmesg
    [ 3433.456115] usb 3-1.3: new high-speed USB device number 4 using ehci-pci
    [ 3433.781119] media: Linux media interface: v0.10
    [ 3433.809842] Linux video capture interface: v2.00
    [ 3433.826889] uvcvideo: Found UVC 1.00 device TOSHIBA Web Camera - HD (04f2:b448)
    [ 3433.835893] input: TOSHIBA Web Camera - HD as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input15
    [ 3433.835976] usbcore: registered new interface driver uvcvideo
    [ 3433.835977] USB Video Class driver (1.1.1)
    Unfortunately, *most of the time* the camera seems invisible to my system, and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    (note the missing "04f2:b448 Chicony Electronics Co., Ltd" device), and
    # dmesg
    [ 480.104252] usb 3-1.3: new full-speed USB device number 4 using ehci-pci
    [ 480.171097] usb 3-1.3: device descriptor read/64, error -32
    [ 480.341235] usb 3-1.3: device descriptor read/64, error -32
    [ 480.511375] usb 3-1.3: new full-speed USB device number 5 using ehci-pci
    [ 480.578007] usb 3-1.3: device descriptor read/64, error -32
    [ 480.748151] usb 3-1.3: device descriptor read/64, error -32
    [ 480.918282] usb 3-1.3: new full-speed USB device number 6 using ehci-pci
    [ 481.325196] usb 3-1.3: device not accepting address 6, error -32
    [ 481.392091] usb 3-1.3: new full-speed USB device number 7 using ehci-pci
    [ 481.798926] usb 3-1.3: device not accepting address 7, error -32
    [ 481.799166] hub 3-1:1.0: unable to enumerate USB device on port 3
    Searching on the web, most results I found lead to this page, where it is said that the problem is due to badly tuned overcurrent protection, and advocated that unplugging and switching off the computer for a little while gets things back into normal. This does not really work for me; the problem seems to occur more randomly, unfortunately with high probability (my camera is available after less than one boot out of ten).
    I tried to ensure that the ehci-hcd module is loaded at boot with the ignore-oc option (with a file in /etc/module-load.d/), to no avail.
    I also wrote a script which alternatively removes and reloads the ehci-pci driver until my device is found in lsusb. It is sometimes helpful, but usually not. And even when my device is found that way, it can only be used for a while before disappearing again.
    Anyway, such a hack is unacceptable... So, my questions are:
    is it indeed related to overcurrent protection ?
    is there anything else I can try ?
    should I file somewhere an other of the numerous bug reports about "unable to enumerate USB device" already existing ?
    If of any importance, I am running linux 3.15.7, because at the time I installed my system, I couldn't get the hybrid graphic card Intel/AMD working under 3.16.
    Last edited by $nake (2014-10-18 16:29:06)

    uname -a
    Linux libra 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux
    pacman -Qi linux
    Name : linux
    Version : 3.9.4-1
    Description : The linux kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licences : GPL2
    Groups : base
    Provides : kernel26=3.9.4
    Depends On : coreutils linux-firmware kmod mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels of your country
    Required By : nvidia
    Optional For : None
    Conflicts With : kernel26
    Replaces : kernel26
    Installed Size : 65562.00 KiB
    Packager : Tobias Powalowski <[email protected]>
    Build Date : Sat 25 May 2013 16:28:17 CEST
    Install Date : Sun 02 Jun 2013 15:30:35 CEST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature

  • I have an Ipod Touch (4th Gen) and I am having troubles with my downloads from purchasing music from the Ipod. On my downloads icon in the Itunes Store (on Ipod) there is a symbol of how many songs I still have waiting to download, but they wont download.

    I have been having troubles with this for months and am extremly tired of not being able to download my songs. I bought these songs off of Itunes as well, so I really hope i can retrieve them. I do not know where to find a personal apple support person yet, does anyone know where to find one on the website?

    See these previous discussions:
    Waiting applications: Apple Support Communities
    Downloading apps stuck on waiting...: Apple Support Communities

  • I am having trouble with iMessage being activated. It has worked up until yesterday and now won't activate and is saying no address in the send and receive section. My number is there but not ticked. Any suggestions on how to fix this?

    I am having trouble with iMessage being activated. It has worked up until yesterday and now won't activate and is saying no address in the send and receive section. My number is there but not ticked. Any suggestions on how to fix this? I have shut down my phone, but still no luck!

    iMessage and FaceTime went down yesterday for some people. Mine is still down. My iMessage is saying the same thing about being activated. Sounds like you are still down too. Ignore the status page that says everything is fine - it lies.

  • I'm having big trouble with my new mainboard: Part II

    Hi  
    I haven't got any more replies to my post "I'm having big trouble with my new mainboard" by Krelian 2003.09.13 at 05:25. Please help! I've been struggling with this for a LONG time. And now my computer won't boot at all! Sometimes the LED's in front of the computer lights up for half a second, and nothing more happens. The only sign of life is the green light in the LAN jack. It happened after I took the ide cable for my harddrive in and out of the mainboard. This is insane, how can that suddeny happen :O ?! I was asked by wonkanoby to post max amps for my PSU, I did, and I really need to know if I maybe need a new PSU, since he asked that. Can a new PSU solve all the problems mentioned in my previous posts? Everything was fine except that I couldn't get into Windows, before i tried another harddrive on my computer. How can that complicate things so much? I have tried going barebone, and taking out the cmos battery and setting the jumpers JBAT1, J10 and J11. I have also tried every suggestion I got. Please help! I really need to get this fixed!
    -Krelian

    Some power supplies or designed so that if there is a short or overload they shut them selfs off and some will not turn back on. Some have a relay that will click back on and work, some you have to  cycle the power switch. Those that won't come back on will have to be replaced. I'm not saying that yours is that type as I have no way of telling. But if you have a friend who will loan you a good power supply you might try it. As someone else said just turning off the power will not darn all the power from some motherboards. To test this turn off your power supply than turn on the computer with the start botton. Mine will flash the lights and fans will start to spin than die. So every time you turn off computer to work on it. After turning off PSU hit the start botton to drian any power left in it before working on it. Also do this after unplugging it just to make sure.

  • Hi i am havin trouble with my ipad after i have downloaded a game and have been playing for a while it seems to of diapeared and the screen goes a white blank background there is nothing on the screen at all so i switch it off and back on and it is white

    hi i am having trouble with games on my ipad as i have been playing them the screen goes white and i can't play the game i go back to the game centre on the ipad and click on the icon for the game and come up to play i push play buton and the screen come up again white so any body had the same problem could they let me no thanks

    Quit the game and restart the iPad.
    To quit the game - Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    If that doesn't work try this.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • I am really in trouble with AP Div-How do I fix it on the web?

    Hi,
    I am really in trouble with my website. I have added some pictures and text on top of Fireworks Image and have published it on the website.
    But the concern is, when I zoom in & zoom out, I can see the previous text on the screen and also the picture and texts I have added using Ap Div  tag are scattered moving all to the left when I zoom out. Can someone help me how to fix this in one particular place so that it doesn't move when I zoom in or zoom out!!! I am using Adobe Dreamweaver CS3, if this will help.
    Appreciate your sincere help on this.
    Thanks in advance.

    Frankly, there's a lot that is wrong with that page:
    1. Most of your content is in the images - this means that you will get very poor search engine ranking
    2. Your extensive use of absolute positioning for layout - this means that when you enlarge the text size in the browser, you will have overflow problems on the page (for example, the terrible problems at the bottom of the page)
    3. You have used tables for layout - this is because of your use of Fireworks to create the HTML
    Each of these problems is solvable but none of them are solvable easily without a redesign of the page. A web page should be built from the top down, stacking content containers (i.e., <div>, <section>, <article>, <aside>, etc.) vertically or floating them horizontally or both. These containers would be loaded with the text content of the page, and images would be used only for cosmetic appearance. Using CSS to style/locate the content will allow you to completely move away from tables for layout. Most typical pages can be created without the use of absolute positioning which should be used only for special purposes, not for layout of the page elements.

  • Trouble with Safari - it keeps shutting down - all because I tried to get rid of MacKeeper

    trouble with Safari - it keeps shutting down - all because I tried to get rid of MacKeeper ad - after I install what I thought was an update since I already had MacKeeper, it would not allow me to continue without buying the new one. Make a long story short I switch to Firefox and deleted as much as I could of Safari (files, preferences etc) Now I'm at OS Yosemite X 10.10.2 and would like to get Safari up and running again - I've searched for Adware in applications etc but could not find it. Found what to do from the community, but before I go that route...Do I have to know where or if I actually have this spyware?    And if I were to reinstall  Maveric - would my files and such be undisturbed?  so that only Safari would be replaced?    I"M LOST .... (as if you couldn't tell)
    I've been working with Mac for 30 years or more and although I'm hands on taught the only thing I lack is the newer "buzz words" so if you can help me out - please make it simple ??  thanks

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Im having trouble with my ipad mini in regards with the icloud back up notification; if i press "ok" it doesnt dis appear, i couldn open my ipad/turn off because of this notification; whats the best way to get rid of this? please help

    im having trouble with my ipad mini in regards with the icloud back up notification; if i press "ok" it doesnt dis appear, i couldn open my ipad/turn off because of this notification; whats the best way to get rid of this? please help

    Have you tried a soft-reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

Maybe you are looking for

  • Topology creation in standard edition of oracle

    I am creating topology in standard edition of oracle and getting error Please suggest SQL> EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('city_data1','LAND_PARCELS1','FEATURE','POLYGON'); BEGIN SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('city_data1','LAND_PARCELS1'

  • Change document logs

    Hi experts. Do somebody know how can I plan the deleting of the change document logs?  It's the CDHDR table. This morning I've found that this log has been emptied and we need this information for some important workflow reports, on concrete words, t

  • How to install Patch 14503114

    I am trying to install Oracle patch 14503114 using Windows Server 2008R2.  I am running Oracle 11g R2.  I tried to go by the readme.txt but its not working.  Does anyone know how to install oracle patches using opatch? Any ideas will be greatly appre

  • Best Classified Ad software

    Any first hand experience with Classified ad software? ease of use best features? that sort of thing.

  • Moving Itunes from External HD to new imac HELP!

    HELP!! Kept my iTunes on an external Hard Drive as eMac had little space! Need to move all my iTunes from the External drive to iMac - but it ain't working - any suggestions or solutions easy to follow instructions would be great Any help appreciated