Error when adding two entries in A/P Invoice.
Dear all,
I get the error below whenever i add TWO entries in A/P Invoice .
[Microsoft][SQL Server Native Client 10.0][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. (CINF)
See the attached file for entries and error.
Hi Neha,
Please if you have any Approval Query.
Please also check if you have all SP for Object 13.
Thanks'
Regards::::
Atul Chakraborty
Similar Messages
-
Syntax error when adding variables in recordset (query)
MySql,PHP,Dreamweaver,WindowsVista
Hi I am receiving a syntax error: invalid quantifier ++ $orderNum;s*?> when adding two variables in the recordset (query) dialog box. I get the error when clicking OK.
Here is what is entered:
name: fieldname
type: text
default: -1
runtime value: $_GET['Field']
name: searchvalue
type:text
default: -1
runtime value: $_GET['Search']
Can anyone help with this?That's a completely separate issue. The error message is telling you that you have not defined the testing server correctly in the Site Definition dialog box.
The Host directory field and URL prefix should both point to the same place, in other words, the root of your website. Host directory is the physical path, while URL prefix is the address you would put in a browser address bar.
Select Site > Manage Sites. Select the name of the site, and click the Edit button. In the Site Definition dialog box, select the Advanced tab, and then choose Testing server from the Category list on the left.
Depending on how your remote login works, Host directory should probably be public_html or just /. Use the same value as in the Remote server part of the Site Definition dialog box. The URL prefix should be http://gaylehansen.aisites.com/. -
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,
NarayanSQL> 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
hThe 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 when searching for entries in secure store
Hi All,
I need to assign the certificate in the sender agreement for signature verification and decrpting. So when i search for entries, i am getting the error as " Error when searching for entries in Secure Store".
Details of the Error is showing as:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
What is the reason for the above error and how to rectify it..?
Suggest some useful solution
Regards
PrakashHi All,
Can anyone suggest some ways to rectify the error, as i am not able to find solution for the error in the
forum.
Regards
Prakash -
Script error when viewing two specific topics from application
We are connecting a web help project to an application. We are getting the following rather non-descript scrip error when launching two of the help toics from the application.
Continued strange behavior is that we do not get this error if we launch the index_csh file from Window's explorer and navigate to the topic or launch the topic itself by clicking on the file itself. Any ideas? We have hooked up a .chm file in the past.Hi there
Do the errors disappear if you remove the hotspots?
You said:
So, we are calling the webhelp from an application and on the ones where there are glossary hotspots, we get the error message. I do not get the error message when I open the help file via windows explorer.
So you are saying the WebHelp is stored locally? Is the application the WebHelp supports stored locally too?
Does the same thing happen if you insert an expanding DHTML hotspot?
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Error message displayed when adding Wiki entry
When adding a new WIKI entry in Teaming 2, this error message is sometime displayed:
class org.kablink.teaming.module.binder.impl.WriteEntryD ataException
Frequently, Teaming 2 seems to stop responding and the web page will time out.
Any ideas?johnefleming,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
Hi,Error when adding chart of account This entry already exists in the foll
Hi,
I am getting these below error while adding new chart of account.
This entry already exists in the following tables '' (UDO1) (ODBC -2035) [Message 131-183]
This entry already exists in the following tables 'G/L Accounts' (OACT) (ODBC -2035) [Message 131-183]
please suggest solving . Thanks Advance.
Regards
Rajkumar GuptaHi,
You may check this thread:
Re: This entry already exists in the following tables -Message
Also check SAP Note Number: 1054713 to see if it applies to you. It might be a bug too.
Thanks,
Gordon -
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
PeterThe 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).
-
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 'Kunde_Name'.
Ungültiger Spaltenname 'Rechnung_gestellt'.
Ungültiger Spaltenname 'Rechnung_bezahlt'.
Ungültiger Spaltenname 'Kunde_Name'.
Ungültiger Spaltenname 'Rechnung_gestellt'.
Ungültiger Spaltenname 'Rechnung_bezahlt'.,Source=.Net SqlClient Data Provider,StackTrace=
bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
bei System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean
breakConnection, Action`1 wrapCloseInAction)
bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj,
Boolean callerHasConnectionLock, Boolean asyncClose)
bei System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler,
SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
bei System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean
async, Int32 timeout, Boolean asyncWrite)
bei System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion,
String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
bei System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
bei Microsoft.Synchronization.Data.SqlServer.SqlSyncTrackingTableHelper.UpdateTrackingTableWhereColumnsNotNullInBaseTable(SqlConnection
connection, SqlTransaction transaction, DbSyncColumnDescription[] addedColumns, DbSyncColumnDescription[] modifiedColumns, Int32 tableObjectId, SqlSyncMarkerTableHelper markerHelper)
bei Microsoft.Synchronization.Data.SqlServer.SqlSyncTableProvisioning.ReApply(SqlTransaction
trans, 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 'Kunde_Name'.
Ungültiger Spaltenname 'Rechnung_gestellt'.
Ungültiger Spaltenname 'Rechnung_bezahlt'.
Ungültiger Spaltenname 'Kunde_Name'.
Ungültiger Spaltenname 'Rechnung_gestellt'.
Ungültiger Spaltenname 'Rechnung_bezahlt'.' Error Code: -2146232060 - SqlError Number:207,
Message: Ungültiger Spaltenname 'Kunde_Name'.. SqlError Number:207, Message: Ungültiger Spaltenname 'Rechnung_gestellt'.. SqlError Number:207, Message: Ungültiger Spaltenname 'Rechnung_bezahlt'.. SqlError
Number:207, Message: Ungültiger Spaltenname 'Kunde_Name'.. SqlError Number:207, Message: Ungültiger Spaltenname 'Rechnung_gestellt'.. SqlError Number:207, Message: Ungültiger Spaltenname 'Rechnung_bezahlt'..
, eTypeInner:, eMessageInner:
Can anyone help here?
Kind
regards,
selmiacHello,
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 -
Get 9672 error when adding an Epson 7800 connected to an aiport express
I get a 9672 error when I try to add our epson 7800. It is a rendevous printer connected to an airport express. The aiport express is an extension of our aiport network base which is an airport extream. I am trying to add it to a G5 with osx 10.3.9.
I can add it to our mac minis that run 10.4 with no problem.
I tried deleting the driver and reinstalling the latest driver from epson and deleting the printer preferences.
It shows up as a rendevous printer but when I try and add it I get a 9672 error.The problem seemed to be that we were printing to two epson Printers, a cx5400 and a 7800.
I repaired permissions.
Then I deleted the epson print drivers by putting the epson folder which is in the Library folder in the trash. Next I deleted the printer preferences by putting all the apple.print files in the users, home folder, library, preferenced folder in the trash and rebooted.
I had to reinstall the printer driver for the 5400 first, It requires a reboot, then reinstall the 7800 print driver. Then I connected the 7800 from my g5 via usb, added the printer and printed. Next I put the put the 7800 on the Airport Express, added the printer and printed. I then printed to the 5400 and deleted the printer I defined to print via usb from the G5.
Now it works. I tried to install the drivers and add the printers in many different orders and it seemed to be very important that the order above be followed. If I didn't I would get the 9672 error when I tried to add the 7800 or a communications error when I tried to print to the 7800.
Support at epson let me know how to deleted the printer driver. -
Errors when adding resources to rg in zone cluster
Hi guys,
I managed to create and bring up a zone cluster, create a rg and add a HAStoragePlus resource (zpool), but getting errors when I want to add a lh resource. Here's the output I find relevant:
root@node1:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 24.6G 10.0G 14.6G 40% 1.00x ONLINE -
zclusterpool 187M 98.5K 187M 0% 1.00x ONLINE -
root@node1:~# clzonecluster show ztestcluster
=== Zone Clusters ===
Zone Cluster Name: ztestcluster
zonename: ztestcluster
zonepath: /zcluster/ztestcluster
autoboot: TRUE
brand: solaris
bootargs: <NULL>
pool: <NULL>
limitpriv: <NULL>
scheduling-class: <NULL>
ip-type: shared
enable_priv_net: TRUE
resource_security: SECURE
--- Solaris Resources for ztestcluster ---
Resource Name: net
address: 192.168.10.55
physical: auto
Resource Name: dataset
name: zclusterpool
--- Zone Cluster Nodes for ztestcluster ---
Node Name: node2
physical-host: node2
hostname: zclnode2
--- Solaris Resources for node2 ---
Node Name: node1
physical-host: node1
hostname: zclnode1
--- Solaris Resources for node1 ---
Now I want to add a lh (zclusterip - 192.168.10.55) to a resource group named z-test-rg.
root@zclnode2:~# cat /etc/hosts
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Internet host table
::1 localhost
127.0.0.1 localhost loghost
#zone cluster
192.168.10.51 zclnode1
192.168.10.52 zclnode2
192.168.10.55 zclusterip
root@zclnode2:~# cluster status
=== Cluster Resource Groups ===
Group Name Node Name Suspended State
z-test-rg zclnode1 No Online
zclnode2 No Offline
=== Cluster Resources ===
Resource Name Node Name State Status Message
zclusterpool-rs zclnode1 Online Online
zclnode2 Offline Offline
root@zclnode2:~# clrg show
=== Resource Groups and Resources ===
Resource Group: z-test-rg
RG_description: <NULL>
RG_mode: Failover
RG_state: Managed
Failback: False
Nodelist: zclnode1 zclnode2
--- Resources for Group z-test-rg ---
Resource: zclusterpool-rs
Type: SUNW.HAStoragePlus:10
Type_version: 10
Group: z-test-rg
R_description:
Resource_project_name: default
Enabled{zclnode1}: True
Enabled{zclnode2}: True
Monitored{zclnode1}: True
Monitored{zclnode2}: True
The error, for lh resource:
root@zclnode2:~# clrslh create -g z-test-rg -h zclusterip zclusterip-rs
clrslh: No IPMP group on zclnode1 matches prefix and IP version for zclusterip
Any ideas?
Much appreciated!Hello,
First of all, I detected a mistake in my previous config: instead of adding an ipmp, a "simple" NIC was added to cluster. I rectified that (I created zclusteripmp0 ipmp out of net11):
root@node1:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
clprivnet0 ip ok -- --
clprivnet0/? static ok -- 172.16.3.66/26
clprivnet0/? static ok -- 172.16.2.2/24
lo0 loopback ok -- --
lo0/v4 static ok -- 127.0.0.1/8
lo0/v6 static ok -- ::1/128
lo0/zoneadmd-v4 static ok -- 127.0.0.1/8
lo0/zoneadmd-v6 static ok -- ::1/128
net0 ip ok sc_ipmp0 --
net1 ip ok sc_ipmp1 --
net2 ip ok -- --
net2/? static ok -- 172.16.0.66/26
net3 ip ok -- --
net3/? static ok -- 172.16.0.130/26
net4 ip ok sc_ipmp2 --
net5 ip ok sc_ipmp2 --
net11 ip ok zclusteripmp0 --
sc_ipmp0 ipmp ok -- --
sc_ipmp0/out dhcp ok -- 192.168.1.3/24
sc_ipmp1 ipmp ok -- --
sc_ipmp1/static1 static ok -- 192.168.10.11/24
sc_ipmp2 ipmp ok -- --
sc_ipmp2/static1 static ok -- 192.168.30.11/24
sc_ipmp2/static2 static ok -- 192.168.30.12/24
zclusteripmp0 ipmp ok -- --
zclusteripmp0/zoneadmd-v4 static ok -- 192.168.10.51/24
root@node1:~# clzonecluster export ztestcluster
create -b
set zonepath=/zcluster/ztestcluster
set brand=solaris
set autoboot=true
set enable_priv_net=true
set ip-type=shared
add net
set address=192.168.10.55
set physical=auto
end
add dataset
set name=zclusterpool
end
add attr
set name=cluster
set type=boolean
set value=true
end
add node
set physical-host=node2
set hostname=zclnode2
add net
set address=192.168.10.52
set physical=zclusteripmp0
end
end
add node
set physical-host=node1
set hostname=zclnode1
add net
set address=192.168.10.51
set physical=zclusteripmp0
end
end
An then I tried again to add the lh, but getting the same error:
root@node2:~# zlogin -C ztestcluster
[Connected to zone 'ztestcluster' console]
zclnode2 console login: root
Password:
Last login: Mon Jan 19 15:28:28 on console
Jan 19 19:17:24 zclnode2 login: ROOT LOGIN /dev/console
Oracle Corporation SunOS 5.11 11.2 June 2014
root@zclnode2:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
clprivnet0 ip ok -- --
clprivnet0/? inherited ok -- 172.16.3.65/26
lo0 loopback ok -- --
lo0/? inherited ok -- 127.0.0.1/8
lo0/? inherited ok -- ::1/128
zclusteripmp0 ipmp ok -- --
zclusteripmp0/? inherited ok -- 192.168.10.52/24
root@zclnode2:~# cluster status
=== Cluster Resource Groups ===
Group Name Node Name Suspended State
z-test-rg zclnode1 No Offline
zclnode2 No Online
=== Cluster Resources ===
Resource Name Node Name State Status Message
zclusterpool-rs zclnode1 Offline Offline
zclnode2 Online Online
root@zclnode2:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
clprivnet0 ip ok -- --
clprivnet0/? inherited ok -- 172.16.3.65/26
lo0 loopback ok -- --
lo0/? inherited ok -- 127.0.0.1/8
lo0/? inherited ok -- ::1/128
zclusteripmp0 ipmp ok -- --
zclusteripmp0/? inherited ok -- 192.168.10.52/24
root@zclnode2:~# clreslogicalhostname create -g z-test-rg -h zclusterip zcluste
rip-rs
clreslogicalhostname: No IPMP group on zclnode1 matches prefix and IP version for zclusterip
root@zclnode2:~#
To answer your first question, yes - all global nodes and zone cluster nodes have entries for zclusterip:
root@zclnode2:~# cat /etc/hosts
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Internet host table
::1 localhost
127.0.0.1 localhost loghost
#zone cluster
192.168.10.51 zclnode1
192.168.10.52 zclnode2
192.168.10.55 zclusterip
root@zclnode2:~# ping zclnode1
zclnode1 is alive
When I tried the command you mentioned, first it gave me an error ( there was a space between interfaces), then I changed the rg group to fit mine (z-test-rg) and it (partially) worked:
root@zclnode2:~# clrs create -g z-test-rg -t LogicalHostname -p Netiflist=sc_ip
mp0@1,sc_ipmp0@2 -p Hostnamelist=zclusterip zclusterip-rs
root@zclnode2:~# clrg show
=== Resource Groups and Resources ===
Resource Group: z-test-rg
RG_description: <NULL>
RG_mode: Failover
RG_state: Managed
Failback: False
Nodelist: zclnode1 zclnode2
--- Resources for Group z-test-rg ---
Resource: zclusterpool-rs
Type: SUNW.HAStoragePlus:10
Type_version: 10
Group: z-test-rg
R_description:
Resource_project_name: default
Enabled{zclnode1}: True
Enabled{zclnode2}: True
Monitored{zclnode1}: True
Monitored{zclnode2}: True
Resource: zclusterip-rs
Type: SUNW.LogicalHostname:5
Type_version: 5
Group: z-test-rg
R_description:
Resource_project_name: default
Enabled{zclnode1}: True
Enabled{zclnode2}: True
Monitored{zclnode1}: True
Monitored{zclnode2}: True
root@zclnode2:~# cluster status
=== Cluster Resource Groups ===
Group Name Node Name Suspended State
z-test-rg zclnode1 No Offline
zclnode2 No Online
=== Cluster Resources ===
Resource Name Node Name State Status Message
zclusterip-rs zclnode1 Offline Offline
zclnode2 Online Online - LogicalHostname online.
zclusterpool-rs zclnode1 Offline Offline
zclnode2 Online Online
root@zclnode2:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
clprivnet0 ip ok -- --
clprivnet0/? inherited ok -- 172.16.3.65/26
lo0 loopback ok -- --
lo0/? inherited ok -- 127.0.0.1/8
lo0/? inherited ok -- ::1/128
sc_ipmp0 ipmp ok -- --
sc_ipmp0/? inherited ok -- 192.168.10.55/24
zclusteripmp0 ipmp ok -- --
zclusteripmp0/? inherited ok -- 192.168.10.52/24
root@zclnode2:~# ping zclusterip
zclusterip is alive
root@zclnode2:~# clrg switch -n zclnode1 z-test-rg
root@zclnode2:~# cluster status
=== Cluster Resource Groups ===
Group Name Node Name Suspended State
z-test-rg zclnode1 No Online
zclnode2 No Offline
=== Cluster Resources ===
Resource Name Node Name State Status Message
zclusterip-rs zclnode1 Online Online - LogicalHostname online.
zclnode2 Offline Offline - LogicalHostname offline.
zclusterpool-rs zclnode1 Online Online
zclnode2 Offline Offline
root@zclnode2:~# ping zclusterip
no answer from zclusterip
root@zclnode2:~# ping zclusterip
no answer from zclusterip
root@zclnode2:~#
So, the lh was added, the rg can switch over to the other node, but zclusterip is pingable only from that cluster zone; I cannot ping zcluster ip from the cluster zone that does not hold the rg, nor from any global cluster node (node1, node2)... -
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,
JimSorry 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.
Maybe you are looking for
-
Airport Extreme only connects to one computer at a time
We just got a new modem and now we can no longer go online with more than one wireless computer at a time, although we have set up a network and it has always worked just fine with the previous modem. The error message we are getting on a Mac trying
-
While going to process credit memo I am getting error as "Sales doc type F2 can not be invoiced with billing type ZLG". Please help me out. Please explain me the wayout in a bit details. Thank you so much in advance
-
How to remove the 1st level folder under the main ones at each level
In the normal mode, either in the Content Areas section or in your Folder Portlet on your page - all the sub folders are rendered in blue, and then under each one, its corresponding sub folders are also rendered in smaller font. Is there a way to dis
-
I have a form that was made by someone else. I need to move fields and add new fields in the same box. How do I do that?
-
Display and filter custom columns in a presentation
I haven't found anything in the documentation, so I post this question and hope to get an answer: In ALBPM 6 is it possible A) to display custom columns in a presentation, and B) to filter using these custom columns in a view? I am thinking of having