HTML DB - TRAPPING ERRORS WHEN NO_DATA..

Hi everyone,
How I can trap my errors. For example NO_DATA_FOUND
Is it possible to use EXCEPTION l
wHEN NO_data_found
Thank you very much. Bye.

why can you not access MDXTEST ?
you first need to proceed with the steps outline.
In case you need a quick turnaround I would suggest that you open a message with support. This is a forum and not support so you can not expect any guaranteed response time.
Ingo

Similar Messages

  • Html internal server error when published

    I put this
    <!-- Inizio Codice ShinyStat -->
    <div align="center">
    <a href="http://www.shinystat.com/it" target="_top">
    <img src="http://www.shinystat.com/cgi-bin/shinystat.cgi?USER=nonnibit" alt="Contatore sito" border="0" /></a>
    </div>
    <!-- Fine Codice ShinyStat -->
    and I can see my website on iWeb fine but when published it shows Internal Server Error.
    What can I do?

    You publish at a free website hoster :
    http://xoom.virgilio.it/
    With all the consequences of it.
    The webhoster adds a lot of code to your pages. Look at the end of the source.
    This is the page where the stats should appear :
    http://nonnobit.xoom.it/NonniBit/Inizio_files/widget1_markup.html
    None.
    So either get another hoster or pay for it.
    Either way, it's not an iWeb issue. I pasted the stat code in a html snippet and it shows as intended.

  • Trapping errors when running in batch mode

    I use windows scheduler to run several reports in batch mode. Is there a way to continue after an error and capture a error code. I ocasionally get Fetch out of sequence errors which have to be cleared from the screen manually. I need this to automaticly close and return an error code so the report can be re run without user intervention.
    Is there a command line switch or registry setting to switch error mesage boxes of.
    Regards
    Alan

    Dbritt26
    This is an old story which may have a solution if your program is Premiere Elements 13.
    If your program is version 13, then delete or rename the OldFilm.AEX file from OldFilm.AEX to OldFilm.AEXOLD.
    That file is found
    Local Disk C
    Program Files
    Adobe
    Adobe Premiere Elements 13
    Plug-Ins
    Common
    NewBlue
    and in the NewBlue Folder is the OldFilm.AEX file.
    Please let us know the outcome.
    Thanks.
    ATR

  • Detect errors when using LoadFindChangeQuery

    Greetings all!
    Part of a script we have lists the saved find and change queries in a list box and allows the user to select a bunch of them to run. My issue is trapping "errors" when loading.
    When you select a find and change query manually on the Find dialog InD may display the message "This query refers to formatting elements not found in this document. Continue anyway?" If you click "Yes" it loads the query but may not, for instance, have a particular style assigned. In the scripting (Win 7, InD CS6, VBA) there is no indication that the search has, essentially, changed from the loaded query because something wasn't available, like a style or font. I.e., if the query was to search for an EN space on the "EXT1" style only and the EXT1 wasn't available ALL EN spaces get found. Obviously, this is NFG.
    I know I can read the XML file and check, for instance, to see whether a style is defined in the query, then check the document for that style. But yikes, it would, technically, have to check for swatches, the many other types of styles and what ever else to work 100%.
    Short of reading the XML file is there any way to test a query and have the script  know something is missing?
    Thanks for reading,
    Ken

    loadFindChangeQuery() loads a query, even if the formatting doesn't match, just as you found. Therefore, as you feared, the only way to check if some formatting is available is to look inside the XMLs. And that is feasible only for character-style names -- for local formatting it's pretty much undoable.
    Peter

  • Unable to trap error on NAS drive mount failure

    Following script works fine when NAS is on network but unmounted but fails to trap error when NAS not on network (it's on a wireless connection that drops out in heavy snow).
    I want to build a loop so that it tries to bring up the drive every few minutes but can't prevent the error: "Connection failed. Server may not exist or is not operational at this time....... OK"
    Any ideas why?
    -- Connect to Remote Backup NAS
    tell application "Finder"
    set disk_names to list disks
    if disk_names contains "dbqwbackup" then
    display dialog "Backup Drive dbqwbackup connected" buttons "Connected" default button "Connected" giving up after 4
    else
    display dialog "Mounting dbqwbackup" buttons "Mount Drive" default button "Mount Drive" giving up after 3
    try
    with timeout of 250 seconds
    mount volume "afp://192.168.0.18/dbqwbackup"
    end timeout
    display dialog "Backup Drive dbqwbackup connected" buttons "Connected" default button "Connected" giving up after 4
    on error error_message number error_number
    display dialog error_message & return & error_number with icon 2 giving up after 10
    return
    end try
    end if
    end tell

    I had the same problem. I found out that a +tell application "Finder"+ block around the +mount volume+ command make the +with timeout+ to work just fine.
    Hope this helps.
    try
    with timeout of 250 seconds
    tell application "Finder"
    mount volume "afp://192.168.0.18/dbqwbackup"
    end tell
    end timeout
    end try

  • Error when trying to compile HTML help

    I'm using RoboHelp 7.0 on Windows XP. All of the sudden, last
    week, I start getting the following error when I try to compile
    "Fatal Error: Unexpected error from Microsoft HTML compiler." I've
    read the other posts regarding this error and deleted the .CPD file
    multiple times and tried to compile again still with no success.
    I've uninstalled and reinstalled multiple times and not had any
    better results. The other author in my office can check the project
    out of RoboSource and compile it fine. I have it on my local drive
    when trying to compile.
    I'd appreciate any ideas. It doesn't make sense that is
    something in the project since my other author can compile it fine.
    Thanks,
    Nita

    Hi, Nita,
    Do you have any other RoboHelp projects that you can try
    compiling? This may help to determine whether there's something
    slightly askew about this particular project — sounds
    unlikely if your colleague can compile without error — or
    whether the problem lies in your RoboHelp installation.
    I'd also recommend that you run MJ's Help Diagnostics,
    available from the address below. This will verify that all the
    HTML Help viewer and compiler components are properly installed and
    registered on your machine.
    http://helpware.net/downloads/index.htm#MJs
    Pete

  • Flash Player Security error when publishing HTML files

    I am new to the Captivate world and am just in love with the
    features - but I have been having a very difficult time publishing
    my "movies". I have 8 files that are all called upon in one movie
    (like a table of contents). I have abandon the though of publishing
    each as an EXE file - and have decided to go the HTML route.
    However when I try to run the published HTML file I get an Adobe
    Flash Player Security error - saying "Adobe Flash Player has
    stopped a potentially unsafe operation." It then says that the
    local SWF file is trying to communicate with the Internet-enabled
    HTM file.
    Can someone please tell me what this means? We are using
    Captivate for distance learning as well as internal - so I can't
    know for sure what the end-users will be using when the files are
    used.
    Any assistance would be greatly appreciated.

    Welcome to our community, Rachel
    Where are you running your movie from? If you are planning on
    running them from a server, there should be no need to worry about
    your end user seeing those messages. However, if you are planning
    on each user copying them to their own hard drive or if you are
    running from a CD-ROM, you may need to perform some trickery to
    make them work without issue.
    The message is occurring because there are links in some of
    the files that point to internet resources and the Flash player is
    seeing that as a potential security risk. So it is blocking the
    action until you pat it on the head and assure it the world will
    not, in fact, end if it shows you the content.
    If you wish to banish the screen on your PC, take a look at
    the tutorial linked below.
    Click
    here to view a tutorial
    I'll hold off on the other bit until I'm certain what we are
    dealing with.
    Cheers... Rick

  • JS error when exporting to HTML

    Hi,
    I'm getting JS error when exporting to HTML.
    When publishing to catalyst, all functions are OK, but when exporting there're lots of bugs and I get the error message.
    Pop-up attached.
    Please advise,
    Avi

    Hi, Sorry for the late response, are you still experiencing this issue. If yes, please let me know

  • Html snippets and unknown error when publishing - the mystery deepens

    Can anyone make sense of this?
    I have been using iWeb for a year or so. Personal site with added extra goodies like widgets using iweb more.
    Upgraded to iWeb 08 with a few formatting problems (which I chose to ignore for now) - after version 2.01 I replaced my iweb more extras with the new html snippet thingy and everything was fine - although I still didn't get around to sorting the formatting issues.
    Now we are at 2.02 I decided to use one of the new themes and so I created a new page using golden rod and merrily cut and paste from the existing page. I was loathe to delete the old page until I knew the new one was fine - my plan was then to do a bit of page renaming and voila a newly themed home page. Anyway what I got was;
    Unknown error - when the new page was being created.
    Ok - deleted the offending page - site now publishes fine -so we know this isn't .mac.
    Now I decided to build the new page a bit at a time to see what was causing the problem.
    It turns out to be a html snippet (which works fine on my home page still);
    div style="text-align:center"
    a href="http://outcampaign.org/"
    img border="0" alt="image" width="143" src="http://pharyngula.org/images/scarlet_A.png" height="122"/
    /a
    (I have broken the tags by removing the 's so you can see the text itself)
    When I added this to an HTML snippet the unknown error returned.
    Now I have deleted it and I still get the unknown error for that page.
    So this is definitely an iWeb problem and not a .mac problem.
    Any ideas?
    Home page;
    http://web.mac.com/theedonfamily/Site/Home.html

    why do you use the snippet to actually add the thing? you can just place the image directly into iweb and then activate it as a link. (there are some errors in the script as well!)
    if you want to use the snippet way, then id just change the code a bit:
    +⊗p style="text-align: center;"⊗+
    +⊗a href="http://outcampaign.org/"⊗+
    +⊗img style="border: none;" alt="Image" width="143" src="http://pharyngula.org/images/scarlet_A.png" height="122" /⊗+
    ⊗/a⊗
    ⊗/p⊗
    replace every ⊗ with either < or >.
    max

  • Weird error when calling AS function to switch state from embedded HTML page

    Hey everyone,
    I'm developing an application that has 5 states in it. The
    welcome state is set by default. I wrote a function called
    changeState that looks like this:
    internal function changeState(sState:String):void
    currentState = sState;
    Now, inside the registration state, there is an mx:HTML
    component named htmlReg with the following attribute:
    htmlDOMInitialize="htmlReg.htmlLoader.window.changeState =
    changeState;"
    Inside the plain handcoded HTML web page that's loaded,
    there's a button that looks like this:
    <button onClick="changeState('Welcome')">Back to
    Welcome</button>
    The idea being, when the user clicks the HTML button, it
    calls the AS function changeState('Welcome') and the user gets
    taken back to the welcome screen.
    The good news is that when I click this button, it works
    fine, and I'm taken back to the welcome state.
    The bad news is that when I then switch to another state
    (using an mx:Button in the welcome state), I get the following
    error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at flash.html::HTMLLoader/onFocusOut()
    I'm having trouble figuring out why this is happening, and
    what to do about it.
    Two additional data points:
    1) If I add an mx:Button to the registration state with a
    click="changeState('Welcome')" handler, it works as expected and I
    don't get an error. I only get this error when clicking the HTML
    button, which calls the same function in the same way.
    2) If I move the mx:HTML component out of the registration
    state and into the main application, I don't get this error any
    more (and the HTML state change button still works as expected).
    Anybody have any clues or ideas as to what might be
    happening? Or ideas as to what I might try to collect more data
    points? Or even workarounds to accomplish the same task in a
    different way?
    Thanks in advance.

    Probably what is happening is that when you change states,
    the HTML control is removed from the stage. However, the HTMLLoader
    (which is wrapped by mx:HTML) does seem to know that it has been
    removed, and losing focus, it's internal handler for the focusOut
    event access some property that requires it to be on the stage --
    hence the null object reference.
    You should report this bug at
    http://www.adobe.com/go/wish
    and provide a sample that demonstrates the issue.
    A workaround might be to change the focus to another object
    with stage.assignFocus() before you change states.

  • 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).

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

  • Error when trying to access OAM 11g Admin console

    I am getting an error when I try to access the OAM admin console, the page appears after I enter http://hostname:14100/oam but the login box has the following message in it:
    System error. Please re-try your action. If you continue to get this error, please contact the Administrator.
    I tried entering http://hostname:14100/oam_console but get a 404 error
    The log file outputs the following:
    [oracle@core bin]$ startManagedWebLogic.sh oam_server1
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=512m
    WLS Start Mode=Production
    CLASSPATH=/opt/oracle/product/Middleware/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar::/opt/oracle/product/Middleware/Oracle_IDM1/oam/server/policy/sts-policies.jar:/opt/oracle/product/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/Middleware/jdk/lib/tools.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic.jar:/opt/oracle/product/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/oracle/product/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/opt/oracle/product/Middleware/oracle_common/soa/modules/commons-cli-1.1.jar:/opt/oracle/product/Middleware/oracle_common/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:/opt/oracle/product/Middleware/Oracle_IDM1/oam/agent/modules/oracle.oam.wlsagent_11.1.1/oam-wlsagent.jar:/opt/oracle/product/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/opt/oracle/product/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/xqrl.jar
    PATH=/opt/oracle/product/Middleware/wlserver_10.3/server/bin:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/bin:/opt/oracle/product/Middleware/jdk/jre/bin:/opt/oracle/product/Middleware/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/Oracle/bin:/opt/oracle/product/Middleware/user_projects/domains/iam/bin:/opt/oracle/product/Middleware/OPatch:/opt/oracle/product/11.2.0/dbhome_1/bin
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http://hostname:port/console *
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Oracle JRockit(R) (build R28.1.3-11-141760-1.6.0_24-20110301-1432-linux-x86_64, compiled mode)
    Starting WLS with line:
    /opt/oracle/product/Middleware/jdk/bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=512m -Dweblogic.Name=oam_server1 -Djava.security.policy=/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -Dweblogic.security.SSL.trustedCAKeyStore=/opt/oracle/product/Middleware/wlserver_10.3/server/lib/cacerts -da -Dplatform.home=/opt/oracle/product/Middleware/wlserver_10.3 -Dwls.home=/opt/oracle/product/Middleware/wlserver_10.3/server -Dweblogic.home=/opt/oracle/product/Middleware/wlserver_10.3/server -Dcommon.components.home=/opt/oracle/product/Middleware/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/opt/oracle/product/Middleware/user_projects/domains/iam -Djrockit.optfile=/opt/oracle/product/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.server.config.dir=/opt/oracle/product/Middleware/user_projects/domains/iam/config/fmwconfig/servers/oam_server1 -Doracle.domain.config.dir=/opt/oracle/product/Middleware/user_projects/domains/iam/config/fmwconfig -Digf.arisidbeans.carmlloc=/opt/oracle/product/Middleware/user_projects/domains/iam/config/fmwconfig/carml -Digf.arisidstack.home=/opt/oracle/product/Middleware/user_projects/domains/iam/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/opt/oracle/product/Middleware/user_projects/domains/iam/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/opt/oracle/product/Middleware/user_projects/domains/iam/servers/oam_server1/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/opt/oracle/product/Middleware/Oracle_IDM1/oam/agent/modules/oracle.oam.wlsagent_11.1.1,/opt/oracle/product/Middleware/oracle_common/modules/oracle.ossoiap_11.1.1,/opt/oracle/product/Middleware/oracle_common/modules/oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -DOAM_POLICY_FILE=/opt/oracle/product/Middleware/user_projects/domains/iam/config/fmwconfig/oam-policy.xml -DOAM_CONFIG_FILE=/opt/oracle/product/Middleware/user_projects/domains/iam/config/fmwconfig/oam-config.xml -DOAM_ORACLE_HOME=/opt/oracle/product/Middleware/Oracle_IDM1/oam -Doracle.security.am.SERVER_INSTNCE_NAME=oam_server1 -Does.jars.home=/opt/oracle/product/Middleware/Oracle_IDM1/oam/server/lib/oes-d8 -Does.integration.path=/opt/oracle/product/Middleware/Oracle_IDM1/oam/server/lib/oeslib/oes-integration.jar -Does.enabled=true -Djavax.xml.soap.SOAPConnectionFactory=weblogic.wsee.saaj.SOAPConnectionFactoryImpl -Djavax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Djavax.xml.soap.SOAPFactory=oracle.j2ee.ws.saaj.soap.SOAPFactoryImpl -Doracle.oaam.home=/opt/oracle/product/Middleware/Oracle_IDM1/oaam/ -Doracle.oaam.home=/opt/oracle/product/Middleware/Oracle_IDM1/oaam/ -Doracle.oaam.home=/opt/oracle/product/Middleware/Oracle_IDM1/oaam/ -Djava.awt.headless=true -Dem.oracle.home=/opt/oracle/product/Middleware/oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=false -Dweblogic.management.server=http://core.apteclabs.edu:7001 -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/opt/oracle/product/Middleware/patch_wls1035/profiles/default/sysext_manifest_classpath:/opt/oracle/product/Middleware/patch_ocp360/profiles/default/sysext_manifest_classpath weblogic.Server
    [WARN ][jrockit] MaxPermSize=512m ignored: Not a valid option for JRockit
    [WARN ] Use of -Djrockit.optfile is deprecated and discouraged.
    <Aug 16, 2011 9:34:29 AM EDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <Aug 16, 2011 9:34:36 AM EDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <Aug 16, 2011 9:34:37 AM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Oracle JRockit(R) Version R28.1.3-11-141760-1.6.0_24-20110301-1432-linux-x86_64 from Oracle Corporation>
    <Aug 16, 2011 9:34:45 AM EDT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
    Enter username to boot WebLogic server:weblogic
    Enter password to boot WebLogic server:
    <Aug 16, 2011 9:34:54 AM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <Aug 16, 2011 9:37:45 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Aug 16, 2011 9:37:45 AM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Aug 16, 2011 9:38:02 AM EDT> <Notice> <Log Management> <BEA-170019> <The server log file /opt/oracle/product/Middleware/user_projects/domains/iam/servers/oam_server1/logs/oam_server1.log is opened. All server side log events will be written to this file.>
    Aug 16, 2011 9:38:25 AM oracle.security.am.common.nap.util.NAPLogger log
    SEVERE: Failed to communicate with any of configured Access Server, ensure that it is up and running.
    <Aug 16, 2011 9:38:27 AM EDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Aug 16, 2011 9:38:52 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Aug 16, 2011 9:38:52 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Aug 16, 2011 9:39:28 AM EDT> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element web-app in the deployment descriptor in /opt/oracle/product/Middleware/Oracle_IDM1/oam/agent/apps/oam-wlsagent-logout.war/WEB-INF/web.xml. A version attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of the Weblogic Server will reject descriptors that do not specify the JEE version.>
    <Aug 16, 2011 9:39:46 AM EDT> <Warning> <Coherence> <BEA-000000> <2011-08-16 09:39:46.790/320.434 Oracle Coherence GE 3.5.3/465p2 <Warning> (thread=DistributedCache, member=3): Assigned 257 orphaned primary partitions>
    [EL Info]: 2011-08-16 09:39:47.585--ServerSession(474132858)--EclipseLink, version: Eclipse Persistence Services - 1.1.0.r3634
    [EL Info]: 2011-08-16 09:39:48.526--ServerSession(474132858)--file:/opt/oracle/product/Middleware/Oracle_IDM1/oam/server/lib/oes-d8/jps-internal.jar-JpsDBDataManager login successful
    <Aug 16, 2011 9:40:01 AM EDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Aug 16, 2011 9:40:01 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Aug 16, 2011 9:40:01 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Aug 16, 2011 9:40:02 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.184.128:14100 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 16, 2011 9:40:02 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:20c:29ff:fe26:71ec:14100 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 16, 2011 9:40:02 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:14100 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 16, 2011 9:40:02 AM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:14100 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 16, 2011 9:40:02 AM EDT> <Notice> <WebLogicServer> <BEA-000330> <Started WebLogic Managed Server "oam_server1" for domain "iam" running in Production Mode>
    <Aug 16, 2011 9:40:04 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Aug 16, 2011 9:40:04 AM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <Aug 16, 2011 9:43:32 AM EDT> <Error> <HTTP> <BEA-101017> <[ServletContext@477181353[app:oam_server module:oam path:/oam spec-version:2.5]] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /index.jsp
    index.jsp:2:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    ^----^
    index.jsp:2:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    ^----^
    index.jsp:3:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    ^----^
    index.jsp:3:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    ^----^
    index.jsp:4:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    ^----^
    index.jsp:4:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    ^----^
    at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
    Truncated. see log file for complete stacktrace
    >
    <Aug 16, 2011 9:43:32 AM EDT> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'oam_server1' has triggered at Aug 16, 2011 9:43:32 AM EDT. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Aug 16, 2011 9:43:32 AM EDT SERVER = oam_server1 MESSAGE = [ServletContext@477181353[app:oam_server module:oam path:/oam spec-version:2.5]] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /index.jsp
    index.jsp:2:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    ^----^
    index.jsp:2:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    ^----^
    index.jsp:3:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    ^----^
    index.jsp:3:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    ^----^
    index.jsp:4:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    ^----^
    index.jsp:4:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    ^----^
    at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.am.agent.wls.filters.OAMServletAuthenticationFilter.doFilter(OAMServletAuthenticationFilter.java:265)
    at oracle.security.am.agent.wls.filters.OAMValidationSystemFilter.doFilter(OAMValidationSystemFilter.java:133)
    at oracle.security.wls.oamagent.OAMAgentWrapperFilter.doFilter(OAMAgentWrapperFilter.java:120)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = core.apteclabs.edu TXID = CONTEXTID = 11d1def534ea1be0:7f0631a0:131d2d0d910:-8000-0000000000000020 TIMESTAMP = 1313502212548
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <Aug 16, 2011 9:43:51 AM EDT> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in /opt/oracle/product/Middleware/user_projects/domains/iam/servers/oam_server1/adr/diag/ofm/iam/oam_server1/incident/incdir_8 with a lockout minute period of 1.>
    Any ideas?

    Hi,
    Another way to "find" the URL for the oamconsole, that I use if I'm not familiar with the configuration I'm working on is to first log into the Adminserver WL Console, then go to "Deployments".
    Then, find "oamconsole" in the Deployments listed (on the right).
    Click on that, then on the next page, look for the "Testing" tab. Click on the "Testing" tab, which which show the /oamconsole app.
    Click on the "+" to expand the tree, and you should see a bunch of different URLs on the right, e.g., if you have OAM console deployed to managed servers, etc., there'll be different URLs for those, etc., and you can just click on the links to open up OAM Console in your browser.
    Jim

  • Error when trying to send an attachment

    Hi there,
    I am running an application in Tomcat 5.5 and I am trying to send an email with an attachment via java mail. The attachment will eventually be a zip file containing wav files but I can't seem to get it to work with a text file yet.
    I may be a little confused...I am especially confused with the DataHandlerSet stuff.
    Here is the code:
    public String sendmail(String msgSubject)
         //Sets some variables.
        String emailmultipart = "true"; //if this is set to false sends a simple message.
        String msgText = "Some text \n\n";
        String smtphost = "myhost";
        String emailto = "[email protected]";
        String emailfrom =  "[email protected]";
        //Gives the path of where the sound files are.
        File soundfile = new File("myfile.txt");
        boolean debug = true; // change to get more information
        String msgText2 = "multipart message";
        boolean sendmultipart = Boolean.valueOf(emailmultipart).booleanValue();
           // set the host
        Properties props = new Properties();
        props.put("mail.smtp.host", smtphost);
          // create some properties and get the default Session
        Session session = Session.getDefaultInstance(props, null);
        session.setDebug(debug);
        try
              // create a message
               Message msg = new MimeMessage(session);
               // set the from address
               InternetAddress from = new InternetAddress(emailfrom);
               msg.setFrom(from);
               //set the to address
               InternetAddress[] address =
                   new InternetAddress(emailto)
               msg.setRecipients(Message.RecipientType.TO, address);
               //set subject - support request id
               msg.setSubject(msgSubject);
              //decides whether to send plain text message or multi text message (from true/false in the command line)
              //sends a simple plain text email
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(soundfile, "text/plain");
              //sends an attached file.
              else
                 // send a multipart message// create and fill the first message part
                 MimeBodyPart mbp1 = new MimeBodyPart();
                 //adds the text as normal
                 mbp1.setContent(msgText, "text/plain");
                 // create and fill the second message part
                MimeBodyPart mbp3 = new MimeBodyPart();
                // attach the file to the message
                  //FileDataSource fds = new FileDataSource(filen);
                  FileDataSource fds = new FileDataSource(soundfile);
                 mbp3.setDataHandler(new DataHandler(fds));
                 mbp3.setFileName(fds.getName());
    //             mbp3.setContent();
                Multipart mp = new MimeMultipart();
                //adds the text to the message
                mp.addBodyPart(mbp1);
                  //adds the attachment to the message
                  mp.addBodyPart(mbp3);
                // adds the content to the message
                msg.setContent(mp);
             //Transport - sends the message.
             Transport.send(msg);
        catch(MessagingException mex)
          mex.printStackTrace();
        //log.debug("At end of Send email");
        return "nothing";
    }Here is the error:
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
         java.io.IOException: "text/html" DataContentHandler requires String object, was given object of type class javax.mail.internet.MimeMultipart
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:566)
         at javax.mail.Transport.send0(Transport.java:151)
         at javax.mail.Transport.send(Transport.java:80)
         at questionnaireweb.Formemail.sendmail(Formemail.java:337)
         at org.apache.jsp.web.emailrecorded_jsp._jspService(org.apache.jsp.web.emailrecorded_jsp:338)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    I'd be really grateful for any help. I can't seem to get past this error not matter what I try. Sending the simple mail works, but sending an attachment produces the error above. I have seen similar errors before but when the user actually wants to send html and not a file.
    Thanks a lot,
    Jess

    HI ,Thanks for your response. That was an error in the code I posted, but wasn't the error I was trying to solve. Once correcting that error you pointed out I am getting the problems not when I send a plain text email like:
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(msgText, "text/plain");
              }but when I try and send multipart messages doing this:
              else
                 // send a multipart message// create and fill the first message part
                       MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(msgText);
          // create and fill the second message part
         MimeBodyPart mbp3 = new MimeBodyPart();
         // attach the file to the message
         FileDataSource fds = new FileDataSource(soundfile);
         mbp3.setDataHandler(new DataHandler(fds));
         mbp3.setFileName(fds.getName());
                       Multipart mp = new MimeMultipart();
         //adds the text to the message
          mp.addBodyPart(mbp1);
          //adds the attachment to the message
          mp.addBodyPart(mbp3);
           // adds the content to the message
          msg.setContent(mp);
         }So i get the error when executing the else branch.
    Can you spot any errors here? I get the same error as mentioned earlier.
    Thanks a lot,
    Jess

  • When backing up lightroom 4 catalog, get message "lightroom encountered an error when reading from its preview cache and needs to quit" this occurs during optimization stage of backup

    i upgraded from lightroom 4 to lightroom 5 and installed it on a separate hard drive. Initially had no problems util my computer crashed due to the failure of the drive on which Lightroom 5 was installed. Since having my computer rectified, i am unable to use lightroom 5 getting the message "lightroom encountered an error when reading from its preview cache and needs to quit"
    I can still use lightroom 4, however, i get the same message when i try to backup the catalog. This occurs during the optimisation phase of backup.
    I suspect it is related to Lightroom 5 creating a catalog from the Lightroom 4 files and cannot now locate those files or that they have been corrupted.
    Would appreciate any solutions / suggestions.

    You need to delete your preview cache and have Lightroom rebuild it.   Cache location can be found here.
    https://helpx.adobe.com/lightroom/kb/preference-file-locations-lightroom-41.html
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic

