Menu

#698 Error while trying to validate tags with a changed order

3.1
closed-fixed
None
5
2014-08-13
2014-07-30
No

I tried to run tag validation on a segment and I was presented with a blank tag validation window. Please, let me know what information you need to recreate the issue.

The log recorded the following:

16306: Info: Click on 'toolsSingleValidateTagsMenuItem' menu item (LOG_MENU_CLICK)
16306: Error: Error execute method
16306: Error: java.lang.reflect.InvocationTargetException
16306: Error: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16306: Error: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
16306: Error: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
16306: Error: at java.lang.reflect.Method.invoke(Unknown Source)
16306: Error: at org.omegat.gui.main.MainWindowMenu.actionPerformed(MainWindowMenu.java:180)
16306: Error: at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
16306: Error: at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
16306: Error: at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
16306: Error: at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
16306: Error: at javax.swing.AbstractButton.doClick(Unknown Source)
16306: Error: at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
16306: Error: at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
16306: Error: at java.awt.Component.processMouseEvent(Unknown Source)
16306: Error: at javax.swing.JComponent.processMouseEvent(Unknown Source)
16306: Error: at java.awt.Component.processEvent(Unknown Source)
16306: Error: at java.awt.Container.processEvent(Unknown Source)
16306: Error: at java.awt.Component.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Container.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Component.dispatchEvent(Unknown Source)
16306: Error: at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
16306: Error: at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
16306: Error: at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
16306: Error: at java.awt.Container.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Window.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Component.dispatchEvent(Unknown Source)
16306: Error: at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.EventQueue.access$200(Unknown Source)
16306: Error: at java.awt.EventQueue$3.run(Unknown Source)
16306: Error: at java.awt.EventQueue$3.run(Unknown Source)
16306: Error: at java.security.AccessController.doPrivileged(Native Method)
16306: Error: at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
16306: Error: at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
16306: Error: at java.awt.EventQueue$4.run(Unknown Source)
16306: Error: at java.awt.EventQueue$4.run(Unknown Source)
16306: Error: at java.security.AccessController.doPrivileged(Native Method)
16306: Error: at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
16306: Error: at java.awt.EventQueue.dispatchEvent(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.run(Unknown Source)
16306: Error: Caused by: java.lang.IllegalArgumentException: Collection is empty
16306: Error: at java.util.EnumSet.copyOf(Unknown Source)
16306: Error: at org.omegat.gui.tagvalidation.TagValidationFrame.update(TagValidationFrame.java:363)
16306: Error: at org.omegat.gui.tagvalidation.TagValidationFrame.displayErrorList(TagValidationFrame.java:313)
16306: Error: at org.omegat.gui.tagvalidation.TagValidationTool.showTagResultsInGui(TagValidationTool.java:108)
16306: Error: at org.omegat.gui.tagvalidation.TagValidationTool.displayTagValidationErrors(TagValidationTool.java:88)
16306: Error: at org.omegat.gui.main.MainWindowMenuHandler.toolsSingleValidateTagsMenuItemActionPerformed(MainWindowMenuHandler.java:665)
16306: Error: ... 43 more
16306: Error: Uncatched exception in thread [AWT-EventQueue-0]
16306: Error: java.lang.IncompatibleClassChangeError: Error invoke method handler for main menu
16306: Error: at org.omegat.gui.main.MainWindowMenu.actionPerformed(MainWindowMenu.java:185)
16306: Error: at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
16306: Error: at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
16306: Error: at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
16306: Error: at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
16306: Error: at javax.swing.AbstractButton.doClick(Unknown Source)
16306: Error: at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
16306: Error: at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
16306: Error: at java.awt.Component.processMouseEvent(Unknown Source)
16306: Error: at javax.swing.JComponent.processMouseEvent(Unknown Source)
16306: Error: at java.awt.Component.processEvent(Unknown Source)
16306: Error: at java.awt.Container.processEvent(Unknown Source)
16306: Error: at java.awt.Component.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Container.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Component.dispatchEvent(Unknown Source)
16306: Error: at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
16306: Error: at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
16306: Error: at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
16306: Error: at java.awt.Container.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Window.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.Component.dispatchEvent(Unknown Source)
16306: Error: at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
16306: Error: at java.awt.EventQueue.access$200(Unknown Source)
16306: Error: at java.awt.EventQueue$3.run(Unknown Source)
16306: Error: at java.awt.EventQueue$3.run(Unknown Source)
16306: Error: at java.security.AccessController.doPrivileged(Native Method)
16306: Error: at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
16306: Error: at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
16306: Error: at java.awt.EventQueue$4.run(Unknown Source)
16306: Error: at java.awt.EventQueue$4.run(Unknown Source)
16306: Error: at java.security.AccessController.doPrivileged(Native Method)
16306: Error: at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
16306: Error: at java.awt.EventQueue.dispatchEvent(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
16306: Error: at java.awt.EventDispatchThread.run(Unknown Source)

Discussion

  • Didier Briel

    Didier Briel - 2014-07-30

    The simplest would probably providing a project with which you can reproduce the issue. It can be one segment long, as long as it triggers the error.

    Didier

     
    • Héctor Cartagena

      Ok, meanwhile I have an update. This time I was using 3.1.2 and there was no error, but instead Tag Validation gave me mostly false-positives. I had <.*?> in "Regular expression for fragments..."

      You mentioned that using that setting OmegaT would not complain about "real tags", but only tag-like content. It seems that is not working as intended anymore in my installation. (See attached screenshot.)

      After removing that setting, Tag Validation does not give any more false-positives.

      I have to say that something went wrong when I first installed 3.1.4, because I lost my preferences and had to recreate most of them (except for some that were saved in omegat.prefs) and even though I reverted back to 3.1.2 the program has been buggy ever since.

       
      • Didier Briel

        Didier Briel - 2014-08-01

        I had <.*?> in "Regular expression for fragments..."

        You mentioned that using that setting OmegaT would not complain about "real tags", but only tag-like content.

        As far as I remember, I was speaking of Regular expressions for custom tags, not "fragments that should be removed".

        I lost my preferences and had to recreate most of them (except for some that were saved in omegat.prefs) and even though I reverted back to 3.1.2 the program has been buggy ever since.

        There are no preferences outside of omegat.prefs and the following files:

        • segmentation.conf (can be also in the /omegat folder of a project)
        • filters.xml (can be also in the /omegat folder of a project)
        • uiLayout.xml

        I don't see what in those files could make the program "buggy".

        Didier

         
  • cienislaw

    cienislaw - 2014-08-05

    error occurs when tags in target are not in the same order as in source. works fine in 3.1.0.

     
    • Didier Briel

      Didier Briel - 2014-08-05

      Thank you. Using a different order, I was able to reproduce the issue.

      As a workaround, you can check Allow translated tags to be in a different order. Changes of order won't be reported, but you will not have the error.

      I had a look at the SVN log, and there was a small (apparently) innocuous refactoring that in fact created the error.

      It's fixed in SVN (/trunk).

      Didier

       
  • Didier Briel

    Didier Briel - 2014-08-05
    • summary: Error while trying to validate tags in a segment in OmegaT 3.1.4 --> Error while trying to validate tags with a changed order
    • status: open --> open-fixed
    • assigned_to: Didier Briel
     
  • Héctor Cartagena

    Thank you, in my case it must have been a Layer 8 issue :) I put the regex in the right field this time, but haven't been able to test it yet.

     
  • Didier Briel

    Didier Briel - 2014-08-13
    • status: open-fixed --> closed-fixed
     
  • Didier Briel

    Didier Briel - 2014-08-13

    Closed in the released version 3.1.5 of OmegaT.

    Didier

     

Log in to post a comment.

MongoDB Logo MongoDB