Same Code Fails in OC4J 9.0.3

In an effort to find a solution to my transactional problem (See my other question in this forum marked URGENT), I started playing with OC4J 9.0.3 to see if that would make any difference. However, what I have found has all but compelled me to go "Office Space" on my computer. I cannot even find an answer to my transaction question because my code doesn't make it to that point. The first stage in the transaction is the parsing of am XML document. I have a class that wraps Oracle's XML parser V2 to do the parsing, and it works perfectly on OC4J 9.0.2.0.0. On 9.0.3, the parser fails because it seems to be finding these stray tags in the document that just aren't actually there. The code and the file are absolutely identical between the working case and the failing case; only the server version is different. So in trying to solve one problem, I have discovered a completely different one. Can anyone offer a possible explanation?
Thanks a lot.

In an effort to find a solution to my transactional problem (See my other question in this forum marked URGENT), I started playing with OC4J 9.0.3 to see if that would make any difference. However, what I have found has all but compelled me to go "Office Space" on my computer. I cannot even find an answer to my transaction question because my code doesn't make it to that point. The first stage in the transaction is the parsing of am XML document. I have a class that wraps Oracle's XML parser V2 to do the parsing, and it works perfectly on OC4J 9.0.2.0.0. On 9.0.3, the parser fails because it seems to be finding these stray tags in the document that just aren't actually there. The code and the file are absolutely identical between the working case and the failing case; only the server version is different. So in trying to solve one problem, I have discovered a completely different one. Can anyone offer a possible explanation?
Thanks a lot. Hi Neil --
Sorry to see that you ran into this trying to test out the TX issue.
Can you post a code snippet on how you are using the parser - or perhaps even send me your test case if you are able to ([email protected]) - and some more details on what you are seeing (the phantom tags)
If you are a supported customer, then can I also ask you to log a TAR for this with support so we can have our support organization track it and also work on the issue.
cheers
-steve-
cheers
-steve-

