cannot export as interlinear text

(Elan 5.1 as well as 5.0.0 alpha) it works for twice or three times, then the window refuses to open any more. Tried many things such as closing and relaunching, restarting, reinstalling, reinstalling java vm … but doesn’t work.

Could it be the file got damaged or invalid somehow? If you open the eaf file and go to View->View Log… are there error messages about the structure of the file or clear “Exception” messages?

Thanks a lot! yes there’s exception messages, something like:

Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at mpi.eudico.client.annotator.interlinear.BlockMetrics.calcPrintBlocksNoWrap(BlockMetrics.java:1328)
at mpi.eudico.client.annotator.interlinear.BlockMetrics.calculatePrintBlocks(BlockMetrics.java:456)
at mpi.eudico.client.annotator.interlinear.Interlinear.calculateMetrics(Interlinear.java:800)
at mpi.eudico.client.annotator.interlinear.Interlinear.renderView(Interlinear.java:751)
at mpi.eudico.client.annotator.interlinear.InterlinearPreviewDlg.doApplyChanges(InterlinearPreviewDlg.java:1466)
at mpi.eudico.client.annotator.interlinear.InterlinearPreviewDlg.<init>(InterlinearPreviewDlg.java:171)
at mpi.eudico.client.annotator.commands.ExportInterlinearDlgCommand.execute(ExportInterlinearDlgCommand.java:50)
at mpi.eudico.client.annotator.commands.CommandAction.actionPerformed(CommandAction.java:102)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

I actually found this for all of my eaf files…how to solve it then?

Well, that’s at least something. I cannot immediately reproduce this problem but it might be dependent on a specific tier structure or so.
If I’m correct you try to export with the “No Wrapping” for “Wrap Blocks”? Do you also get an error if you try one of the other options (e.g. Each Block)?
If not, then this or one of the other settings might be usable and acceptable?
Otherwise it is difficult to advise how to solve it, I would probably need one of your files and your exact settings in order to reproduce the error and to find a solution.

Thanks! The error is not related to the wrapping option I chose to use. When I click on `interlinear text’ it simply just does nothing. How can I send you the file then?

You could send one by email to han.sloetjes AT mpi.nl
No media files necessary, the .eaf file will do (possibly with the accompanying .pfsx file).

Unfortunately, I have the same problem and cannot export my transcript to an interlinear format.

My Logging messages read:
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at mpi.eudico.client.annotator.interlinear.BlockMetrics.calcPrintBlocksNoWrap(BlockMetrics.java:1328)
at mpi.eudico.client.annotator.interlinear.BlockMetrics.calculatePrintBlocks(BlockMetrics.java:456)
at mpi.eudico.client.annotator.interlinear.Interlinear.calculateMetrics(Interlinear.java:800)
at mpi.eudico.client.annotator.interlinear.Interlinear.renderView(Interlinear.java:751)
at mpi.eudico.client.annotator.interlinear.InterlinearPreviewDlg.doApplyChanges(InterlinearPreviewDlg.java:1466)
at mpi.eudico.client.annotator.interlinear.InterlinearPreviewDlg.<init>(InterlinearPreviewDlg.java:171)
at mpi.eudico.client.annotator.commands.ExportInterlinearDlgCommand.execute(ExportInterlinearDlgCommand.java:50)
at mpi.eudico.client.annotator.commands.CommandAction.actionPerformed(CommandAction.java:102)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Do I have to change any settings?

I don’t think I received any file previously that allows me to reproduce the problem. So, I still have no idea what is going wrong. Looking at the code that is mentioned in the output, I still have the idea that this can only occur with the Wrap Blocks setting of No Wrapping. Is it possible at all to choose a different option for Wrap Blocks? Or does the crash occur before that drop down box is accessible?
Could you send me a file that would allow me to reproduce the problem? That would be helpful.

-Han

PS. In this last case there were some special characters in the media file name which made it invalid in the XML sense in the .eaf. Although this was probably not the reason for the error in the Interlinear export preview window, after renaming the files and folders and updating the paths in ELAN, the export window could be opened again.