Getting an error from calling a store proc

this is my code calling a store proc. i got all oracle 8i
drivers imported.
package FMISBean;
import java.sql.*;
import oracle.jdbc.driver.*;
public class getrecordj
          public static void main(String [] args){
     //global variables
     Connection conOrcl=null;
String ProjectID ="222700-";
          CallableStatement C_TPRO_J=null;
     ResultSet R_TPRO_J = null;
     try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conOrcl=DriverManager.getConnection("jdbc:odbc:FMISORCL","FMIS_USER","FMIS123");
          try{
          String SQL ="{ ? = call getJrecord(?) }";
     C_TPRO_J = conOrcl.prepareCall(SQL);
     //assign the ? to the argument passed
          C_TPRO_J.registerOutParameter(1,OracleTypes.CURSOR);
          C_TPRO_J.setString(2,ProjectID);
     //execute the query
          C_TPRO_J.executeQuery();
          R_TPRO_J = (ResultSet) C_TPRO_J.getObject(1);
     //looping through the resultSet
     while (R_TPRO_J.next()){
     //create an instance of the class
          // JavaBeans JItems = new JavaBeans();
     // set it to the Bean
          System.out.println(R_TPRO_J.getString(1));
          System.out.println(R_TPRO_J.getString(2));
          System.out.println(R_TPRO_J.getString(3));
          System.out.println(R_TPRO_J.getString(4));
          System.out.println(R_TPRO_J.getString(5));
          System.out.println(R_TPRO_J.getString(6));
          //JItems.setexistingLane(R_TPRO_J.getInt(3));
          // JItems.setproposed_lane(R_TPRO_J.getInt(4));
          // JItems.setcomnt(R_TPRO_J.getString(5));
          // JItems.setcomntType(R_TPRO_J.getString(6));
     //add the object to the vector
// V_itemsJ.addElement(JItems);
     }catch(SQLException w){
          System.out.println(w.getMessage());
     }}catch(Exception S){
     //returning the vector
          //     return V_itemsJ;
//closing bracets
the store proc works fine if i test it in sql plus but when i call it from the page i get a dos window error
[oracle][orant]:line 1, colunm 13
PLS: expression is of wrong type
line 1 , colunm 7
PL/SQL: statement ignored
any ideas please would help?

Here are some examples to reference:
http://www.javaalmanac.com/egs/java.sql/CallFunction.html
http://www.javaalmanac.com/egs/java.sql/CallProcedure.html
DesQuite

Similar Messages

  • How can I get an invoice from the Apple store note that the original invoice may be burned with the house though Bamkmkm Send to Olga miles is my new (email address removed)and Thanks

    how can i get an invocce from the Apple store UK ?
    Message was edited by: Host

    Find the Apple Customer Support phone number for whichever country you're in and call them for assistance.

  • Need Help in expdp for resolving ORA-39127: unexpected error from call

    Hi All,
    My Environment is -------> Oracle 11g Database Release 1 On Windows 2003 Server SP2
    Requirement is ------------> Data Pump Jobs to be completed without any error message.
    I am tryring to take export data pump of a schema
    Command Used --> expdp schemas=scott directory=data_pump_dir dumpfile=scorr.dmp version=11.1.0.6.0
    Export Log Show this details its completed with 2 error messages
    Export: Release 11.1.0.6.0 - Production on Saturday, 23 April, 2011 13:31:10
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the OLAP option
    FLASHBACK automatically enabled to preserve database integrity.
    Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** schemas=scott directory=data_pump_dir dumpfile=scorr.dmp version=11.1.0.6.0
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 192 KB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_CUBE_EXP.schema_info_exp('SCOTT',0,1,'11.01.00.06.00',newblock)
    ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found.
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 205
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 280
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5980Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_CUBE_EXP.schema_info_exp('SCOTT',1,1,'11.01.00.06.00',newblock)
    ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found.
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 205
    ORA-06512: at "SYS.DBMS_CUBE_EXP", line 280
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5980
    . . exported "SCOTT"."DEPT" 5.945 KB 4 rows
    . . exported "SCOTT"."EMP" 8.585 KB 14 rows
    . . exported "SCOTT"."SALGRADE" 5.875 KB 5 rows
    . . exported "SCOTT"."ACCTYPE_GL_MAS" 0 KB 0 rows
    . . exported "SCOTT"."BONUS" 0 KB 0 rows
    Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
    D:\APP\ADMINISTRATOR\ADMIN\SIPDB\DPDUMP\SCORR.DMP
    Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" completed with 2 error(s) at 13:40:08
    Please help me to resolve this issue.
    Thank you,
    Shan

    Hi Shan,
    I am getting very similar to yours
    "ORA-37111: Unable to load the OLAP API sharable library: (The specified module could not be found."
    error message while creating OLAP Analytic Workspace with AWM.
    I am creating workspace for the first time, actually following some tutorial to get some knowledge about OLAP)
    I see you managed to solve you problem.
    I wonder how I can get this MOS DOC 852794.1 - is it possible to get it without going to Metalink?
    Thanks in advance for any help.
    Regards,
    SC

  • Oracle JBDC error while calling the store procedure

    HI All,
    I am get one strange error while calling a store procedure which has two parameter in and out.
    I am pass the correct XML file which reaches the RDB and then PI receives a exception error message saying:
    oracle.rdb.jdbc.common.RdbException: Closed Resultset
    where as no error log is availble in RBD for the same.
    Can anybody tell me what can be the cause of the error.
    Let me know if you requires more information on this.
    -adi

    Hi Kiran,
    Thanks..
    But I am not able to understand you. I am calling a store procedure not a table. and we not doing anything in the store procedure except return one constant value in Out parameter.
    -Adi

  • I just downloaded Mountain Lion and everything is working great. But i keep getting an error in the app store and i can't download 'Pages"

    I just downloaded Mountain Lion and everything is working great. But i keep getting an error in the app store and i can't download 'Pages' or any other apps. I keep getting an "error" and it says credit card processing is temporarily unavailable......help

    Try deleting the cache associated with the App Store.
    Quit the App Store if it's open.
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    ~/Library/Caches/com.apple.appstore/Cache.db
    Click Go
    Move the Cache.db file to the Trash.
    Launch the App Store. See if that made a difference...

  • ORA-39127: unexpected error from call to export_string :=SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP

    Hi,
    I am trying to export a Schema from 11.2.0.2 and getting the below error on export
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12425,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string :=
    SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12424,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12423,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_SCHED_JOB_EXPORT.GRANT_EXP(2003412,1,...)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 2296
    ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 52
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    I  have searched the forum and found similar errors, but I am struggling to understand the cause and solution.
    Forums seem to indicate it may be related to bug 4358907, Re: Datapump export/import object grants given by another user but not sure it is relevant as I can see a ORA-01031: insufficient privileges in this log.
    Can you please advise?
    Thanks

    Please show your export command  and read MOS ID: ORA-39127 using datapump exp [ID 451987.1 ]
    and check below forms discussion:
    https://forums.oracle.com/message/10237007

  • ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12425,1,...)

    Hi all,
    I am getting this erro on a Datapump Schema export on 11.2.0.2:
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12425,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12424,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP(12423,1,...)
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-06512: at "SYS.DBMS_RMGR_GROUP_EXPORT", line 154
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    ORA-39127: unexpected error from call to export_string := SYS.DBMS_SCHED_JOB_EXPORT.GRANT_EXP(2003412,1,...)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SCHED_MAIN_EXPORT", line 2296
    ORA-06512: at "SYS.DBMS_SCHED_JOB_EXPORT", line 52
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7049
    I believe it requires some specific privileges on DBMS_RMGR_GROUP_EXPORT.
    I have found this below explanation Kevin's Blog: SYS.DBMS_RMGR_GROUP_EXPORT.GRANT_EXP but I am not a DBA, so I am not sure what grant needs to be modified.
    It also complains of unsufficient privileges on DBMS_SCHED_JOB_EXPORT.GRANT_EXP, but I am not sure who needs what grant.
    Could you please advise on how to resolve the issue?
    Thanks

    Hi,
    Can anyone help if possible please?
    Thanks

  • I keep getting an error "failed to contact Store" in candy crush to purchase in itunes

    I am on candy crush and trying to do a purchase through iTunes - and keep getting an error - failed to contact store" it was working fine and just started happening. Any suggestions?

    Hello, melisbai. 
    Thank you for visiting Apple Support Communities.
    Here is a troubleshooting article that I would recommend going through when experiencing this issue.
    Troubleshoot issues on an iPhone, iPad, or iPod touch
    If you haven't been able to connect to the iTunes Store:
    Make sure your date, time, and time zone are correct in Settings > General > Date & Time.
    Note: Time Zone may list another city in your time zone.
    Make sure that your iOS software is up to date by tapping Settings > General > Software Update (iOS 5 or later) or connecting your iOS device to iTunes and clicking Check for Update on your device's Summary page.
    Check and verify that you're in range of a Wi-Fi router or base station. If you're on a device with cellular service, make sure that cellular data is turned on from Settings > General > Cellular.
    Note: If connected to cellular data, larger items may not download. You may need to connect to Wi-Fi to download apps, videos, and podcasts.
    Make sure that you have an active Internet connection. You can check the user guide for your device for help with connecting to the Internet.
    Make sure that other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the Internet.
    Try resetting (turning off and then on again) your Wi-Fi router.
    If the issue persists, try troubleshooting your Wi-Fi networks and connections.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    Jason H.

  • As soon as I login with iChat, I get an error from MobileMe!

    Hey, I've had this issue for a while, and my work around for it was just not using iChat. However, I want to use iChat now so I need a proper resolution. Now I have mobile me with my [email protected] address, and I have my iChat account with [email protected] (created before my MM subscription).
    When I log into iChat for the first time, within minutes I get an error from MobileMe saying "You've entered an incorrect password for MobileMe, please try again"... I didn't do anything though.
    If I go to MobileMe in System Preferences, it says: "Your password has changed. Enter your new password.
    If you have not changed (or reset) your password contact MobileMe support."
    If I enter my password in and get that fixed, the next time I start up iChat it says: "Your login ID or password is incorrect"... soo I'm confused.
    The password for my @me and @mac addresses are different, is it possible they are sharing the same keychain? I do have the check box ticked to remember the password.
    Any idea's?

    Hi,
    I would not repair at this time.
    In the list of password you should find the one for iChat Or possibly several for iChat if you have different Account/Screen Names list by their Account names.
    Double click on the one that is causing you issue.
    In the new window that pops up put a tick in the Password Box. You will probably have to confirm with your Admin Password to Allow Once.
    Does this show the right password ?
    If not change the Password.
    If it does then click the Access Tab and see if iChat is Allowed (Or Allow All is being used)
    Either change to Allow All or add iChat to the List.
    7:45 PM Saturday; April 3, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • After a trip to Brazil, the App Store apparently thinks my iPad 2 is still there. When I try to download an app, I get a message that I can't get that app from the Brazilian store and have to switch to the U.S. store. The general settings are correct.

    After a trip to Brazil, the App Store apparently thinks my iPad 2 is still there. When I try to download an app, I get a message that I can't get that app from the Brazilian store and have to switch to the U.S. store. The general settings are correct. I apparently need to switch locations manually, specifically for the App Store. Help?

    Open the App Store app, go to the Featured pane, swipe to the bottom, tap your Apple ID and sign out. Tap again and sign back in. The App Store will automatically change to the store from which your account is authorized to make purchases.

  • In iTunes 11 how do you get Genius recommendations from the iTunes store

    In iTunes 11 how do you get Genius recommendations from the iTunes store. It would appear that I can only get Genius recommendations from my own library. This was easy in iTunes 10 and enabled me to find lots of good artists I had never heard of.

    I have this same question and all I have found on it is this,
    http://ipod.about.com/od/advanceditunesuse/ss/genius_store.htm
    Basically it seams they got rid of the whole side bar concept of things to make it all more streamline, understandable but I know atleast for myself that genius sugestion for any song is how I found new artists and songs I never knew existed.
    If you go to the Album the go to "In the Store" it will give you a recomendation for that album... not exaclty what you might be looking for but atleast its something, if anyone else has a way to get genius sugestions for individual songs I am all ears and would love to hear about it.

  • TS1702 how do i delete from the startup disk? I am trying to get Mountain Lion from the App store and it says that the purchase was not complete because i need 4.06 GB space to download OS x 10.8. and to remove items from my startup disk to increase space

    how do i delete from the startup disk? I am trying to get Mountain Lion from the App store and it says that the purchase was not complete because i need 4.06 GB space to download OS x 10.8. and to remove items from my startup disk to increase space. How?
    Thanks

    You can use iCloud with 10.7.5. You do not need to upgrade to Yosemite. You should provide a minimum of 15 GBs of free space or 10% of the hard drive's capacity, whichever is greater.
    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion/Mavericks' Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • How do i get a refund from the apple store?

    how do i get a refund from the apple store. I hate the Final Cut Pro. I tried to contact costumer service and all it does is send me in circles

    You need to let go of everything you ever knew about using editing software and look at few tutorials. After years of using Final Cut Express, I looked at FCPX and didn't understand it at all, but a few months later I finally decided to give it a second try knowing that it is an entirely different animal, and that I would have to start from scratch. I bought it, read a few tutorials, explored the menus, panes, functions, read this forum extensively, then tackled my first project. It took some diligence and patience, but I got it and I will never look back. My experience is that FCPX is far better than the previous Final Cut.
    Read this: https://discussions.apple.com/thread/5251066?tstart=210

  • Oracle error ORA-39127 unexpected error from call to export_string

    Hi
    The export for an database encounters the following error .Can someone take a look at the cause please.
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
    ORA-39127: unexpected error from call to export_string :=SYS.DBMS_SERVER_ALERT_EXPORT.SYSTEM_INFO_EXP(1,dynconnect,'11.02.00.02.00',newblock)
    ORA-13914: Threshold notification failed.
    ORA-06512: at "SYS.DBMS_SERVER_ALERT", line 187
    ORA-06512: at "SYS.DBMS_SERVER_ALERT_EXPORT", line 132
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 7418
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
    Regards

    There are a lot of similar errors on MOS, perhaps you should search through them and see if any apply to you.
    What version/patch level are you on? Have you made any grid control threshold modifications? Are you using procobol in an upgraded database?
    You might want to go through support for this one.

  • ORA-39127: unexpected error from call to

    Hi ALL.
    11.2.0.3
    Is this a bug?
    I got error when running expdp system/manager full=yes
    ORA-39127: unexpected error from call to "SYS"."DBMS_JVM_EXP_PERMS"."GRANT_SYSPRIVS_EXP"But it works fine on 11.2.0.1
    Any ideas and solutions please.....
    Thanks a lot,

    hello,
    You may look into the following My Oracle Support Document: DataPump Export (EXPDP) Failed On Identifier SYS.DBMS_JVM_EXP_PERMS Must Be Declared [ID 1095533.1]
    According to the document the versions affected are 10gR2 and 11gR1, but, the workaround may solve your issue.
    Hope it helps.

Maybe you are looking for

  • While running Auto payment program through F110 getting error

    Dear Experts, while running Auto payment through F110 we are getting below error "F0417                     warning: check whether a duplicate payment medium has been created". I dont have any problem for payment summary and payment advice, issue onl

  • Please help me illustrator keeps crashing

    Every time I go to open illustrator on my macbook pro it keeps crashing... not a good thing with final exams coming up... this is the error report I keep getting... please someone help me iv tried restarting several times and still nothing Process:  

  • I need help hoe re-install my photoshop CS5 in my laptop

    I need help How to re-install my photoshop CS5. I lost it after reboot my laptop

  • Asssociating new Network to a ProjectDefinition

    Hi, I am creating a new Network using 'BAPI_NETWORK_MAINTAIN' by using SE37 transaction. I am passing 'CREATE' and then 'SAVE' as Method parameter value in I_METHOD_PROJECT structure. I want to associate this network with some existing ProjectDefinit

  • Latest update killing my laptop!!!

    Anyone else notice this? It is actually painfully slow. 15" Macbook Pro with 2.33 core2 duo with 256 video ram and 2 gigs of system ram. The hard drive is less than 50% full. Even a reboot doesn't cure the problem. It wasn't like this 2 weeks ago. I