Similar Messages

  • In outlook 2013 Add-In, Adding dynamic menu to splitButton idMso="DialMenu" is working and the same code is not working in outlook 2010 Add-In.

    In outlook 2013 Add-In, Adding dynamic menu to <splitButton idMso="DialMenu"> is working and the same code is not working in outlook
    2010 Add-In. please let me know, if i am missing something. Below is the xml and screen shot
    <contextMenu idMso="ContextMenuFlaggedContactItem">
     <splitButton idMso="DialMenu">
              <menu>
                <dynamicMenu id="CallContactwithFreedomvoice
    " label="CallContactwithFreedomvoice" 
                            getContent="OnGetContenttest"                           insertAfterMso="Call"/> 
            </menu>       </splitButton>    </contextMenu> 

    Hi Narasimha prasad2,
    Based on the description, the context menu for the flagged contact doen't work in Outlook. I am tring to rerpoduce this issue however failed.
    I suggest that you check the state of the add-in first to see wether the add-in was loaded successfully.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Why differences in the way different machines handle the same code??

    OK, I've posted some other threads re some difficulties in getting the same code to function identically on, not only different platforms, but even on different machines running Windows!
    Here's another, and I would really appreciate an explanation:
    I have a tree control. Per the user's request, I made the right button function the same way it does on MS File Explorer: When they right click, the currently selected nodes are compared to the node they clicked over. If they clicked over a selected node, then the context menu for the nodes selected is displayed. If they clicked over a different node, then the selection is changed to the new node and the context menu displayed. If they right click over the tree control, but not a node in the tree, then the selection is cleared and no context menu is displayed.
    Works great on my machine.
    However, on some machines, no context menu is displayed, nor is the node selected... UNLESS THEY ALREADY HAVE A NODE SELECTED. I.e., if they have no nodes in the tree selected, they cannot display the context menu by right clicking on a node, nor does the selection change to the node they right click over. It only works if they already have something selected.
    My app is distributed as an executable jar file and I am distributing the JRE with it, so there are no class path issues or differences in the JDK. Basically, my problem can be paraphrased as: Why doesnt' Swing behave the same way on different machines...? At least why not the same on the eame machine.
    It's driving me nuts to think that I've resolved some UI glitch only to find out that, no, it's only fixed on some machines, not others.
    Thanks.

    Well, I normally develop on OSX and then deploy to Windows. But, this last build I have switched to Windows XP. The kinds of differences I am seeing are subtle: what triggers a repaint of the UI and now, it seems, what events are getting triggered by mouse clicks.
    My deployment is an executable jar file, therefore it uses the manifest in the jar, not any classpath variables. I deploy an entire JRE along with the app, and the bat file that launches the app ensures that is the JAVA_HOME I'm using.
    I can only guess that it's some underlying difference in versions of the platform and OS that causes this.
    Here's the entire code for this latest issue re the popups:
            private void maybeShowPopup(NodeInfoTree tree, MouseEvent e) {
                if (e.isPopupTrigger()) {
                    //  They clicked the platform dependent popup trigger...
                    int x = e.getX();
                    int y = e.getY();
                    TreePath[] selectedPaths = tree.getSelectionPaths();
                    if (selectedPaths == null) {
                        selectedPaths = new TreePath[0];
                    TreePath clickedPath = tree.getPathForLocation(x,y);
                    if (clickedPath == null) {
                        //  they right clicked, but not on a node, so clear the selection and return
                        tree.clearSelection();
                        return;
                    } else {
                        // They clicked on a path, so let's see if it is a selected
                        // node.  Search the selected array of paths, short circuiting
                        // out if it is found...
                        boolean foundInSelection = false;
                        for (int i=0; (!foundInSelection && (i < selectedPaths.length)); i++) {
                            foundInSelection = clickedPath.equals(selectedPaths);
    if (!foundInSelection) {
    // They right clicked elsewhere than the selection, so
    // reset the selection to the new path...
    tree.setSelectionPath(clickedPath);
    final TreePath menuPath;
    selectedPaths = tree.getSelectionPaths();
    if (selectedPaths == null) {
    return;
    } else {
    menuPath = selectedPaths[selectedPaths.length-1];
    // Since they did click on a node, now we need to determine
    // what popup menu should be displayed...
    tree.scrollPathToVisible(menuPath);
    NodeInfo ni = (NodeInfo) menuPath.getLastPathComponent();
    // If the last path component is null, then they don't have
    // anything selected, so we do nothing
    if (ni == null) return;
    // See if the Node is overriding our default popup menu...
    com.harcourt.applications.tgen.browser.nodes.NodeMenu nodeMenu = ni.getMenu();
    nodeMenu.activate(tree.getView(),ni);
    JPopupMenu popup = (JPopupMenu) nodeMenu;
    if (popup != null) {
    popup.show(e.getComponent(),
    e.getX(), e.getY());
    The nodeMenu.activate call is just used to check whether or not certain menu options need to be enabled or disabled before displaying the menu. My theory right now is that, on some of these machines (all windows), a right click of the mouse is not generating a mouse event unless they have already something selected. I don't think it's a focus issue, because if they left click to select a node, and then ctrl-left click to de-select it, the right button then no longer generates a popup menu. They must select a node, then right click. Maybe there's no mouse event generated, or maybe this line is failing on some machines?:
    TreePath clickedPath = tree.getPathForLocation(x,y);

  • Trying to display tables reusing same code.

    I'm probably being really naive but I just can't get this to work!
    I have a display table class that will only display a one table when a button is pressed in a GUI. I want to use the same code again to display another table but pressing another button this time. ie: press "Table 1" button and the SQL query SELECT * FROM Customer should be used. Press "Table 2" Button and SQL query SELECT * FROM Order should be used. I have tried creating a constructor for this but it keeps coming up with errors. Please can you have a look at my code. The bits that don't work are commented out. I want to be able to just change the query that is used each time a different button is pressed.
    Thanks in advance.
    import java.sql.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class TableDisplay extends JFrame{
    private Connection aConnection;
    private JTable cusTable;
    private String Query;
    private String Title;
    public TableDisplay() {
    //public TableDisplay (String Query,String Title){
    try {
    DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
    aConnection = DriverManager.getConnection("jdbc:odbc:RelAlg", "", "");
    catch (SQLException e) { System.exit(11);}
    getTable();
    setSize(450,150);
    show();
    private void getTable(){
    Statement aStatement;
    ResultSet aSet;
    try{
    aStatement = aConnection.createStatement();
    aSet = aStatement.executeQuery("SELECT * FROM RelAlgCustomerTable");
    //aSet = aStatement.executeQuery(Query);
    displayResultSet(aSet);
    aStatement.close();
    catch (SQLException e) { System.exit(12);}
    private void displayResultSet(ResultSet rs)
    throws SQLException{
    //position to first record
    boolean moreRecords = rs.next();
    //if there is no records display a message
    if(!moreRecords){
    JOptionPane.showMessageDialog(this, "ResultSet unable to find table");
    setTitle("No table to display");
    return;
    setTitle("Customer Table");
    // setTitle(Title);
    Vector columnHeads = new Vector();
    Vector rows = new Vector();
    try{
    //get column heads
    ResultSetMetaData rsmd = rs.getMetaData();
    for(int i = 1;i <= rsmd.getColumnCount();i++)
    columnHeads.addElement(rsmd.getCatalogName(i));
    //get row data
    do{
    rows.addElement(getNextRow(rs,rsmd));
    while (rs.next());
    //display tabel with ResultSet contents
    cusTable = new JTable(rows, columnHeads);
    JScrollPane scroller = new JScrollPane(cusTable);
    getContentPane().add(scroller,BorderLayout.CENTER);
    validate();
    catch (SQLException e) { System.exit(13);}
    private Vector getNextRow(ResultSet rs, ResultSetMetaData rsmd)
    throws SQLException {
    Vector currentRow = new Vector();
    for (int i = 1; i<=rsmd.getColumnCount();++i)
    switch(rsmd.getColumnType(i)){
    case Types.VARCHAR:
    currentRow.addElement(rs.getString(i));
    break;
    case Types.INTEGER:
    currentRow.addElement(new Long(rs.getLong(i)));
    break;
    default:
    System.out.println("Type was:" +rsmd.getColumnTypeName(i));
    return currentRow;
    public void shutDown(){
    try{
    aConnection.close();
    catch (SQLException e) { System.exit(14);}
    public static void main(String args []){
    final TableDisplay app = new TableDisplay();
    This is the code from the gui that displays the table on the press of the table button
    void table1_mouseClicked(MouseEvent e) {
    TableDisplay tDisp = new TableDisplay();
    tDisp.show();
    }

    what errors are you getting?
    Where are you passing in the value for "Query" and assigning it to the class variable of the same name?
    do this in the constructor:
    public TableDisplay (String Query,String Title){
    /////new line
    this.Query = Query;
    ////end new line
    try {
    DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
    aConnection = DriverManager.getConnection("jdbc:odbc:RelAlg", "", "");
    }

  • Updated to Adobe Muse CC 2014, 2 days ago and I CANT even open it! It keeps on displaying the same ASSERTION FAILED IN FILE error.

    I love muse and have been using for years now. A couple of days ago I was really exited that they had a new version the  ADOBE MUSE CC 2014 so I updated it in my laptop. Now it wont even open. I had spent the last 3 days uninstalling and reinstalling MUSE CC 2014 thinking that it would help. But nothing works. I keep on having the same ASSERTION FAILED IN FILE error. At this point I am pretty much desperate and do not know really what to do and to make matters worse I have freelance work that needs to be done and update. If anyone can help I would really appreciated it.
    In addition, if anyone from the MUSE CC SUPPORT TEAM is reading this, please work on making access to you guys easier. I honestly could not find a way to talk to anyone from the ADOBE MUSE CC support team about this problem.

    I had the same problem but good news is I found the reason of problem and solution;
    I was using Windows 7 in English with timezone setting for Turkey. Adobe Muse was in English and had same problem, to solve this issue I even installed new Windows but it happened again.
    Solution is easy, I just changed Muse language settings from English to Turkish and so far so good i never had any crash or problem.
    Cheers!

  • Page expire problem in one env of two environments having same code

    Hi,
    We have an web application deployed into two environments. The application versions and server versions are same in both environments. We are using sun one application server.
    When we click on back button (Say Env1) we are getting page exipre problem. The same code is working fine in other env (Say Env2).
    We have not coded anywhere to clear the client side information after it is displayed. It looks like there is some server setting using which we can specify not to save any information at client machine.
    Can any one of you help me in resolving this issue.
    Thanks in advance.
    K Vishnu Chaithanya

    http://support.microsoft.com/kb/234067
    http://lists.evolt.org/archive/Week-of-Mon-20040405/157547.html

  • Two different vendor supplier for the same code

    Hi,
    We have the two different suppliers supply the material with same code with different values,
    since they are customized products as per customer requirement,we are stuck up with how could it map into the BOM,
    PPC persons always try it with change BOM or change in order,
    How could be simplified?
    With Regards,
    Devendra

    Hello Devendra
    On the standard ERP, there is no way to map this scenario, however, using the DIMP industry solution there is a functionality called Parts Interchangeability.
    Take a look on the following links where this functionality is described:
    A&amp;amp;D Manufacturer Part Number - Discrete Industries and Mill Products - SAP Library
    Interchangeable Manufacturer Parts in MRP - Parts Interchangeability - SAP Library
    BR
    Caetano

  • The same code behaving different in two files.

    The same code behaving different in two files.
    in pro*c file it is returning rows
    in sql file it is not returning any rows.
    please suggest me.
    regards,
    prasad.

    please find the code.
    sql_stmt := 'SELECT rNum, dpcCode, sID, hDate, fBlock, '||
    'lBlock, recQty, fID, fName, ' ||
    'tSeqNo, sType, tDate, fStatCode, pDate, recCount, r ' ||
    'FROM (SELECT rownum rNum, DPC_CODE_ORIG dpcCode, ' ||
    'SENSOR_ID sID, ' ||
    'to_char(HEADER_DATE, ''YYYYMMDDHH24MISS'') hDate, ' ||
    'FIRST_BLOCK_NUMBER fBlock, ' ||
    'LAST_BLOCK_NUMBER lBlock, ' ||
    'RECORD_QUANTITY recQty, ' ||
    'FILE_ID fID, ' ||
    'substr(FILE_NAME,1,30) fName, ' ||
    'TRACE_SEQUENCE_NO tSeqNo, ' ||
    'SENSOR_TYPE sType, ' ||
    'to_char(TRAILER_DATE, ''YYYYMMDDHH24MISS'') tdate, ' ||
    'NVL(FILE_STATUS_CODE, ''NL'') fStatCode, ' ||
    'to_char(PROCESSED_DATE, ''YYYYMMDDHH24MISS'') pDate, '||
    'NVL(RECIRCULATE_COUNT,0) recCount, ' ||
    'ROW_NUMBER() ' ||
    'OVER(ORDER BY TRAILER_DATE DESC, LAST_BLOCK_NUMBER DESC) r ' ||
    'FROM logfc10t ' ||
    'WHERE DPC_CODE_ORIG = :IN_DPC_CODE ' ||
    'AND SENSOR_ID = :IN_SENSOR_ID ' ||
    'AND (((TRAILER_DATE <= TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS''))' ||
    ' AND (LAST_BLOCK_NUMBER < :IN_BLOCK_NUMBER)) ' ||
    ' OR (TRAILER_DATE < TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS'')))) ' ||
    'WHERE r = 1 ';

  • How to handle multiple exceptions by the same code?

    Hi, all:
    In my situation I want AException and BException handled by the same code, while CException and DException handled by another code. How can I write my try-catch code in a simple way? Of course I can do the following:
    public void TheMainFunction() {
        try {
        } catch (AException e) {
            Handle_AB();
        } catch (BException e) {
            Handle_AB();
        } catch (CException e) {
            Handle_CD();
        } catch (DException e) {
            Handle_CD();
    private void Handle_AB() {
    private void Handle_CD() {
    }But is there a simpler way?
    Thanks in advance.

    If you have one or two places in your code that need multiple exceptions, just do it with multiple catch statements. Unless you are trying to write the most compact Programming 101 homework program, inventing tricks to remove two lines of code is not good use of your time.
    If you have multiple catches all over your code it could be a code smell. You may have too much stuff happening inside one try statement. It becomes hard to know what method call throws one of those exceptions, and you end up handling an exception from some else piece of code than what you intended. E.g. you mention NumberFormatException -- only process one user input inside that try/catch so it is easy to see what error message is given if that particular input is gunk. The next step of processing goes inside its own try/catch.
    In my case, the ArrayIndexOutOfBoundsException and
    NumberFormatException should be handled by the same way.Why?
    I don't think I have ever seen an ArrayIndexOutOfBoundsException that didn't indicate a bug in the code. Instead of an AIOOBE perhaps there should be an if statement somewhere that prevents it, or the algorithm logic should prevent it automatically.

  • Use the same code module for several steps in the sequence

    Hello All,
      I have been trying to set up a sequence that uses the same code module for all of the steps in the sequence, but am having trouble referring back to it when I need to send it commands.  I have gotten as far as calling the VI in a new thread so that it can be run asynchronously.  I can run the simple sequence and it will indeed open the VI, and move on to the next step.  When I close the VI manually from the front panel, the sequence in TestStand completes, as expected.  So it appears that I have that much working. 
      My question is how to call the separate thread from the main sequence or other sub sequences when I need to edit the parameters.  If I insert an Action step, I am required to select a VI file, but from what I can tell, it opens a different instance of the file, and does not provide an interface with the other instance running asycronously.  My next guess was to use a Statement step, but I was not able to figure out how to configure the lookup string to call the VI parameters.  Beyond that, I'm not sure how to proceed.  Please advise.   
      My intention is to start the code module VI (asynchronously), run several different subsequences within the main sequence that call that same VI and edit it's parameters, close everything and report on the results.  If I am misunderstanding how TestStand is supposed to work, please let me know. 
    Thanks,
    GSinMN    
    Solved!
    Go to Solution.

    What I do is use a Queue to send data to the asynchronous VI.  So it can run and do whatever, but also recieve the commands from the queue.  I use an Action Engine that holds the queue reference and sends the commands.  So you really just have to call the Action Engine from your sequences.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • CIFS[17138]: WARNING: CODIR: Failed to add share "MDATA" to

    Can someone tell me how to get rid of the message
    Code:
    CIFS[17138]: WARNING: CODIR: Failed to add share "MDATA" to eDirectoy. Error: 0

    Originally Posted by susehoush
    cluster -> yes (3node sles10sp3+oes2sp3)
    There is a nss volume object and a pool object and their attributes seem to be ok.
    We also get the following 2 errors:
    Code:
    CIFS[17138]: ERROR: ENTRY: CIFSNDSGetCIFSServerInfo: isVirtualServer = FALSE, uServerVersion = %U, aServerVersion = e, expected = %U
    ERROR: CODIR: LockDirCacheEntry failed to open file for User
    Ok, This thread might be of interest (mainly the clarification in post #25) http://forums.novell.com/forums/nove...ols-howto.html
    And the related TID (only as a reference in this case, not meant to apply that added python script) : CIFS not enabled properly on cluster resource that was created before upgrading to OES2 SP2
    Curious if you are trying to add CIFS after having created the resources? But then still, it should not be an issue anymore (as in should have been fixed).
    -Willem

  • Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode.

    Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.

    I rewrote code for debugging purpose and tried to catch error using GetLastError();  method,
    but it only printed 0. Below is code snippet; I think Create() throw an exception
    and code goes to catch block. 
    LONG ConnectTS(CString strIP, UINT n_Port)
    try{
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
    // Exception Line
    n_Err = GetLastError();
    return NET_INIT;
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image
    System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Output: -
    ConnectTS is calling Create [is going to call]
    Image System
    0

  • Run same code for didSelectRowAtIndexPath & accessoryButtonTappedForRowWith

    Is there a way to call the other method from one of this even so that I do not have to duplicate the same code in both these events?
    Basically if the user taps the row or the cheveron button the same code should run,
    so is there a way to trigger an event of accessoryButtonTappedForRowWithIndexPath from inside didSelectRowAtIndexPath?
    TIA
    Raj

    The following should work:
    - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {
    [self tableView:tableView didSelectRowAtIndexPath:indexPath];
    Andreas

  • In grid not accept same code again

    Hi master
    Sir I have grid my user feed data in grid
    Sir problem is when my user feed one code one time then not again feed same code again in next row system check pervious row I found that code then give error massage
    Please give me idea
    Thank
    Aamir

    please describe first:
    - which behaviour you need
    - what tables you use on your block
    and then give us code-snippets from your validations, etc...

  • Same code, different positioning

    Hello,
    I am a fairly new person to web design. I was working on a project for my uncle, and for some reason with the same code I got different results on different browsers.
    Here's what I mean:
    1) Chrome
    2) Mozilla
    #1 "read more..." is positioned higher than #2 "read more..."
    I used relative positioning on the parent ( banner ) and absolute positioning on the child ( text ). Does anyone know what could be the problem here? Thank you!

    To add to what John said, are you sure this isn't just browser variation?   You're never going to get pixel perfect precision across all browsers, web devices or even different versions of the same browsers.  If you look hard enough you will invariably see some differences.  That's what makes web development so challenging.
    If things go terribly wrong, check your code for errors and fix them. 
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

Maybe you are looking for