questionable behavior of the API SQLErrorEvent.ERROR

I get an error when I SELECT a value that is not present in the database (planned). But it is not to be taken by the errorHandler function.

I would like to note that my selectStmt (function readFromDatabase()) is identical to the one on Adobe livedocs, so I am confident that the code is correct.

Let's say, for simplicity, that my database table has authors.fName and authors.lName columns.

If I get a letter in my txtIn.text (which is copied to a string variable which is part of the SELECT statement) and the SELECT function cannot find an exact match in the table, I'm getting a TypeError: Error #1009. I understand why. But the SQLErrorEvent.Error isn't the event capture.

Apparently, does not find a value in the table is not a SQLErrorEvent?

What is the value of the present: var numResults:int = result.data.length; If there is no data? Null value? Followed by a null value does not seem to work.

The errorHandler works very well if the application fails to establish a connection. Just not if she is unable to find the data.

I can't use the code to handle this exception because I can't capture it.

And another question; and it really gets my goat...

Why are there no tutorials... Anywhere... on how to handle errors? Tons of tutorials on how to connect to a database, instructions select, seizure data, etc, etc, etc. But NOTHING about the error handling?

Here is my code:

import flash.data.SQLConnection;

import flash.data.SQLMode;

import flash.data.SQLResult;

import flash.events.SQLEvent;

import flash.filesystem.File;

Import fl.data.DataProvider;

Import fl.controls.List;

import flash.events.KeyboardEvent;

import flash.events.Event;

import flash.events.MouseEvent;

import flash.net.URLRequest;

import flash.display.Loader;

import flash.display.NativeWindow;

import flash.system.Capabilities;

import flash.text.TextField;

import flash.errors.SQLError;

import flash.events.SQLErrorEvent;

var appWindow:NativeWindow = this.stage.nativeWindow;

appWindow.x = (Capabilities.screenResolutionX - appWindow.width) / 2;

appWindow.y = (Capabilities.screenResolutionY - appWindow.height) / 2;

var conn: SQLConnection = new SqlConnection ();

conn.addEventListener (SQLEvent.OPEN, readFromDatabase);

conn.addEventListener (SQLErrorEvent.ERROR, errorHandler);

var dbFile:File = File.desktopDirectory.resolvePath ("bookLibrary.db");

conn.openAsync (dbFile, SQLMode.UPDATE);

txtIn.addEventListener (Event.CHANGE, changeHandler);

var txtIn:TextField;

txtIn.stage.focus = txtIn;

var txtOut:String = "a";

function readFromDatabase(event:Event):void

{

var selectStmt:SQLStatement = new SQLStatement();

selectStmt.sqlConnection = conn;

register listeners for the result and failure (status) events

selectStmt.addEventListener (SQLEvent.RESULT, readResultHandler);

selectStmt.addEventListener (SQLErrorEvent.ERROR, errorHandler);

set the SQL text.

selectStmt.text = "SELECT * FROM authors WHERE lName LIKE '" + txtOut + "%'";

Execute the statement

selectStmt.execute ();

}

function readResultHandler(event:SQLEvent):void

{

var result: SQLResult = event.target.getResult ();

var numResults:int = result.data.length;

get blocks on var numResults:int = result.data.length, because it contains no records.

for (var i: int = 0; i < numResults; i ++)

{

Object: var line = result.data [i];

var dataOut:String;

dataOut = row.lName + ', ' + row.fName;

myList.addItem({label:dataOut});)

addChild (myList);

authorName.text = row.lName;

}

}

function changeHandler(e:Event):void

{

If (0 < txtIn.text.length)

{

myList.removeAll ();

txtOut = txtIn.text;

readFromDatabase (e);

}

on the other

{

myList.removeAll ();

}

}

function errorHandler(event:SQLErrorEvent):void

{

trace ("error message:", event.error.message);

trace ("details:", event.error.details);

}

Response

Hi Kristin,

This is normal behavior for a select statement to return 0 rows of data.  This isn't a SQL error, that is why there is no SQLError to catch.

If you take a look at the documentation for the SQLResult.data property

The last line of the docs States:

This property is null if a statement returns no data. This is the case if the statement is not a SELECT statement, or if it is a SELECT statement that returns 0 rows.

Thus, in order to validate if data has been returned before trying to access real data, you should just check if .data is null.

in your code:

var result:SQLResult = event.target.getResult();
var numResults:int = result.data.length;

//crashes on var numResults:int = result.data.length since it contains no record.

You might want to change to be something like:

var result:SQLResult = event.target.getResult();
var numResults:int;
if (result.data != null)
{
    numResults = result.data.length;
}
else
{
    numResults = 0;
}
Thank you
Chris

Tags: Adobe AIR

