Call API crash

IGWFolderRights *gwFolderRights NULL;
DIGWAddress *gwAddressD = NULL;
status = gwFolderRights->get_Address(&gwAddressD);
I call that sometime crash in windows vista, then I tried catch this exception as below, but didn's work, still crash at here. use try{} catch{} too.
long int
TryGetAddress(IGWFolderRights *gwFolderRights, DIGWAddress **gwAddressD)
long int status;
__try
status = gwFolderRights->get_Address(gwAddressD);
__except(1)
status = -1;
return status;
Is there a problem? Thanks very much!

Probably you are not using [DllImport] attribute correctly. Show the details about the C# part.
Since the DLL is built wit /clr option, then a different approach is possible: create a managed class like this:
public ref class MyClass
public:
    static void Test()
It does not require __declspec.
In C#, add a reference to DLL, then call the function:
“MyClass.Test()”. If it works, then add more code to Test, such as
TestCheckVersion().

Similar Messages

  • Help: Basic API call randomly crashes.  Enlightened experts may know...

    Here is the function and it is called once a second. The try-catch was added later.bool UserInfo::IsCurrentUserInteractive()
    uid_t uid;
    gid_t gid;
    /* Getting the username of current consoleuser. Note
    * that if the username is NULL then that means that
    * no user is presently logged in. We do the lookup
    * using the SCDynamicStoreCopyConsoleUser call.
    * First Argument: The dynamic store to use to lookup
    * the console username. We only need a temporary dynamic
    * store so pass null.
    * Second Argument: On return this will have the
    * UserID (UID) of the new user. We pass in a uid_t variable
    * so we can get the return value. This value isn't used but
    * is included for demonstration purposes.
    * Third Argument: On return this will have the
    * GroupID (GID) of the new user. We pass in a gid_t variable
    * so we can get the return value. This value isn't used but
    * is included for demonstration purposes.
    * Return Value: The console username expressed as a CFString.
    * This string must be eventually released with a CFRelease call.
    CFStringRef Name = NULL;
    // This call has crashed before
    try
    Name = SCDynamicStoreCopyConsoleUser(NULL, &uid, &gid);
    catch(...)
    return true;
    if (NULL == Name)
    return false;
    CFRelease(Name);
    return true;
    This can run for hours, being called every second without a problem. However eventually it will crash. Here is the crash log BEFORE I added the try-catch.PID: 148
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x000001f9
    Thread 0 Crashed:
    0 libSystem.B.dylib 0x90003040 szone_malloc + 590
    1 libSystem.B.dylib 0x90002da7 malloczonemalloc + 571
    2 com.apple.CoreFoundation 0x9082bb0d CFRunLoopRunSpecific + 196
    3 com.apple.CoreFoundation 0x9082ba42 CFRunLoopRunInMode + 61
    4 com.apple.HIToolbox 0x92de9878 RunCurrentEventLoopInMode + 285
    5 com.apple.HIToolbox 0x92edece0 GetNextEventMatchingMask + 100
    6 com.apple.HIToolbox 0x92f58c5a GetNextEvent + 85
    7 com.chatter.box 0x00007cba EventPump() + 36
    8 libSystem.B.dylib 0x9011072c _sigtramp + 49
    9 libSystem.B.dylib 0x90002f9c szone_malloc + 426
    10 libSystem.B.dylib 0x90002da7 malloczonemalloc + 571
    11 com.apple.CoreFoundation 0x9080b53c _CFRuntimeCreateInstance + 155
    12 com.apple.CoreFoundation 0x9080b27c __CFStringCreateImmutableFunnel3 + 1453
    13 com.apple.CoreFoundation 0x90817c1b CFStringCreateWithBytes + 94
    14 com.apple.CoreFoundation 0x90837622 __CFBinaryPlistCreateObject + 1405
    15 com.apple.CoreFoundation 0x90837fc6 __CFBinaryPlistCreateObject + 3873
    16 com.apple.CoreFoundation 0x90837b86 __CFBinaryPlistCreateObject + 2785
    17 com.apple.CoreFoundation 0x90837fc6 __CFBinaryPlistCreateObject + 3873
    18 com.apple.CoreFoundation 0x9082e623 __CFTryParseBinaryPlist + 177
    19 com.apple.CoreFoundation 0x9082d990 _CFPropertyListCreateFromXMLData + 150
    20 com.apple.CoreFoundation 0x9082d8f7 CFPropertyListCreateFromXMLData + 54
    21 com.apple.SystemConfiguration 0x91421152 _SCUnserialize + 99
    22 com.apple.SystemConfiguration 0x91420f6b SCDynamicStoreCopyValue + 285
    23 com.apple.SystemConfiguration 0x91423e97 SCDynamicStoreCopyConsoleUser + 158
    24 com.chatter.box 0x0000a51a UserInfo::IsCurrentUserInteractive() + 32
    25 com.chatter.box 0x000087de ClientCore::DoRun() + 808
    26 com.chatter.box 0x00007e20 main + 308
    27 com.chatter.box 0x0000733e _start + 216
    28 com.chatter.box 0x00007265 start + 41Now after the try-catch:PID: 291
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000000
    Thread 0 Crashed:
    0 libobjc.A.dylib 0x90a58387 objc_msgSend + 23
    1 com.chatter.box 0x0000a58f UserInfo::IsCurrentUserInteractive() + 61
    2 com.chatter.box 0x00008833 ClientCore::DoRun() + 805
    3 com.chatter.box 0x00007e5b main + 355
    4 com.chatter.box 0x0000733e _start + 216
    5 com.chatter.box 0x00007265 start + 41
    This leads me to several questions:
    1. Why is this crashing my app?
    2. Why isn't the try-catch trapping the exception and preventing the crash?
    3. How can I prevent this crash?
    The purpose is simply to know if there is an interactive user. By getting the console user you can find out. If there is no console user, then clearly, there is no interactive session. I know there can be fast user switching on Macs, although I do not know how to do it, so it is possible for an app to be running as a user who doesn't have a GUI because they didn't log out, they just switched out to another user and all their apps are still running. I am going to make all the parameters null since I do not use them, this was basically a cut and paste job from some API documentation with sample code.

    karma-9 wrote:
    809648 wrote:
    i know i m sucked and really need ur expertise help asap or i would suicide for this hw! pls!
    If you can't even start with that assignment, there is no need to go to such extreme lengths as to kill yourself.
    Just don't go into programming, find other areas of interest and a different career path.Or, you know, talk to your lecturer, teacher, or tutor. As opposed to just give up.
    I failed my first-ever CS assignment. Got 7/20 for my Haskell and then -7 because it didn't compile.
    Considered dropping my degree, spoke to the tutor who pointed out a couple of book chapters to read, got 90% or higher in the next three tests, then ended up with an honours degree four years later. Everyone has hurdles or brick walls to negotiate, but it doesn't mean you're not cut out for a career there. It's not a case of natural talent, just persistence and practice.
    Oh, and mods - sorry for the 'irrelevant humour' before. I shan't try it again until I've got my post count to my previous levels and I then can join in all the mocking by regulars. ;)

  • Problem In Calling API  fa_addition_pub.do_addition

    Hello friends,
    I am workin on the addition Of asset program
    In which i called API fa_addition_pub.do_addition
    but when i am executing it it gives me error
    Error(157,1): PLS-00306: wrong number or types of arguments in call to 'DO_ADDITION'
    Error(196,1): PLS-00201: identifier 'UPDATE_ERROR_MSG' must be declared
    THE CODE WHICH I USED IS GIVEN BELOW
    PLZ HELP ME TO SOLVE THIS PROBLEM.
    CREATE OR REPLACE PROCEDURE APPS.FA_ADDITION_API (p_row_number NUMBER) AS
    l_trans_rec fa_api_types.trans_rec_type;
    l_dist_trans_rec fa_api_types.trans_rec_type;
    l_asset_hdr_rec fa_api_types.asset_hdr_rec_type;
    l_asset_fin_rec_old fa_api_types.asset_fin_rec_type;
    l_asset_fin_rec fa_api_types.asset_fin_rec_type;
    l_asset_fin_rec_new fa_api_types.asset_fin_rec_type;
    l_asset_fin_mrc_tbl_new fa_api_types.asset_fin_tbl_type;
    l_asset_deprn_rec fa_api_types.asset_deprn_rec_type;
    l_asset_deprn_rec_new fa_api_types.asset_deprn_rec_type;
    l_asset_deprn_mrc_tbl fa_api_types.asset_deprn_tbl_type;
    l_asset_desc_rec fa_api_types.asset_desc_rec_type;
    l_asset_type_rec fa_api_types.asset_type_rec_type;
    l_asset_cat_rec fa_api_types.asset_cat_rec_type;
    l_asset_dist_rec fa_api_types.asset_dist_rec_type;
    l_asset_hierarchy_rec fa_api_types.asset_hierarchy_rec_type;
    l_inv_rec fa_api_types.inv_rec_type;
    l_inv_trans_rec fa_api_types.inv_trans_rec_type;
    l_period_rec fa_api_types.period_rec_type;
    l_who_rec fa_api_types.standard_who_rec_type;
    l_inv_tbl fa_api_types.inv_tbl_type;
    l_inv_rate_tbl fa_api_types.inv_rate_tbl_type;
    l_asset_dist_tbl fa_api_types.asset_dist_tbl_type;
    l_tax_book_tbl fa_cache_pkg.fazctbk_tbl_type;
    l_initial_book boolean := TRUE;
    CURSOR xx_addition_cur (p_row_number NUMBER)
    IS
    SELECT *
    FROM xx_reg_book_load_interface
    WHERE ROW_NUMBER = p_row_number;
    -- Get the inventory details for Asset Addition API
    CURSOR xx_dist_info_cur (p_asset_id NUMBER)
    IS
    SELECT fdh.*
    FROM fa_distribution_history fdh
    WHERE fdh.transaction_header_id_in = (SELECT MIN(transaction_header_id)
    FROM fa_transaction_headers fth
    WHERE fth.asset_id = p_asset_id
    AND fth.transaction_type_code in ('TRANSFER IN', 'TRANSFER IN/VOID') );
    -- AND transaction_header_id_in = p_transaction_id
    -- AND NVL (transaction_units, 1) > 0;
    -- Get the inventory details for Asset Adjustment API
    CURSOR xx_inv_rec_type_adj_cur (p_row_number NUMBER)
    IS
    SELECT fai.invoice_transaction_id_in, fai.deleted_flag,
    fai.invoice_number, fai.po_number, fai.unrevalued_cost,
    fai.project_id, fai.task_id, fai.payables_code_combination_id,
    fai.fixed_assets_cost, fai.source_line_id, fai.payables_cost,
    xrbli.transaction_type_code, fai.ap_distribution_line_number,
    fai.description, fai.po_vendor_id,
    fai.payables_units,
    fai.invoice_id,
    fai.invoice_date
    FROM fa_asset_invoices fai, xx_reg_book_load_interface xrbli
    WHERE fai.invoice_transaction_id_in = xrbli.invoice_transaction_id
    AND xrbli.ROW_NUMBER = p_row_number;
    -- Out parameter for Addition API
    l_return_status VARCHAR2 (1);
    -- Out parameter for Addition API
    l_mesg_count NUMBER := 0;
    -- Out parameter for Addition API and used for error tracking
    l_mesg VARCHAR2 (4000);
    -- Index for inventory record table
    l_dist_rec_count NUMBER := 0;
    l_inv_rec_count NUMBER := 0;
    l_stat_class VARCHAR2(50) ;
    BEGIN
    -- Open XX_ADDITION_CUR cursor by passing the period
    FOR p_asset_addition IN xx_addition_cur (p_row_number)
    LOOP
    -- ASSET_FIN_REC_TYPE Asset Structure
    l_asset_fin_rec.date_placed_in_service :=p_asset_addition.date_placed_in_service;
    l_asset_fin_rec.COST := p_asset_addition.COST;
    l_asset_fin_rec.depreciate_flag := 'YES'; -- YES for all the records
    -- Transaction Info
    /* BEGIN
    SELECT segment4
    INTO l_stat_class
    FROM fa_categories_b fcb
    WHERE fcb.category_id = p_asset_addition.asset_category_id ;
    EXCEPTION WHEN OTHERS THEN
    l_stat_class := NULL ;
    END ;
    IF ( NVL(l_stat_class,'*') = 'I' ) THEN
    l_trans_rec.transaction_subtype := 'AMORTIZED' ;
    END IF ;
    l_trans_rec.who_info := l_who_rec;
    -- ASSET_HDR_REC_TYPE Asset Structure (Asset ID should not be there for Addition API)
    l_asset_hdr_rec.book_type_code := p_asset_addition.book_type_code;
    -- ASSET_DESC_REC_TYPE Asset Structure
    l_asset_desc_rec.asset_number := p_asset_addition.asset_number;
    l_asset_desc_rec.description := p_asset_addition.description; ----modify by anand
    l_asset_desc_rec.current_units := p_asset_addition.current_units;
    l_asset_desc_rec.asset_key_ccid := p_asset_addition.asset_key_ccid;
    -- ASSET_TYPE_REC_TYPE Asset Structure
    l_asset_type_rec.asset_type := p_asset_addition.asset_type;
    -- ASSET_CAT_REC_TYPE Asset Structure
    l_asset_cat_rec.category_id := p_asset_addition.asset_category_id;
    -- Initialize the count
    l_inv_rec_count := 0;
    -- INV_REC_TYPE Invoice Structure
    FOR i IN xx_inv_rec_type_adj_cur (p_row_number)
    LOOP
    --IF l_asset_id_count p_asset_adjustment.asset_id THEN
    l_inv_rec_count := l_inv_rec_count + 1;
    l_inv_trans_rec.transaction_type := i.transaction_type_code;
    --l_inv_rec.source_line_id := i.source_line_id;
    l_inv_rec.fixed_assets_cost := i.fixed_assets_cost;
    l_inv_rec.payables_cost := i.payables_cost;
    l_inv_rec.payables_code_combination_id :=i.payables_code_combination_id;
    l_inv_rec.invoice_number := i.invoice_number;
    l_inv_rec.po_number := i.po_number;
    l_inv_rec.unrevalued_cost := i.unrevalued_cost;
    l_inv_rec.project_id := i.project_id;
    l_inv_rec.task_id := i.task_id;
    l_inv_rec.deleted_flag := i.deleted_flag;
    l_inv_rec.description := i.description;
    l_inv_rec.po_vendor_id := i.po_vendor_id;
    l_inv_rec.ap_distribution_line_number :=i.ap_distribution_line_number;
    l_inv_rec.payables_units := i.payables_units;
    l_inv_rec.invoice_id := i.invoice_id;
    l_inv_rec.invoice_date := i.invoice_date;
    l_inv_tbl (l_inv_rec_count) := l_inv_rec;
    --l_asset_id_count := p_asset_adjustment.asset_id;
    --END IF;
    END LOOP;
    -- ASSET_DIST_REC_TYPE and ASSET_DIST_TBL_TYPE Asset Structure
    FOR i IN xx_dist_info_cur (p_asset_addition.asset_id
    -- , p_asset_addition.transaction_header_id
    LOOP
    l_dist_rec_count := l_dist_rec_count + 1;
    -- l_asset_dist_rec.assigned_to := i.assigned_to;
    l_asset_dist_rec.units_assigned := i.units_assigned;
    l_asset_dist_rec.expense_ccid := i.code_combination_id;
    l_asset_dist_rec.location_ccid := i.location_id;
    l_asset_dist_tbl (l_dist_rec_count) := l_asset_dist_rec;
    END LOOP;
    -- Update to 0 for further use
    l_dist_rec_count := 0;
    --fnd_file.put_line(fnd_file.log, 'Calling the Addition API') ;
    -- Call Addition api
    fa_addition_pub.do_addition
    (p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_false,
    p_commit => fnd_api.g_false,
    p_validation_level => fnd_api.g_valid_level_full,
    x_return_status => l_return_status,
    x_msg_count => l_mesg_count,
    x_msg_data => l_mesg,
    p_calling_fn => 'FA_ADDITION_API', ---modify by anand
    px_trans_rec => l_trans_rec,
    px_dist_trans_rec => l_dist_trans_rec,
    px_asset_hdr_rec => l_asset_hdr_rec,
    px_asset_desc_rec => l_asset_desc_rec,
    px_asset_type_rec => l_asset_type_rec,
    px_asset_cat_rec => l_asset_cat_rec,
    px_asset_hierarchy_rec => l_asset_hierarchy_rec,
    px_asset_fin_rec => l_asset_fin_rec,
    px_asset_deprn_rec => l_asset_deprn_rec,
    px_asset_dist_tbl => l_asset_dist_tbl,
    px_inv_tbl => l_inv_tbl,
    px_inv_rate_tbl => l_inv_rate_tbl
    --fnd_file.put_line(fnd_file.log, 'Addition API returned status as : '|| l_return_status) ;
    IF (l_return_status = fnd_api.g_ret_sts_success)
    THEN
    l_mesg_count := fnd_msg_pub.count_msg;
    IF l_mesg_count > 0
    THEN
    l_mesg :=CHR (10)|| SUBSTR (fnd_msg_pub.get (fnd_msg_pub.g_first,fnd_api.g_false),1,512);
    FOR i IN 1 .. (l_mesg_count - 1)
    LOOP
    l_mesg :=l_mesg|| CHR (10)|| SUBSTR (fnd_msg_pub.get (fnd_msg_pub.g_next,fnd_api.g_false),1,512);
    END LOOP;
    fnd_msg_pub.delete_msg ();
    END IF;
    l_mesg := 'FAILED (' || SQLERRM || '): ' || l_mesg;
    -- Procedure to update XX_REG_BOOK_LOAD_INTERFACE table with rejection reason
    update_error_msg ('Addition', l_mesg, p_asset_addition.ROW_NUMBER);
    ELSE
    -- Display the successful record
    fnd_file.put_line (fnd_file.output,p_asset_addition.asset_number|| ' -> '|| p_asset_addition.description|| ' for asset Addition Success.'); --- modify by anand
    END IF;
    -- Delete PLSQL table and record type variables data
    --empty_rec;
    END LOOP;
    END fa_addition_api;
    tahnk you

    You call do_addition with a wrong set of parameters or you use the wrong datatypes from your parameters.
    Check what parameters ( and their datatypes ) that procedure expects.
    Also check if you have the right privileges for using UPDATE_ERROR_MSG and that a synonym exists for it.
    fa_addition_pub.do_addition
    (p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_false,
    p_commit => fnd_api.g_false,
    p_validation_level => fnd_api.g_valid_level_full,
    x_return_status => l_return_status,
    x_msg_count => l_mesg_count,
    x_msg_data => l_mesg,
    p_calling_fn => 'FA_ADDITION_API', ---modify by anand
    px_trans_rec => l_trans_rec,
    px_dist_trans_rec => l_dist_trans_rec,
    px_asset_hdr_rec => l_asset_hdr_rec,
    px_asset_desc_rec => l_asset_desc_rec,
    px_asset_type_rec => l_asset_type_rec,
    px_asset_cat_rec => l_asset_cat_rec,
    px_asset_hierarchy_rec => l_asset_hierarchy_rec,
    px_asset_fin_rec => l_asset_fin_rec,
    px_asset_deprn_rec => l_asset_deprn_rec,
    px_asset_dist_tbl => l_asset_dist_tbl,
    px_inv_tbl => l_inv_tbl,
    px_inv_rate_tbl => l_inv_rate_tbl
    );

  • ACE - unable to execute various show commands. Error: Called API timed out

    Hi I am runnng version A2(2.3)  on a HA ACE setup.
    I have noticed today that issuing various show commands such as 'show run' and 'show probe' on the active ACE have suddenly stopped working. On hitting return the ACE sits there for a while non respondant before finally outputting an Error: Called API timed out and then returning to the command prompt. It only seems to happen on show commands that would generate a lot of output, for example a 'show version' works. I have also noticed a delay sometimes in logging into the active ACE which has again only come to light today.
    We havent made any changes recently and this behavior has not been seen before.
    I could only find one similar posting which kind of suggested that a high logging level may be to blame for this issue, we are running at debugging level but have since the ACE's were brought into play over 12 months ago (yep i know logging at that level is far from ideal).
    Production traffic does not seem to be affected at present.
    Apart from reudcing the logging level I am not sure what else could be causing this issue, has anyone come across this one before?
    Unfortunaltey the 'show resource usgae in one of the commands that wont work'
    A 'show cpu'  command shows nothing above 10%
    Though multiple context are configured (3), the default resource allocation is in place between all three.
    Thanks for taking the time to read.

    Thanks for the response I will take a look at that Bug ID.
    In the end as you have already suggested above I ended up failing across to the standby ACE and powering down/up  the affected ACE module from the switch CLI. This seems to have restored all functionality. Even a soft reload command prior on the affected ACE didnt take affect.

  • ACE# sh script code - Error: Called API is invalid or non-existant

    What is this ??
    ACE# dir disk0:
       2846 Jun 14 2010 15:40:33 NORDICID_PROBE
    ACE# sh script code NORDICID_PROBE
    Error: Called API is invalid or non-existant
    Hardware is ACE-4710-K9 and software A3(2.7)
    The probe itself is functioning ok according to show probe detail.
    However show script script_name probe_name -counters all remain at zero for some reason. This wasn't the case on the previously use ACE software.
    To my recollection the command show script code has worked successfully before on the same ACE software. Not 100% sure though, but it definitely worked on the previous software we ran on the ACE.

    Hi Timo,
    You could be hitting CSCtu33866 (see
    http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtu33866 for more details)
    If you are really hitting this bug, a reboot should fix the issue.
    I hope this helps
    Daniel

  • ACE - Error: Called API encountered error

    Hello All,
    I was trying to add a ssl-proxy server to a policy map when I had this error message "Error: Called API encountered error".
    I'm running version A2(1.4a).
    did anyone encounter the same issue?
    Rgds,
    Thibault.

    The ACE uses an SSL proxy service in a Layer 7 policy map to load balance outbound SSL initiation requests to SSL servers. The ACE acts as an SSL client sending an encrypted request to an SSL server. For more information about SSL initiation, see the Cisco Application Control Engine Module SSL Configuration Guide.
    To specify an SSL proxy service in a policy map, use the ssl-proxy command in policy map load-balancing class configuration mode. The syntax of this command is as follows:
    ssl-proxy client name
    The name argument is the identifier of an existing SSL proxy service. Enter an unquoted text string with no spaces and a maximum of 64 alphanumeric characters.
    For example, enter:
    host1/Admin(config-pmap-lb-c)# ssl-proxy client PROXY_SERVICE1
    To remove the SSL proxy service from the policy map, enter:
    host1/Admin(config-pmap-lb-c)# no ssl-proxy client PROXY_SERVICE1

  • Jms c api crashes when accessing jms queue senders from different threads

    Does anybody encountered similar problem or know how to solve the following problem?
              <p>
              The jms c api crashes if I created jms queue senders/producers from one threads and have another thread to send messages using the senders:
              <p>
              <b>JMSDEBUG:</b>
              <p>
              JMSDEBUG: An exception occurred at line 281 in file src/jniimpl/JmsUtilities.c
              <b>JMS Exception:</b>
              <pre>
              weblogic.jms.common.JMSException
              at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(Dispa
              tcherWrapperState.java:440)
              at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:382)
              at weblogic.jms.client.JMSProducer.send(JMSProducer.java:207)
              Caused by: <b>java.lang.NoClassDefFoundError
              </b> at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:30
              9)
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:25
              8)
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:25
              3)
              at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.
              java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
              bjectInputStream.java:96)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
              va:117)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
              at weblogic.jms.dispatcher.DispatcherImpl_813_WLStub.dispatchSyncTranFut
              ure(Unknown Source)
              at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(Dispa
              tcherWrapperState.java:406)
              ... 2 more
              </pre>
              <p>
              <b>the ULOG file:</b>
              <p>
              162722.tekton!?proc.16113.1.-2: 04-04-2005: WebLogic Server Version 9.0
              162722.tekton!?proc.16113.1.-2: NLS:4: Cannot open message catalog LIBJMSC_CAT, set 1, num 13; check NLSPATH, LANG=C
              <p>
              <b>NOTE:</b>
              The senders works fine if the same thread creates the senders and uses them to send messages.
              <p>
              <pre>
              Environemnt:
              OS:SunOS 5.7 Generic_106541-22 sun4u sparc SUNW,Ultra-250
              WL: 8.1.3
              C++: Forte 7
              <pre>

    It appears that the problem is caused by the following NPE:
              <pre>
              Caused by: java.lang.NullPointerException
              at weblogic.i18ntools.L10nLookup.loadProps(L10nLookup.java:88)
              at weblogic.i18ntools.L10nLookup.<init>(L10nLookup.java:160)
              at weblogic.i18ntools.L10nLookup.init(L10nLookup.java:132)
              at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:315)
              at weblogic.management.commo.internal.CommoCommandLineTextFormatter.<ini
              t>(CommoCommandLineTextFormatter.java:20)
              at weblogic.management.commo.Commo.<clinit>(Commo.java:89)
              ... 13 more
              </pre>

  • In .jar file how can I call API's of other .Jar file

    Hi all,
    I have created a "MyApplication.jar" file that dose not need any other .jar file Like xercesImpl.jar thne it is working fine.
    but If I make the .jar file of application that needs xercesImpl.jar API's
    of this .jar file then how I can call that xercesImpl.jar in my Application.jar newly created.
    please help me
    Thanks in advance.

    either add the other jar file to your classpath or do the following (taken from http://javaalmanac.com/egs/java.lang/LoadClass.html)
    e68. Loading a Class That Is Not on the Classpath
    A URLClassLoader can be used to load classes in any directory.
        // Create a File object on the root of the directory containing the class file
        File file = new File("c:\\myclasses\\");
        try {
            // Convert File to a URL
            URL url = file.toURL();          // file:/c:/myclasses/
            URL[] urls = new URL[]{url};
            // Create a new class loader with the directory
            ClassLoader cl = new URLClassLoader(urls);
            // Load in the class; MyClass.class should be located in
            // the directory file:/c:/myclasses/com/mycompany
            Class cls = cl.loadClass("com.mycompany.MyClass");
        } catch (MalformedURLException e) {
        } catch (ClassNotFoundException e) {
        }

  • AcroForm.api Crash

    Hi Everyone,
    Some of our end-users have reported sporatic crashes when editing forms. I was able to pull an application crash dump. Has anyone seen this?
    Environment Details
    Windows 7 SP1 x64
    Adobe Reader 11.0.3.37
    Dump Details
    FAULTING_IP:
    +8931
    4a4320da ??              ???
    EXCEPTION_RECORD:  ffffffff -- (.exr 0xffffffffffffffff)
    ExceptionAddress: 4a4320da
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
    NumberParameters: 2
       Parameter[0]: 00000008
       Parameter[1]: 4a4320da
    Attempt to execute non-executable address 4a4320da
    PROCESS_NAME:  AcroRd32.exe
    ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
    EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
    EXCEPTION_PARAMETER1:  00000008
    EXCEPTION_PARAMETER2:  4a4320da
    WRITE_ADDRESS:  4a4320da
    FOLLOWUP_IP:
    AcroForm!DllUnregisterServer+8931
    208efd70 0fb7c0          movzx   eax,ax
    FAILED_INSTRUCTION_ADDRESS:
    +8931
    4a4320da ??              ???
    DETOURED_IMAGE: 1
    MOD_LIST: <ANALYSIS/>
    NTGLOBALFLAG:  0
    APPLICATION_VERIFIER_FLAGS:  0
    FAULTING_THREAD:  00002018
    BUGCHECK_STR:  APPLICATION_FAULT_SOFTWARE_NX_FAULT_INVALID
    PRIMARY_PROBLEM_CLASS:  SOFTWARE_NX_FAULT_INVALID
    DEFAULT_BUCKET_ID:  SOFTWARE_NX_FAULT_INVALID
    LAST_CONTROL_TRANSFER:  from 208efd70 to 4a4320da
    STACK_TEXT: 
    WARNING: Frame IP not in any known module. Following frames may be wrong.
    003ef074 208efd70 087874c0 000001a7 000000aa 0x4a4320da
    003ef0cc 5fb82b57 087874c0 000001a7 000000aa AcroForm!DllUnregisterServer+0x8931
    003ef118 5f988aa8 08965fc8 087874c0 087874c0 AcroRd32_5f970000!CTJPEGDecoderRelease+0x43957
    003ef130 5faca7c8 080555c8 5fb82b0c 087874c0 AcroRd32_5f970000!AcroWinBrowserMain+0x1428d
    003ef17c 5faca5fb 087874c0 000001a7 000000aa AcroRd32_5f970000!DllCanUnloadNow+0x10ba8d
    003ef1d0 5faca360 087874c0 003ef1f8 000000ae AcroRd32_5f970000!DllCanUnloadNow+0x10b8c0
    003ef22c 5fac7e2b 000001ab 000000ae fe89097a AcroRd32_5f970000!DllCanUnloadNow+0x10b625
    003ef28c 5fadf909 000001ab 000000ae 003ef2bc AcroRd32_5f970000!DllCanUnloadNow+0x1090f0
    003ef29c 5f9c4680 00000000 00ae01ab 00000200 AcroRd32_5f970000!DllCanUnloadNow+0x120bce
    003ef2bc 5f9c430b 00000200 00000000 00ae01ab AcroRd32_5f970000!DllCanUnloadNow+0x5945
    003ef2d8 74d362fa 00080d7a 00000200 00000000 AcroRd32_5f970000!DllCanUnloadNow+0x55d0
    003ef304 74d36d3a 5f9c426e 00080d7a 00000200 user32!InternalCallWinProc+0x23
    003ef37c 74d377c4 0113367c 5f9c426e 00080d7a user32!UserCallWinProcCheckWow+0x109
    003ef3dc 74d3788a 5f9c426e 00000000 003ef61c user32!DispatchMessageWorker+0x3bc
    003ef3ec 013350ff 003ef640 00000000 00000000 user32!DispatchMessageW+0xf
    003ef61c 5fa09284 003ef640 fe890d66 00000000 QIPCAP+0x150ff
    003ef690 5fa0909b fe890d3e 00000000 0404dd68 AcroRd32_5f970000!DllCanUnloadNow+0x4a549
    003ef6c8 5f974695 fe890cb2 01360000 003efa04 AcroRd32_5f970000!DllCanUnloadNow+0x4a360
    003ef744 5f97410f 5f970000 01360000 01b71d30 AcroRd32_5f970000!AcroWinMainSandbox+0x5c2
    003ef764 0136d3a7 5f970000 01360000 01b71d30 AcroRd32_5f970000!AcroWinMainSandbox+0x3c
    003ef99c 013658d5 01360000 01b71d30 0000000a AcroRd32+0xd3a7
    003efa54 014267a7 01360000 00000000 010f22a2 AcroRd32+0x58d5
    003efae4 74ab336a fffde000 003efb30 77399f72 AcroRd32+0xc67a7
    003efaf0 77399f72 fffde000 7337c11f 00000000 kernel32!BaseThreadInitThunk+0xe
    003efb30 77399f45 01361039 fffde000 ffffffff ntdll!__RtlUserThreadStart+0x70
    003efb48 00000000 01361039 fffde000 00000000 ntdll!_RtlUserThreadStart+0x1b
    SYMBOL_STACK_INDEX:  1
    SYMBOL_NAME:  acroform!DllUnregisterServer+8931
    FOLLOWUP_NAME:  MachineOwner
    MODULE_NAME: AcroForm
    IMAGE_NAME:  AcroForm.api
    DEBUG_FLR_IMAGE_TIMESTAMP:  518e176b
    STACK_COMMAND:  dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ~0s; .ecxr ; kb
    FAILURE_BUCKET_ID:  SOFTWARE_NX_FAULT_INVALID_c0000005_AcroForm.api!DllUnregisterServer
    BUCKET_ID:  APPLICATION_FAULT_SOFTWARE_NX_FAULT_INVALID_DETOURED_BAD_IP_acroform!DllUnregisterServer+ 8931
    WATSON_STAGEONE_URL:  http://watson.microsoft.com/StageOne/AcroRd32_exe/11_0_3_37/518e18e3/unknown/0_0_0_0/bbbbb bb4/c0000005/4a4320da.htm?Retriage=1
    Followup: MachineOwner
    0:000> lmvm AcroForm
    start    end        module name
    20740000 213ed000   AcroForm C (export symbols)       AcroForm.api
        Loaded symbol image file: AcroForm.api
        Image path: C:\Program Files (x86)\Adobe\Reader 11.0\Reader\plug_ins\AcroForm.api
        Image name: AcroForm.api
        Timestamp:        Sat May 11 03:03:23 2013 (518E176B)
        CheckSum:         00000000
        ImageSize:        00CAD000
        File version:     11.0.3.37
        Product version:  11.0.3.37
        File flags:       0 (Mask 3F)
        File OS:          4 Unknown Win32
        File type:        2.0 Dll
        File date:        00000000.00000000
        Translations:     0409.04b0
        CompanyName:      Adobe Systems Incorporated
        ProductName:      Adobe Acrobat Forms
        InternalName:     AcroForm
        OriginalFilename: AcroForm.api
        ProductVersion:   11.0.03.37
        FileVersion:      11.0.03.37
        FileDescription:  Adobe Acrobat Forms Plug-In
        LegalCopyright:   Copyright 1984-2012 Adobe Systems Incorporated and its licensors. All rights reserved.
        LegalTrademarks:  Adobe, Acrobat and the Acrobat logo are trademarks of Adobe Systems Incorporated which may be registered in certain jurisdictions.
        Comments:         The Acrobat Forms plug-in allows users to create dynamic electronic forms for fill-in and transmittal.

    Hello,
    We're seeing this same issue in our environment was well. We have multiple users that have Acrobat Pro installed on their Windows 7 x64 workstations. The software crashes when copying and pasting data from one PDF, to the forms fields on another PDF.
    The crash dumps are here: https://www.dropbox.com/sh/bwoc10yvsm0217p/AAB21pAkTbiJ9HCPHDCbNCQHa
    I have contact Adobe support via phone multiple times and they have not at all been helpful. Considering are a volume license customer with nearly 1500 instances of Acrobat Pro installed, I'd like to get some sort of assistance on this issue sooner, rather than later. Additional crash dumps and environment information can be provided, if needed.
    Regards,
    Stephen

  • Calling API in PLSQL

    Hi all,
    I need to call existing API from pl/sql.
    And i also need to know how can i create my own API.
    My backend is oracle.
    If u have any idea pls reply to [email protected]
    Thanks in advance.
    Sujatha

    The & prefix is a client tool (SQL*Plus) feature for defining substitution variables - i.e. the client substitutes the contents of that variable prior to submitting that block of text (SQL statement or anonymous PL/SQL block) to the server. Other tools, like TOAD, emulates the features of SQL*Plus, such as substitution variables.
    It is not a server-side feature. The only variables in SQL are bind variables - and these are well documented.
    Make sure you get to grips with what is a client feature, what is a server feature, and where the boundary is between client and server. PL/SQL is not a client side language. Does not have access to client devices and peripherals. It cannot "prompt" for user supplied values - and no DBMS_OUTPUT does not print/write lines of text either.

  • F-Bus v4.1 VB6 API crash on opensession

    I have an application that uses the Visual Basic (VB6) API to F-BUS.
    When the install pack for v4.1 is installed the application crashes on open session.
    I have tried the VB example project that is included in v4.1 pack and this does the same, clicking on open produces the Microsoft crash report.
    Using the v4.0 pack, this operation works ok.
    is it possible that the nifbstd.dll v4.1 has an error inside, or has broken compatibility with previous version? Perhaps that the API has changed and this is not yet updated in the documentation?
    Any one else with the same issue?

    Hi,
    Let me clarify several things with you.
    1. for ver 4.1, did you use the existed eample under folder of C:\Program Files\National Instruments\NI-FBUS\MS Visual Basic\example?
    2. for ver 4.0, the same questions: C:\Program Files\National Instruments\NI-FBUS\MS Visual Basic\example?
    3. What kind of error message do you get?
    I will try to reproduce your problem and see what I could find. Thanks.
    Chris

  • Adober Reader 9.0: annots.api Crashes

    I tried deploying Adobe Reader 9.0 to several campus computer labs I manage. I am using roaming user profiles, but I don't have AppData redirected - it stays on the local hard drive.
    I discovered that while Reader 9 works OK for Administrators, it crashes at startup for people with just regular "User"-level privileges. This problem goes away if I remove the annots.api plugin file. Has anybody else seen this issue? I've gone back to Reader 8.1.2 in the meantime.
    Thanks for your help.

    Hi luca,
    I have problem whit ALD
    I have version 7.1      
    after I made the upgrade to adobe Acrobat to 9 version  LiveCycle dump increasingly.
    message error:
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          15.05.2009 10:32:57
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).

  • Called form crashes, when called with default option

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

  • Calling API mtl_online_transaction_pub.process_online from Trigger

    Hello Gurus,
    I'm inserting rows into mtl_transaction_interface table and calling mtl_online_transaction_pub.process_online to process it from a TRIGGER on mtl_material_transactions table.
    But it doesn't process the data and errors with process_flag 3.
    If I comment the call to mtl_online_transaction_pub.process_online and just insert into interface table and then call mtl_online_transaction_pub.process_online from independent PLSQL block it works fine.
    Can someone suggest a solution for the problem, I think the issue is in the design.
    Thanks
    Manu

    Hi,
    I hope you are using an 'after insert' trigger on mtl_transactions_interface.
    Ensure that the MTI record is populated with transaction_header_id with transaction_mode = 1 (Online), process_flag = 1 and lock_flag = 2.
    Call the txn processor with transaction_header_id, and it should work.
    If transaction_mode is 2 (immediate) or 3 (Background) then the MTI record must be commited in database; calling txn processor from trigger cannot see the record as it is not committed.
    If it doesn't work, then you will have to retrieve errors from the return message to understand the problem in detail.
    I would strongly recommend not to use trigger for such processing.
    I believe, you have a custom package/procedure from which you are inserting data into MTI.
    once the insert is done, then you can call the same API from custom code.
    Also check how exactly is MTI is getting inserted, is apps context set correctly (either by means of concurrent program, or by explicitly calling fnd_global.apps_initialize(..) )
    If it still doesnt work, enable Inventory Debug by setting up profiles INV%DEBUG%, and see the log messages. (e.g. set the log file as /usr/tmp/mti.log )
    Hope it helps,

  • Calling API from Microsoft exchange on new user add

    Whenever a new user is added on exchange I need to make an API call.
    These users are to be also added on a custom application server which can accept a simple REST call

    Hello,
    You can consider EWS:
    http://msdn.microsoft.com/en-us/library/office/gg274403(v=exchg.80).aspx
    Thanks,
    Simon Wu
    TechNet Community Support

Maybe you are looking for

  • Photoshop elements 11 trial ? cant get anything but the assistant to download

    may have to try a different brand ? the main thing i need is to see if i can do the types of fonts i want , 3d and  stuff like that on my phots that i make into posters  . am i wasting my time with  this ? according to the photoshop cs6  , my windows

  • Can't decrypt with JCE

    Hi all, I've written a very simple encrypter/decrypter using JCE and the sun provider. It seems to encrypt fine, but it doesn't decrypt at all. The code is below: import java.io.*; import java.net.*; import java.security.spec.*; import javax.crypto.*

  • Issue with EWS Java 1.2 license ambiguity

    If this isn't the proper place for this thread, then please let me know where it should go. I noticed that EWS Java 1.2 has been marked with an Apache 2.0 license. Let me just say this... FINALLY! If ever there was a project that needed it, it's EWS

  • Updating a Page

    I have a quick question. I am planning on making a personal page, but I've heard that once you publish a page with iWeb, you can't make updates. Is this true?

  • Sound following timeline

    How do I make the sound track stop playing when the SKIP INTRO button is klicked. Did this long ago in Flash MX but cant remember how it was done. Thankfull for any help /FINN