Please help: validate() function is taking 2 sec.

Hi,
My application creates a new panel with different components frequently.
The problem is one JComboBox which most of the panels have in common holds 1lakh string objects.
Creating the panel with all the required components is taking 100ms.
I remove the old panel and add the newly created one to the parent panel. After that when i invoke validate() or invalidate() it is taking 1.5-2 sec to show.
This is seen only in the case of panel that have these 1lakh object component. Why should validate() ever depend on the model?
I tried invalidate() this was return quickly but it took the same time to render.
Could any one please please tell me what validate() internally?
I mean which fun. does the validate invoke.
Thanks
Shilpa

Hello,
I am posting an example with few button and a side panel with a combo box. Clicking any of the buttons removes the side panel and validates it with the new panel. I found that it is taking around 1900ms to validate .Here is the example.
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Collection;
import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.UIManager;
public class GridLay extends JFrame
JPanel panel = new JPanel();
JPanel panel2 = new JPanel();
JPanel panel3 = new JPanel();
public GridLay()
GridBagLayout gridbag = new GridBagLayout();
setFont(new Font("SansSerif", Font.PLAIN, 14));
// setLayout(gridbag);
panel.setLayout(gridbag);
panel3.setLayout(new GridLayout(1, 2));
makeCombo();
makeText("Button1", gridbag, getScriptDescGridConstraints2());
makebutton("Button2", gridbag, getCenterLabelGridConstraints2());
makebutton("Button3", gridbag, getRightEditorGridConstraints2());
makebutton("Button4", gridbag, getCenterLabelGridConstraints2());
makebutton("Button5", gridbag, getRightEditorGridConstraints2());
makebutton("Button6", gridbag, getCenterLabelGridConstraints2());
makebutton("Button7", gridbag, getRightEditorGridConstraints2());
makebutton("Button8", gridbag, getCenterLabelGridConstraints2());
makebutton("Button9", gridbag, getRightEditorGridConstraints2());
makebutton("Button2", gridbag, getCenterLabelGridConstraints2());
makebutton("Button3", gridbag, getRightEditorGridConstraints2());
makebutton("Button4", gridbag, getCenterLabelGridConstraints2());
makebutton("Button5", gridbag, getRightEditorGridConstraints2());
makebutton("Button6", gridbag, getCenterLabelGridConstraints2());
makebutton("Button7", gridbag, getRightEditorGridConstraints2());
makebutton("Button8", gridbag, getCenterLabelGridConstraints2());
makebutton("Button9", gridbag, getRightEditorGridConstraints2());
JScrollPane scroll = new JScrollPane(panel);
scroll.setHorizontalScrollBarPolicy(
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
scroll.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
panel3.add(scroll);
panel3.add(panel2);
getContentPane().add(panel3);
setSize(400, 400);
// pack();
// setSize(getPreferredSize());
setVisible(true);
setSize(300, 100);
protected void makebutton(
String name,
GridBagLayout gridbag,
GridBagConstraints c)
Button button = new Button(name);
gridbag.setConstraints(button, c);
panel.add(button);
button.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e)
panel3.remove(panel2);
panel2 = new JPanel();
makeCombo();
panel3.add(panel2);
System.out.println("Validating");
long start = System.currentTimeMillis();
validate();
System.out.println(
"Time taken to validate =" + (System.currentTimeMillis() - start));
protected void makeCombo()
JComboBox button = new JComboBox();
button.setModel(getMod());
panel2.add(button);
private DefaultComboBoxModel getMod()
String a = "22222222222222222222222222222222";
Collection<String> list = new ArrayList<String>();
for (int i = 0; i < 100000; i++) {
list.add(a);
DefaultComboBoxModel mod = new DefaultComboBoxModel(list.toArray());
return mod;
protected void makeText(
String name,
GridBagLayout gridbag,
GridBagConstraints c)
final JTextArea scriptDescription = new JTextArea(2, 10);
scriptDescription.setLineWrap(true);
scriptDescription.setWrapStyleWord(true);
scriptDescription.setEditable(false);
scriptDescription.setBackground(
UIManager.getColor("Panel.Background"));
scriptDescription.setFont(new Font("", Font.ITALIC, 12));
scriptDescription.setText(
"Jane was born in Steventon, Hampshire, where her father was a rector. "
+ "She was the second daughter and seventh child in a family of eight."
+ " The first 25 years of her life Austen spent in Hampshire. "
+ "She was mostly tutored at home. ");
gridbag.setConstraints(scriptDescription, c);
scriptDescription.setBorder(
BorderFactory.createCompoundBorder(
BorderFactory.createLineBorder(Color.gray, 1),
BorderFactory.createEmptyBorder(1, 15, 1, 10)));
panel.add(scriptDescription);
* Returns the grid bag constraints for the script description text area.
private GridBagConstraints getScriptDescGridConstraints2()
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 0;
c.weightx = 1.0;
c.anchor = GridBagConstraints.EAST;
c.fill = GridBagConstraints.HORIZONTAL;
c.gridwidth = 3;
return c;
* Returns the grid bag constraints for the label.
* @return gridBagConstraints.
private GridBagConstraints getCenterLabelGridConstraints2()
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = GridBagConstraints.RELATIVE;
c.weightx = 0.0;
c.gridwidth = 1;
c.anchor = GridBagConstraints.WEST;
c.insets = new Insets(1, 10, 1, 0);
return c;
* Returns the grid bag constraints for the editor.
* @return gridBagConstraints.
private GridBagConstraints getRightEditorGridConstraints2()
GridBagConstraints c = new GridBagConstraints();
c.weightx = 1.0;
c.gridx = 1;
c.gridy = GridBagConstraints.RELATIVE;
c.gridwidth = GridBagConstraints.RELATIVE;
c.fill = GridBagConstraints.HORIZONTAL;
c.anchor = GridBagConstraints.EAST;
c.insets = new Insets(1, 2, 1, 1);
c.weighty = 1.0;
return c;
public static void main(String[] args)
GridLay gr = new GridLay();
And i found that if I set the model after i validate it takes around 8 ms.
I was of the opinion that validate() only renders!!!
Thanks
Shilpa

Similar Messages

  • I have been using GRAB to capture screen displays.  It has just stopped working since the last OSX Upgrade.  Can anyone, please help restore functionality?

    I have been using GRAB to capture screen displays.  It has just stopped working since the last OSX Upgrade.  Can anyone, please help restore functionality?

    Thanks for that.  I did as suggested but when I tried again, it still did not work.  Another  com.apple.Grab.plist appeared in the Library.
    I now have the following files in Library
    file://localhost/Users/peterpatel/Library/Preferences/com.apple.Grab.LSSharedFil eList.plist
    file://localhost/Users/peterpatel/Library/Preferences/com.apple.Grab.LSSharedFil eList.plist.lockfile
    file://localhost/Users/peterpatel/Library/Preferences/
    file://localhost/Users/peterpatel/Library/Preferences/com.apple.Grab.plist.lockf ile
    What do you suggest I do now?

  • Please help : Pipline function, error passing parameter

    Hello,
    Please help a DBA who's trying to make it with PL/SQL (on Oracle 10.2.0.4).
    I'm just building a script to find the space used by all the segments (lob, index, partitions) related to a table.
    Here is my problem, when I call a table function (DBMS_SPACE.OBJECT_DEPENDENT_SEGMENTS) from within a pipeline function i get an error,
    if I turn that function into procedure it is running fine, if I hard code parameters it works...
    When running as a function I get the error :
    SQL> Select * from table(yke_size_info('SAPRD', 'REPOSRC'));
    Select * from table(yke_size_info('SAPRD', 'REPOSRC'))
    *+
    ERROR at line 1:
    ORA-20000: Object does not exist
    ORA-06512: at "SYS.DBMS_SPACE", line 2673
    ORA-06512: at "SYS.YKE_SIZE_INFO", line 40
    => line 40 is the call to DBMS_SPACE.OBJECT_DEPENDENT_SEGMENTS
    Thank for your help, I'm getting crazy with this, I've been browsing Google & docs for hoors but no answer yet !
    create or replace type r_size_info as object (
    nb_par_tbl   number ,
    nb_idx       number ,
    nb_par_idx   number ,
    nb_lob       number ,
    used_par_tbl number ,
    used_idx     number ,
    used_par_idx number ,
    used_lob     number ,
    free_par_tbl number ,
    free_idx     number ,
    free_par_idx number ,
    free_lob     number
    +)+
    +/+
    create or replace type t_size_info as table of r_size_info;
    +/+
    CREATE OR REPLACE FUNCTION yke_size_info(o_wner varchar2, o_bject varchar2 ) RETURN t_size_info PIPELINED AS
    r_size r_size_info := r_size_info(0,0,0,0,0,0,0,0,0,0,0,0);
    obj_segment_owner   VARCHAR2(100);
    obj_segment_name    VARCHAR2(100);
    obj_segment_type    VARCHAR2(100);
    obj_tablespace_name VARCHAR2(100);
    BEGIN
    FOR obj IN (SELECT segment_owner, segment_name, segment_type, tablespace_name FROM TABLE(dbms_space.object_dependent_segments(o_wner, o_bject, NULL, 1)))*
    LOOP
    If I change that line to hard code the parameter It's working :
    FOR obj IN (SELECT segment_owner, segment_name, segment_type, tablespace_name FROM TABLE(dbms_space.object_dependent_segments('SAPSR3', 'REPOSRC', NULL, 1)))
    If I turn the function into a procedure it is working :
    CREATE OR REPLACE PROCEDURE yke_size_inf(o_wner varchar2, o_bject varchar2 ) AS
    obj_segment_owner   VARCHAR2(100);
    obj_segment_name    VARCHAR2(100);
    obj_segment_type    VARCHAR2(100);
    obj_tablespace_name VARCHAR2(100);
    BEGIN
    FOR obj IN (SELECT segment_owner, segment_name, segment_type, tablespace_name  FROM (TABLE(dbms_space.object_dependent_segments (o_wner, o_bject, NULL, 1))))*
    LOOP

    Not really sure what you are trying to achieve... and putting a pipeline function on top of another pipeline function seems unnecessary to me.
    But using the basic code you've shown, the following works fine:
    SQL> create or replace type TStrings is table of varchar2(4000);
      2  /
    Type created.
    SQL>
    SQL> create or replace function FooPipe( objectName varchar2 ) return TStrings pipelined is
      2  begin
      3          for r in (
      4                  select
      5                          segment_owner, segment_name, segment_type, tablespace_name
      6                  from    table( dbms_space.object_dependent_segments(USER, objectName , NULL, 1))
      7          )
      8          loop
      9                  pipe row( r.segment_name||' is object('||r.segment_type||') in space('||r.tablespace_name||')' );
    10          end loop;
    11
    12          return;
    13  end;
    14  /
    Function created.
    SQL>
    SQL> select * from TABLE(FooPipe('TESTTAB'));
    COLUMN_VALUE
    TESTTAB is object(TABLE) in space(USERS)
    SQL>

  • Please help---merge function for two arrays.

    I am trying to create a merge function that merges two sorted arrays into a third array. I know what I am supposed to do, at least in theory, but I have been completely unsuccessful with actually getting the code to work. Since it is private, you can't directly access the arrays, you have to just reference them. could someone please help me out.
    import java.io.*;
    class OrdArray
    private long[] a;
    private int nElms;
    public OrdArray(int max)
    a = new long[max];
    nElms = 0;
    public int size()
    { return nElms;}
    public int find(long searchKey)
    int lowerBound = 0;
    int upperBound = nElms-1;
    int curIn;
    while(true)
    curIn = (lowerBound + upperBound) / 2;
    if(a[curIn]==searchKey)
    return curIn;
    else if (lowerBound > upperBound)
    return nElms;
    else
    if(a[curIn] < searchKey)
    lowerBound = curIn + 1;
    else
    upperBound = curIn - 1;
    public void insert(long value)
    int j;
    for(j=0; j<nElms; j++)
    if(a[j] > value)
    break;
    for(int k=nElms; k>j; k--)
    a[k] = a[k-1];
    a[j] = value;
    nElms++;
    public boolean delete(long value)
    int j = find(value);
    if(j==nElms)
    return false;
    else
    for(int k=j; k<nElms; k++)
    a[k] = a[k+1];
    nElms--;
    return true;
    public void display()
    for(int j=0; j<nElms; j++)
    System.out.print(a[j] + " ");
    System.out.println("");
    public void merge(OrdArray array, OrdArray array1)
    }//this is the start of the merge function. I am stuck and not real sure where to go from here.
    public long getElm(int index)
    return a[index];
    }//end class OrdArray
    class OrderedApp
    public static void main(String[]args)
    int maxSize = 100;
    OrdArray arr, arr1, arr2;
    arr = new OrdArray(maxSize);
    arr1 = new OrdArray(maxSize);
    arr2 = new OrdArray(maxSize);
    arr.insert(77);
    arr.insert(99);
    arr.insert(44);
    arr.insert(55);
    arr.insert(22);
    arr1.insert(88);
    arr1.insert(11);
    arr1.insert(00);
    arr1.insert(66);
    arr1.insert(33);
    arr2.merge(arr, arr1);
    arr.display();
    System.out.println("--------------------");
    arr1.display();
    System.out.println("--------------------");
    arr2.display();
    }

    If I use ArrayList<Long>, would I have to change private long[]a to ArrayList<long>, cause if so, I am not able to do that.
    I am supposed to add a merge() method to megre the two source arrays into an ordered destination array.
    public void merge(OrdArray array, OrdArray array1)
    mergeSize = array.nElems + array1.nElems;
    int i = 0;
    int j = 0;
    int k = 0;
    while (i = 0; i < array.nElems; i++) {
              if {array.getElm(i) < array1.getElm(j)
                                                              //how do you move to the next set of values
                                                              //and to move which variables are incremented
                                                              //how do you test if the flush loop should be      called, hint if( == )
                   while (j = mergeSize - array.nElems; j <= mergeSize; j++) { 
                                   this.a[j] = array1.a;
    //again how do you move to next value and placeholder
         //which indices are incremented
    //copy/paste and change the variables for the other value being smaller
    public long getElm(int index)
    return a[index];
    this is all I have started, but i don't really understand all the comments because I haven't used java in a long time. Like I said, I understand what needs to be done and what order to do it in, but getting the code down to do that is really rough

  • Please Help regard function that will return values of each JComboBox items

    I'd like to create a function that will return values of each item on the JComboBox at a time when
    I click on each item of a comboBox. I had this following codes, but didn't work.
    Please help me !!!Please correct it... thanks a million
    String wp;
    String text;
    String A[] = {"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox ABC = new JComboBox();
    for (int i=0;i<A.length;i++) {
    ABC.addItem (A);
    text = Get_It(); //assigns each value of JComboBox's item to variable text when clicks at each item
    //of a comboBOx
    private String Get_It(){
    ABC.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wp = (String)CBweapon.getSelectedItem() ;
    return wp;

    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class AlertFrame extends JFrame {
    String s_alert[] ={"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox CBweapon;
    String wpText;
    public AlertFrame() {
    super("Alerts");
    Container contentPane = getContentPane();
    contentPane.setLayout(null);
    setSize(600,600);
    CBweapon = new JComboBox();
    for (int i=0;i<s_weapon.length;i++) {
    CBweapon.addItem (s_weapon);
    contentPane.add(CBweapon);
    CBweapon.setActionCommand("");
    //set position for components
    CBweapon.setBounds(370 + insets.left,295+ insets.top, 150,30);
    System.out.println(getit()); //calling getit() function
    //this function will be return a String of JcomboBOx value if click on each item of combobox
    private String getit(){
    CBweapon.addActionListener( new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    return wpText;
    public static void main(String args[]) {
    AlertFrame af = new AlertFrame();
    af.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    **I have no errors on compile or run, but it didn't return a string value to System.out.println(getit());
    It maybe because of the "void" of public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    Please help me

  • Itunes  please help with functions (possible or not???)

    Hello
    I´m sorry that my questions are a little long - but please please i´m new with IPod and ITunes - and well at the moment i feel like if i had known how unorganized ITunes is and that i can´t acces the data on my IPod directly i would perhaps not have bought the IPod at all... (but perhaps - i really really hope so - i just cant find out HOW to do all i want and it IS possible after all...) so please take the time and if you know the ansers tell me how to do that...
    Since yesterday i have an IPod classic but unfortunately my own computer has only Windows 2000 - so i have to sync/transfer the Data from my Mom´s PC and so i have to delete the data on her PC after i got them on the IPOD once (and the should stay there untill i´m ready to delete them...)
    1)
    a) what happens if i sync my ITunes/Ipod and i allready deletet most of the music on my moms PC - will the music on the IPod be deleted too? - If yes can i prevent that? (how?)
    b) can i manually choose which titles i want to add/remove to/from my Ipod? i can´t see any way at the moment !!!
    I can see a kind of inventory list of my IPod but i can´t find out how to move Data on/in the folders of the IPod - only by synchronisation - now i know i HAVE allready Data on the IPod but every folder in Itunes of my Ipod is Empty... so how can i acces these data please???
    2)
    My second Problem ist that i can´t find out how to "sort" my chaotic 10.0000 (ok ok not so many right now but getting there some time) different Music-Data into different folders - ok i could add them to diffrent playlists - but one of the main Problems is the fact that many of my data are not properly classified so i need to organize the music so that i "see" only the Music from one particulary folder of my harddisk (then uppdate those information like adding all data from that Folder to a personal "album" or similar...) and every time i add a folder to the mediathek all the songs (different artist, different albums, different everything or missing information) are then spread out all through the music folder and i have to manually search for every single on and then manually add it to a playlist which is more timeconsuming than it is worth it...
    So please help me - HOW DO i make new Folders (NOT PLAYLISTS!!!) in which to sort the music??? so i do not have only ONE Music-Folder but perhaps 2, oder 3 or later more subfolders under the music-Folder?
    If that is really not possible - can i then at least sort my music after path-name (haven´t found out how to do that either yet...)
    3) I have a folder audibooks (which is really really great since i´m an audible customer and have moren then 40 audiobooks allready...) and my audible audiobooks are all added to that folder...
    But i have a few Other Audiobooks in MP3-Format (from MP3 DVD/ and a few CD´s formated as MP3) and even after i uppdated the information so it say´s now audibook in Type - i just can´t find out how to transfer those audibooks to the audiobooks folder (they stay in music-folder and are not found by Ipod as audibooks - only accessible under music with type audibooks which really ***** because that is unnecessary complicated... )
    so how do i get thos books in the audiobooks folder please?
    I hope anyone can help me...
    best regards
    Skarinija
    Message was edited by: Skarinija

    Thanks very much that takes care o my Question 1:
    It really is a great relief so now i know can sync the IPod manually - basically i tried the right things but in the wrong order - lol so i accidently deletet everthing on the IPod again and then i was staring on the blank inventory of my Ipod and wondering why i could not access the music that should be there...
    Still anyone knows an answer to question 2 and 3
    2) is it possible to "sort" Itunes in subfolders - so i can acces only one folder at a time
    3) Is ist possible to somehow classify any type of MP3/similar Data as "audibook" so that Data will show up as audibook on the Ipod? (not as music with type audiobook)
    mfg
    Skarinija

  • Please help: programs shut down after 60 sec's

    *Please help me:* Since two weeks or so (may be, after I updated my QuickTime), every program I opened *shuts down after roughly 60 seconds*. It is not closed but it gets out of the writing mode so that I need to click on the page first before being able to continue writing again (Word, email, also this thread). If I do not always look at my page I loose words and have to retype them again. Also, with backspacing it occurs: it gets out of the enter mode. I am not aware I changed anything in the user mode of my dear power book.
    Thank you for helping! rororoger

    rororoger:
    Welcome to Apple Discussions.
    Try starting up in Safe Mode. If can do so successfully, log in, Empty Trash, Restart normally and log in.
    If issue persists Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel, and report if it says anything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need to use a utility like Tech Tool Pro or Disk Warrior
    cornelius

  • Please help, my Ipod is taking hours to sync!!

    My Ipod never takes as long to sync. I plugged it in to the computer last night before I went to bed, I woke up in the morning to find it was on step one of three. So I tried again, and again and again. I even restarted my computer and tried again and it still took ages. I tried again at 12, it is now 5 and it's half way through step one! It syncs my sisters Ipod touch, the same generation as mine, in about a minute. I don't understand! Please help me I will be very grateful

    Try moving the backup file to a safe location so that iTunes has to create an entire new file.  It is located here:
    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: If you do not see the AppData or Application Data folders, you may need to show hidden files (Windows XP,  Windows Vista and Windows 7), or iTunes may not be installed in the default location. Show hidden files and then search the hard drive for the Backup directory.

  • Please help (3D function process).

    The 3D function on my Photoshop CS 6 Extended is really slow and it is taking a long time to load the changes as well as show them to me in real time. (Intel Core i7-3630QM CPU @ 2.40GHz 2.40GHz, Installed memory(RAM) 32.0 GB(31.9 GB Usable), System type: 64-bit Operating System, x64-based processor[Windows 8],Video Card: 2GB GDDR5 NVIDIA GeForce GTX 680M) valid to say, only Photoshop and Bridge running.

    To reset your prefs follow the directions in the video below:

  • Please help, duplicate function

    hi, just a quick question for poeple that use as3,
    what excactly does the 'duplicate function definition' error
    mean and how can you preven it?
    please answer if you know
    thanks!

    "tbjyyevskmjuvi7dcsat" <[email protected]>
    wrote in message
    news:f68502$4c$[email protected]..
    >
    quote:
    Originally posted by:
    Newsgroup User
    >
    > "tbjyyevskmjuvi7dcsat"
    <[email protected]> wrote in message
    > news:f66t2k$giu$[email protected]..
    > > hi, just a quick question for poeple that use as3,
    > > what excactly does the 'duplicate function
    definition' error mean and
    > > how
    > > can you preven it?
    > > please answer if you know
    > > thanks!
    >
    >
    > Somewhere in your code, (likely a movie-clip) is being
    duplicated (like
    > for
    > an effect for falling snowflakes) and it can't "find"
    the clip its looking
    > for... either remove that functionality altogether or
    synchronize the
    > name(s) of your movie-clip(s) with those being
    duplicated.
    >
    >
    >
    >
    >
    > yes but if i removed the function (mouse:event etc.) how
    do i use it a
    > second
    > time?
    you don't... and that was one of two options...

  • Please Help: TO_NCLOB function giving error

    Hi,
    I have HTML tags in one of database columns. As these tags were being displayed in my report, I used TO_NCLOB function to get rid of these tags.
    [I do not need the formatting anyway] This was just working fine until today.
    PROBLEM
    I have this text in my field:
    "<span style="font-size:10pt;font-family:&quot;;;Arial&quot;,&quot;sans-serif&quot">THE COMPANY HAS RECLASSIFIED xxx MILES OF
    “DISTRIBUTION” STEEL MAIN FROM COATED/PROTECTED TO BARE/PROTECTED TO REFLECT
    THE INFERIOR PROTECTIVE PROPERTIES ASSOCIATED WITH THE EARLIEST TYPES OF STEEL
    PIPE COATINGS (BARE GREASE, ROSKOTE, NO OXIDE, ETC.).</span>"
    The report threw an error, when I removed the TO_NCLOB Function in the sql the report is working fine, but is showing html tags in the output pdf.
    I do not understand why the TO_NCLOB function is giving me error in this particular scenario, I am not even able to get the xml data.
    I tried to use the same sql with the TO_NCLOB function in TOAD and it was working fine.
    Your help is highly appreciated, It is a high priority issue.
    Thanks,
    Rakesh
    Edited by: user13814009 on Mar 16, 2011 11:50 PM

    Oh ..Ok..
    Thanks for the answer. So , to get the distinct values , I need to change the query
    like I shown below. .
    select  ( cast(collect(t_tfo_sp_copy_evnt_dtl(event,       evnt.event_desc,
                        promo_month_desc,
                        .start_date,
                        end_date
                        start_date)) as
                        t_tfo_sp_event_table) from
                                                                                  ( select distinct  evnt.event, evnt.event_desc,
                        mth.promo_month_desc,
                        TO_CHAR(evnt.start_date,
                        'DD/MM/YYYY'),
                        TO_CHAR(evnt.end_date,
                        'DD/MM/YYYY'),
                        TO_CHAR((evnt.start_date - 21),
                        'DD/MM/YYYY')
              FROM TFO_SP_RETEK_PROMO_EVENT_MST evnt
               INNER JOIN  .....
               WHERE ...
               ORDER BY evnt.event_desc,
                                       mth.promo_month_desc,
                                       dtl.promo_start_date,
                                       dtl.promo_end_date,
                                       dtl.promo_cost_start_date); But I guess, it will increase the performance overhead.Any other suggestion you have to rewrite the query so that it will perform better?
    Edited by: Manjusha Muraleedas on २५ जनवरी, २०१३ ९:५५ पूर्वाह्न

  • I'm in desperate Need, please help....Taking .java back to .jsp?????

    Hello, I really made a mistake...and no one wants to start anything with those words.
    I was in the process of creating an ecommerse sight using html and jsp, when I did a really dumb thing and deleted my files... I thought I had backed them up on disk and was preparing to shift computers, and didn't want to leave anything behind on the computer.
    I might be ok, but I have a complex question.
    I was using tomcat to host my files locally. While using tomcat it compiled my files into .java and .class files. I have these files, as I didn't delete them before moving computers.
    This poses my question:
    Is there a way to reverse engineer the .java and .class files back into the original .jsp files????
    I still need to make a large amount of corrections to what I had, likewise I don't want to start all over from scratch..
    ANY help would be GREATLY appreciated.
    thank you very much.

    An idea...
    Couldn't you try to get and decompiled the .class files that Tomcat compiled from the servlet translated from the .jsp? This way, you would have lost your .jsp, but you could continue to work with the servlets or, if your motivated, you could cut and paste relevant parts of the servlets to new .jsp. That would surely be easier than rewrite all...

  • Please help about function query permformance

    Hi
    I have a j2ee web application with oracle database.
    I finish the function implementation by put all caculaton inside oracle query ( funciton (todayData - avg(historical data )) / std(historical data) and using group by and sub query .but performance is very slow about 3 minute whick is far from client's 10 second requirement.
    My question is if I take raw data from database and do the caculation part in Java will it be faster. Is there some other way to speed up the process?(historical data is big)
    Thanks for your time and help

    What does the function look like? How is it called? What is the query and explain plan? Are statistics up to date?
    My question is if I take raw data from database and do the caculation
    part in Java will it be faster.No.
    Is there some other way to speed up the process?(historical data is big)You should start by posting the explain plan and looking into the other questions above.

  • Please Help with function!

    Im making a website and have a little animation that plays
    when the user clicks a button to navigate to a part of the website.
    eg home, news section, contact.
    Below is my code to play the movie when the button is clicked
    and then proceed to the frame in which the desired page (eg news
    section) is located. What i want to happen though is for the movie
    clip to play from start to finish(goes for about 30 frames) and
    then i want it to display the frame. At the moment the new frame
    appears while the movie is still playing.

    One easy way.....You just need a keyframe at the end of your
    movie,ie after
    the 30 frames, and that keyframe will have your content (or
    content
    movieclip) in it. Make sure that the keyframe at the
    beginning of the
    movieclip doesn't have your content in it.
    Adam :)

  • Please help! Shared Library Error... no applications will open!

    Hi. Major issues!!
    My computer was unplugged for 2 weeks (renovations). When I set it up in my new office, none of my applications would open! (Microsoft, Adobe, AOL, etc...) Safari is working.
    I get this error message:
    The application "Photoshop" could not be launched because of a shared library error: "5<application><CarbonLib><CFMPriv_SpeechRecognition>"
    The application "Word" could not be launched because of a shared library error:
    "8<Microsoft Word><CarbonLib><CFMPriv_SpeechRecognition>"
    The application "AOL" could not be launched because of a shared library error:
    "9<AOL (Bootstrap)><CarbonLib><CFMPriv_SpeechRecognition>"
    The application "AppleWorks" could not be launched because of a shared library error: "4<AppleWorks><CarbonLib><CFMPriv_SpeechRecognition>"
    Here's what I've tried...
    I have tried to install combo update 10.3.9. .. didn't work.
    My computer was purchased in 2004... just moved to a new house... do not know where my installation dvd is... so to reboot on that is not an option.
    I tried disk repair permissions... didn't work!
    I opened my log console to view the crash logs... and it appears a lot has crashed... but I can not understand what any of it means!?!
    Can anyone help or offer some advice?
    Can anyone understand a crash log if I post it?
    Please help!?! Taking an online masters course and this is a major dilemma!
    Thanks,
    Lindsay

    Hi Lindsay,
    "Can I get one from a mac store? Does it have to be the original one I used when I purchased my mac?"
    No, you can no longer purchase 10.3 Panther disks from Apple Stores, online or otherwise. You may however, be able to purchase replacement disks for your computer (if Mac OS 10.3 were the original install disks that came with your mac) by calling Apple and explaining and having the serial number ready of the computer.
    If your installation of 10.3 was an upgrade you can purchase retail copies of 10.3 disks online from many resellers, such as on ebay or sites such as FastMac, but be sure to purchase a retail box set and not upgrade or machine specific disks.
    Did you perform all of the steps that Kappy steered you to in Dr. Smoke's FAQ first and your only option left is the Archive and Install?
    littleshoulders

Maybe you are looking for

  • Report Developer Control Of Applying Hints to Analytics Queries

    There are numerous ways to apply hints to the queries generated by Analytics: - Table level - Join level - Evaluate calculation Each has its advantages and drawbacks. - Table level: applies the hint to every query that references the table. - Join le

  • How do I replace the frame from the monitor on my GX740?

    Problem: When I move the hinges on my laptop, sometimes the screen goes black until I move it into a different position, like the light disconnects (in fact, I'm pretty sure that's exactly what happens, as I can still see some stuff on the screen; it

  • Upgrading online from v10.2 to 10.4 problems...

    I upgraded online from 10.2 to 10.4 but had been advised of the potential problems.. Since the upgrade which I did online (therefore no disk), I have had good days and bad, and the difference is confusing, i.e. the Mac decides what mood it is in - On

  • Problem with CallableStatement

    Hello, I have a problem with the following code, while trying to execute a sybase stored procedure . The parameters namePar and codePar are strings, which I have hardcoded in the first prepareCall. I don't get data from the database using both of the

  • Help! I'm new to apple. How can I use bluetooth on my tibook?

    This is my first mac and I love it but am still getting to know how to use it. I have a powerbook G4 titanium and the latest Mac OS X. When I start the bluetooth file exchange application, it says I do not have a bluetooth module. How can I get one?