How to get more detailed error information when calling Java SP

Hi
Sorry for reposting this in here but I got no responses in the JVM forum...
I am calling a Java stored procedure from a PL/SQL stored procedure (Oracle DB 9.2.0.8.0) and I am getting the exception:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
It does not help much though... Is it possible to get the full Java error stack from within PL/SQL so I can log a more informative message?
Thanks!
Luis

Thanks for the replies! However I am not sure if they help...
I will give some more info about my problem. I have an Oracle job that runs every morning and executes a PL/SQL procedure, which in turn calls that Java SP.
Sometimes the Java SP fails and the error is logged; however only the message "java.lang.NullPointerException" is reported by the SQLERRM function (apparently the last Java error message in the error stack). I am unable to reproduce the error when calling the Java SP manually as was suggested.
I need to log a more detailed error message from within PL/SQL to know exactly where the error occurred, when it occurs next time...
I will take a look to see if I can get some information in some trace file, though ideally I would like to do it programatically.
Thanks
Luis

Similar Messages

  • How to get more detailed error messages when using Oracle JDBC

    Here are some typical Oracle error messages that leave you guessing :
    "ORA-01722: invalid number"
    "ORA-00904: invalid column name"
    Is there any way to find out which number or which column name is invalid ?
    Why doesn't Oracle include this information in the error messages ? If it knows the number or column is invalid, it must know the number or column name !

    Launch the query under sqlplus, it'll tell u :
    SQL> select user_id, userna from dba_users ;
    select user_id, userna from dba_users
    ERROR at line 1:
    ORA-00904: invalid column name

  • Getting more detailed error messages from Adobe Acrobat

    Hi
    Is there a way to get more detailed error messages from Adobe Acrobat reader when he detecs an error in a PDF file?
    My program generates PDF files. There is one that throws an error in Acrobat while GhostScript and Google Chromes PDF Reader display it correctly.
    I wonder where the error is, but the error message is just "expected dictionary", when I hold CTRL and press "OK".
    GhostScript usually gives useful error messages, but it has no error this time.

    More specifically, Acrobat Pro!
              - Dov

  • How to get more detailed info while running a BAPI in test mode

    Hi friends
    I am trying to test 'BAPI_QUOTATION_CREATEDATA2' by opening the BAPI with 'se37' and then clicking on the button Test/Execute (F8) and entering all the data required.
    However, I get a message as follows.
    '555 The sales document is not yet complete: Edit data'
    While creating the QUOTE manually using 'va21' I get more detailed messages like what kind of data is missing 'whether valid to date is missing ..etc.etc.'.
    However, while testing thro' bapi, all it says is that sales document is not complete.
    Is there a way to see more detailed info as to what information is missing, so that I can put them before running.
    Your feedback or suggesions will be highly appreciated.
    Thansk
    Ram

    Thanks Rob
    Actually it says
    W  V1   555  The sales document is not yet complete: Edit data.
    As I said, I am running the BAPI manually by opening the BAPI using SE37 and then clicking on the F8 button. This inreturn will give me an opportunity to click on different object trees to enter the sample data. So I have entered everything that I thought was needed. But still it keeps complaining that the info is not complete but no further details.
    Hope there is some log file or something that I can see to get more details.
    Thanks
    Ram

  • How to get the array of Complex when call a webserivce method it's return an array of user define data struct?

    When call a webservice opreation, it returns an array of complex type, sure, the calling is successed,  but i don't know how to get the return values,
    I have tried use Pendingcall.response & Pendingcall.getOutPutValues() in Pendingcall.onResult event function...
    Waiting....

    Flash Lite doesn't fully support webservices, so you will find it difficult to use the full api set.
    I suggest that you use SWX (swxformat.org) or simply HTTP requests for transactions.
    We have a tutorial on use with ColdFusion here:
    http://vimeo.com/6829083
    Mark

  • Error Report when calling Java thru C

    Currently we have encountered some issues with our C code calling java module in NT- Itanium 64bit machine. We get the following error message (we don't get this on the 32 bit):
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x0000000077f69684
    SIGNAL = -1073741819
    FUNCTION NAME = (N/A)
    OFFSET = 0xFFFFFFFF
    LIBRARY NAME = (N/A)
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    Has anybody seen this and has any suggestions? using JDK 1.4
    Thanks

    I was thinking JVM should the classpath when it is invoked. But obviously it is not and we need to assign the classpath ourselves when invoking from native side. Thanks for pointing that out. For other people's benefit the following is the code piece I for initializing JVM.
    char* str1;
              char* str2;
              char* classpath;
              str1 = "-Djava.class.path=";
              str2 = std::getenv("CLASSPATH");
              classpath = (char*)malloc(strlen(str1) + strlen(str2) + 1);
              strcpy(classpath, str1);
              strcat(classpath, str2);
              if (str2 == NULL)     {
                   printf("CLASSPATH environment variable is not defined.");
                   exit(1);
              m_VmArgs.version = JNI_VERSION_1_4;
              m_options[0].optionString= classpath;
              m_VmArgs.options = m_options;
              m_VmArgs.nOptions = 1;
              m_VmArgs.ignoreUnrecognized = JNI_TRUE;
              JNI_GetDefaultJavaVMInitArgs(&m_VmArgs);
              /* Create the Java VM */
              m_Res = JNI_CreateJavaVM(&m_Jvm, (void**)&m_Env, &m_VmArgs);
              if (m_Res < 0) {
                   printf("Can't create JVM\n");
                   exit(1);
    thanks,
    chancellor

  • How to get rid of error messages when booting Windows Vista on a Mac

    I know there's a way, I've seen a page where there were step by step instructions on HOW TO do it. I just can't seem to find it now.

    Hi and welcome to Discussions,
    doing some guessing 'Unrecognized partition table for Drive 80' error ?
    Have a look here for solution: http://www.lancelhoff.com/unrecognized-partition-table-for-drive-80/
    Or use the BCD approach described in here: http://discussions.apple.com/thread.jspa?messageID=6265406
    Hope it helps
    Stefan

  • How to get the main funciton name when calling another function inside?

    for eg, one RFC named A,inside A,a funtion B is called.when the processing is at B now,how can i get the main RFC name(A)?
    any help will be much appricated.

    > just see SM50,there is a column called 'Report',it shows the program id the proess is now processing.but i don't know its main program or say it 'the process's first excuting program',how can i get it programmatically?
    I'm still not sure to understand. The program in SM50 is the current main program (not the first). It is stored in SY-REPID system variable. Or use this code:
    DATA lt_callstack_long TYPE abap_callstack.
    DATA ls_callstack_long TYPE LINE OF abap_callstack.
    CALL FUNCTION 'SYSTEM_CALLSTACK'
          IMPORTING
            callstack    = lt_callstack_long.
    READ TABLE lt_callstack_long INDEX 1 INTO ls_callstack_long.
    WRITE : / 'current main program is:', ls_callstack_long-mainprogram.
    If you want to know the frame program (the first called), use SY-CPROG, or use this code:
    DATA lt_callstack_long TYPE abap_callstack.
    DATA ls_callstack_long TYPE LINE OF abap_callstack.
    CALL FUNCTION 'SYSTEM_CALLSTACK'
          IMPORTING
            callstack    = lt_callstack_long.
    " read last line = first called program
    DESCRIBE TABLE lt_callstack_long. "to make sy-tfill = number of lines
    READ TABLE lt_callstack_long INDEX sy-tfill INTO ls_callstack_long.
    WRITE : / 'First main program is:', ls_callstack_long-mainprogram.

  • How do I read detailed device information in DAQmx?

    Hi,
    I'm developing an application using the DAQmx C API and the 6602 Counter/Timer.  I would like to know how to read more detailed device information using the C API, i.e. more than just the type, serial number, and whether it's simulated.  I have seen several posts about this topic, but none appeared to give a satisfactory solution.  It has been mentioned that the DAQmxGetSystemInfoAttribute() serves this purpose, but it's not documented in the DAQmx C Reference Help files, so I don't know what attribute values ( DAQmxGetSystemInfoAttribute (int32 attribute, void *value, ...) ) are valid, and therefore am unsure as to what information can be obtained by this function.  To be more specific, I would like to read device information such as pin names and function, number of counters, number and name of digital I/O ports, etc, so that the application could automatically identify and list the available resources (similar to the way MAX does as you go through the task creation procedure).  Is this possible with DAQmxGetSystemInfoAttribute() or any other function?
    Thanks,
    Jeff 

    Hi Serges,
    Thanks for your reply.  I'm OK with retrieving the device names, the question is whether there is a way to obtain detailed information once I have the name.  For instance, if I find (via DAQmxGetSysDevNames() and DAQmxGetDevProductType( )) that there is a PCI-6602 board installed, can I then call a function to retrieve details about the PCI-6602 (e.g. physical channel names, DIO port capabilities, etc.) rather than hard coding (yuck!) this stuff into the program.  It seems plausible that there might be a set of files somewhere within DAQmx which provide this sort of device information - if so, how can they be accessed?
    Jeff 

  • Runtime error OBJECTS_OBJREF_NOT_ASSIGNED when calling any standard GRC API's

    Hello colleagues,
    I always get the runtime error OBJECTS_OBJREF_NOT_ASSIGNED when calling any standard GRC API's
    For instance, lets take Function Modules:
    I tried almost any of them but in particular:
    GRPC_API_CONTROL_QUERY Load the list of controls
    GRPC_API_ISSUE_QUERY Retrieve issues of the case
    GRPC_API_ORGUNIT_QUERY Load list of Organizations
    GRPC_API_RMPLAN_QUERY Retrieve remediation plans of case
    GRPC_API_RISK_CONTROLS Retrieve the controls of the risk
    and etc.
    All of them return the runtime error OBJECTS_OBJREF_NOT_ASSIGNED, however I've provided Object ID's in the right format,
    The same is for corresponding classes,
    Does anyone have such problem before?
    Appreciate your responses,
    Thank you,
    Best Regards,
    Anton

    Hi Anton,
    We need to pass value for I_SESSION_ID. Because, when i execute FM: GRPC_API_RMPLAN_QUERY by giving correct I_OBJECT_ID as shown below, i'm also getting the same error.
    On executing..
    Getting following dump.
    And attached is the dump analysis .
    Thanks
    KH

  • Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Hi jodilynnf,
    When using Connection Doctor to see what is could be causing the issue, look for the red dots to let you know what is wrong. Then all you have to do is correct that information. You can double click on the section that is giving you issue and it will take you there. Most issues could be just password being entered incorrectly. Take a look at the article below to walk you through troubleshooting issues with Mail.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/en-us/TS3276
     Take it easy,
    -Norm G.

  • HT3275 Im getting the following error message when Time Machine is trying to backup:  backup disc image/volumes/data/mycomputer.sparsebundle is already in use, how do I correct?

    Im getting the following error message when Time Machine is trying to back up:  backup disc image/volumes/data/my computer.sprasebundle is already in use.  What does this mean?  How do i correct?  Thanks!

    90% of the time, all you need to do is power off the Time Capsule, wait a few minutes, and power it back up.
    If no luck, then go to the more sophisticated fixes in the link above.

  • How to get ALL validate-errors while insert xml-file into xml_schema_table

    How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ?
    Hi,
    I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 .
    To get a error-output about the reason I do validate
    the xml-file against xdb-schema, by insert it into schema_table.
    When more than one validate-errors inside the xml-file,
    the exception shows me the first error only.
    How to get all errors at one time ?
    regards
    Norbert
    ... for example like this matter:
    declare
         xmldoc CLOB;
         vStatus varchar
    begin     
    -- ... create xmldoc by using DBMS_XMLGEN ...
    -- validate by using insert ( I do not need insert ;-) )      
         begin
         -- there is the xml_schema in xdb with defaultTable XML_SCHEMA_DEFAULT_TABLE     
         insert into XML_SCHEMA_DEFAULT_TABLE values (xmltype(xmldoc) ) ;
         vStatus := 'XML-Instance is valid ' ;
         exception
         when others then
         -- it's only the first error while parsing the xml-file :     
              vStatus := 'Instance is NOT valid: '||sqlerrm ;
              dbms_output.put_line( vStatus );      
         end ;
    end ;

    If I am not mistaken, the you probably could google this one while using "Steven Feuerstein Validation" or such. I know I have seen a very decent validation / error handling from Steven about this.

  • I get the following error message when trying to download ITunes on my computer running Windows XP - Error writing to file: C:\Program Files\Common Files\Apple Application Support\CFNetwork.dll

    I get the following error message when trying to download ITunes on my computer running Windows XP - Error writing to file: C:\Program Files\Common Files\Apple Application Support\CFNetwork.dll

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there also links to backup and recovery advice should it be needed.
    tt2

  • Can any one tell me how to get rid of error code ox80010108

    can any one tell me how to get rid of error code ox80010108 when i put a dvd in my hp touchsmart 520 thanks

    Hello @charly6,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you are getting the error 0x80010108 when you insert your CD into your Optical Drive on your HP Touchsmart 520 Desktop PC. The error you are receiving is related to Windows Essentials and I suggest that you download and install the latest version from the Windows Essentials website. I believe that Windows Essentials was aware of this error and have corrected it in their updates.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

Maybe you are looking for