Maybe you are looking for

  • Item Cost decimal point precision not correct

    Hello, I tried finding a thread in here that would answer my question, but I haven't found one yet. What I'm noticing on certain Item Master records is that the Item Cost isn't being calculated using the correct amount of decimal places. I've set it

  • JS error while using input fields with type=file on XP SP2

    Hi all, we found a new problem in applications which use input fields with type=file running in a browser on Microsoft Windows XP with SP2. A typical test layout might look like: <html>   <head>     <title>File-Upload</title>   </head>   <body>     <

  • Hello Friends, Help Needed in Query

    Hi, I have a table with the structure SELECT * FROM PR_TST ID PRS_ID 16 - 8 17 - 9 18 - 10 20 - 10 23 - 5 25 - 5 28 - 30 30 - 32 SELECT * FROM PR_PRS_TST PRS_ID - PRS_WT 8 - 8 9 - 9 10 - 10 5 - 12 30 - 19 32 - 17 Now i want to add a new field in the

  • Change Sequence from HD to NTSC after video build complete

    Using Premiere Pro CS5 I inadvertently left the Sequence in HD format instead of changing back to NTSC.  I complete the whole video (48 minutes) but when I exported it I found myself with a small resolution  product about half the size it should be (

  • No response from Sun Application Server PE 8.2

    Hi all, I am using Sun Application Server PE 8.2 on windows XP service pack 2 professional edition, and jdk 1.4.1_01. The problem I am facing is that the server is not responding, even though it is listening at the respective ports(4848 for admin, 80