Swing JTable error when clicking on column header

Hi I'm using ADF Swing in JDev 10.1.3 linking a UI JTable to a ADF viewobject, when clicking on the column header i get the follwing:
[ConditionalEventPump] Exception occurred during event dispatching:
oracle.jbo.InvalidObjNameException: JBO-25005: Objektnavn 1 for type Variabel er ugyldigt
at oracle.jbo.common.VariableImpl.validateName(VariableImpl.java:234)
at oracle.jbo.common.VariableImpl.setVariableKind(VariableImpl.java:301)
at oracle.jbo.server.ViewRowSetImpl.defineNamedWhereClauseParam(ViewRowSetImpl.java:3390)
at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:10374)
at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:10180)
at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3955)
at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3794)
at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:3782)
at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:6991)
at oracle.adf.model.bc4j.DCJboDataControl.setCurrentRowInRSI(DCJboDataControl.java:930)
at oracle.adf.model.bc4j.DCJboDataControl.setCurrentRowWithKey
(DCJboDataControl.java:881)
at oracle.jbo.uicli.jui.JUTableBinding$1$1.run(JUTableBinding.java:222)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Hi,
in this case the bind variable name comes from the viewLink definition. What is the m/d, is it based on e.g. Departments/Employees pushing the ADF BC wizard? I need to understand how to build a testcase that allows me to reproduce the issue. Do you show both , master and detail on the Swing form, or only the detail?
Frank

