Error when adding Portlet Provider

I installed the JPDK and got the samples to work standalone in the browser, but I get an error when trying to add the samples as a provider.
An error occured when attempting to call the providers register function (WWC-43134)
An unexpected error occured : ORA-29540 : class oracle/webdb/provider/web/HttpProviderDispatcher does not exist (WWC-43000)
I would appreciate any assistance. Thanks.

Jon,
So, you received the sample page in the browser when hitting the following URL? http://host.domain:port/servlet/sample
The HttpProviderDispatcher is actually a Java Class already stored in the database. The error message is coming from Portal and not the JPDK.
Log into the Database as your main Portal schema, i.e Portal30.
Type the following SQL statement:
SELECT object_name, object_type, status
FROM user_objects
WHERE object_name like '%HttpProvider%';
Note: The name between quotes is case sensitive.
You should receive the following back.
/3334f18_HttpProviderDispatche
This actually is oracle/webdb/provider/web/HttpProviderDispatcher.
If this does not come up, check the following:
SELECT count(object_name)
FROM user_objects
WHERE object_type = 'JAVA CLASS';
You should receive at least 334. Check for invalid JAVA CLASS objects and missing JAVA CLASS objects, you may have something wrong with your Portal installation. If it is simply invalid objects, recompiling might help.
Hope this helps,
Sue

