Download action listener maximum length

Hi,
What should be the mzximum size of a file to be downloaded using a filedownload action listener
I am trying to download a file coming from bi publisher from adf and i have used filedownload action listener
But whenever the data is more than 200 kb or so it is failing and i am getting empty file. i have downloaded files of 156kb size or so...
What is the max size of it
Thanks,
Vinay

on click of download bt with download action listener the following method is called
    public void GenerateAirportAndAgent(FacesContext facesContext,
                                        OutputStream outputStream) {
        StringBuffer errorMessage = new StringBuffer();       
        ViewObjectImpl tripLocDetailsVO = (ViewObjectImpl) ADFUtils.findIterator("TripLocationDetailsIterator").getViewObject();
        String tripNumberString = null;
        BigDecimal tripNumber = null;
        Object tripNumberParam = tripLocDetailsVO.getNamedWhereClauseParam("bindTripNumber");
        if(tripNumberParam != null){
          tripNumber = (BigDecimal)tripNumberParam;
          tripNumberString = tripNumber.toString();
        String tripLocIDString = null;
        if(AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID") != null){
            tripLocIDString = (String)AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID");    
        String icao = null;
        Object icaoParam = tripLocDetailsVO.getNamedWhereClauseParam("bindIcao");
        if(icaoParam != null){
          icao = icaoParam.toString();
        tripLocDetailsVO.setRangeSize(-1);
        Row[] aircraftBriefVORows = tripLocDetailsVO.getAllRowsInRange();
          StringBuffer DST=new StringBuffer();
           StringBuffer STD=new StringBuffer();
        for (int i = 0; i < aircraftBriefVORows.length; i++) {
           ViewRowImpl tripLocationRow = (ViewRowImpl)aircraftBriefVORows;
//For each dept row, getting reference to empVO which contains all employees corresponding to current dept
RowIterator airPortLOcationVO = (RowIterator)tripLocationRow.getAttribute("AirportLocation");
while(airPortLOcationVO.hasNext()){
Row airportLocationRow = airPortLOcationVO.next();
DST.append((String)airportLocationRow.getAttribute("DSTNew")+",");
STD.append((String)airportLocationRow.getAttribute("STDNew")+",");
HashMap parameterValueList = new HashMap();
if(tripNumberString!=null)
parameterValueList.put("REPORT_NAME", "AIRPORT_AND_AGENT");
parameterValueList.put("TRIP_NUMBER", tripNumberString);
parameterValueList.put("ICAO", icao);
parameterValueList.put("AIRPORT_TRIP_LOCATION_ID", tripLocIDString);
parameterValueList.put("DST",DST.toString());
parameterValueList.put("STD",STD.toString());
try{
ReportResponse reportResponse = reportOutputResp(parameterValueList,
AirportAndAgentBriefTemplate,
AirportAndAgentReport,
errorMessage);
outputStream.write(reportResponse.getReportBytes());
outputStream.flush();
catch(Exception e){
errorMessage.append("Error in generating downloadable Document.\n");
errorMessage.append(e.getMessage());
errorMessage.append(". Current User:"+bipUserName);
errorMessage.append(". Accessing Report:"+AirportAndAgentReport);
System.out.println(errorMessage.toString());;
e.printStackTrace();
else{
System.out.println("Error: TripNumber is null, cant Print Report");
errorMessage.append("TripNumber is not Valid, Please try again");
System.out.println(errorMessage.toString());
facesContext.responseComplete();
public ReportResponse reportOutputResp(HashMap parameterValueList,
String templateName,
String reportAbsoPath,
StringBuffer errorMessage){
publicReportServiceService = new PublicReportServiceService();
PublicReportService publicReportService = publicReportServiceService.getPublicReportService();
String sessionToken=null;
ReportResponse reportResponse=null;
String reportName = "";
String tripNumber = null;
String hotelReqId =null;
String transReqId =null;
String icao = null;
String tripLocId = null;
String tripLegNum = null;
String dst = null;
String std = null;
if(parameterValueList.get("REPORT_NAME") != null){
reportName = (String)parameterValueList.get("REPORT_NAME");
if(parameterValueList.get("TRIP_NUMBER") != null){
tripNumber = (String)parameterValueList.get("TRIP_NUMBER");
if(parameterValueList.get("ICAO") != null){
icao = (String)parameterValueList.get("ICAO");
if(parameterValueList.get("HOTEL_REQUEST_ID") != null){
hotelReqId = (String)parameterValueList.get("HOTEL_REQUEST_ID");
if(parameterValueList.get("TRANS_REQUEST_ID") != null){
transReqId = (String)parameterValueList.get("TRANS_REQUEST_ID");
if(parameterValueList.get("TRIP_LOCATION_ID") != null){
tripLocId = (String)parameterValueList.get("TRIP_LOCATION_ID");
if(parameterValueList.get("LEG_NUMBER") != null){
tripLegNum = (String)parameterValueList.get("LEG_NUMBER");
if(parameterValueList.get("AIRPORT_TRIP_LOCATION_ID") != null){
tripLocId = (String)parameterValueList.get("AIRPORT_TRIP_LOCATION_ID");
if (parameterValueList.get("DST") !=null){
dst =(String)parameterValueList.get("DST");
if (parameterValueList.get("STD") !=null){
std =(String)parameterValueList.get("STD");
System.err.println("reportName -- "+ reportName);
System.err.println("tripNumber -- "+ tripNumber);
System.err.println("hotelReqId -- "+ hotelReqId);
System.err.println("icao -- "+ icao);
System.err.println("transReqId -- "+ transReqId);
System.err.println("tripLocId -- "+ tripLocId);
System.err.println("tripLegNum -- "+ tripLegNum);
System.err.println("DST -- "+ dst);
System.err.println("STD -- "+ std);
try{
sessionToken = publicReportService.login(bipUserName, bipPassword);
ReportRequest reportRequest = new ReportRequest();
reportRequest.setAttributeFormat("rtf");//The output format of the requested report pdf, rtf, html
//reportRequest.setAttributeFormat("English (United States)");//The locale selection for the report. Example: fr-FR
reportRequest.setAttributeTemplate(templateName);//The template to apply to the report
reportRequest.setFlattenXML(false); //True indicates that the XML is to be flattened. This flag is used for the Analyzer for Microsoft Excel because Excel requires XML data structure to be flattened.
ArrayOfParamNameValue arr = new ArrayOfParamNameValue();
List<ParamNameValue> list = arr.getItem();
//Setting Trip Number
if(tripNumber != null){
ParamNameValue paramName = new ParamNameValue();
paramName.setName("P_TRIP_NUMBER");
ArrayOfString value = new ArrayOfString();
List<String> trp_number = value.getItem();
trp_number.add(tripNumber);
paramName.setValues(value);
list.add(paramName);
//Setting ICAO
if(icao != null && !reportName.equals("PERMIT_BRIEF") && !reportName.equals("ITINERARY_BRIEF")){
ParamNameValue paramNameIcao = new ParamNameValue();
paramNameIcao.setName("P_ICAO");
ArrayOfString icao_value = new ArrayOfString();
List<String> trp_icao = icao_value.getItem();
trp_icao.add(icao);
paramNameIcao.setValues(icao_value);
List<ParamNameValue> listIcao = arr.getItem();
listIcao.add(paramNameIcao);
//Setting Hotel Request ID
if(hotelReqId != null && reportName.equals("HOTEL_BRIEF")){
ParamNameValue paramNameReqID = new ParamNameValue();
paramNameReqID.setName("P_REQ_ID");
ArrayOfString reqID_value = new ArrayOfString();
List<String> trp_reqID = reqID_value.getItem();
trp_reqID.add(hotelReqId);
paramNameReqID.setValues(reqID_value);
List<ParamNameValue> listReqID = arr.getItem();
listReqID.add(paramNameReqID);
//Setting Transportation Request ID
if(transReqId != null && reportName.equals("TRANS_BRIEF")){
ParamNameValue paramNameReqID = new ParamNameValue();
paramNameReqID.setName("P_TRANS_REQ_ID");
ArrayOfString reqID_value = new ArrayOfString();
List<String> trp_reqID = reqID_value.getItem();
trp_reqID.add(transReqId);
paramNameReqID.setValues(reqID_value);
List<ParamNameValue> listReqID = arr.getItem();
listReqID.add(paramNameReqID);
//Setting Trip Location ID
if(tripLocId != null && (reportName.equals("HANDLING_BRIEF") || reportName.equals("AIRPORT_AND_AGENT"))){
ParamNameValue paramNameReqID = new ParamNameValue();
paramNameReqID.setName("P_TRIP_LOC_ID");
ArrayOfString reqID_value = new ArrayOfString();
List<String> trp_reqID = reqID_value.getItem();
trp_reqID.add(tripLocId);
paramNameReqID.setValues(reqID_value);
List<ParamNameValue> listReqID = arr.getItem();
listReqID.add(paramNameReqID);
//Setting DST
if(dst != null && reportName.equals("AIRPORT_AND_AGENT")){
ParamNameValue paramNameReqID = new ParamNameValue();
paramNameReqID.setName("P_DST");
ArrayOfString reqID_value = new ArrayOfString();
List<String> trp_reqID = reqID_value.getItem();
trp_reqID.add(dst);
paramNameReqID.setValues(reqID_value);
List<ParamNameValue> listReqID = arr.getItem();
listReqID.add(paramNameReqID);
//Setting STD
if(std != null && reportName.equals("AIRPORT_AND_AGENT")){
ParamNameValue paramNameReqID = new ParamNameValue();
paramNameReqID.setName("P_STD");
ArrayOfString reqID_value = new ArrayOfString();
List<String> trp_reqID = reqID_value.getItem();
trp_reqID.add(std);
paramNameReqID.setValues(reqID_value);
List<ParamNameValue> listReqID = arr.getItem();
listReqID.add(paramNameReqID);
//Setting Trip Leg Number
if(tripLegNum != null && reportName.equals("PERMIT_BRIEF")){
ParamNameValue paramNameReqID = new ParamNameValue();
paramNameReqID.setName("P_LEG_NUM");
ArrayOfString reqID_value = new ArrayOfString();
List<String> trp_reqID = reqID_value.getItem();
trp_reqID.add(tripLegNum);
paramNameReqID.setValues(reqID_value);
List<ParamNameValue> listReqID = arr.getItem();
listReqID.add(paramNameReqID);
reportRequest.setParameterNameValues(arr);
//reportRequest.setParameterNameValues(paramNameValue);
reportRequest.setReportAbsolutePath(reportAbsoPath); //The absolute path to the report in the BI Publisher repository. For example: /HR Manager/HR Reports/Employee Listing.xdo.
reportRequest.setReportData(null);//If you are providing the data directly for the report use this element to pass the data
reportRequest.setSizeOfDataChunkDownload(-1);//If you set flattenXML to true, or if you do not want to chunk the data, set this parameter to -1 to return all data back to the client.
reportResponse = publicReportService.runReportInSession(reportRequest, sessionToken);
catch(Exception e){
errorMessage.append("There was a problem in getting the report.\n");
errorMessage.append("Please try again. \n If problem persists contact System Administrastor with below Message.\n");
errorMessage.append(e.getMessage());
errorMessage.append(". Current User:"+bipUserName);
errorMessage.append(". Accessing Report:"+reportAbsoPath);
System.out.println(errorMessage.toString());
//outputStream.write(generatePDF(errorMessage.toString()));
//outputStream.flush();
e.printStackTrace();
finally{
try{
if(sessionToken!=null)
publicReportService.logout(sessionToken);
catch(Exception e){}
return reportResponse;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

Similar Messages

  • How to get the end of a download action ?

    Hello !
    My web application must download zip file.
    Actually, the servlet's code for download is like this :
    response.setContentType("application/download");
    response.setHeader("Content-Disposition","inline; filename=DownloadFile");
    ServletOutputStream l_ServletOutputStream = response.getOutputStream();
    l_ServletOutputStream.write(l_ByteArrayOutputStream.toByteArray());
    l_ServletOutputStream.flush();
    The client can see a popup dialog box asking him to save the file on disk or open it or cancel. In case of save action, file is downloaded but I don't know when this action finished. Is there any event to catch or something else that inform about the end of downloading action ( I have to refresh the display with a new JSP ) ?
    Thanks for your help !

    Propably to correct way would be to use HTTP-headers to indicate the length of the file, so actual application download is possible also through other clients, rather than the specific one, so you could do:
    response.setHeader("Content-length",l_ByteArrayOutputStream.toByteArray().length);I'm not really sure if servlets do this automatically, they really should though, but I'm hazy on their implementation and you might want to check the HTTP specification on whether or not the length of the headers should be included in the Content-length field, as it might be required to.
    Tuomas Rinta

  • Set the maximum length of textedit element in webdynpro

    Hi All,
      How to set the maximum length of texedit element to a some constant characters.setting col and row property to 10 and 2 didnot set max length to 40.setting width and height also didnt helped to limit the characters user can enter to 20.
    Thanks,
    pkv

    >
    pkv wrote:
    > Hi All,
    >
    >   How to set the maximum length of texedit element to a some constant characters.setting col and row property to 10 and 2 didnot set max length to 40.setting width and height also didnt helped to limit the characters user can enter to 20.
    >
    > Thanks,
    > pkv
    Hi,
    Setting row and height is for layout purposes and not for the limiting of text in a TextEdit UI Element.
    To ensure that the Text Exit has only 40 characters in 04s - you can do as Alka has suggested.
    For doing the same in CE 7.1 - you can use the onChange Action and write code inside that method to limit the number of characters.
    I would suggest that you use IWDMessageManager to show a message in the MessageTray whenever the user goes over the limit of 40 characters - rather than accept the whole text and then show some sort of popup.
    Thanks.
    p256960

  • SQL Loader - Field in data file exceeds maximum length

    Dear All,
    I have a file which has more than 4000 characters in a field and I wish to load the data in a table with field length = 4000. but I receive error as
    Field in data file exceeds maximum lengthThe below given are the scripts and ctl file
    Table creation script:
    CREATE TABLE "TEST_TAB"
        "STR"  VARCHAR2(4000 BYTE),
        "STR2" VARCHAR2(4000 BYTE),
        "STR3" VARCHAR2(4000 BYTE)
      );Control file:
    LOAD DATA
    INFILE 'C:\table_export.txt'
    APPEND INTO TABLE TEST_TAB
    FIELDS TERMINATED BY '|'
    TRAILING NULLCOLS
    ( STR CHAR(4000) "SUBSTR(:STR,1,4000)" ,
    STR2 CHAR(4000) "SUBSTR(:STR2,1,4000)" ,
    STR3 CHAR(4000) "SUBSTR(:STR3,1,4000)"
    )Log:
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon Jul 26 16:06:25 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Control File:   C:\TEST_TAB.CTL
    Data File:      C:\table_export.txt
      Bad File:     C:\TEST_TAB.BAD
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 0
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table TEST_TAB, loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    STR                                 FIRST  4000   |       CHARACTER           
        SQL string for column : "SUBSTR(:STR,1,4000)"
    STR2                                 NEXT  4000   |       CHARACTER           
        SQL string for column : "SUBSTR(:STR2,1,4000)"
    STR3                                 NEXT  4000   |       CHARACTER           
        SQL string for column : "SUBSTR(:STR3,1,4000)"
    value used for ROWS parameter changed from 64 to 21
    Record 1: Rejected - Error on table TEST_TAB, column STR.
    Field in data file exceeds maximum length
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    Table TEST_TAB:
      0 Rows successfully loaded.
      1 Row not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                 252126 bytes(21 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             1
    Total logical records rejected:         1
    Total logical records discarded:        0
    Run began on Mon Jul 26 16:06:25 2010
    Run ended on Mon Jul 26 16:06:25 2010
    Elapsed time was:     00:00:00.22
    CPU time was:         00:00:00.15Please suggest a way to get it done.
    Thanks for reading the post!
    *009*

    Hi Toni,
    Thanks for the reply.
    Do you mean this?
    CREATE TABLE "TEST"."TEST_TAB"
        "STR"  VARCHAR2(4001),
        "STR2" VARCHAR2(4001),
        "STR3" VARCHAR2(4001)
      );However this does not work as the error would be:
    Error at Command Line:8 Column:20
    Error report:
    SQL Error: ORA-00910: specified length too long for its datatype
    00910. 00000 -  "specified length too long for its datatype"
    *Cause:    for datatypes CHAR and RAW, the length specified was > 2000;
               otherwise, the length specified was > 4000.
    *Action:   use a shorter length or switch to a datatype permitting a
               longer length such as a VARCHAR2, LONG CHAR, or LONG RAW*009*
    Edited by: 009 on Jul 28, 2010 6:15 AM

  • Ctxload error DRG-11530: token exceeds maximum length

    I downloaded the 11g examples (formerly the companion cd) with the supplied knowledge base (thesauri), unzipped it, installed it, and confirmed that the droldUS.dat file is there. Then I tried to use ctxload to create a default thesaurus, using that file, as per the online documentation. It creates the default thesaurus, but does not load the data, due to the error "DRG-11530: token exceeds maximum length". Apparently one of the terms is too long. But what can I use to edit the file? I tried notepad, but it was too big. I tried wordpad, but it was unreadable. I was able to create a default thesaurus using the much smaller sample thesaurus dr0thsus.txt, so I confirmed that there is nothing wrong with the syntax or privileges. Please see the copy of the run below. Is there a way to edit the droldUS.dat file or a workaround or am I not loading it correctly? Does the .dat file need to be loaded differently than the .txt file?
    CTXSYS@orcl_11g> select banner from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
      2  /
      COUNT(*)
             0
    CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
    FAULT'
      2  /
      COUNT(*)
             0
    CTXSYS@orcl_11g> host ctxload -thes -user ctxsys/ctxsys@orcl -name default -file
    C:\app\Barbara\product\11.1.0\db_1\ctx\data\enlx\droldUS.dat
    Connecting...
    Creating thesaurus default...
    Thesaurus default created...
    Processing...
    DRG-11530: token exceeds maximum length
    Disconnected
    CTXSYS@orcl_11g> connect ctxsys/ctxsys@orcl
    Connected.
    CTXSYS@orcl_11g>
    CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
      2  /
      COUNT(*)
             1
    CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
    FAULT'
      2  /
      COUNT(*)
             0
    CTXSYS@orcl_11g> exec ctx_thes.drop_thesaurus ('default')
    PL/SQL procedure successfully completed.
    CTXSYS@orcl_11g> host ctxload -thes -user ctxsys/ctxsys@orcl -name default -file
    C:\app\Barbara\product\11.1.0\db_1\ctx\sample\thes\dr0thsus.txt
    Connecting...
    Creating thesaurus default...
    Thesaurus default created...
    Processing...
    1000 lines processed
    2000 lines processed
    3000 lines processed
    4000 lines processed
    5000 lines processed
    6000 lines processed
    7000 lines processed
    8000 lines processed
    9000 lines processed
    10000 lines processed
    11000 lines processed
    12000 lines processed
    13000 lines processed
    14000 lines processed
    15000 lines processed
    16000 lines processed
    17000 lines processed
    18000 lines processed
    19000 lines processed
    20000 lines processed
    21000 lines processed
    21760 lines processed successfully
    Beginning insert...21760 lines inserted successfully
    Disconnected
    CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
      2  /
      COUNT(*)
             1
    CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
    FAULT'
      2  /
      COUNT(*)
          9582
    CTXSYS@orcl_11g>

    Hi Roger,
    Thanks for the response. You are correct. I was confusing the terms thesaurus and knowledge base, which sometimes seem to be used interchangeably or synonymously, but are actually two different things. I read over the various sections of the documentation regarding the supplied knowledge base and supplied thesaurus more carefully and believe I understand now. Apparently, the dr0thsus.txt file that I did ultimately load using ctxload to create a default thesaurus is the supplied thesaurus that is intended to be used to create the default English thesaurus, which supports ctx_thes syn and such. The other droldUS.dat file that I mistakenly tried to load using ctxload is the supplied compiled knowledge base that supports ctx_doc themes and gist and such. In the past I have used ctx_thes.create_thesaurus to create a thesaurus, but using ctxload can also load a thesaurus from a text file with the data in a specified format. Once a thesaurus is loaded using ctxload, it can then be compiled using ctxkbtc to add it to the existing compiled knowledge base. So, the knowledge base is sort of a compilation of thesauri, which is what led to my confusion in terminology. I think I have it all straight in my mind now and hopefully this will help anybody else who searches for the same problem and finds this.
    Thanks,
    Barbara

  • How to set the maximum length that a user can enter in Msgstyledtextinput

    Hi Everyone,
    I'm currently using EBS 11.5.1 and 10.2g DB
    Is there a way that I can set the maximum length that a user can input?
    I changed the Maximum Length to lower number (from 150 to 100) but I get the following error.
    Developer Mode Exception encountered in item SaveLocation
    Error: The item SaveLocation has a maximum length (100)
             which is not equal to that of the corresponding VO attribute
           , SaveLocation length (150).
    Action: Make sure they are equal in size. There must be other way to set that value
    Thanks,
    Elmer

    You have to set the maximum length of column to 150 to avoid this error.
    You can set the same in Jdev.
    Thanks
    --Anil                                                                                                                                                                                                                                                       

  • Maximum length of identifier in insert query

    Hi,
    I am using Sybase 12.0 with JConnect 5.
    I am facing some problem with insert query.
    It gives exception like " identitifer is too long maximum length is 30"
    If i run then same query on winSql its working fine but with JDBC not working.
    Pls help me reagrding this.

    Hi,
    this is the error message i am getting
    com.sybase.jdbc2.jdbc.SybSQLException: The identifier that starts with '"T3211PU,,insert into Illustr' is too long. Maximum length is 28.
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2408)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java(Compiled Code))
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1535)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1527)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:742)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.dcx.catl.macscompiler.util.CommonDataAccessManager.execQueryRetState(CommonDataAccessManager.java:759)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.dcx.catl.macscompiler.bo.RemoveIllustrationJavaBean.execute(RemoveIllustrationJavaBean.java:414)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.dcx.catl.macscompiler.ao.RemoveIllustrationAction.execute(RemoveIllustrationAction.java:219)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    [4/27/05 17:02:50:031 IST] 575ee900 SystemErr R [4/27/05 17:02:50:031 IST] 575ee900 SystemOut O SQLException: The identifier that starts with '"T3211PU,,insert into Illustr' is too long. Maximum length is 28.

  • Action Listener Method called multiple times

    I have a page (fragment .jsff), containing a simple input text and a button called "search". When I click on "Search" the action listener is triggered multiple times. (The results are displayed in a table inside a panel collection).
    The results are actually coming back ok.
    When I debug the code, I can see the action listener method called twice.
    Do you know why is that?
    What should I be taking care of?
    This is my code :
    *** Fragment ****
    <af:commandButton text="#{identityBundle.search_label}" id="cb1"
    actionListener="#{UserDetailsBean.searchUsersListener}"
    disabled="#{!bindings.searchUsers.enabled}"/>
    *** Managed bean ***
    public void searchUsersListener(ActionEvent actionEvent) {
    // Add event code here...
    DCBindingContainer bindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iter = bindings.findIteratorBinding("userIterator");
    DCDataRow row = (DCDataRow)iter.getCurrentRow();
    User user = (User)row.getDataProvider();
    boolean isSearchCriteriaPresent = false;
    if(user != null){
    String fn = user.getFirstname();
    if(fn != null && !fn.trim().equals("")){
    isSearchCriteriaPresent = true;
    user.setLastname(fn);
    user.setNonMTUserLogin(fn);
    try {
    Map <Object, Object> userMap = PropertyUtils.describe(user);
    for(Map.Entry<Object, Object> entry: userMap.entrySet()){
    if(entry.getKey() != null && entry.getValue() != null && !entry.getKey().toString().equalsIgnoreCase("class")){
    isSearchCriteriaPresent = true;
    break;
    } catch (IllegalAccessException e) {
    e.printStackTrace();
    } catch (InvocationTargetException e) {
    e.printStackTrace();
    } catch (NoSuchMethodException e) {
    e.printStackTrace();
    if(!isSearchCriteriaPresent){
    user.setFirstname("*");
    OperationBinding opBinding = (OperationBinding)bindings.getOperationBinding("searchUsers");
    opBinding.getParamsMap().put("user", user);
    opBinding.execute();
    AdfFacesContext adfFacesCtx = AdfFacesContext.getCurrentInstance();
    Map<String, Object> scopePageFlowScopeVar= adfFacesCtx.getPageFlowScope();
    scopePageFlowScopeVar.put("userSearchCriteria", user);
    ADFContext adfCtx = ADFContext.getCurrent();
    Map sessionScope = adfCtx.getSessionScope();
    sessionScope.put("userSearchCriteria", user);
    setUserSearchCriteria(user);
    if(selectedUserID != null){
    selectedUserID.setValue(null);
    RichTable table = getUserResultsTable();
    DCIteratorBinding searchUsersIterator = (DCIteratorBinding)bindings.get("searchUsersIterator");
    Row[] rows = searchUsersIterator.getAllRowsInRange();
    if(rows.length > 0){
    RowKeySetImpl rks = new RowKeySetImpl();
    ArrayList keyList = new ArrayList();
    keyList.add(rows[0].getKey());
    rks.add(keyList);
    table.setSelectedRowKeys(rks);
    table.setDisplayRowKey(keyList);
    refreshState(table);
    if(!isSearchCriteriaPresent){
    user.setFirstname(null);
    else{
    deleteUserButton.setDisabled(true);
    resetPasswordButton.setDisabled(true);
    enableUserButton.setDisabled(true);
    disableUserButton.setDisabled(true);
    Thanks in advance for your help

    Hi,
    Can you try this?
    1. set partialSubmit=true for the "search" button
    2. set "search" button id as partialTrigger in your result table
    -Prasad

  • The error is like : Variable length field exceeds maximum length

    Hi All,
    I am trying to load some signature ascii data from load file. so i wrote the code like below in my controal file to load that to database. For SIGN_IMAGE in oracle db it was mentioned as RAW(2000). The below is worked fine when i tried in window and oracle 8i environment.
    SIG_TYPE POSITION(23:23) CHAR,
    SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
    NULLIF SIGN_IMAGE=BLANKS,
    SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
         NULLIF SIGN_IMAGE1=BLANKS
    But when i ported the same thing to solaris and oracle 10g environment. The below code is giving error when SQL Loder loading.
    The error is like for column SIGN_IMAGE : Variable length field exceeds maximum length.
    But here i am giving a lenght of 1954 only with including 2 bytes length of the string.
    Could any one tell me what is exactly the problem? i am not able sort out the issue.
    Thanks,
    Shashi

    Maybe:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#i1011032

  • Sql loader - maximum lengths?

    can someone tell me if the datatype CHAR has a maximum length in sql loader ( i think it may be 255, but am not sure) if so, how can i load a 2000 fields into a column on the database, i have tried varchar and i still get an error

    What's the error? What's the Oracle version?
    See this:
    http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10825/ldr_field_list.htm#g1044967
    and search (ctrl-f) for this string:
    "The syntax for the CHAR datatype is"
    Tom Best

  • FRM-30457: Maximum Length ignored for character-datatype

    Hi,
    I have a oracle form. When i use Compile Module (Ctrl + T) I am getting the following error:
    FRM-30457: Warning: Maximum Length ignored for character-datatype subordinate mirror item MAIN_CONTROLS.DATA1.
    Can anyone help to resolve this warning message?

    Hi,
    Check the data type of MAIN_CONTROLS.DATA1, i think, it must be a number.
    Or you might have not added the maximum length for MAIN_CONTROLS.DATA1.
    I found the below when I surfed.
    Error Message: FRM-30457: Warning: Maximum Length ignored for character-datatype subordinate mirror item %s.%s.
    Error Cause:
    A non-zero value was specified for the Maximum Length property in a subordinate mirror item whose Data Type is CHAR, ALPHA, or LONG. The Maximum Length property for such an item will be obtained from the master mirror item (the item specified by the Synchronize with Item property).
    Action:
    Specify the Maximum Length property in the master mirror item.

  • Maximum Length of Query String

    Hello all,
    I am getting the (in)famous null pointer exception inside my Webaction. I am appending certain parameters to my Action object in Javascript, so that they are avaialble in my webaction. Here there is no way that a certain value can come null [i am setting the value to true while declaring the var]. The possible problem could be the maximum length of the querystring. I am doubting that the maximum allowed length of Querystring is exceeded and thus I am not getting the last appended parameter upon submitting the form, thus giving me null value.
    Can someone please let me know what is the maximum allowed length of querystring inside a JSP

    The maximum URL length allowed by Internet Explorer is ~2,048
    characters. This includes the host name, directory, page, and all
    parameters.
    may be this is limiting ur parameter........

  • Action listener activation in many phases

    I need action listener (methods) to be activated in many phases. I.e., when the user clicks a submit button, I want code to be executed (in my case) after the validation phase and after (during) the invoke application phase. In earlier version of the standard, I would just register 2 listeners, returning the appropriate getPhaseId() value. Since this method is removed from the current standard, things get more complicated.
    QUESTION: Why in heavens name was this method removed from the standard? I suppose, because it is difficult to support with listener methods (in contrast to instances)? Bit of a rough solution, no? Or am I missing something?
    I have a solution now, I think, that is based on getting the action event immediate, and requeuing the event again and again.
    In the JSP, in the JSF form, I have a submit button as follows:
    <h:commandButton id="buttonId" value="ButtonText"
                     actionListener="#{handler.buttonListener}"
                     immediate="true"/>The method Handler.buttonListener is:
      public final void buttonListener(ActionEvent ae) {
        LOG.debug("Handler. buttonListener called ("
                  + "ActionEvent.getPhaseId() = " + ae.getPhaseId()
                  + "; ActionEvent.getComponent() = " + ae.getComponent()
                  + ")");
        PhaseId phaseId = ae.getPhaseId();
        if (phaseId.equals(PhaseId.APPLY_REQUEST_VALUES)) {
          LOG.debug("-- processing during " + ae.getPhaseId());
          // meaningful stuff here
          // prepare for execution in next phase
          ae.queue();
            /* this sets phase id to the current phase, so it is extremely important that
             * we set the necessary phase id AFTER queuing the event */
          ae.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
          LOG.debug("-- ActionEvent (getPhaseId() = " + ae.getPhaseId() + ") queued");     
        else if (phaseId.equals(PhaseId.PROCESS_VALIDATIONS)) {
          LOG.debug("-- processing during " + ae.getPhaseId());
          // meaningful stuff here
          // prepare for execution in next phase
          ae.queue();
          /* this sets phase id to the current phase, so it is extremely important that
           * we set the necessary phase id AFTER queuing the event */
          ae.setPhaseId(PhaseId.INVOKE_APPLICATION);
          LOG.debug("-- ActionEvent (getPhaseId() = " + ae.getPhaseId() + ") queued");     
        else if (phaseId.equals(PhaseId.INVOKE_APPLICATION)) {
          LOG.debug("-- processing during " + ae.getPhaseId());
          // meaningful stuff here
        LOG.debug("Handler. buttonListener done");
      }The /* */ comment in the code is there because the queue methods (on the event as well as the component) set the phase id of the event to the current phase. If I set the phase id of the event before queuing it, that setting is undone, and I get an infinite loop! This is weird, and my solution is at least shaky: it doesn't feel stable across JSF implementations and future releases. I could not find a queue method that leaves the phase id alone.
    QUESTION: am I missing something?
    The output however is:
    Mar 21, 2005 12:51:11 PM org.exadel.jsf.PhaseTracker beforePhase
    INFO: BEFORE RESTORE_VIEW 1
    Mar 21, 2005 12:51:11 PM org.exadel.jsf.PhaseTracker afterPhase
    INFO: AFTER RESTORE_VIEW 1
    Mar 21, 2005 12:51:11 PM org.exadel.jsf.PhaseTracker beforePhase
    INFO: BEFORE APPLY_REQUEST_VALUES 2
    12:51:12,119 DEBUG Handler:550 - Handler.buttonListener called
          (ActionEvent.getPhaseId() = APPLY_REQUEST_VALUES 2;
           ActionEvent.getComponent() = javax.faces.component.html.HtmlCommandButton@33b99a)
    12:51:12,171 DEBUG Handler:556 - -- processing during APPLY_REQUEST_VALUES 2
    12:51:12,184 DEBUG Handler:564 - -- ActionEvent (getPhaseId() = PROCESS_VALIDATIONS 3) queued
    12:51:12,189 DEBUG Handler:580 - Handler.buttonListener done
    12:51:12,220 DEBUG Handler:550 - Handler.buttonListener called
         (ActionEvent.getPhaseId() = PROCESS_VALIDATIONS 3;
          ActionEvent.getComponent() = javax.faces.component.html.HtmlCommandButton@33b99a)
    12:51:12,255 DEBUG Handler:567 - -- processing during PROCESS_VALIDATIONS 3
    12:51:12,256 DEBUG Handler:574 - -- ActionEvent (getPhaseId() = INVOKE_APPLICATION 5) queued
    12:51:12,257 DEBUG Handler:580 - Handler.buttonListener done
    12:51:12,265 DEBUG Handler:550 - Handler.buttonListener called
        (ActionEvent.getPhaseId() = INVOKE_APPLICATION 5;
         ActionEvent.getComponent() = javax.faces.component.html.HtmlCommandButton@33b99a)
    12:51:12,267 DEBUG Handler:577 - -- processing during INVOKE_APPLICATION 5
    12:51:12,268 DEBUG Handler:580 - Handler.buttonListener done
    Mar 21, 2005 12:51:12 PM org.exadel.jsf.PhaseTracker afterPhase
    INFO: AFTER APPLY_REQUEST_VALUES 2
    Mar 21, 2005 12:51:12 PM org.exadel.jsf.PhaseTracker beforePhase
    INFO: BEFORE RENDER_RESPONSE 6
    Mar 21, 2005 12:51:12 PM org.exadel.jsf.PhaseTracker afterPhase
    INFO: AFTER RENDER_RESPONSE 6The info is generated by a phase listener I found somewhere (sorry for the lack of reference here to the author). As you can see, I get 3 consecutive calls of my listener method, but they are all during the apply request values phase, and we jump from the apply request values phase immediately to the render response phase, skipping all the other phases, although my listener is actually called 3 times.
    QUESTION: what the fuck? What is happening here, and more important, how can I fix it?

    I am in touch with IBM about any patch they might have for this. I just thought I'd post details from what I researched.
    Basically I found that if I had CommandButton and/or CommandLink components on my page and clicked them for a total greater than 15 times, the application just quit reacting to any of the clicks. After writing a PhaseListener I discovered that after 15 clicks the JSF lifecycle was going straight from the Restore View (1) to Render Response (6) phase instead of going through the ones in between.
    I downloaded the JSF source code and tracked down the magic number 15. As mentioned earlier in this forum it has to do with the number of views per session. In the Sun JSF-RI com.sun.faces.application.StateManagerImpl class
    the number of views is defaulted to 15. When the number of views hits the max the oldest view is deleted. Somehow I don't think they are deleting the oldest view or else why my app quits after 15 clicks I do not know. Anyway this is a known issue with the Sun JSF-RI and documented in their Release Notes.
    Depending on the JSF implementation there may or may not be a workaround. I mean to say the the workaround is not part of the JSF spec but Sun's implementation has a feature where you can configure the com.sun.faces.NUMBER_OF_VIEWS_IN_SESSION value in the web.xml file under the <context-param> tag. If you set the value sufficiently high you lower the risk of the app quitting on you (like a user may be unlikely to make 100 or even 50 clicks on the same page). You might also want to set the state to be saved on the server by setting javax.faces.STATE_SAVING_METHOD to server in another <context-param> tag. Somehow setting this state to client caused errors (NullPointerException) in our app in one of the Faces classes itself.
    Hope this helps someone out there.

  • What is the maximum length of LONG data type in Forms 6i?

    What is the maximum length of LONG data type in Forms 6i?

    Do you mean the maximum size of a LONG that Forms 6i can display or the maximum size that can be stored in the database which sits behind your Forms application?
    Regards, APC

  • Maximum length of field in ALV GRID Display.

    Hi,
    I have a requirement in a report where i have to display long text related to WBS elements and Networks whose maximum length is 640 characters. I want all the 640 characters of the text to be displayed in one single line but ALV is showing only 128 characters ( or 132 ). Does anybody know how to achieve this.
    Thanks in advance.
    Sharath kumar R.

    Hi,
    have a look to foll. link
    Display String in ALV List
    regards Andreas

Maybe you are looking for

  • Using iMac as a Server

    After reading this thread please do not just disregard me as being a forgetful muppet!  I setup file sharing and printer sharing between my iMac and my Mac book Pro (both using OSX 10.8.2) and had much success in doing so.  Now however, i am only abl

  • How do I get the color of the address, in the address box, to be all black on white, and not part of it to be gray on white, and part to be black on white?

    Right now, the address line in my address box, at the top of the page, begins "https://support", all in light gray, followed by "mozilla.com", in black, followed by "/en-US/questions/new?product=.......etc.", all in light gray on a white backround, s

  • NYT Article:Sending an S O S for a PC Exorcist

    hey there all, i read this article in the New York Times & just had to share the comment of John C. Dvorak, of PC Magazine. the writer's new Dell quit after 72 hours.... it took one week, 3 techs & $800.00 to fix his issues. that's nuts!! but i LOL'd

  • Trying to Create Cone from Image

    I am attempting to take a circular image (a logo of something) and edit it so that it can be printed and turned into a small cone.  I have spent HOURS researching this and cannot seem to find the the problem.  I've followed the steps below (found on

  • Pictures too small

    When I send pictures the recipients say the pictures are very small, but when I send something from my gallery it says the picture is too big and must be resized down.  How can I send them larger?