Error while copying all rows into an ArrayList...plzzz help

Hi all,
Iam doing a small POC on publishing a Application module as webservices...iam stuck while copying the results of whereclause into an arraylist.. some one please help....below is the code
public class matrixVOImpl extends ViewObjectImpl {
    /**This is the default constructor (do not remove)
    ArrayList al=new ArrayList();
    public matrixVOImpl() {
public  ArrayList getCompLevels(String role){
    int x=0;
    int pos=0;
    setWhereClause("matrixEO.ROLE='"+role+"'");
    executeQuery();
    if (!hasNext())
            throw new JboException("unable to find role " +role);
    long i=getEstimatedRowCount();
    for(x=0;x<=i-1;x++){
    Row rw=getRowAtRangeIndex(x);************ //here lies the problem for me********************
String comp= rw.getAttribute("Competency").toString();
    String lr=rw.getAttribute("LevelRequired").toString();
   al.add(0,comp);
  pos=pos+1;
   al.add(1,lr);
  pos=pos+1;
    return al;
problem is at  Row rw=getRowAtRangeIndex(x); for loop is not workin here...when i manually put zero,first(),last() in place of x works fine i get the first row ..but if i put 1,2...10 or any number i get a null pointer exception..
how to get all the rows ...wch can b copied to an arraylist...can someone help pllzz.Edited by: Oraclerr on Apr 10, 2009 12:31 PM

I think it's because getRowAtRangeIndex depends of what the getRangeSize() value is on the view object before executeQuery is invoked. You can change this value in the properties of the viewobject or programmatically, using setRangeSize. If your range size is one, getRowAtRangeIndex(1) returns null, because the index i zero-based. You should only use range size if you only need to present ex. 10 rows a a time?

Similar Messages

  • Getting an error while copying pdf file into RMS enabled document library using copyTo() method

    In SharePoint 2010, I am trying to copy pdf file programmatically from a non-RMS protected document library into RMS protected library using copyTo() method.
    But I am getting an error while doing so. it gives error as mentioned below -
    This library does not accept files of the given type. You must either upload a
    new, unprotected file that supports rights management or re-upload a document
    that was previously downloaded from this library.
    Please suggest some solution.
    Thanks,

    Are You sure that you have give 'PDF' in caps in your program? and check whether you are getting all the datas before calling the method.
    in my program, i have used like this and it is working fine for me,
    I am getting PDF content from the form...
    DATA  ls_formoutput     TYPE fpformoutput.
      DATA  pdf_content        TYPE solix_tab.
      DATA  lp_pdf_size        TYPE so_obj_len.
    DATA  lv_mail_title      TYPE so_obj_des.
    *Attach the PDF .
          lp_pdf_size = XSTRLEN( ls_formoutput-pdf ).
          pdf_content = cl_document_bcs=>xstring_to_solix(
              ip_xstring = ls_formoutput-pdf ).
          document->add_attachment(
            i_attachment_type     = 'PDF'
            i_att_content_hex     = pdf_content
            i_attachment_size     = lp_pdf_size
            i_attachment_subject  = lv_mail_title ) .

  • Error on saving the servicee order ( Error while copying doc into ECC)

    Hi,
    On saving the service order I am getting an error sayin : Error occurred while copying the document into ECC. I have checked the detailed error log on WEBUI. It is showing the below:
    "Enter a (default) purchasing group for material group 900000000 (Notification E CRM_SRV_LOG_EXT_OLTP 002)"
    Could you please let me know, Where do we maintain the above data.
    Thanks,
    Sandeep

    I just added some fields to free characterstics.
    Actually in Transport Connection n RSA1, its shown that the query is saved in a transport number. But other user can edit the query even if no task is there in his name undr that transport. Task in my name is there but I am not able even to save the query.
    If its already in transport , how another user can edit and save it.
    And if it is getting saved to $ Tmp, why is it so, as it is already in a transport request.

  • Jdk.ins(44): WRITE_ERROR write error while copying \bin\opt\jdk1187o.exe

    All,
    I'm getting this error while installing 9ias enterprise edition on windows 2003 SP2. I did set the compatibility option before starting the install. I dont get this error whn i install this on windows 2000 SP4 OS. SO the error is specific to windows 2003 SP2.
    jdk.ins(44): WRITE_ERROR write error while copying \bin\opt\jdk1187o.exe
    To: e:\oracle\806\jdk1187o.exe
    JDK Applet Viewer 1.1
    INstalling JDK Applet Viewer Executables...
    Is there a workaround or can we ignore this error.
    Thanks
    Neel

    > We resolved issue by setting oracle_home  environment.Now we get screen asking export location.While exporting we get error  BR0804I BRCONNECT terminated with errors.
    Nice - but how should we now find out what you problem is? We have no magic ball to look into..
    > We are doing Hetrogenous system copy.
    Be aware that you need a certified migration consultant on-site for a heterogeneous copy. Otherwise you'll loose support for problems during the migration and for the target system (http://service.sap.com/osdbmigration --> FAQ).
    Markus

  • New-AzureDeployment - Error while copying content to a stream

    Hi All,
    I am trying to deploy a packages using the Azure Powershell Cmdlets.
    Each time I try to deploy a particular package, I get the following error message..
    New-AzureDeployment : Error while copying content to a stream.
    At line:1 char:1
    + New-AzureDeployment -DoNotStart -ServiceName $strStagingCCPDeploymentServiceName ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureDeployment], HttpRequestException
        + FullyQualifiedErrorId : System.Net.Http.HttpRequestException,Microsoft.WindowsAzure.Commands.ServiceManagement.HostedServices.NewAzureDeploymentCommand
    Looking at the inner exception I am getting
    Unable to read data from the transport connection: The connection was closed.
    The package itself is only 80mb and uploads to my blob storage successfully however when it tries to deploy using my config file the error occurs.  The same config file works fine if I use the Azure Website to deploy the package, rather than the cmdlets
    and I can deploy other packages successfully using PowerShell and using Visual Studio.
    Thank you for any help you can provide.

    Hi,
    This seems to be a network issue, but it's quite strange as you can deploy the package from Visual Studio. Could you please try it on another machine (in another network environment if possible)? Also, can you try
    to write a program and call the management API (http://msdn.microsoft.com/en-us/library/windowsazure/ee460813.aspx) to deploy it?
    Best Regards,
    Ming Xu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while copying and pasting group of activities

    Hi,
    I am getting an error while copying and pasting a group of activities. Can anyone let me know why I am getting this message.
    type : EStringListError
    Event Code : SLDNA-0655-B
    Description : String list does not allow duplicates
    thank you.

    I had the same error and reported it to Oracle. They requested an XER copy and I am waiting for thier response. This problem is for that particular project only. To work around it do the following:
    Create a new project, open both projects, go to wbs view, copy all wbs's from the correpted project to the new project. The new project will work fine and get rid of the correpted one.
    Good Luck.

  • Caller-70 Error while loading master data into infoobject

    hi ,
    I am getting following error while loading master data into infoobject (0tb-account). I am loading this master data in production environment for the first time. there are about 300000 records. All have got loaded upto PSA. Infopackage settings were PSA and then into data target.
    Short dump in the Warehouse
    Diagnosis
    The data update was not finished. A short dump has probably been logged in BI. This provides information about the error.
    System Response
    "Caller 70" is missing.
    ST22 dump analysis is as below:
    Termination occurred in the ABAP program "GP476CZYBEF2WX53UZ8TXFG6XOS" - in                  
    "VALUE_TO_SID_CONVERT_DB".                                                                  
    The main program was "RSMO1_RSM2 ".
    Please help as soon as you can..Production problem....
    Regards
    Rakesh

    Hi rakesh,
    May be IDOCs not processed completely,
    Idoc Problem, Either wait till time out & process Idoc from detail monitor screen, or go to BD87 & process Idoc with status = YELLOW ( be careful while processing IDOCS from BD87, choose only relevant Idocs
    Cheers
    Raj

  • There was an error while copying to Clipboard. An internal error occurred.

    Hello
    I'm running a Citrix Presentation Server 4.5 environment, based on Windows Server2003 and providing Adobe Reader as a published application (this issue appears with Adobe Reader 7 and Adobe Reader 8 equally).
    Sometimes when trying to copy test from a pdf document, the error message "There was an error while copying to Clipboard. An internal error occurred." appears. The selected text is still copied to the clipboard, so the message seems to be more of a warning, but it's confusing for the end-users. This happens equally when copying via 'Ctrl-C' or with the mouse (right-click & copy).
    It is not a problem with the document itself since sometimes the error appears and sometimes not on the same document. This happens for all documents I've tried so far.
    Additional information: On the servers also MS Office 2003 SP3 is installed. I have the feeling that it may be an interference with the Office Clipboard, but I can't put my finger on it...
    Please, has anyone found a solution for this?
    Thanks
    Andy

    in windows 7
    start-control panel-uninstall programs
    uninstall the "Skype Click to Call", this will uninstall addins from ie, firefox, you dont have to uninstall skype.
    in ie and firefox you can disable addons but can not uninstall them using ie or firefox interface, when you uninstall Skype Click to Call, it will remove it from all added browsers.
    This works me now.
    Edit 1:
    Unfortunately skype trick does not work.
    I recently switched to windows 8 and reliazed that there is no copy error any more.
    Edit2:
    This error maybe caused by Babylon dictionary which has an Adobe Acrobat or Reader addon which captures the text from pdf documnet when ctrl+right mouse click. This feature is enabled when it is copied to" C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\plug_ins " or  "C:\Program Files (x86)\Adobe\Reader 9.0\Reader\plug_ins " directory, so if it is copied such copying error appeared, if not copied it does not appear. Baylon dictionary addin is installed when you install babylon dictionary software, and it is here " C:\Program Files (x86)\Babylon\Babylon-Pro\Utils ", its name is " BabylonRPI.api "
    Edit3:06-April-2013
    My experience is that Babylon Dictionary was causing this error. With babylon version 10 acrobat does not give that kind of error anymore, on windows 7 x64, but previous version leftover files may cause this error again even if you remove previous versions and install version 10. With a clean install of windows 7 x64 with babylon dictionary version 10 there is no error anymore.Uninstalling previous versions of Babylon using third party uninstalling software like Revo or Uninstall Tool may help without reinstalling Windows.

  • Problem w/: Error while getting estimated row count for view

    JDev 10.1.3 - Steps
    1. created a ADF VO w/ one bind variable vNAME.
    2. Created a basic jspx page, use the data control pal. to drop in VO w/ executeparam option. Use the data control pal to drop in VO w/ ADF Read-Only Table w/ select and sort option. Selected all VO columns in table.
    3. Following Error msg occurs when running jspx page -
    oracle.jbo.DMLException: Error while getting estimated row count for view object CategoryView, statement SELECT count(1) FROM (SELECT
    CATEGORY.CATID CATID,
    CATEGORY.NAME NAME,
    CATEGORY.PICTURE PICTURE,
    CATEGORY.ACTIVE ACTIVE
    FROM
    CATEGORY
    WHERE
    (CATEGORY.NAME LIKE UPPER(:vName)||'%')) .
    Tested SQL Statement in SQL Worksheet works ok (with a Value replacing ':vName').
    Can anyone advise - seems to be a straight forward process that is returning this error msg. I have tried variations of the SQL stmt with no luck. The jspx page errors when the ADF Read-Only Table is added.

    I seem 2 have the same error, in a slightly different situation.
    I have a view which subclasses a Entity with a history column 'CreatedOn'. When performing a quick search/filter on this column I get the same error. The ADF app is build on a DB2 database, so no named parameters here. Instead invalid SQL is created when executing the estimated row count. The WHERE clause contains 'CreatedOn = null', should be 'CreatedOn is null'. Furthermore the input of my quick search is not filled in this clause.
    Any help would be appreciated

  • Error while copying page. (WWC-44262)

    Error while copying page. (WWC-44262)
    An unexpected error occurred: User-Defined Exception (WWC-44088)
    An unexpected error occurred: User-Defined Exception (WWC-44082)
    An unexpected error occurred: User-Defined Exception (WWC-44082)
    Error while copying page. (WWC-44262)
    Please specify a valid Name and Display Name. (WWC-44102)
    I am not able to make a copy of a page.

    Hi,
    Did you get an answer for this problem?
    Karl

  • Error while trying to log into dealer portal - Organisational data not main

    Error while trying to log into dealer portal - Organisational data not maintained. This is happening for a specific user.
    This information is used in the URL for the VMS dealer portal.
    <Protocol>://< Host Name>:<Port>/sap/bc/bsp/sapdii/dwb/c_vms_main.do?sap-client=<Client number>
    Does anyone have any experience of similar problem ?

    so why are you   posting this to Oracle database forum?
    I see nothing involving the database.

  • Error while copying page template!

    Copying of a simple page template fails in Portal 10.1.2 with the following error:
         Internal error (WWC-00006)
    Error while copying page. (WWC-44262)
    An unexpected error occurred: ORA-20100:
    ORA-06512: at "PORTAL.WWSBR_STDERR", line 437
    ORA-06512: at "PORTAL.WWV_THINGDB", line 1816
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWSBR_API_URL", line 73
    ORA-01403: no data found (WWC-44088)
    An unexpected error occurred: ORA-20100:
    ORA-06512: at "PORTAL.WWSBR_STDERR", line 437
    ORA-06512: at "PORTAL.WWV_THINGDB", line 1816
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWSBR_API_URL", line 73
    ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-20100:
    ORA-06512: at "PORTAL.WWSBR_STDERR", line 437
    ORA-06512: at "PORTAL.WWV_THINGDB", line 1816
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWSBR_API_URL", line 73
    ORA-01403: no data found (WWC-44082)
    An unexpected error has occurred (WWS-32100)
    ORA-1: User-Defined Exception (WWC-36000)
    No data found (WWS-32101)
    I already had this error in Portal 9.0.4.

    Hi Christian!
    I already opened a TAR. As (according to the Portal docs) exporting Portal applications to future versions is not supported, waiting for another Portal release would mean starting our applications from the scratch. For this reason, bugfixes in future releases are of no really use in our case, and we definitely HAVE to find a solution for this quite crucial problem.
    But thanks for this information.
    Eckhard

  • Error while copying data from infoprovider to planning area

    Hi,
    Error for COM routine using application program (return code 40,075)
    Message no. /SAPAPO/OM102
    Diagnosis
    An application program has called a COM routine. During the process, an error occurred.
    I got the above error while copying data from infoprovider to planning area using t code TSCUBE.
    How to resolve this?

    Hi,
    Is your issue resolved, If not please run MPOS consistency checks, Planning area consistency check and livecache consistency check.
    Below are the programs for the same.
    /SAPAPO/TS_lcm_cons_check
    /SAPAPO/TS_PSTRU_TOOL
    /SAPAPO/TS_PSTRU_CONS_CHECK
    Regards
    Kishore

  • Error while importing MS project into cProject

    Hi
    I am getting the below error while importing MS project client file or XML file into cProjects.
    dpr_shared087
    Logon language becomes original language
    Message no. DPR_SHARED087
    Diagnosis
    The logon language is defined as a possible text language in Customizing for Collaboration Projects under Specify Text Languages. Therefore, it is valid.
    System Response
    The logon language becomes the original language of the new object that was created.
    Kindly suggest what configuration data if any is missing.
    Regards
    Srikrishna

    Hi
    I am getting the below error while importing MS project into cProject.
    Error occurred when importing from Microsoft Project
    Message no. DPR_UI_BSP116
    Diagnosis
    When a project is imported from Microsoft Project, the system generates an XML string during internal processing. A project is then created in cProjects from this string.
    The XML string contains errors because the values from Microsoft Project were transferred without verification.
    Procedure for System Administration
    Notify SAP or call the cProjects application with the "DebugMode=X" query string and carry out the import again.
    The XML string that was generated temporarily is then validated against the cProjects XML schema. The error message from the XML parser is then displayed in the popup.
    Kindly suggest, if the below steps for importing MS project is ok or not?
    step 1: Create project in MS project with tasks.
    step 2: Maintain maping fields of MSP in cProject configurat
    step 3: Import MPP file into cProject using "Import" button.
    step 4: I am getting the above error while importing the MPP file.
    Regards
    Srikrishna

  • Getting 500 Internal Server Error while tryig to log into freshly upgraded

    Hi
    Getting 500 Internal Server Error while tryig to log into freshly R12 upgraded.
    Below is the application.log messages.
    =================================================================================================
    12/12/31 10:02:22.295 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:41)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:71)
    at java.nio.channels.Channels.access$000(Channels.java:58)
    at java.nio.channels.Channels$1.write(Channels.java:145)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:735)
    13/01/01 23:22:07.988 html: Servlet error
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.lang.RuntimeException: oracle.apps.fnd.common.AppsException: java.sql.SQLException: The Network Adapter could not establish the connection;
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:886)
    at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:1017)
    at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:901)
    at oracle.apps.fnd.framework.webui.OAServerDelegate.releaseWebAppsContext(OAServerDelegate.java:1823)
    at oracle.apps.fnd.framework.webui.OAJSPHelper.handleErrorStackDisplay(OAJSPHelper.java:1455)
    at OAErrorPage.jspService(_OAErrorPage.java:257)
    13/01/01 23:41:46.338 html: Error initializing servlet
    java.lang.NoClassDefFoundError: oracle.apps.fnd.sso.Utils (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
    at oracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:221)
    at oracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:287)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4830)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4754)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2978)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:738)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:735)
    Caused by: java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
    at oracle.apps.fnd.sso.Utils.<clinit>(Utils.java:674)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    =================================================================================================
    Current workaround is bouncing the oacore services.
    Already raised the SR with Oracle.
    Oracle support analyst suggesting to upgrade the JDK version from SR2 to SR11 or higher to fix this issue.
    Please let us know any other tips to fix this issue.
    Regards,
    Jagadeesha

    Hi,
    I have gone through the docs. , not use full. Please find the inline comments for the same.
    E-Business Suite Users Experience Intermittent HTTP-500 Errors and Database Connection Errors [ID 1314433.1] -- No solution
    R12: Http Server Crashing Frequently With Segmentation Fault (NAS or SAN filesystem) [ID 732857.1] -- Already it is under local file system only.
    How to resolve Broken Pipe errors in E-Business Suite R12 ? [ID 1480156.1] -- No solution
    Autoconfig is completed wihtout any errors.
    I have not chedked the database log file. I will check and update you soon.
    Cheers,
    Jagadeesha

Maybe you are looking for

  • Caché vs Oracle vs RDBMS - Please add your 2 cents!

    Hi All, I have recently “discovered” the Caché DBMS and realised just how little information there is out there. Apart from a few forums and a few vendor websites (mostly InterSystems) I haven’t been able to find much documentation or FAQ’s or user g

  • Scan\Look for a particular character in a file

    I would like to look for a particular character(@) in a file. The character might be in a word. When if find the character I want to read the actual whole word that contains that character. What's the best way of going abt this? Thx, Kapapra.

  • Making the program react to input from keyboard

    Hello,- I am trying to write a program that reacts to user input: when one hits the "y" key on keyboard the program should print out a statement or perform some other action. The following piece of code compiles, but ignores the if-part. Does anyone

  • Install for CS4 Web Premium, I have Serial

    I have the serial but I can't find a download for an installation. I serched for ages and can' find any thing. Please help!

  • About Project types

    Hi friends Please explain me about Roll-Out project, when it is preferred? How it is different from Development project? Is there any need to develop objects from scratch in Roll-Out ?? Thanks Suren