Similar Messages

  • Does component af:table support auto resorting when click on column head?

    or further, could we customize the resorting principle, just like java api Comparable/Comparator does.
    Thanks you.
    Kevin.

    Hi,
    the table supports sorting, yes. The sorting is defined in the table model and not changeable without changing the model. However, you can setup a sort listener and use the event notification to re-query the data with a condition of you choice
    Frank

  • Sorting the report by clicking the column header

    Hello,
    Currently working on a requirement where i need to sort the report by clicking the column header. Can anyone please help me on this.
    Suppose i have 3 colums deptno,dname,sal fields in my report. if i click deptno column header,  report has to sort by deptno.Like that i need for other columns also.
    Any help is really appreciated
    Thanks
    Ram

    Hello,
    You can sort the fields using method suggested by Cauvery. However if you would like to have Ascending/ Descending sort order control at column header, then would require to implement few additional steps.
    First do the sorting of field using the way suggested by Cauvery. Once sorting is done, right  click on the column name and  select the option ' Bind Sort Control'. You will see the sorted field in the window. select the field and click ok.
    Now you would get 2 arrows on column. If you click upper arrow, fields would be sorted in Ascending Order and if you click on down arrow, it would  be in Descending order.
    Regards,
    Chinmay Athavale

  • How to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    how to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    Looks like the presentation column got Alias before your BMM changes, so in your case renaming logical column and deleting alias is not good to go.
    Keep Alias

  • Get a "Download Error" when clicking on the "App" tab of Creative Cloud.

    Get a "Download Error" when clicking on the "App" tab of Creative Cloud.

    Yeah I finally had to call Adobe and some there did a screen share with me and they took care of it. I am running OSX 10.9.3 my issue was that the latex OSX update didn't communicate with the app. Like I said Adobe did a screen share with me and fixed it for me I think he just uninstalled and reinstalled and I want to say thats what took care of it.

  • Page Not Found Error when clicking on Crystal Report Viewer print icon

    Hi,
        I am working with ASP.NET 2.0 and crystla reportXI release2.
        I am getting "Page Can not be Found " error when clicking on Crystal Report Viewer print icon.
        Could you please tell me how to get rid of this error?
    Regards,
    Smitha

    This sounds like a postback issue. Does your application handle postback by putting the report in session?
    There is a [sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip] to look at on our website. It was created with Crystal Reports XI R2 and Visual Studio .NET but the code will be the same.
    A short pseudocode would be something like this:
    Dim rptDocument As ReportDocument
    If Not Me.IsPostBack or Session("Report") = Nothing Then
    rptDocument = New ReportDocument
    rptDocument.Load(sGlobalPath & "\myreport.rpt";)
    Ludek

  • Javascript preferences error when clicking insert

    hi,
    i tried looking around on the net however no solution i could see for this.
    when i click insert in DW CS3 i get an error in "yy/scripts/preferences.js" error 3
    i cannot see that file in my program files, how can i resolve this?
    many thanks

    hi,
    i gave this a go however it did not resolve the issue. still error when clicking insert. only started happening past few days. cant think of what has happened to make it do it.
    any other suggestions?
    many thanks

  • C++ runtime library error when clicking on preview

    Customer is getting a Microsoft Visual C++ runtime library error when clicking on "preview" tab in Xcelsius
    Full error message is this:
    Microsoft Visual C++ Runtime library
    Runtime error!
    Program: C:\program files\Business Objects\Xclesius\Xcelsius.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact application support team for more information.
    This is a new install of Xcelsius, using Office 2007

    Hi Pete,
    Are you getting this error message for some specific dashboard or any of the file.If this is happening for some specific dashboard, then let me know if you can send me the file to take a look at it.
    Thanks,
    Amit.

  • Can clicking on column heading sort the column contents instead of drill in

    I have a pivot table with data that the client doesn't want to drill into. Instead, they want to be able to click the column heading and have the pivot table re-sort the data in the table based on the data in that column. Is that possible, or are clickable column headings only used for drilling in OBIEE? Thanks.

    Madan -
    That seems like a feature that should be added to the Pivot Table view if they are going to have it in the Table View. Still, thanks for pointing out the "Enable column sorting in Dashboards" check box in the Table view. I'll see if I can either get this data into the Table view, or at least let the client know the limitations of OBIEE.
    Thanks again.
    Daniel

  • Ordering JTable rows when you click a column header

    Hi! Maybe i want something impossible, maybe not.
    I have a JTable and i want it to be ordered depending on the column header you click (similar to any explorer files)
    Can anybody give me a hint?
    Thanks in advance!.

    thanks. Anyway, i have another problem. I add the 3 lines of code just like the Java Tutorial said, and then it throws a NullPointerException in paint() method. I know it�s not much information about it, but i thought someone could give me a hint.The only difference is these 3 lines, and it worked properly.
    Thanks again!

  • JTable sorting when clicked on header

    In my JTable when clickedon JTable header of a column it doesn't get sorted. how do I make sort when clicked on hearder column?
    Thanks.

    Check out
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#sorting

  • JTable Error When Editing

    I have a JTable that is created by a ResultSetTableModel class as shown below. I have written code to insert, delete, update, and reset the the rows in this table, which then updates a database. However, when the table is in editing mode, and i hit enter or tab, i receive the following error:
    java.lang.ArrayIndexOutOfBoundsException: 3 >= 0
    at java.util.Vector.elementAt(Vector.java:427)
    at javax.swing.table.DefaultTableModel.setValueAt(DefaultTableModel.java:633)
    at javax.swing.JTable.setValueAt(JTable.java:1783)
    at javax.swing.JTable.editingStopped(JTable.java:3129)
    at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:124)
    at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:328)
    at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:213)
    at javax.swing.JTable$GenericEditor.stopCellEditing(JTable.java:3460)
    at javax.swing.plaf.basic.BasicTableUI$NavigationalAction.actionPerformed(BasicTableUI.java:154)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1512)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:2435)
    at javax.swing.JTable.processKeyBinding(JTable.java:3254)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2481)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2398)
    at java.awt.Component.processEvent(Component.java:4902)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3598)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
    at java.awt.Component.dispatchEventImpl(Component.java:3468)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Window.dispatchEventImpl(Window.java:1585)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    Any suggestion on how I could fix this, and update the table on hitting TAB or ENTER?
    Here is the TableModel being used:
    import java.sql.*;
    import javax.sql.*;
    import java.util.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import sun.jdbc.rowset.CachedRowSet;
    public class ResultSetTableModel extends DefaultTableModel{
    Vector rows;
    int[] types;
    String[] names;
    ResultSet resultSet = null;
    JTable table;
    public ResultSetTableModel(ResultSet rs, String[] columnNames, JTable table)throws SQLException{
    resultSet = rs;
    this.table = table;
    ResultSetMetaData rsmd = rs.getMetaData();
    types = new int[rsmd.getColumnCount()];
    names = columnNames;
    for(int n = 0; n < types.length; n++){
    types[n] = rsmd.getColumnType(n+1);
    rows = new Vector();
    while(rs.next()){
    Vector aRow = new Vector();
    for(int j = 0; j < types.length; j++){
    switch(types[j]){
    case Types.TINYINT:
    aRow.addElement(new Byte(rs.getByte(j+1)));
    break;
    case Types.SMALLINT:
    aRow.addElement(new Short(rs.getShort(j+1)));
    break;
    case Types.INTEGER:
    aRow.addElement(new Integer(rs.getInt(j+1)));
    break;
    case Types.BIGINT:
    aRow.addElement(new Long(rs.getLong(j+1)));
    break;
    case Types.REAL:
    aRow.addElement(new Float(rs.getFloat(j+1)));
    break;
    case Types.FLOAT:
    aRow.addElement(new Double(rs.getDouble(j+1)));
    break;
    case Types.DOUBLE:
    aRow.addElement(new Double(rs.getDouble(j+1)));
    break;
    case Types.DECIMAL:
    aRow.addElement(rs.getBigDecimal(j+1));
    break;
    case Types.NUMERIC:
    aRow.addElement(new Long(rs.getLong(j+1)));
    break;
    case Types.BIT:
    aRow.addElement(new Boolean(rs.getBoolean(j+1)));
    break;
    case Types.BINARY:
    aRow.addElement(rs.getBytes(j+1));
    break;
    case Types.DATE:
    aRow.addElement(rs.getDate(j+1));
    break;
    case Types.TIME:
    aRow.addElement(rs.getTime(j+1));
    break;
    case Types.TIMESTAMP:
    aRow.addElement(rs.getTimestamp(j+1));
    break;
    default:
    aRow.addElement(rs.getString(j+1));
    rows.addElement(aRow);
    public Class getColumnClass(int column){
    switch(types[column]){
    case Types.BIT:
    return Boolean.class;
    case Types.DATE:
    return java.sql.Date.class;
    case Types.TIME:
    return java.sql.Time.class;
    case Types.TIMESTAMP:
    return java.sql.Timestamp.class;
    default:
    return Object.class;
    public int getRowCount(){
    if(rows == null) {
    return 0;
    return rows.size();
    public int getColumnCount(){
    return types.length;
    public Object getValueAt(int row, int column){
    Vector aRow = (Vector) rows.elementAt(row);
    return aRow.elementAt(column);
    public String getColumnName(int column){
    return names[column];
    public ResultSet getResultSet() {
    return resultSet;
    Thanks for your help in advance.
    Catie

    Nevermind...I figured it out. Just had to override the setValueAt function for the ResultSetTableModel.

  • ITunes 10 clicking on column heading bug?

    I really hope this is a bug - but clicking on a column heading (Rating, Name Artist etc.) doesn't work properly. Clicking on a column heading is meant to sort that column from top to bottom, and takes your view to the top or the bottom of that column.
    So clicking Artists in iTunes 9 sorts Artist top to bottom, showing me...um.. ABBA. My selection stays where it was on whatever song I had selected. Clicking the heading again sorts the other way, and shows me the last alphabetical artist in my iTunes library.
    But with iTunes 10, it "works" differently: clicking on the heading sorts everything around your selection, leaving the selection in view. Clicking it again, sorts everything around your selection the other way. This makes clicking on headings pointless, does it not?
    Or is this some deliberate change?
    Merlin.

    I've had this issue, too. My podcasts now only display in broadcast order, and not grouped by podcast, which is annoying when you want to use the album art view (which even then isn't as useful, since they minimized the artwork to put the title and rating beside it...).

  • Error when clicking on About Firefox

    When I click on Help/About Firefox FF5 opens a window with the message (my translation):
    Error on XML processing: entity not defined
    Position: chrome://browser/content/aboutDialog.xul
    Line 70, column 15: &channel.description.start;<label id="currentChannel"/>&channel.description.end;<label id="channelChangeLink" class="text-link" onclick="gChannelSelector.show();">&channel.change;</label>
    --------------^

    Satya,
    login page give error when i click the About this Page link.means, The login page you are getting error?
    I think something went wrong in the instance,
    Just to confirm the standard page also giving the same error, run the following script,
    begin
    jdr_utils.printDocument('/oracle/apps/fnd/framework/navigate/webui/HomePG');
    end;
    Are the pages are working fine?
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Error when click on any table and when click on sql its show errors....

    Dear i am using updated SQL Developer 1.5
    Errors when i click on the tables under my user, then on the window there is cloumn,data,constraints, ets i click on every tab no error when i click on the sql tab i found these errors on every user table and on every single tables kindly check this out.
    and its also show me the results but on logging window its shows these errors.
    Sequence - 144, Elapsed - 0, source- oracle.dbtools.raptor.utils.Connections$ConnectionKey
    messgae = null
    Sequence - 146, Elapsed - 553672, source-oracle.dbtools.db.DBUtil
    message =
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3918
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4066
    ORA-06512: at "SYS.DBMS_METADATA", line 831
    ORA-06512: at line 1
    Sequence - 147, Elapsed - 78, source- oracle.dbtools.db.DBUtil
    messgae =
    ORA-00904: invalid column name
    Regards,
    Kamran J. Chaudhry
    Pakistan.

    Dear 1st of all thansk for given me reply,
    Actually i am using oracle 9.02 and i just checking that its connect or not but its successfully connected and also showing me the results.
    so you tell me is this a fine work or just conencted and show the results and others commands or its what...
    thanks for your nice cooperation
    Kamran J. Chaudhry
    Pakistan.

Maybe you are looking for

  • Absolutely Love Apple's Wireless Keyboard

    Just wanted to say that I just picked up an Apple Wireless Keyboard and the Wireless Mighty Mouse this past weekend at my local Best Buy. I am absolutely blown away by how cool the Wireless Keyboard is. Not only is it a work of art, the keys have a t

  • Hi Everyone, i have made a flash gallery using actionscript..how to add a loader to it?

    hi i am loading all thumbs and images in a container on a single frame using action script..but the size of the swf becomes 1.2 mb so i want to add a loader to it...the loader i am trying to add counts the frames but my file has just one frame so the

  • IOS Developer membership is taking more than 24 hours to activate.

    Hello, I signed up for the iOS Developer membership 2 days ago and I received the following message: " Your Program purchase is pending and may take up to 24 hours to process. Once processed, you will receive an email from Apple Developer Support. If

  • Single War file VS Separating WAR files suggestions

    Hi There We have big a debate whether to go with a single WAR file (JEE application) VS creating multiple WAR files. Here is the back ground: This is an IVR application. There are 4 types of callers Member, Provider, Dental, Vision. For each of them

  • Number of executeThread for WLS Client

              There are two properties in WLS51 whcih can be specified to adjust the number of           executeThread and the percentage for the reader threads in the client application.           -Dweblogic.system.executeThreadCount and           -Dweb