Similar Messages

  • Error when creating portlet provider

    I tried to call Forms Server application from Oracle Portal as
    external application.
    External application works fine if I execute link in External
    application section.
    Problem arrise when I tried to create Portlet Provider for this
    external application.
    Portlet Provider Implementation style is set to WEB. When I
    choose Applay I get error:
    Error: An error occurred when attempting to call the providers
    register function. (WWC-43134)
    An unexpected error occurred: ORA-29532: Java call terminated by
    uncaught Java exception: java.io.IOException: Unexpected EOF.13
    XML-0121 : (Fatal Error) End tag does not match start
    tag 'INPUT'.
    XML-0121 : (Fatal Error) End tag does not match start
    tag 'FORM'.
    XML-0121 : (Fatal Error) End tag does not match start
    tag 'BODY'.
    XML-0210 : (Fatal Error) Unexpected EOF. (WWC-43000)
    An unexpected error occurred: java.io.IOException: Unexpected
    EOF.13
    XML-0121 : (Fatal Error) End tag does not match start
    tag 'INPUT'.
    XML-0121 : (Fatal Error) End tag does not match start
    tag 'FORM'.
    XML-0121 : (Fatal Error) End tag does not match start
    tag 'BODY'.
    XML-0210 : (Fatal Error) Unexpected EOF.
    at oracle.webdb.provider.web.SoapResponseProcessor.getDocument
    (SoapResponseProcessor.java:123)
    at oracle.webdb.provider.web.SoapResponseProcessor.processSOAP
    (SoapResponseProcessor.java:42)
    at oracle.webdb.provider.web.HttpProviderDispatcher.dispatch
    (HttpProviderDispatcher.java:877)
    at
    oracle.webdb.provider.web.HttpProviderDispatcher.registerProvider
    (HttpProviderDispatcher.java:259)
    (WWC-43000)
    An unexpected error occurred: Unexpected EOF.
    at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:208)
    at oracle.xml.parser.v2.XMLError.error(XMLError.java:114)
    at oracle.xml.parser.v2.XMLError.error(XMLError.java:152)
    at oracle.xml.parser.v2.XMLReader.popXMLReader
    (XMLReader.java:380)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement
    (NonValidatingParser.java:968)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement
    (NonValidatingParser.java:237)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument
    (NonValidatingParser.java:201)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:169)
    at oracle.webdb.provider.web.SoapResponseProcessor.getDocument
    (SoapResponseProcessor.java:117)
    at oracle.webdb.provider.web.SoapResponseProcessor.processSOAP
    (SoapResponseProcessor.java:42)
    at oracle.webdb.provider.web.HttpProviderDispatcher.dispatch
    (HttpProviderDispatcher.java:877)
    at
    oracle.webdb.provider.web.HttpProviderDispatcher.registerProvider
    (HttpProviderDispatcher.java:259)
    (WWC-43000)
    I found unsolved forum with the same problem on Metalink: Doc
    ID: 57590.996
    How can I solve this problem?
    Is it possible to add external application to portal as a
    portlet without creatin a Portlet Provider?
    Thanks,
    Tomaz Podbersic

    Tom,
    A Connection timeout normally means that it is a valid
    host.domain, but the listener was down or it could not access
    that port.
    You say that you can reach the URL, is it on the same domain?
    Do you need a proxy to contact it. Can the Portal Machine see
    it okay?
    Sue

  • Error when adding a provider

    Hi
    I am new to Biztalk RFID and am trying to follow exapmples from a book " Pro RFID in Biztalk Server 2009"
    When i try to add a contoso provider to the device simulator i get the following error
    The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.
    Inner ExceptionThe HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.
    Inner ExceptionThe remote server returned an error: (401) Unauthorized.
    Could someone please advise where i need to look to resolve this?

    Hi,
    Can you check the following:
    The SQL Server instance is local and it is a default instance.
    The SQL Server instance is enabled for Windows logon.
    The RFID Service account, LocalSystem, has logon permission to this SQL Server instance.
    Best Regards,
    Harkirat

  • HELP --- Error while adding Portlets to the Page. (WWC-44012)

    Hi all,
    I have a pl/sql portlet. It compiles fine and shows up perfectly in portlet repository. But when i add this to the page, I get following error
    Error while adding Portlets to the Page. (WWC-44012)
    An unexpected error occurred: User-Defined Exception (WWC-43000)
    An unexpected error occurred: User-Defined Exception (WWC-43000)
    An unexpected error occurred: User-Defined Exception (WWC-51004)
    (WWC-00000)
    I checked the portlet specification file (.pks) and body file (.pkb) for any mistakes but they seems fine.
    Does anyone know what can cause this error?
    Any pointers in this regards will be highly appreciated.
    Thanks!!!
    Rajesh

    Rajesh,
    Could you provide some more details about your code? I will try to look into possible causes of the error. One thing you may try is subscribing to the Knowledge Exchange on http://portalcenter.oracle.com. Then you could post your code in your community folder and everyone would be able to test it out.
    Of course, this means you must be willing to share your code with everyone.
    James

  • HANA XS SAML Configuration - Error when saving Identity Provider

    Dear experts,
    I'm currently using a SAP HANA SP8 environment from my AWS account. During the creation of the Identity Provider, the following error message is being displayed:
    Error: PreparedStatement.setInteger: expected int for second argument, but got: string
    The error is triggered in file http://<host>:8000/sap/hana/xs/admin/logic/idp.xsjs
    The error is very easy to reproduce. Just follow the steps below:
    1. Log into http://<host>:8000/sap/hana/xs/admin/
    2. Go to SAML Configuration > Identity Provider
    3. Click on the button on the left side of the shell to add a new Identity Provider
    4. Paste the IDP Metadata extracted from your IDP on the Metadata field and click on the Parser button
    5. Add a name to your IDP Config
    6. Click on the Create button. The error will be displayed.
    Anyone has faced this problem and know how to fix it?
    Regards,
    Gustavo

    Hi Gustavo,
    I also had this error when adding IDP and I found a workaround for this. The error is due to the port in the "Base URL" field. So, before you click "Save", just remove the port number. For example, if the base URL is parsed into https://ids-test.wdf.sap.corp:443, just remove the port number which means https://ids-test.wdf.sap.corp. Save it first, then you choose this IDP and edit it, just add the port number and save it again.
    Best regards,
    Wenjun

  • Error while adding portlets

    Error: Internal error (WWC-00006)
    An unexpected error has occurred in pages: ORA-06502: PL/SQL: numeric or value error: character to number conversion error (WWC-44847)
    Couldn't save attribute Content_Owner. (WWV-03005)
    Couldn't save attribute Content_Author. (WWV-03005)
    Hi,
    I am getting this error while adding portlets to my page group..any suggestions?
    Thanks in advance

    No, This is happening with oracle defined portlets. But , I am also not able to add any navigation page as a portlet to any of my page. Is it any database back up issue? as I am testing something in UAT , in dev environment everything is fine.

  • Error when adding a partition to a materlialized view

    Hi,
    I am getting this error when adding a partition to a materialized view.
    ALTER MATERIALIZED VIEW mvedw.MV_CLM_CAPITN_F ADD PARTITION MAR2013 VALUES LESS THAN ('201304')
    ERROR at line 1:
    ORA-14074: partition bound must collate higher than that of the last partition
    Please advise.
    Regards,
    Narayan

    SQL> select TABLE_OWNER,TABLE_NAME,PARTITION_NAME,HIGH_VALUE from dba_tab_partitions where table_name =
    'MV_CLM_CAPITN_F' order by PARTITION_NAME 2
    3 ;
    TABLE_OWNER TABLE_NAME PARTITION_NAME HIGH_VALUE
    MVEDW MV_CLM_CAPITN_F APR2009 '200905'
    MVEDW MV_CLM_CAPITN_F APR2010 '201005'
    MVEDW MV_CLM_CAPITN_F APR2011 '201105'
    MVEDW MV_CLM_CAPITN_F APR2012 '201205'
    MVEDW MV_CLM_CAPITN_F AUG2009 '200909'
    MVEDW MV_CLM_CAPITN_F AUG2010 '201009'
    MVEDW MV_CLM_CAPITN_F AUG2011 '201109'
    MVEDW MV_CLM_CAPITN_F AUG2012 '201209'
    MVEDW MV_CLM_CAPITN_F DEC2008 '200901'
    MVEDW MV_CLM_CAPITN_F DEC2009 '201001'
    MVEDW MV_CLM_CAPITN_F DEC2010 '201101'
    TABLE_OWNER TABLE_NAME PARTITION_NAME HIGH_VALUE
    MVEDW MV_CLM_CAPITN_F DEC2012 '201301'
    MVEDW MV_CLM_CAPITN_F FEB2009 '200903'
    MVEDW MV_CLM_CAPITN_F FEB2010 '201003'
    MVEDW MV_CLM_CAPITN_F FEB2011 '201103'
    MVEDW MV_CLM_CAPITN_F FEB2012 '201203'
    MVEDW MV_CLM_CAPITN_F FEB2013 '201303'
    MVEDW MV_CLM_CAPITN_F JAN2009 '200902'
    MVEDW MV_CLM_CAPITN_F JAN2010 '201002'
    MVEDW MV_CLM_CAPITN_F JAN2011 '201102'
    MVEDW MV_CLM_CAPITN_F JAN2012 '201202'
    MVEDW MV_CLM_CAPITN_F JAN2013 '201302'
    TABLE_OWNER TABLE_NAME PARTITION_NAME HIGH_VALUE
    MVEDW MV_CLM_CAPITN_F JUL2009 '200908'
    MVEDW MV_CLM_CAPITN_F JUL2010 '201008'
    MVEDW MV_CLM_CAPITN_F JUL2011 '201108'
    MVEDW MV_CLM_CAPITN_F JUL2012 '201208'
    MVEDW MV_CLM_CAPITN_F JUN2009 '200907'
    MVEDW MV_CLM_CAPITN_F JUN2010 '201007'
    MVEDW MV_CLM_CAPITN_F JUN2011 '201107'
    MVEDW MV_CLM_CAPITN_F JUN2012 '201207'
    MVEDW MV_CLM_CAPITN_F MAR2009 '200904'
    MVEDW MV_CLM_CAPITN_F MAR2010 '201004'
    MVEDW MV_CLM_CAPITN_F MAR2011 '201104'
    TABLE_OWNER TABLE_NAME PARTITION_NAME HIGH_VALUE
    MVEDW MV_CLM_CAPITN_F MAR2012 '201204'
    MVEDW MV_CLM_CAPITN_F MAR2013 '201304'
    MVEDW MV_CLM_CAPITN_F MAY2009 '200906'
    MVEDW MV_CLM_CAPITN_F MAY2010 '201006'
    MVEDW MV_CLM_CAPITN_F MAY2011 '201106'
    MVEDW MV_CLM_CAPITN_F NOV2009 '200912'
    MVEDW MV_CLM_CAPITN_F NOV2010 '201012'
    MVEDW MV_CLM_CAPITN_F NOV2012 '201212'
    MVEDW MV_CLM_CAPITN_F OCT2009 '200911'
    MVEDW MV_CLM_CAPITN_F OCT2010 '201011'
    MVEDW MV_CLM_CAPITN_F OCT2011 '201111'
    TABLE_OWNER TABLE_NAME PARTITION_NAME HIGH_VALUE
    MVEDW MV_CLM_CAPITN_F OCT2012 '201211'
    MVEDW MV_CLM_CAPITN_F SEP2009 '200910'
    MVEDW MV_CLM_CAPITN_F SEP2010 '201010'
    MVEDW MV_CLM_CAPITN_F SEP2011 '201110'
    MVEDW MV_CLM_CAPITN_F SEP2012 '201210'
    These are the list of partitions available.
    Regards,
    Narayan

  • Error when adding Essbase server...

    Hi,
    I installed Hyperion System 9.3.1 in my development machine and encounter the following error when adding a Essbase server in AAS for the first time.
    Error: 1042017: Network error: The client or server timed out waiting to receive data using TCP/IP. Check network connections. Increase the NetRetryCount and/or NetDelay values in the ESSBASE.CFG file. Update this file on both client and server. Restart the client and try again.
    I used the default user "admin" and password "password". I used my servername:10080 as the server name. I hope I am right.
    Why is this happening? I tried changing netdelay settings but still get the same. Is this something else? Does this have anything to do with my TCP/IP settings? I am installing this on a virtual PC.
    I couldn't find an answer in previous posts.
    regards
    h

    The things that come to mind:
    The server name you use should be the name of the virtual PC, not the machine it's running on. Also, depending on the settings for the Virtual PC environment, you may have to change the network options to allow it to be visible to the network, be in the right domain, etc...
    The above may or may not get you any closer, the error message itself is just saying it can't receive a response from the server, which means the server never got the request or can't send a response back.
    Good Luck,

  • Library error when adding contact or when logging in

    The messenger server has a replica of the partition holding the users.
    It's an OES 2 sp2 server, and the GW Messenger is 2.04.
    Sometimes we see an error that says 'Library error' when adding a contact, or it doesn't show all users that exists with the search parameter given.
    We also sporadically see a 'Library error' when some users log in to it.
    Looking in the log I see an error that says 0xAE16 when users log in fails.
    I can find the 0xAE11 error in the TID's but not the 0xAE16, I did find an article on the forums, mentioning this problem http://forums.novell.com/novell-prod...or-server.html, they mention memory problems, so it seems to me there is a bug that needs fixing.

    I've disabled the '/diruseralias-"Internet EMail Address"' setting that was set up in the strtup.ma and strtup.aa scripts.
    I've also, for now at least, chosen another replica.
    I haven't seen the errors yet, so here's hoping...

  • Error when adding any menu - FRM-40735: ON-INSERT trigger raised unhandled

    When I try to add any new menu in my newly cloned instance I get this error:
    Error when adding any menu - FRM-40735: ON-INSERT trigger raised unhandled excpetion. ORA-04031.
    Using Oracle EBS version 12.1.3.
    Details:
    Menu JOB_STRUCTURE_MENU
    User Menu Name Job Strucure Menu
    Menu Type Standard
    Description Menu to add job, grade, and incentives
    Seq = 1
    Prompt = Enter and Maintain
    Function = Combined Person & Assignment Form WF="US SHRMS TSKFLW
    When I click save I get the error.
    Any assistance would be greatly appreciated.
    Thanks!

    Please post the details of the application release, database version and OS.
    When I try to add any new menu in my newly cloned instance I get this error:
    Error when adding any menu - FRM-40735: ON-INSERT trigger raised unhandled excpetion. ORA-04031.Is the issue with all menus or specific ones only?
    Did AutoConfig complete successfully?
    When I click save I get the error.
    Any assistance would be greatly appreciated.Do you have any invalid objects in the database?
    Any errors in the database log file?
    Please obtain FRD log file for details about the error -- https://forums.oracle.com/forums/search.jspa?threadID=&q=FRD+AND+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Error while adding Portlets to the Page. (WWC-44012)

    Hi everyone,
    I am installing the DBPersonalization Manager Provider. I followed directions and am able to successfully bring up the provider's test page. I added the provider to the repository and can preview them without problems. However, when I add the portlet to a page, I get the following error:
    An unexpected error occurred: ORA-29532: Java call terminated by uncaught Java exception: java.io.IOException: Start of root element expected.13
    <Line 1, Column 1>: XML-0108: (Fatal Error) Start of root element expected. (WWC-43000)
    An unexpected error occurred: java.io.IOException: Start of root element expected.13
    <Line 1, Column 1>: XML-0108: (Fatal Error) Start of root element expected.
    at oracle.webdb.provider.web.SoapResponseProcessor.getDocument(SoapResponseProcessor.java:123)
    at oracle.webdb.provider.web.SoapResponseProcessor.processSOAP(SoapResponseProcessor.java:42)
    at oracle.webdb.provider.web.HttpProviderDispatcher.dispatch(HttpProviderDispatcher.java:877)
    at oracle.webdb.provider.web.HttpProviderDispatcher.registerPortlet(HttpProviderDispatcher.java:201)
    (WWC-43000)
    An unexpected error occurred: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java)
    at oracle.xml.parser.v2.XMLError.error(XMLError.java)
    at oracle.xml.parser.v2.XMLError.error(XMLError.java)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java)
    at oracle.webdb.provider.web.SoapResponseProcessor.getDocument(SoapResponseProcessor.java:117)
    at oracle.webdb.provider.web.SoapResponseProcessor.processSOAP(SoapResponseProcessor.java:42)
    at oracle.webdb.provider.web.HttpProviderDispatcher.dispatch(HttpProviderDispatcher.java:877)
    at oracle.webdb.provider.web.HttpProviderDispatcher.registerPortlet(HttpProviderDispatcher.java:201)
    (WWC-43000)
    I am not sure what this is from but assume that it is having problems communicating with my provider. Does anyone have any idea what this could be caused by?
    Thanks in advance...
    Esther Poulsen

    Hi Sue,
    Thanks for your response! I ran the XML file through a validator and examined it manually, and it is fine. Moreover, if I add additional portlets to the provider.xml file, they add themselves without any problems. I'd think the entire thing would break if the provider.xml file was not well formed for any reason. But if anyone has any futher suggestions about this it would be greatly appreciated.
    Thanks in advance,
    Esther

  • TableSorter errors when adding new data

    so here is the deal:
    I am using the TableSorter.java helper class with DefaultTableModel
    from: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    It works great when the data is static and I get it for the first time. however, occationally, when adding new data I get a NullPointerException error.
    in use:
    DefaultTableModel.addRow()
    DefaultTableModel.removeRow() and
    DefaultTableModel.insertRow() methods.
    Error:
    java.lang.ArrayIndexOutOfBoundsException: 5
         at com.shared.model.TableSorter.modelIndex(TableSorter.java:294)
         at com.shared.model.TableSorter.getValueAt(TableSorter.java:340)
         at javax.swing.JTable.getValueAt(Unknown Source)
         at javax.swing.JTable.prepareRenderer(Unknown Source)...
    code problem I:
        public Object getValueAt(int row, int column)
            return tableModel.getValueAt(modelIndex(row), column);
        }code problem II:
        public int modelIndex(int viewIndex)
                 return getViewToModel()[viewIndex].modelIndex;     
        }TableSroter class:
    package com.shared.model;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.*;
    * TableSorter is a decorator for TableModels; adding sorting
    * functionality to a supplied TableModel. TableSorter does
    * not store or copy the data in its TableModel; instead it maintains
    * a map from the row indexes of the view to the row indexes of the
    * model. As requests are made of the sorter (like getValueAt(row, col))
    * they are passed to the underlying model after the row numbers
    * have been translated via the internal mapping array. This way,
    * the TableSorter appears to hold another copy of the table
    * with the rows in a different order.
    * <p/>
    * TableSorter registers itself as a listener to the underlying model,
    * just as the JTable itself would. Events recieved from the model
    * are examined, sometimes manipulated (typically widened), and then
    * passed on to the TableSorter's listeners (typically the JTable).
    * If a change to the model has invalidated the order of TableSorter's
    * rows, a note of this is made and the sorter will resort the
    * rows the next time a value is requested.
    * <p/>
    * When the tableHeader property is set, either by using the
    * setTableHeader() method or the two argument constructor, the
    * table header may be used as a complete UI for TableSorter.
    * The default renderer of the tableHeader is decorated with a renderer
    * that indicates the sorting status of each column. In addition,
    * a mouse listener is installed with the following behavior:
    * <ul>
    * <li>
    * Mouse-click: Clears the sorting status of all other columns
    * and advances the sorting status of that column through three
    * values: {NOT_SORTED, ASCENDING, DESCENDING} (then back to
    * NOT_SORTED again).
    * <li>
    * SHIFT-mouse-click: Clears the sorting status of all other columns
    * and cycles the sorting status of the column through the same
    * three values, in the opposite order: {NOT_SORTED, DESCENDING, ASCENDING}.
    * <li>
    * CONTROL-mouse-click and CONTROL-SHIFT-mouse-click: as above except
    * that the changes to the column do not cancel the statuses of columns
    * that are already sorting - giving a way to initiate a compound
    * sort.
    * </ul>
    * <p/>
    * This is a long overdue rewrite of a class of the same name that
    * first appeared in the swing table demos in 1997.
    * @author Philip Milne
    * @author Brendon McLean
    * @author Dan van Enckevort
    * @author Parwinder Sekhon
    * @version 2.0 02/27/04
    public class TableSorter extends AbstractTableModel
        protected TableModel tableModel;
        public static final int DESCENDING = -1;
        public static final int NOT_SORTED = 0;
        public static final int ASCENDING = 1;
        private static Directive EMPTY_DIRECTIVE = new Directive(-1, NOT_SORTED);
        public static final Comparator COMPARABLE_COMAPRATOR = new Comparator()
            public int compare(Object o1, Object o2)
                return ((Comparable) o1).compareTo(o2);
        public static final Comparator LEXICAL_COMPARATOR = new Comparator()
            public int compare(Object o1, Object o2)
                return o1.toString().compareTo(o2.toString());
        private Row[] viewToModel;
        private int[] modelToView;
        private JTableHeader tableHeader;
        private MouseListener mouseListener;
        private TableModelListener tableModelListener;
        private Map columnComparators = new HashMap();
        private List sortingColumns = new ArrayList();
        public TableSorter()
            this.mouseListener = new MouseHandler();
            this.tableModelListener = new TableModelHandler();
        public TableSorter(TableModel tableModel)
            this();
            setTableModel(tableModel);
        public TableSorter(TableModel tableModel, JTableHeader tableHeader)
            this();
            setTableHeader(tableHeader);
            setTableModel(tableModel);
        private void clearSortingState()
            viewToModel = null;
            modelToView = null;
        public TableModel getTableModel()
            return tableModel;
        public void setTableModel(TableModel tableModel)
            if (this.tableModel != null)
                this.tableModel.removeTableModelListener(tableModelListener);
            this.tableModel = tableModel;
            if (this.tableModel != null)
                this.tableModel.addTableModelListener(tableModelListener);
            clearSortingState();
            fireTableStructureChanged();
        public JTableHeader getTableHeader()
            return tableHeader;
        public void setTableHeader(JTableHeader tableHeader)
            if (this.tableHeader != null)
                this.tableHeader.removeMouseListener(mouseListener);
                TableCellRenderer defaultRenderer = this.tableHeader.getDefaultRenderer();
                if (defaultRenderer instanceof SortableHeaderRenderer)
                    this.tableHeader.setDefaultRenderer(((SortableHeaderRenderer) defaultRenderer).tableCellRenderer);
            this.tableHeader = tableHeader;
            if (this.tableHeader != null)
                this.tableHeader.addMouseListener(mouseListener);
                this.tableHeader.setDefaultRenderer
                        new SortableHeaderRenderer(this.tableHeader.getDefaultRenderer())
        public boolean isSorting()
            return sortingColumns.size() != 0;
        private Directive getDirective(int column)
            for (int i = 0; i < sortingColumns.size(); i++)
                Directive directive = (Directive)sortingColumns.get(i);
                if (directive.column == column)
                    return directive;
            return EMPTY_DIRECTIVE;
        public int getSortingStatus(int column)
            return getDirective(column).direction;
        private void sortingStatusChanged()
            clearSortingState();
            fireTableDataChanged();
            if (tableHeader != null)
                tableHeader.repaint();
        public void setSortingStatus(int column, int status)
            Directive directive = getDirective(column);
            if (directive != EMPTY_DIRECTIVE)
                sortingColumns.remove(directive);
            if (status != NOT_SORTED)
                sortingColumns.add(new Directive(column, status));
            sortingStatusChanged();
        protected Icon getHeaderRendererIcon(int column, int size)
            Directive directive = getDirective(column);
            if (directive == EMPTY_DIRECTIVE)
                return null;
            return new Arrow(directive.direction == DESCENDING, size, sortingColumns.indexOf(directive));
        private void cancelSorting()
            sortingColumns.clear();
            sortingStatusChanged();
        public void setColumnComparator(Class type, Comparator comparator)
            if (comparator == null)
                columnComparators.remove(type);
            else
                columnComparators.put(type, comparator);
        protected Comparator getComparator(int column)
            Class columnType = tableModel.getColumnClass(column);
            Comparator comparator = (Comparator) columnComparators.get(columnType);
            if (comparator != null)
                return comparator;
            if (Comparable.class.isAssignableFrom(columnType))
                return COMPARABLE_COMAPRATOR;
            return LEXICAL_COMPARATOR;
        private Row[] getViewToModel()
            if (viewToModel == null)
                int tableModelRowCount = tableModel.getRowCount();
                viewToModel = new Row[tableModelRowCount];
                for (int row = 0; row < tableModelRowCount; row++)
                    viewToModel[row] = new Row(row);
                if (isSorting())
                    Arrays.sort(viewToModel);
            return viewToModel;
        public int modelIndex(int viewIndex)
                 return getViewToModel()[viewIndex].modelIndex;     
        private int[] getModelToView()
            if (modelToView == null)
                int n = getViewToModel().length;
                modelToView = new int[n];
                for (int i = 0; i < n; i++)
                    modelToView[modelIndex(i)] = i;
            return modelToView;
        // TableModel interface methods
        public int getRowCount()
            return (tableModel == null) ? 0 : tableModel.getRowCount();
        public int getColumnCount()
            return (tableModel == null) ? 0 : tableModel.getColumnCount();
        public String getColumnName(int column)
            return tableModel.getColumnName(column);
        public Class getColumnClass(int column)
            return tableModel.getColumnClass(column);
        public boolean isCellEditable(int row, int column)
            return tableModel.isCellEditable(modelIndex(row), column);
        public Object getValueAt(int row, int column)
            return tableModel.getValueAt(modelIndex(row), column);
        public void setValueAt(Object aValue, int row, int column)
            tableModel.setValueAt(aValue, modelIndex(row), column);
        // Helper classes
        private class Row implements Comparable
            private int modelIndex;
            public Row(int index)
                this.modelIndex = index;
            public int compareTo(Object o)
                int row1 = modelIndex;
                int row2 = ((Row) o).modelIndex;
                for (Iterator it = sortingColumns.iterator(); it.hasNext();)
                    Directive directive = (Directive) it.next();
                    int column = directive.column;
                    Object o1 = tableModel.getValueAt(row1, column);
                    Object o2 = tableModel.getValueAt(row2, column);
                    int comparison = 0;
                    // Define null less than everything, except null.
                    if (o1 == null && o2 == null)
                        comparison = 0;
                    } else if (o1 == null)
                        comparison = -1;
                    } else if (o2 == null)
                        comparison = 1;
                    } else {
                        comparison = getComparator(column).compare(o1, o2);
                    if (comparison != 0)
                        return directive.direction == DESCENDING ? -comparison : comparison;
                return 0;
        private class TableModelHandler implements TableModelListener
            public void tableChanged(TableModelEvent e)
                // If we're not sorting by anything, just pass the event along.            
                if (!isSorting())
                    clearSortingState();
                    fireTableChanged(e);
                    return;
                // If the table structure has changed, cancel the sorting; the            
                // sorting columns may have been either moved or deleted from            
                // the model.
                if (e.getFirstRow() == TableModelEvent.HEADER_ROW)
                    cancelSorting();
                    fireTableChanged(e);
                    return;
                // We can map a cell event through to the view without widening            
                // when the following conditions apply:
                // a) all the changes are on one row (e.getFirstRow() == e.getLastRow()) and,
                // b) all the changes are in one column (column != TableModelEvent.ALL_COLUMNS) and,
                // c) we are not sorting on that column (getSortingStatus(column) == NOT_SORTED) and,
                // d) a reverse lookup will not trigger a sort (modelToView != null)
                // Note: INSERT and DELETE events fail this test as they have column == ALL_COLUMNS.
                // The last check, for (modelToView != null) is to see if modelToView
                // is already allocated. If we don't do this check; sorting can become
                // a performance bottleneck for applications where cells 
                // change rapidly in different parts of the table. If cells
                // change alternately in the sorting column and then outside of            
                // it this class can end up re-sorting on alternate cell updates -
                // which can be a performance problem for large tables. The last
                // clause avoids this problem.
                int column = e.getColumn();
                if (e.getFirstRow() == e.getLastRow()
                        && column != TableModelEvent.ALL_COLUMNS
                        && getSortingStatus(column) == NOT_SORTED
                        && modelToView != null)
                    int viewIndex = getModelToView()[e.getFirstRow()];
                    fireTableChanged(new TableModelEvent(TableSorter.this,
                                                         viewIndex, viewIndex,
                                                         column, e.getType()));
                    return;
                // Something has happened to the data that may have invalidated the row order.
                clearSortingState();
                fireTableDataChanged();
                return;
        private class MouseHandler extends MouseAdapter
            public void mouseClicked(MouseEvent e)
                JTableHeader h = (JTableHeader) e.getSource();
                TableColumnModel columnModel = h.getColumnModel();
                int viewColumn = columnModel.getColumnIndexAtX(e.getX());
                int column = columnModel.getColumn(viewColumn).getModelIndex();
                if (column != -1)
                    int status = getSortingStatus(column);
                    if (!e.isControlDown())
                        cancelSorting();
                    // Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
                    // {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
                    status = status + (e.isShiftDown() ? -1 : 1);
                    status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
                    setSortingStatus(column, status);
        private static class Arrow implements Icon
            private boolean descending;
            private int size;
            private int priority;
            public Arrow(boolean descending, int size, int priority)
                this.descending = descending;
                this.size = size;
                this.priority = priority;
            public void paintIcon(Component c, Graphics g, int x, int y)
                Color color = c == null ? Color.GRAY : c.getBackground();            
                // In a compound sort, make each succesive triangle 20%
                // smaller than the previous one.
                int dx = (int)(size/2*Math.pow(0.8, priority));
                int dy = descending ? dx : -dx;
                // Align icon (roughly) with font baseline.
                y = y + 5*size/6 + (descending ? -dy : 0);
                int shift = descending ? 1 : -1;
                g.translate(x, y);
                // Right diagonal.
                g.setColor(color.darker());
                g.drawLine(dx / 2, dy, 0, 0);
                g.drawLine(dx / 2, dy + shift, 0, shift);
                // Left diagonal.
                g.setColor(color.brighter());
                g.drawLine(dx / 2, dy, dx, 0);
                g.drawLine(dx / 2, dy + shift, dx, shift);
                // Horizontal line.
                if (descending) {
                    g.setColor(color.darker().darker());
                } else {
                    g.setColor(color.brighter().brighter());
                g.drawLine(dx, 0, 0, 0);
                g.setColor(color);
                g.translate(-x, -y);
            public int getIconWidth()
                return size;
            public int getIconHeight()
                return size;
        private class SortableHeaderRenderer implements TableCellRenderer
            private TableCellRenderer tableCellRenderer;
            public SortableHeaderRenderer(TableCellRenderer tableCellRenderer)
                this.tableCellRenderer = tableCellRenderer;
            public Component getTableCellRendererComponent(JTable table,
                                                           Object value,
                                                           boolean isSelected,
                                                           boolean hasFocus,
                                                           int row,
                                                           int column)
                Component c = tableCellRenderer.getTableCellRendererComponent(table,
                        value, isSelected, hasFocus, row, column);
                if (c instanceof JLabel) {
                    JLabel l = (JLabel) c;
                    l.setHorizontalTextPosition(JLabel.LEFT);
                    int modelColumn = table.convertColumnIndexToModel(column);
                    l.setIcon(getHeaderRendererIcon(modelColumn, l.getFont().getSize()));
                return c;
        private static class Directive
            private int column;
            private int direction;
            public Directive(int column, int direction)
                this.column = column;
                this.direction = direction;
    }any input will be appreciated.
    thanks
    Peter

    The code you posted doesn't help us at all. Its just a duplicate of the code from the tutorial. The custom code is what you have written. For example do you update the TableModel from the Event Thread? Do you update the SortModel or the DefaultTableModel? If you actually provide your test code and somebody has already downloaded the sort classes, then maybe they will test your code against the classes. But I doubt if people will download the sort classes and create a test program just to see if they can duplicate your results (at least I know I'm not about to).

  • TableAdapter Configuration Wizard gives error when adding new TableAdapter

    Hi,
    I recently downloaded and installed the ODT for visual studio on my computer. I am running VS2008 on Windows 7 64-bit. I am able to create an ODP.NET connection to the Oracle XE 10.2g instance that is running on my computer with no problems and use that connection to browse the database. When I add a DataSet to my project, and start adding TableAdapters to the DataSet, I am getting errors. In an attempt to figure out what the problem is, I have followed various scenarios. I will describe each scenario, and what the end result is, and then after I have described them all, I will explain what I think the problem might be. Here are the different scenarios I have used:
    Scenario 1:
    From the Server Explorer, highlight ALL of the tables in my schema and drag them to the designer (all table adapters are added with no issues). I can add additional queries to each of the TableAdapters and then change the additional queries by right clicking and choosing "Configure". This all works with no issues. However, on certain TableAdapters, if I try to modify the primary query (Fill,GetData()), I can open the query editor just fine, change various settings, etc, but when I click on "Finish" I get the following error:
    Configure TableAdapter TABLENAME failed.
    Index was outside the bounds of the array.
    Scenario 2:
    From the Server Explorer, drag tables from my schema onto the designer one at a time. Some tables get added just fine, but for the rest of them, I get the following error:
    Failed to merge object(s).
    Index was outside the bounds of the array.
    Scenario 3:
    On the Dataset Designer, add tables one at a time by right clicking and choosing "Add -> TableAdapter" and then using SQL to define the query for each table. Some tables get added just fine, but for the rest of them, I get the following error:
    Failed to add TableAdapter.
    Index was outside the bounds of the array.
    Ok... now that I have described all of the different scenarios, I will explain what I think the problem is, and why. Based on my research, I believe the underlying problem has to do with Foreign Key Constraints on the various tables. While working on Scenarios 2 & 3, the same exact tables worked just fine in both scenarios. When I started looking at the definitions for the tables in my schema, it turns out that all of the tables that failed had foreign key constraints defined. When I remove the FK constraints from a table, I am then able to add it to my dataset and change the default query with no problems. My original application used the System.Data.OracleClient provided by Microsoft. When adding my tableadapters using the microsoft data provider, the FK relations are automatically generated for me in the designer, but not with the Oracle Data Provider
    I would be happy to provide you with the DDL that I used for creating my schema (it is not very big) if needed.
    Thanks,
    Jim

    Sorry let me clarify some of the config a little more.
    MAIL101 - Exch 2013
    MAIL102 - Exch 2013
    AP104 - Witness (strictly a witness nothing else on this machine)
    EDGE01 - Exch 2007 Edge
    CAS01 - Exch 2007 Hub/CAS load balancer for CAS02/03
    CAS02 - Exch 2007 Hub/CAS
    CAS03 - Exch 2007 Hub/CAS
    MBOX01 - Exch 2007 Mail cluster
    MBOX02 - Exch 2007 Mail cluster node
    MBOX03 - Exch 2007 Mail cluster node
    RDC01, RDC02, RDC03 - all 2008 R2 root domain controllers for rootdomain.rootdomain
    DC01, DC02, DC03, DC04 - all 2008 R2 domain controllers for us.rootdomain.rootdomain
    All DCs are Global Catalogs.
    I can ping all DCs and root DCs fromboth MAIL101 and 102
    The Exchange Replication service is running on both MAIL101 and 102.
    DC03 is in the same site as the MAIL101/102 servers so I'll run all replication tests from here.
    DCDIAG comes back with all tests passed.
    repadmin /replsum comes back with 0 fails and no errors largest delta for any intersite communication is 13min.
    When I run Test-ReplicationHealth -Identity MAIL101 and also 102 they both come back as everything passed.  No errors.

  • Error while registering portlet provider WWC-43176

    Hi,
    I am not able to register my portlet provider. While i register, i get *"The provider URL specified may be wrong or the provider is not running. (WWC-43176)"* However, i am able to access my provider's test page, i tried using ip instead of host name but its still in vain. I replaced pdk jar files too...
    The URL i am using for accessing is :
    http://server01/application_one/providers/producer
    I get below messages when i access test provider page through above URL :
    Congratulations! You have successfully reached your Provider's Test Page.
    Recognizing Portlets...
    DemoPortlet
    Recognizing initialization parameters...
    resourceServletMapping : /pdkresource
    Recognizing component versions...
    ptlshare.jar version: 10.1.3.2.0
    pdkjava.jar version: 10.1.3.2.0
    Cheers!!!
    Ujjwal B Soni
    Edited by: user1584096 on 14 Sep, 2009 10:38 PM
    Edited by: user1584096 on 14 Sep, 2009 10:40 PM
    Edited by: user1584096 on 14 Sep, 2009 10:50 PM

    Hi,
    I resolved this error, actually, the provider page was under SSO authentication, removing it from portal settings resolved my issue. Now i am able to successfully register my provider.......
    Cheers!!!
    Ujjwal B Soni
    <baroda, india, gujarat>
    <+919998971048>

  • Error when adding columns to table and update sync group schema

    Hi,
    I have an Azure SQL Database that is synced to five lokal SQL Server Express 2012 clients. Today I had to add some columns to the tables, I did this using SMMS and ALTER TABLE on the hub-database.
    Then I disabled auto-sync in the Azure Portal and updated the sync schema.
    The first error I got when clicking on Save-Button was that my goup is not ready for syncing. I assumed that was caused by two sync agents who were offline. So I deleted them from the group and the error was gone. (is this an generall issue that all agents
    must be online to update the schema?)
    But then I got the next error when clicking on Save-Button who tells me SQL Error 207, invalid column name on the new columns I've added. 
    Here's the error in the eventlog:
    id:DbProvider_SqlSyncScopeProvisioning_Error, rId:, sId:cc009538-29a6-4980-8db6-98fe520626b6, agentId:cb734c59-3484-41ed-8002-dec8cf7e21b4,
    agentInstanceId:1aa5a36e-0dfb-4ff1-841a-c298d2e77fe7, syncGroupId:9d439cdd-de14-4e4d-a799-8a7fa518f533, syncGroupMemberId:dd2d6cdf-fdb3-4ff8-8ab5-8e639c35af47, hubDbId:d5c5615a-6f55-484a-8c76-cf335989fa41, tracingId:b5f0eb23-1ade-437b-af33-a1960ebd1c23, databaseId:a9c5ba71-a7b0-4ffe-ab8d-10b6006fc282,
    sqlAzureActivityId:00000000-0000-0000-0000-000000000000, e:'Type=System.Data.SqlClient.SqlException,Message=Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.
    Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.,Source=.Net SqlClient Data Provider,StackTrace=
      bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception&#44; Boolean breakConnection&#44; Action`1 wrapCloseInAction)
       bei System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception&#44; Boolean
    breakConnection&#44; Action`1 wrapCloseInAction)
       bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj&#44;
    Boolean callerHasConnectionLock&#44; Boolean asyncClose)
       bei System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior&#44; SqlCommand cmdHandler&#44;
    SqlDataReader dataStream&#44; BulkCopySimpleResultSet bulkCopyHandler&#44; TdsParserStateObject stateObj&#44; Boolean&amp; dataReady)
       bei System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName&#44; Boolean
    async&#44; Int32 timeout&#44; Boolean asyncWrite)
       bei System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion&#44;
    String methodName&#44; Boolean sendToPipe&#44; Int32 timeout&#44; Boolean asyncWrite)
       bei System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncTrackingTableHelper.UpdateTrackingTableWhereColumnsNotNullInBaseTable(SqlConnection
    connection&#44; SqlTransaction transaction&#44; DbSyncColumnDescription[] addedColumns&#44; DbSyncColumnDescription[] modifiedColumns&#44; Int32 tableObjectId&#44; SqlSyncMarkerTableHelper markerHelper)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncTableProvisioning.ReApply(SqlTransaction
    trans&#44; SqlSyncProviderAdapterConfiguration oldConfiguration)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeProvisioning.ReApplyScope(SqlConnection
    connection)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeProvisioning.ReApplyInternal(SqlConnection
    connection)
       bei Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeProvisioning.ReApply(),', eType:'Type=System.Data.SqlClient.SqlException',
    eMessage:'Message=Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.
    Ungültiger Spaltenname &apos;Kunde_Name&apos;.
    Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.
    Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.' Error Code: -2146232060 - SqlError Number:207,
    Message: Ungültiger Spaltenname &apos;Kunde_Name&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;.. SqlError
    Number:207, Message: Ungültiger Spaltenname &apos;Kunde_Name&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_gestellt&apos;.. SqlError Number:207, Message: Ungültiger Spaltenname &apos;Rechnung_bezahlt&apos;..
    , eTypeInner:, eMessageInner:
    Can anyone help here?
    Kind
    regards,
    selmiac

    Hello,
    When you alter the table on hub database, did you specify the new column allow NULLs or have a DEFAULT? The column must allow NULLs or have a DEFAULT for the user to create it in the other tables on the sync group.
    Reference:Add or remove a column in a sync group
    If the issue persists, you may try to delete the sync group and recreate the group.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

Maybe you are looking for

  • I have a problem when running my own EJB as a TUXEDO service using WTC.

    Hello, I have a problem when running my own EJB as a TUXEDO service using WTC. I am using TUXEDO 8.1 and WL 9.1. When I am trying to run my own EJB as a TUXEDO service error appears. TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:Could not find service T

  • Quality agrement/ Tech-delivery terms

    Hi all, I have assigned quality agrement and tech delivery terms both to material/vendor. If i am sending po to vendor then 1)weather the attachment which i have made  in quality agrement and tech delivery term document will also get attached with PO

  • Document management doubt

    Hi, all 1.I have created a document by using  transaction CV01N as document:99 document type:WRP document part:000 document version :00 in this above document wrote as text to 1.accuracy 2.quality 3.delivery 2  Transaction code CT04 : created charact

  • Should I spend the $280.00 to have Canon fix my 70D auto-focusing issue?

    Should I spend the $280.00 to have Canon fix my 70D auto-focusing issue? Or just return back to my very much trusted Rebels? Solved! Go to Solution.

  • Regarding IS IO and GAS

    Hi This is Mohammed vaseem khan, recently i am selected for on one implementation project on IS OIL and GAS,can any body tell me from where,i get soem knowledge in IS OIL&GAS, if any body having this so kindly send me links,from where i can downlode