How to know that result of query is null?

i connected to the database using that could and the result where 0 records how can i manage that if the result is 0 records don't show anything. i mean how to make the check condition that the result is null.
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<br>
<jbo:ApplicationModule id="package2.Package2Module" configname="package2.Package2Module.Package2ModuleLocal" username="system" password="manager"/>
<br>
<jbo:DataSource id="ds" appid="package2.Package2Module" viewobject="StudentsView" whereclause="<%= wc %>" />
<br>

I think that you have only created an array of the
given size [60][2], but you haven't actually put
anything into the position str[3][0]. This would
explain why you are getting a null pointer exception.But he's explicitly checking for null, that shouldn't cause a null pointer exception.
OP: please post your actual code, and the actual null pointer exception.

Similar Messages

  • How to know that URL is currenty open into other Group Tab feature ?

    Hello Firefox team,
    I use a group tab features (CTRL+SHIFT+E) and I have open many URLs in many group tab's. This URLs are on one domain because I work on one SupportTeam website and all cases/tickets have different URLs.
    I don't know that I open a duplication tab (cases/ticket) who is open in other tab or on tab in other group tab.
    How to know that URL whom I open is a duplication?.
    Best Regards
    Marcin Przysowa

    I upgrade FF to 10.0 version. The situation is the same.
    For me some information bar is perfect like:
    This URL is open in $grouptab_name.
    By click into that hint I should be jump to older tab in $grouptab_name.

  • How to know that item is serially controlled or not ?

    Hi,
    How to know that the ordered item is serially controlled or not ?
    In which tables we have refere to know that ?
    Thanks

    --If the item is only serial number controlled and not lot number controlled
    select serial_number from mtl_unit_transactions a, mtl_material_transactions b, wsh_delivery_details c
    where a.transaction_id=b.transaction_id
    and b.trx_source_line_id=c.source_line_id
    and c.source_header_number=&order_number
    and b.transaction_type_id=33 --34 if it is internal order shipments
    OR (If it is lot and serial number controlled)
    select serial_number from mtl_unit_transactions a, mtl_material_transactions b, wsh_delivery_details c, mtl_transaction_lot_numbers d
    where b.transaction_id=d.transaction_id
    and a.transaction_id=d.serial_transaction_id
    and b.trx_source_line_id=c.source_line_id
    and c.source_header_number=&order_number
    and b.transaction_type_id=33 --34 if it is internal order shipments
    Thanks
    Nagamohan

  • I forget my icloud passport. so i can't unlock my phone. how to know that passport

    I forget my icloud passport. How to know that passport ?

    Sorry, not understanding what it is you are asking. Your iCloud password is the same as your Apple ID password. If you are attempting to restore the device and you are on the Activation Lock screen, you must supply the iCloud/Apple ID password before you can proceed:
    ACTIVATION LOCK
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account - Apple Support
    Cheers,
    GB

  • How to know that iphone 4 is locked??, How to know that iphone 4 is locked??

    How to know that iphone is locked or unlocked ?
    In my case when I put the sim card of SK telecom the iphone display the carrier of SK telecom and when I replace the sim card with KT then it displays the carrier with KT telecom in the settings.
    Does that mean my iphone is unlocked and it is  carrier free?
    In my case these both sim are expired so they dont show any networks.
    They just display "Searching " and then "No service" but in the carrier section (settings) it displays the corresponding telecoms and the phone numbers.
    So is it unlocked phone.
    If it is unlocked phone then I was thinking o use a mini sim card(SK telecom) in it which is not expired by cutting it into micro sim card .Will it work ?
    Help me !!!

    dipencha wrote:
    How to know that iphone is locked or unlocked ?
    The ONLY way to know for sure whether your phone is officially unlocked or not is to have purchased your phone from an official source that sells officially unlocked iPhones. If you did so, you have nothing to worry about. If you did not purchase from an official source, well...you take your chances and hope for the best. Many phones, from non-official sources, advertised as "factory unlocked", are in fact hacked to unlock them.

  • How do know that the battery is fully charged on ios 7

    How do know that the battery is fully charged on ios 7

    When you turn it on from sleep mode, below the time on the lock screen it says how much charged it is.

  • How to know that my cache is disttributed (i mean partitioned or replicated

    How to know that my cache is distributed or replicated.. if it is not distributed then how can we make it as distributed(where do we need to change.)
    Thanks
    --Krishna..                                                                                                                                                                                                                                                                                                                                                                       

    Krishna -
    Cache type is configured by the server side (cluster side) cache configuration file within a <caching-scheme-mapping> <cache-mapping> element.
    The <scheme-name> element specifies either a <distributed-scheme> (for Partitioned) or <replicated-scheme> <caching-scheme> named element.
    A client side configuration file references the <cache-name>.
    I do recommend working through the Coherence Tutorial:
    http://download.oracle.com/docs/cd/E18686_01/coh.37/e18692/toc.htm
    Regards,
    /Mark J
    Oracle Coherence

  • How to know that my new ipad specification is wifi+4g?

    How to know that my new ipad specification is wifi+4g?

    Check the model number on the back of the iPad
    Apple iPad Wi-Fi (Original) 16, 32, 64 GB
    The wi-fi only iPad configurations are assigned model number A1219.
    MB292LL/A is the order number for the 16 GB configuration. The 32 GB configuration is assigned MB293LL/A and the 64 GB configuration is assigned MB294LL/A.
    Apple iPad Wi-Fi/3G/GPS (Original) 16, 32, 64 GB
    The Wi-Fi/3G/A-GPS iPad configurations are assigned model number A1337.
    MC349LL/A is the order number for the 16 GB configuration. The 32 GB configuration is assigned MC496LL/A and the 64 GB configuration is assigned MC497LL/A.
    Apple iPad 2 (Wi-Fi Only) 16, 32, 64 GB
    The wi-fi only iPad 2 configurations are assigned model number A1395.
    MC769LL/A is the original order number for the 16 GB configuration in black. The 32 GB configuration in black is assigned MC770LL/A and the 64 GB configuration in black is assigned MC916LL/A. The original 16 GB, 32 GB and 64 GB configurations in white are assigned MC979LL/A, MC980LL/A, and MC981LL/A, respectively. On March 7, 2012, Apple discontinued the 32 GB and 64 GB configurations and assigned new order numbers of MC954LL/A and MC989LL/A for the black and white 16 GB configurations, respectively.
    Apple iPad 2 (Wi-Fi/GSM/GPS AT&T) 16, 32, 64 GB
    The Wi-Fi/GSM/GPS iPad 2 configurations are assigned model number A1396.
    MC773LL/A is the original order number for the 16 GB configuration in black. The 32 GB configuration in black is assigned MC774LL/A and the 64 GB configuration in black is assigned MC775LL/A. The original 16 GB, 32 GB and 64 GB configurations in white are assigned MC982LL/A, MC983LL/A, and MC984LL/A, respectively. On March 7, 2012, Apple discontinued the 32 GB and 64 GB configurations and assigned new order numbers of MC957LL/A and MC992LL/A for the black and white 16 GB configurations, respectively.
    Apple iPad 2 (Wi-Fi/CDMA/GPS Verizon) 16, 32, 64 GB
    The Wi-Fi/CDMA/GPS iPad 2 configurations are assigned model number A1397.
    MC755LL/A is the original order number for the 16 GB configuration in black. The 32 GB configuration in black is assigned MC763LL/A and the 64 GB configuration in black is assigned MC764LL/A. The original 16 GB, 32 GB and 64 GB configurations in white are assigned MC985LL/A, MC986LL/A, and MC987LL/A, respectively. On March 7, 2012, Apple discontinued the 32 GB and 64 GB configurations and assigned new order numbers of MC755LL/A and MC985LL/A for the black and white 16 GB configurations, respectively.
    Apple iPad 3rd Gen (Wi-Fi Only) 16, 32, 64 GB
    The Wi-Fi Only iPad 3 configurations are assigned model number A1416
    MC705LL/A refers to the 16 GB configuration in black. The 32 GB and 64 GB configurations in black are MC706LL/A and MC707LL/A, respectively. The 16 GB, 32 GB and 64 GB configurations in white are MD328LL/A, MD329LL/A, and MD330LL/A, respectively.
    Apple iPad 3rd Gen (Wi-Fi/4G LTE AT&T/GPS) 16, 32, 64 GB
    The Wi-Fi/4G LTE AT&T/GPS iPad 3 configurations are assigned model number A1430
    MD366LL/A refers to the 16 GB configuration in black. The 32 GB and 64 GB configurations in black are MD367LL/A and MD368LL/A, respectively. The 16 GB, 32 GB and 64 GB configurations in white are MD369LL/A, MD370LL/A and MD371LL/A, respectively
    Apple iPad 3rd Gen (Wi-Fi/4G LTE Verizon/GPS) 16, 32, 64 GB
    The Wi-Fi/4G LTE Verizon/GPS iPad 3 configurations are assigned model number A1403
    MC733LL/A refers to the 16 GB configuration in black. The 32 GB and 64 GB configurations in black are MC744LL/A and MC756LL/A, respectively. The 16 GB, 32 GB and 64 GB configurations in white are MD363LL/A, MD364LL/A, and MD365LL/A, respectively.

  • How to know that a sales order is approved?

    Hi all,
    Can any one let me know how to know that a sales order is approved? Is there any flag or status code to pull the information from the backend?
    Thanks for your help,
    Prathima

    Hi Prathima,
    Oracle Order Management does not have any approvals, i.e. there is no status as 'Approved' for Order. You can consider an order to be final once it is booked, which you can know from the booked_flag or the value of flow_Status_code field in oe_order_headers_all.
    Hope this helps

  • How i know that my iphone is factory unlocked or not?

    how i know that my iphone is factory unlocked or not surely?

    Did you request to have your phone to be unlocked by your carrier? Only the carrier can officially unlock it.

  • How to know that my iphone is factory unlock or not

    how to know that my iphone is factory unlock or not

    Where did you get it? In some (not all) countries, it is possible to purchase unlocked phones directly from Apple. Some carriers in some countries sell unlocked phones. Some carriers in some countries offer unlocking of iPhones.

  • How to know that a form is running in query-only mode

    I have a form that can run in query-only mode or non-query-only mode depending on the current user who logs in, and I want to change its apprearance dynamically when it's in different modes (for example, enable or disable buttons). Is there a built-in or system variable from which I know that the form is running in query-only mode or not?
    Thanks,
    Shu

    The global variable solution is what we are using now. I thought there are some unpublished built-in or system variables. In my application, there is a public "menu" form from where hundreds of forms are CALLed with some in query-only mode and some in non-query-only mode depending on the current user role. :PARAMETER.QUERY_ONLY will always be 'NO' because the "menu" form is started in non-query-only mode. But it's good to know about it.
    Thank you very much for your replies,
    Shu

  • How to achieve the results by Query ??

    Hello Guys,
    I have couple tables which I need to join to get the result....This is what is in the tables...
    CList Table
    CID, Name
    A, ABC
    B,CDE
    C,JFK
    JList Table
    JID, Name
    1, Something
    2, Another
    3, Else
    4, Should be something
    JOb_2_Courses
    JobID, CourseID
    1,A
    1,B
    2,C
    Employee Table
    EID, Job_ID
    1A, 1
    2A,1
    3B,1
    2C,2
    23D,3
    CStatus Table
    StatusID, Desc
    1,Completed
    2,Pending Approval
    3,Declined
    4,Scheduled
    5,Register
    Now user can only register the course which are related with their job....NO course else.....
    When they register it is moved to temp_course_registration and then once completed to COURSE_HISTORY
    For Example : So Employee : 1A will see two courses to register A and B...
    Say he registers A....it makes an entry in temp_course_registration table with the course id, employeeid and date....
    With further steps once that status is updated to '1'.....the course is deleted from temp_course_registration and is moved to course_history........
    Now to show to the user...I need to include all my tables in the query and on the basis of status, show necessary things to the user....
    Output :
    Course_ID, Status.............
    Say if they completed the course will come from course_history, if in the process will come from temp_course_registration.....if nothing is in the tables for the specific employee...this means status is '5' and they need to register everything...
    Can someone let me know, how to achieve the results....
    Thanks,
    Harsimrat

    Hello
    I'm off home now so I can't look at the query, but for future reference, if you want to improve your chances of getting help, you need to provide simple create table statements, and test data to go with it. I've done that with what you provided and hopefully someone else will be able to help. Also, you were asked if you could provide this in your other thread...
    CREATE TABLE CList(CID varchar2(1), Name varchar2(3))
    insert into clist values('A', 'ABC');
    insert into clist values('B','CDE');
    insert into clist values('C','JFK');
    CREATE TABLE JList(JID number, Name varchar2(30))
    insert into jlist values(1, 'Something');
    insert into jlist values(2, 'Another');
    insert into jlist values(3, 'Else');
    insert into jlist values(4, 'Should be something');
    CREATE TABLE JOb_2_Courses(JobID number, CourseID varchar2(1))
    insert into job_2_courses VALUES(1,'A');
    insert into job_2_courses VALUES(1,'B');
    insert into job_2_courses VALUES(2,'C');
    CREATE TABLE Employee (EID varchar2(3), Job_ID number)
    INSERT INTO employee VALUES('1A', 1);
    INSERT INTO employee VALUES('2A',1);
    INSERT INTO employee VALUES('3B',1);
    INSERT INTO employee VALUES('2C',2);
    INSERT INTO employee VALUES('23D',3);
    CREATE TABLE CStatus(StatusID number, Descr varchar2(30))
    insert into cstatus values(1,'Completed');
    insert into cstatus values(2,'Pending Approval');
    insert into cstatus values(3,'Declined');
    insert into cstatus values(4,'Scheduled');
    insert into cstatus values(5,'Register');HTH
    David

  • How to know whether a particular query is using the aggregates

    hi all....
    im very new to this group so plz help me out.....anyway hi to all ....
    There are many aggreegates are there but how to know which query is using perticular a?gregates

    Hi,
    use query monitor screen RSRT and select the option execute + debug . and u can have the option of checking display aggreagates for that query!
    cheers,
    ravi

  • How to know that Invoice being paid (Incoming Payment)?

    Hi All,
    Do anyone know that where (From table or DB side, not from B1 interface) to check ARInvoice is being made payment or partial payment?
    Thx

    Hi Kok,
    This query is for 2007 only. It uses the Balance due in the Journal Entry and is linked to OINV.
    It will tell you the Original Document total, The Balance due and how much of the original amount has been cleared. It will also give you the Due Date of the Invoice.
    It will separate Foreign Currency BPs from Local and Multi Currency BPs and will also give you the Foreign Currency used in the document and the rate.
    I have not tried this with Invoices that are using installments so it might be something that needs to be adjusted.
    (SELECT
    'Local/Multi Currency' as CurrType,
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur],
    T0.[DocRate], T0.[DocTotal], sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Balance Due',
    T0.[DocTotal] - sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Cleared Amount',
    T0.[DocDueDate]
    FROM
    OINV T0 inner join JDT1 T1 on  T0.[TransId] = T1.[TransId] inner join OCRD T2 ON
    T1.ShortName=T2.CardCode
    WHERE
    T1.[ShortName] <> T1.[Account] and
    t2.currency = '##' or t2.currency in (Select maincurncy from OADM)
    Group by
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate], T0.[DocTotal], T0.[DocDueDate]
    having
    sum(T1.[BalDueDeb] - T1.[BalDueCred]) <> 0)
    union
    (SELECT
    'Foreign Currency' as CurrType,
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate],
    T0.[DocTotal], sum(T1.[BalFcDeb] - T1.[BalFcCred]) as 'Balance Due',
    T0.[DocTotal] - sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Cleared Amount',
    T0.[DocDueDate]
    FROM
    OINV T0 inner join JDT1 T1 on  T0.[TransId] = T1.[TransId] inner join OCRD T2 ON
    T1.ShortName=T2.CardCode
    WHERE
    T1.[ShortName] <> T1.[Account] and
    t2.currency <> '##' and  t2.currency not in (Select maincurncy from OADM)
    Group by
    t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate], T0.[DocTotal], T0.[DocDueDate]
    having
    sum(T1.[BalFcDeb] - T1.[BalFcCred]) <> 0)
    order by t1.shortname, t0.docnum
    I have attached the query in a file as not all signs seems to be copied when pasting into this forum.
    I hope it helps.
    Jesper

Maybe you are looking for