Similar Questions

  • the API call error: error: the user has sufficient privileges to perform this API call.

    Hello

    I'm exploring cloudClient 3.4.1 but I'm trying to run a "vra catalog list" command or other similar commands I get the error "error: the user has sufficient privileges to perform this API call."

    I don't know what are the permissions of system requirements before I can make the API call because the account which I use to make these calls already have privileges to Administrator local on box of IAAS & is admin Admin/tenant IAAS. In short, the user is a full administrator of the tool.

    Please help me because I found there is a documentation for the usability of the cloudclient.

    Thank you

    MG

    Is the account of your help to make the law of all items in the catalog API call? We have users from the normal group of activities that use the API does not have system or administrator access.

  • behavior of the api VMware SAN and NFS

    While working on the vmware api Reconfigure_task fact face a problem. A single montage, in the same scenario, he started the exception as

    incompatiable backup device 1 in the case of NFS, but in the case of SAN, it is throwing exception as a Configuration not valid for the '1' device.

    My question here is that if vmware SDK behaves differently in the case of SAN and NFS for the same api?

    Is there any document coming from where we can get more information on the different behavior and how to approach us differently through the c# application?

    Basically, the answer is no. VimSdk acts not differently for NFS for SAN.

    Of course, ReconfigureVM_Task can have constraints special som according to the storage used.

    Tos2k

  • Signature errors and "...". attempt to access the API blocked"error

    We have a Smart Phone WebWorks very simple application that opens an external URL to start. The app works when it is deployed to a device using the JavaLoader to install cod from the directory StandardInstall, but it does not run when installed using a JAD file from the directory OTAInstall (using JavaLoader or downloaded with the browser).

    Error message displayed at startup is: "error starting d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d: Module 'd6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d' trying to access a secure API."

    Inspect the event log shows two errors of apparent signature:

    time GUID:0x97C9F5F641D25E5F: 15:38 Friday, may 25, 2012 severity: 0 type: 2 appystem data: CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d (5376) No sig 0 x 545252

    ....

    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:03 2012 severity: 0 type: 2 appystem data: CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d (5376) No sig 0 x 414252

    Other posts on this forum indicate that the error is due to missing signatures. We have installed three signatures using signature tool:

    customer-RBB - xxxxxxxxxx.csi

    customer-CPR - xxxxxxxxxx.csi

    customer-RRT - xxxxxxxxxx.csi

    The installation is confirmed by running the signature on each of these files, tool that displays the message: "Signature tool has already been registered with this signatory. If you try to record with the same signature twice, you will overwrite the previous record":"

    The application is built using bbwp then signed with signature tool with the recursion on the output directory, for example:

    C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.exe -jar c:\Program Files\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bin\SignatureTool.jar -a -c -C -p ... -r c:\temp\_546ade8eae214e950293e490c8eda702/output/d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
    

    No errors are reported bbwp or signature tool. Running signature tool on each of the files in the Directory displays OTAInstall COD an empty window, by clicking on the query button displays a message: "no signature not required".

    Our web server is configured with the necessary mime types for COD and JAD files.

    All this seems to indicate that the necessary signatures are installed, the COD files are signed, but somehow the signatures are currently not recognized when the application is deployed on the handset.

    We use Java JDK 1.6 on Windows 7 (32 bit). The device that we test this on is a BlackBerry Curve 8520 with OS 5.0 Bundle 1096 (v5.0.0.592, platform 5.2.0.64).

    Here are copies of the file config.xml, index.html, event log.

    Config.XML:


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "2.0".
    RM:header = "" Widget-RIM: RIM/widget ">"

    http://www.d6technology.com' rim: copyright 'Copyright D6 technology' = > D6 technology

    The King Edward VII School

    The King Edward VII School

    <>ermissions >
    <>Ermit > access_sharedermit >
    ermissions >

    subdomains of http://d6communicator.com"="true"/ >

    Index.html:






    loading...



    Event log:

    time GUID:0x97C9F5F641D25E5F: 02:00 Thu Jan 01 1970 severity: 0 type: 2 appystem data: JVM:INFOp = 293e80a8, a = '5.0.0.592', '5.2.0.64' = o, h = 8c000f03
    time GUID:0x7D52B2987EC80054: Fri may 25 15:37:47 2012 severity: 0 type: 2 app: net .rim .fd data: FDOf
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:47 2012 severity: 0 type: 2 app: net .browser data .rim: WPTCP - S TCP - js, ss, bg, em, WiFi:bb,http://live.vodafone.com/
    time GUID:0x316C1626A9DDC375: Fri may 25 15:37:47 2012 severity: 0 type: 2 app: net .rim .tcp datapen
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:47 2012 severity: 0 type: 2 app: net .rim .tunnel datapen - MagicRudyAPN.rim
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:47 2012 severity: 0 type: 2 app: net .rim .tunnel dataTac - MagicRudyAPN.rim
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .browser data: loading time: 1641
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .browser data .rim: Brtd 1742 828
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .tunnel data: closed - MagicRudyAPN.rim
    time GUID:0x316C1626A9DDC375: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .tcp data: closed
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .browser data .rim: WPTCP - S TCP - js, ss, bg, em, WiFi:bb,http://www.vodafone.com/
    time GUID:0x316C1626A9DDC375: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .tcp datapen
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .tunnel datapen - MagicRudyAPN.rim
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .tunnel dataTac - MagicRudyAPN.rim
    time GUID:0xB247BA8FCCE09BFE: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .udp datapen
    time GUID:0x109F36E312864507: Fri may 25 15:37:48 2012 severity: 0 type: 2 app: net .rim .dns datansQ 1
    time GUID:0x109F36E312864507: Fri may 25 15:37:49 2012 severity: 0 type: 2 app: net .rim .dns datansR 1
    time GUID:0x109F36E312864507: Fri may 25 15:37:49 2012 severity: 0 type: 2 app: net .rim .dns data: RetQ
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:49 2012 severity: 0 type: 2 app: net .rim .tunnel data: closed - MagicRudyAPN.rim
    time GUID:0xB247BA8FCCE09BFE: Fri may 25 15:37:49 2012 severity: 0 type: 2 app: net .rim .udp data: closed
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:50 2012 severity: 0 type: 2 app: net .rim .browser data: loading time: 1570
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:50 2012 severity: 0 type: 2 app: net .browser data .rim: Brtd 1617 896
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:50 2012 severity: 0 type: 2 app: net .browser data .rim: WPTCP - S TCP - js, ss, bg, em, WiFi:bb,http://www.vodafone.com/ppc.html
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .rim .browser data: loading time: 648
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .browser data .rim: WPTCP - S TCP - js, ss, bg, em, WiFi:bb,http://192.168.1.144/cic/download/102//blackberry/OTAInstall/d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d...
    time GUID:0x316C1626A9DDC375: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .rim .tcp datapen
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .rim .tunnel datapen - MagicRudyAPN.rim
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .rim .tunnel dataTac - MagicRudyAPN.rim
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .rim .browser data: loading time: 445
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .browser data .rim: AfDB
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:51 2012 severity: 0 type: 2 app: net .browser data .rim: Brtd 508 381
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:37:53 2012 severity: 0 type: 2 app: net .browser data .rim: Brtd 69635 3234
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:37:53 2012 severity: 0 type: 2 app: net .rim .tunnel data: closed - MagicRudyAPN.rim
    time GUID:0x316C1626A9DDC375: Fri may 25 15:37:53 2012 severity: 0 type: 2 app: net .rim .tcp data: closed
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:55 2012 severity: 0 type: 2 appystem data: CMM: Add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d (5376)
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:55 2012 severity: 0 type: 2 appystem data: CMM: Add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-1 (5384)
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:55 2012 severity: 0 type: 2 appystem data: CMM: Add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-2 (5412)
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:55 2012 severity: 0 type: 2 appystem data: CMM: Add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-3 (5416)
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:55 2012 severity: 0 type: 2 appystem data: CMM: Add d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d-4 (5477)
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:56 2012 severity: 0 type: 2 appystem data: VM: + RR! net_rim_bb_browser_daemon RX = 21.8 M, RF = 26.8 M, FF = 152.9 M, OF = 489 K, OS 9.4 M =, = 126.9 K, OR = 0, EN = 1 K, TR = 3.7 K, RR = 0, IS = 19 K RA = 12.4 M, RS = 9.4 M, RN = 66.9 K TA = 1. 5 m, TS = 0, TN is 17.5 K PA = 0, PS = 0, PN = 7 K R0 is 55.2 M 1 = 800.2 K, 2 = 20 K, 3 = 86.6 K, 4 = 1 M, 7 = 277.9 K, 8 = 6 K, 9 is 10.3, 10 = 16.4 K, 11 = 51.5 K, 12 K, 13 270,2 is is 19.1 K, 15 = 371 K, 20 = 3.9 K, 21 = 524, 22 is 62.8 K, 23-is 72.2 K 24 is 16.5 K
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:56 2012 severity: 0 type: 2 appystem data: VM:-RRnet_rim_bb_browser_daemon RX = 21.8 M, RF = 27.2 M, FF = 152.6 M, OF 489 K, OS = 9 M =, = 126.9 K OR = 0, EN = 1 K, TR = 3.7 K, RR = 0, IS = 19 K RA = 12 M, RS = 9 M, RN = 65.3 K TA = 1. 8 m, TS = 0, TN is 19.1 K PA = 0, PS = 0, PN = 7 K R0 = 55.2 M, 1 is 800.2 K, 2 = 20 K, 3 = 86.6 K, 4 = 1 M, 7 = 277.9 K, 8 = 6 K, 9 = 10 M, 10 = 16.4 K, 11 is 51.5 K, 12 K, 13 270,2 is is 19.1 K, 15 = 371 K, 20 = 3.9 K, 21 = 524, 22 is 62.8 K, 23-is 72.2 K 24 is 16.5 K
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:37:56 2012 severity: 0 type: 2 appystem data: CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d (5376) No sig 0 x 33
    time GUID:0x97C9F5F641D25E5F: 15:38 Friday, may 25, 2012 severity: 0 type: 2 appystem data: VM:LINK d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
    time GUID:0x97C9F5F641D25E5F: 15:38 Friday, may 25, 2012 severity: 0 type: 2 appystem data: CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d (5376) No sig 0 x 545252
    time GUID:0x97C9F5F641D25E5F: 15:38 Friday, may 25, 2012 severity: 0 type: 2 appystem: 5376 data module cannot refer to net.rim.device.api.system.RuntimeStore
    time GUID:0x97C9F5F641D25E5F: 15:38 Friday, may 25, 2012 severity: 0 type: 2 appystem data: Module "d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d" trying to access a secure API.
    time GUID:0x97C9F5F641D25E5F: 15:38 Friday, may 25, 2012 severity: 0 type: 2 appdata error: Linker ystem: "VerifyError" for d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:02 2012 severity: 0 type: 2 appystem data: CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d (5376) No sig 0 x 33
    time GUID:0xED7944AEBD0C4AE2: Fri may 25 15:38:02 2012 severity: 2 type: 2 App: application of data-control: IvHS
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:38:02 2012 severity: 0 type: 2 app: net .browser data .rim: JAD 900
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:03 2012 severity: 0 type: 2 appystem data: CMM: d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d (5376) No sig 0 x 414252
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:38:03 2012 severity: 0 type: 2 app: net .browser data .rim: WPTCP - S TCP - js, ss, bg, em, WiFi:bb,http://live.vodafone.com/
    time GUID:0x316C1626A9DDC375: Fri may 25 15:38:04 2012 severity: 0 type: 2 app: net .rim .tcp datapen
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:38:04 2012 severity: 0 type: 2 app: net .rim .tunnel datapen - MagicRudyAPN.rim
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:38:04 2012 severity: 0 type: 2 app: net .rim .tunnel dataTac - MagicRudyAPN.rim
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .rim .browser data: loading time: 2836
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .browser data .rim: Brtd 2875 828
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .rim .tunnel data: closed - MagicRudyAPN.rim
    time GUID:0x316C1626A9DDC375: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .rim .tcp data: closed
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .browser data .rim: WPTCP - S TCP - js, ss, bg, em, WiFi:bb,http://www.vodafone.com/
    time GUID:0x316C1626A9DDC375: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .rim .tcp datapen
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .rim .tunnel datapen - MagicRudyAPN.rim
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:38:06 2012 severity: 0 type: 2 app: net .rim .tunnel dataTac - MagicRudyAPN.rim
    time GUID:0x7D52B2987EC80054: Fri may 25 15:38:07 2012 severity: 0 type: 2 app: net .rim .fd data: FDOn 0
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:38:07 2012 severity: 0 type: 2 app: net .rim .tunnel data: closed - MagicRudyAPN.rim
    time GUID:0x316C1626A9DDC375: Fri may 25 15:38:07 2012 severity: 0 type: 2 app: net .rim .tcp data: closed
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:38:07 2012 severity: 0 type: 2 app: net .rim .browser data: loading time: 453
    time GUID:0xDCC3165DB06A81D6: Fri may 25 15:38:07 2012 severity: 0 type: 2 app: net .rim .wlan .cm data: CMIC
    time GUID:0x1A77581FBCC4EC23: Fri may 25 15:38:08 2012 severity: 0 type: 2 app: net .browser data .rim: Brtd 1399 898
    time GUID:0x3B91E1630F0745BC: Fri may 25 15:38:08 2012 severity: 0 type: 2 app: net .rim .tunnel data: closed - MagicRudyAPN.rim
    time GUID:0x316C1626A9DDC375: Fri may 25 15:38:08 2012 severity: 0 type: 2 app: net .rim .tcp data: closed
    time GUID:0xED7944AEBD0C4AE2: Fri may 25 15:38:14 2012 severity: 2 type: 2 App: application control data: IvHG
    time GUID:0xED7944AEBD0C4AE2: Fri may 25 15:38:14 2012 severity: 2 type: 2 App: application control data: IvHG
    time GUID:0xED7944AEBD0C4AE2: Fri may 25 15:38:14 2012 severity: 2 type: 2 App: application control data: IvHG
    time GUID:0xED7944AEBD0C4AE2: Fri may 25 15:38:14 2012 severity: 2 type: 2 App: application control data: IvHG
    time GUID:0xED7944AEBD0C4AE2: Fri may 25 15:38:14 2012 severity: 2 type: 2 App: application control data: IvHG
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:14 2012 severity: 0 type: 2 appystem data: VM:LINK d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:14 2012 severity: 0 type: 2 appystem: 5376 data module cannot refer to net.rim.device.api.system.RuntimeStore
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:14 2012 severity: 0 type: 2 appystem data: Module "d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d" trying to access a secure API.
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:14 2012 severity: 0 type: 2 appdata error: Linker ystem: "VerifyError" for d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:14 2012 severity: 0 type: 2 appystem: data from d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d error: Module "d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d" trying to access a secure API.
    time GUID:0x9C3CD62E3320B498: Fri may 25 15:38:14 2012 severity: 1 type: 3 app:Java data exception:
    RuntimeException
    Error starting d6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d: Module 'd6x102xdc6ff029cb2aedf9ecc1cc45a5fb474d' trying to access a secure API.
    net_rim_bb_framework_api-1 (4BCA1C67)
    ApplicationEntryPoint
    run
    0x147F
    net_rim_bb_ribbon_app-3 (4BCA1F39)
    ApplicationEntry
    invoke
    0x4D8
    net_rim_bb_ribbon_app-1 (4BCA1F39)
    RibbonLauncherImpl

    0x5E6D
    net_rim_bb_ribbon_app-1 (4BCA1F39)
    RibbonLauncherImpl
    launch
    0x3AA4
    net_rim_bb_ribbon_app (4BCA1F39)
    ApplicationMenu
    trackwheelClick
    0xA78
    net_rim_bb_ribbon_app (4BCA1F39)
    ApplicationMenu
    navigationClick
    0xA98
    net_rim_cldc-12 (4BCA1C15)
    Screen
    dispatchNavigationEvent
    0x71D6
    net_rim_cldc-13 (4BCA1C15)
    UiEngineImpl
    processMessage
    0x743B
    net_rim_cldc-8 (4BCA1C15)
    Application

    0x29CF
    net_rim_cldc-8 (4BCA1C15)
    Application
    processNextMessage
    0x1AE3
    net_rim_cldc-8 (4BCA1C15)
    Application
    enterEventDispatcher
    0x1A20
    net_rim_bb_ribbon_app-1 (4BCA1F39)
    RibbonLauncherApp
    main
    0 x 3202
    time GUID:0x97C9F5F641D25E5F: Fri may 25 15:38:18 2012 severity: 0 type: 2 appystem data: JVM:INFOp = 293e80a8, a = '5.0.0.592', '5.2.0.64' = o, h = 8c000f03

    I apologize for the response to my own post, but I think I have found the cause of the problem.

    The indicator has been in the error log:

    Error starting d6x80x5eb0f0ad298dd67a21dc74be0323b592: Module ' d6x80x5eb0f0ad298dd67a21dc74be0323b592-1' attempts to access a secure API. "

    It seems that each .cod file requires corresponding .cso and .csl file. The OTAInstall directory contains several, numbered in the order the .cod files. Each of these files requires a pair of .cso and .csl files with the same name as the file .cod.


    For example, for an application with the "app", the OTAInstall directory name can contain several .cod files, that is to say:

    App.COD, 1.cod - app, app - 2.cod, up to n.cod - app. The same directory should contain app.csl, app - 1.cso, 1.csl - app, app - 2.cso, app.cso, app - 2.csl, up to n.cso - app, app - n.csl.

    This seems to be undocumented behaviour in bbwp.

    Did someone in the community able to answer why bbwp does not create these files? Is there a documentation which can confirm this obligation? Is there another method prescribed to create applications that mitigates these problems?

  • Using a GUI API I got on the blackberry site - error: "tried of BlackBerry to access the api secure."

    Hello
    This is so the API, I downloaded and imported into my project->
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    When I run it, I get "Error trying to access the api Module secure"

    It says its taken in charge for OS 4.2 and I think, so execute me on my blackberry 9900 OS 5 should work,
    I've been on these forums before and after the solutions, I ordered the signature of the key codes and signed the project as well.

    This is what appears in the signature box, just code until I run it:

    It compiles without error, but it still does not work.
    What I'm doing wrong exactly? Any help would be appreciated!
    Khalique - Amina

    Hey everybody,
    Anyone else who has this problem with these particular CBC of the advanced downloadable user interface files.
    Make sure the following is in place.

    Your JRE version is important.
    If you test on a device that is older than 7.1

    Change your JRE in a right click on the JRE and selecting the right JRE for your device. [some of you may need to download the right JRE].
    I installed the plugin for eclipse blackberry, so he automatically gave me all the available JRE. I just had to change.
    After that I changed it, I have not the reddest comments when I signed the code.
    AND
    It worked fine, no error message popping up for ' api access blocked attempts to.
    If anyone has questions and is the same problem. Please ask. I've spent hours on it, and I'd be happy to help you if I've been unclear!
    Take care!

  • Questions by pulling on the Contact of the API fields in bulk

    I am putting together a code to export data in bulk using Node.js and I run questions where the call/contact/fields is not valid JSON return.  It seems to occur only when the pageSize gets too high.  It returns the extra spaces or new lines in the JSON that breaks the JSON.parse () function.

    The only way I found to work around the problem is to make the size of page 10 or less.  It seems that something bigger and I get a JSON parse error.  Here is the code I am using

    function getAllEloquaFields(callback) {
      var https = require('https');
      var config = require('./config'); // This just sets the https options and builds the auth header
    
    
      config.options.host = 'secure.eloqua.com';
      config.options.path = '/API/Bulk/1.0/contact/fields?page=100&pageSize=20';
      config.options.port = '443';
      config.options.method = 'GET';
    
      function final() { callback(results); }
    
      var page_size = 10;
      var results = [];
      function repeat(page,page_size) {
        config.options.path = url_obj.pathname + 'contact/fields?page='+page+'&pageSize='+page_size;
    
        var reqGet = https.request(config.options, function(res) {
    
          res.on('data', function(d) {
            var json;
            try {
              json = JSON.parse(d);
              if(json.elements.length > 0) {
                results = results.concat(json.elements);
                repeat(page+1,page_size);
              } else {
                final();
              }
            } catch(e) {
              console.log('There was an error: ' + e);
            }
          });
        });
        reqGet.end();
        reqGet.on('error', function(e) {
          console.error(e);
        });
      }
      repeat(1,page_size);
    };
    
    getAllEloquaFields(url_obj,function(elements) {
      console.log(elements);
    });
    
    

    And here is the article from json which seems to have the problem:

    {
          " createdAt": "/Date(-2208970800000)/", //<---- the extra space is messing things up
          "dataType": "string",
          "hasNotNullConstraint": false,
          "hasReadOnlyConstraint": false,
          "hasUniquenessConstraint": false,
          "internalName": "C_SFDCLeadID",
          "name": "SFDC LeadID",
          "statement": "{{Contact.Field(C_SFDCLeadID)}}",
          "updatedAt": "/Date(1270576350780)/",
          "updatedBy": "Some.One",
          "uri": "/contact/field/100024"
    },
    
    

    Anyone else see this issue?

    Thank you

    Russ

    In fact, I solved the problem.  It wasn't the API, I'm new on Node.js and was not manipulate the response correctly.  I was only pulling in one "piece" of data, instead of the complete answer.  The following code is correct.

    Thank you

    Russ

    getAllEloquaFields(url_obj, callback) {
      var https = require('https');
      var config = require('./config');
      config.options.host = 'secure.eloqua.com';
      config.options.port = '443';
      config.options.method = 'GET';
    
      function final() {
       callback(results);
      }
    
      var page_size = 100;
      var results = [];
      function repeat(page,page_size) {
        config.options.path = '/API/Bulk/1.0/contact/fields?page='+page+'&pageSize='+page_size;
    
        var reqGet = https.request(config.options, function(res) {
          var all_data = '';
    
          res.on('data', function(d) {
            var json;
            try {
              all_data += d.toString();
            } catch(e) {
              console.log('There was an error: ' + e);
            }
          });
    
          res.on('end', function() {
           //all the data has been sent
           var json = JSON.parse(all_data);
           if(json.elements.length == 0) {
             final();
           } else {
             results = results.concat(json.elements);
             repeat(page+1,page_size);
           }
          });
        });
        reqGet.end();
        reqGet.on('error', function(e) {
        console.error(e);
        });
      }
      repeat(1,page_size);
    };
    
  • the API system configuration error 1097 and freezes

    I used successfully the API system configuration to detect and read information on a PXI chassis.

    But now, when I try to initialize and collated all information using a simple VI, the system returns error 1097 and crashes before the end of the VI.  Based on that the stop button does not work and I have to either soft or hard reboot the machine.

    I have attached a screenshot of it in a frozen state and error, like a report of what is installed on my system.

    The only thing I can think has changed since this last worked has been upgraded my MAX and other pilots from 5.5 to 14.0 and then the latest version as of today.

    It is usually the generic error, which means that some external code access violated the integrity of the system and the memory is likely to have been corrupted in the process. Since it is a NI API system AND it seems to have worked before, I guess it's not a bad disigned call library node, but a form of bribery in external code library itself which implements the API of the System Configuration.

    Reinstalling may solve the problem.

  • Email API SOAP - error during the download of the Image

    Hey, Code

    I get the following error message when you try to download a specific image (600kb JPG) using the 'upload_image' of the mail API method:

    Eloqua API fault! Error code: a: DeserializationFailed. Description of the fault: the trainer threw an exception while trying to deserialize the message: there was an error while trying to deserialize the parameter https://secure.eloqua.com/API/1.2:binaryImage. The InnerException message was "a mistake of the System.Byte [] object deserialization. The maximum array length quota (524288) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 12634, post ' 18.  Please see InnerException for details...

    The method works very well with the other images and I am able to download this specific image through the Eloqua UI without any problem. Please find the attached image and let me know if I can give you more info around that.

    Note: I'm not particularly a request/response due to the size of the envelope of the application.

    Thank you

    Ilya

    Hey Ilia,

    We had a quick glance at the configuration of the API on the side server, and it seems that the value is set to: 1048576

    This means that it is currently limited to a megabyte. I recommend you contact support to request this value has increased.

    Thank you

    Fred

  • I need help with Google Analytics in my Adobe Muse Web site. behavior of the 404 error pages

    I created and published a Web site using the muse of adobe.
    After you have copied and pasted the tracking codes exactly in Muse master pages that have then been copied to all pages of the site.

    Opening google analytics,
    Menu option > Reporting
    Under menu > behavior > the content of the Site > Pages

    All my pages have an icon next to them that looks like this:
    Screen Shot 2015-10-15 at 15.29.56.png
    That when I click on takes me to a default error page that says:

    Error 404 File not found

    The page you are looking for has been deleted,
    had its name changed or is temporarily unavailable.

    I can't understand why the pages meet errors and would be deeply grateful if someone could guide me through the resolution of this problem.

    Thank you.

    Please check the links used for page icons, in addition, the page that shows GA in the console, check if the url and page etc. are the same that you configured in the Muse.

    https://helpx.Adobe.com/Muse/how-to/use-Google-Analytics.html

    https://www.YouTube.com/watch?v=CydlFjcmStw

    Thank you

    Sanjit

  • Questions of the API (2)

    Hi, we are experiencing some problems with our integration via the API. Sometimes when add us content to a collection and publishes, the collection will not post and it says (in Portuguese): "Falha na atualizacao" or "Update failed" in a free translation, I don't know how the message was before the internationalization.

    We have noticed that when you see everything that is attached to this collection doesn't have a publication, there is this content with the name 'unknown' or 'unknown', with a warning.

    When you delete this unknown content and try to publish the collection, it works perfectly. The question is, how to avoid it or in a worse method, how to perform this action through the API? We have tried to list the contents of the collection when this problem occurs, but we do not see the faulty content to remove, we see that the contents of the fault on the platform of DPS from Adobe.

    Hello

    When you add features to a collection, did you do the following:

    • Get the last entity HREF

      • This will prevent adding a deleted or deprecated entity
    • Before you add the entity to a collection, get first contentElement in the current collection and Add (or add) the new entity to the list
      • This will prevent the removal of all existing entities in the list, users are responsible for keeping the data persistence

    This "unknown" entity might have been a deleted entity you are trying to reference. If you can reproduce this, please add my account ([email protected]) to your project with permissions "show content".

  • THE API ERROR

    Hello.

    I run this API and get the error message
    ----------
    ERROR

    ORA-06502: PL/SQL: digital or value error: character string buffer too small
    ORA-06512: at line 34 level
    ----------
    APPS schema
    Oracle apps 11.5.10.2
    S/N 10.0.2.0
    ----------
    Purpose of the API

    Create itam with model

    -------------
    steps.
    1 create the table


    CREATE TABLE XX_INV_ITEMS
    (
    Segment1 VARCHAR2 (300),
    Description VARCHAR2 (300),
    The category number,
    VARCHAR2 (1) flag.
    msg_erreur varchar2 (2500)
    ) ;
    -API script-


    declare

    p_commit fnd_api.g_FALSE VARCHAR2 (1000) DEFAULT
    ; DEFAULT NUMBER of p_validation_level fnd_api.g_VALID_LEVEL_FULL
    ; p_Item_rec INV_ITEM_GRP. Item_rec_type
    ; x_Item_rec INV_ITEM_GRP. Item_rec_type
    ; x_return_status VARCHAR2 (1000)
    ; x_Error_tbl INV_ITEM_GRP. Error_tbl_type
    ; p_Template_Id NUMBER
    ; p_Template_Name VARCHAR2 (200)
    ; x_debug_file VARCHAR2 (100);


    CURSOR item_cur IS
    SELECT *.
    OF XX_INV_ITEMS
    where category = 19
    and segment1 = "CM-1-O'AHU;
    ------
    Start
    fnd_global.apps_initialize (user_id = > 4425,
    resp_id = > 23118,
    resp_appl_id = > 426);

    p_Item_rec: = INV_ITEM_GRP. G_MISS_ITEM_REC;


    because me in item_cur
    loop

    p_item_rec.ORGANIZATION_ID: = 695;
    p_item_rec. DESCRIPTION: = description;
    p_item_rec. SEGMENT1: = i.SEGMENT1;
    p_item_rec. PRIMARY_UOM_CODE: = "all";
    p_item_rec. PRIMARY_UNIT_OF_MEASURE: = 'EA ';

    Start
    INV_ITEM_GRP. CREATE_ITEM
    (
    p_commit = > p_commit
    , p_validation_level = > p_validation_level
    , p_Item_rec = > p_Item_rec
    , x_Item_rec = > x_Item_rec
    , x_return_status = > x_return_status
    , x_Error_tbl = > x_Error_tbl
    p_Template_Id = > 19
    , p_Template_Name = > '@Activity '.
    );


    Dbms_output.put_line (' status |) ' ' || x_return_status);
    dbms_output.put_line (SubStr (FND_MSG_PUB. Get (p_encoded = > FND_API.) G_FALSE), 1, 255));

    end;

    end loop;

    end;


    Please help me

    Published by: user13384271 on May 15, 2013 01:21

    Hello

    Can you please check if
    p_item_rec. DESCRIPTION: = description; is less than 240 characters and
    p_item_rec. SEGMENT1: = i.SEGMENT1; is less than 40 characters?

    Thank you
    VInod

  • Put into hibernation - insufficient system resources exist to complete the API (Tecra M4)

    I just thought I'd pass on my experience with this problem.

    I recently updated my Tecra M4 2 GB of RAM memory. Everything was fine except everyonce in a while he would not hibernate. However, it would suspend to RAM (standby). It seemed to happen after the antivirus software has managed to (which I had changed at the same time). I studied this way, but it also happened if I had a lot of programs running. So, a quick google search revealed why almost all laptops come with only 512 MB of RAM.

    There is a problem with Windows, freeing the memory in a way that allows it to be written to the hard disk, preventing the hibernation and to create the very vague error message "insufficient system resources exist to complete the API".

    The solution is to contact Microsoft by phone and ask them for the fix for the #909095 of the Knowledge Base article. The fix is free but the MS site makes it seem as if you have to pay £200 to contact Ms support

    This seems to have solved my problem!
    Hooray!

    This is the Knowledge Base article:
    http://support.Microsoft.com/?kbid=909095

    Here's the Blog I found the solution on:
    http://www.ntwizards.NET/2004/10/13/Hibernate
    Of course, the only problem with contacting MS support is that I received a LOT of phone calls asking me what I thought of their support... it was very good, so I don't really mind, but I find it funny that I continue to have called and asked the same questions!

    Hi Kelly

    Thanks for this useful information.
    It of very nice that you posted this tip. I think that it s very useful for users of the forum who might have the same problems on laptops.

    Concerning

  • In the Application Server error ' / '.

    What should I do?

    In the Application Server error ' / '. A network-related or specific to the instance error occurred establishing a connection to SQL Server. The server is not found or inaccessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP provider, error: 0 - no connection can be made because the target machine actively refused it.) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and its origin in the code.

    Exception details: System.Data.SqlClient.SqlException: A network-related or instance-specific error all by establishing a connection to SQL Server. The server is not found or inaccessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP provider, error: 0 - no connection could be made because the target machine actively refused it.)

    Source error:

    Line 101: Dad SqlDataAdapter = new SqlDataAdapter (SQL, con); Line 102: Dtbl DataTable = new DataTable(); Line 103: dad. Fill (dtbl); Line 104: return dtbl; Line 105 :}

    Source file: c:\HostingSpaces\almal\SiteES\Default.aspx.cs Line: 103

    Stack trace:

    [SqlException (0 x 80131904): a network-related or instance-specific error occurred establishing a connection to SQL Server.] The server is not found or inaccessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (fournisseur: fournisseur TCP, erreur: 0-aucune connexion pourrait être établie car l'ordinateur cible a activement refusée il.)] System.Data.ProviderBase.DbConnectionPool.GetConnection (DbConnection owningObject) 428 System.Data.ProviderBase.DbConnectionFactory.GetConnection (DbConnection owningConnection) + 65 System.Data.ProviderBase.DbConnectionClosed.OpenConnection (DbConnection outerConnection, DbConnectionFactory connectionFactory) + 117 System.Data.SqlClient.SqlConnection.Open () + 122 System.Data.Common.DbDataAdapter.QuietOpen (IDbConnection, ConnectionState & originalState connection) + 31 System.Data.Common.DbDataAdapter.FillInternal (DataSet dataset, DataTable [] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, command IDbCommand, CommandBehavior behavior) + 112 System.Data.Common.DbDataAdapter.Fill (DataTable [] dataTables, Int32 startRecord, Int32 maxRecords, command IDbCommand, CommandBehavior behavior) + 162 System.Data.Common.DbDataAdapter.Fill (DataTable dataTable) 115 Default3.GetTableDataMy (String SQL) in c:\HostingSpaces\almal\SiteES\Default.aspx.cs:103 Default3.Page_Load (Object sender, EventArgs e) in c:\HostingSpaces\almal\SiteES\Default.aspx.cs:179 System.Web.Util.CalliHelper.EventArgFunctionCaller (fp IntPtr, Object o, object t, e As EventArgs) System.Web.Util.CalliEventHandlerDelegateProxy.Callback + 14 (Object sender, EventArgs e) + 35 System.Web.UI.Control.OnLoad (EventArgs e) + 99 System.Web.UI.Control.LoadRecursive () + 50 System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) + 627

    Version information: Microsoft .NET Framework Version: 2.0.50727.3615; ASP.NET Version: 2.0.50727.3618

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    https://social. .Microsoft.com/ TechNetForums/in-us/categories /.

    I hope this helps.

  • Red question mark on the road to navigation network system process

    Hi all
    I correctly mapped network drives that I can view, browse and select using the API "GetOpenFileName().
    Everything works well for all applications running on my XP system. My user has administrator access.
    I also put in place a print (part of the spooler process) using the API "GetOpenFileName()" even driver.
    In this case, the network drive (each net disk) on navigation Gets a red question mark on it.
    Also, by selecting "MyMachine" tab does NOT display my network, only the Local drives (C:\).
    I can go by selecting the files on the network drive, marked in red, but access to files (open + reading) subsequently cause errors.
    Anyone who has an idea why this happens on the process system (spooler) only?
    Thank you very much!

    Hi WalterXS,

    Your computer is connected to a server?

    If the Windows XP computer is in the domain, I recommend you to ask your question in the TechNet forums for assistance.

    Hope the helps of information.

  • attempts to secure access to the api.

    My dear, I tell them that I am developing my first application and having run my apps on a BlackBerry 8520 when I use background pictures.
    Working
    3.7.2 - Eclipse with the corresponding pluggin
    -BlackBerry JRE 7.1.0
    -OS on my device is 5.0.0.592

    Bookmark and share also, I installed keys to sign the application in these cases. In the Simulator, everything goes perfectly, but when I go to the triggers device error "seeks access to the api".
    The api I import into my application are for example:
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Display;

    The question is if there is a problem of incompatibility between the sdk jre, etc for which you should keep in mind when developing.
    Thank you in advance for any information you can give me on this subject.
    concerning

    Jorge

    You can have multiple JRE versions installed.
    You can install additional JRE using the eclipse update page.

    For your device, I suggest to use JRE 5.

Maybe you are looking for