Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D1B318403 for ; Thu, 28 Jan 2016 19:59:23 +0000 (UTC) Received: (qmail 67109 invoked by uid 500); 28 Jan 2016 19:58:24 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 67063 invoked by uid 500); 28 Jan 2016 19:58:24 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 67048 invoked by uid 99); 28 Jan 2016 19:58:24 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2016 19:58:24 +0000 Received: from [10.0.1.12] (ip-178-203-23-159.hsi10.unitymediagroup.de [178.203.23.159]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 3446B1A003F; Thu, 28 Jan 2016 19:58:23 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Uima Annotation Viewer view selection causing StackOverflow From: Richard Eckart de Castilho In-Reply-To: Date: Thu, 28 Jan 2016 20:58:18 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <14D38157-EF15-476F-A734-4359E1D3BE4E@apache.org> References: To: user@uima.apache.org X-Mailer: Apple Mail (2.3112) Hi, what do you do to get this exception?=20 Only open the viewer?=20 Open a file?=20 Does it happen for any file or just particular files?=20 Do you need to perform any action after opening a file to trigger the = problem? Cheers, -- Richard > On 28.01.2016, at 00:48, Hector Liu wrote: >=20 > Hi, >=20 > I've been using UIMA a lot recently, and I relied on the annotation = viewer > to check my results. I've run the viewer without any problems for a = while > but I got a StackOverFlow error recently. This is likely to be caused = by my > recent Java update. >=20 > I am getting an StackOverFlow error when running the main class of > org.apache.uima.tools.AnnotationViewerMain , my Java version output is = as > followed: >=20 > java version "1.8.0_31" > Java(TM) SE Runtime Environment (build 1.8.0_31-b13) > Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) >=20 > The following is a sample exception message. There seems to be = infinite > loop of method calling between swing and the uima viewer. Any help or > suggestions will be appreciated. >=20 > Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError > at sun.lwawt.macosx.CCursorManager.nativeGetCursorPosition(Native = Method) > at = sun.lwawt.macosx.CCursorManager.getCursorPosition(CCursorManager.java:54) > at sun.lwawt.LWCursorManager.updateCursorImpl(LWCursorManager.java:80) > at sun.lwawt.LWCursorManager.updateCursor(LWCursorManager.java:57) > at > = sun.lwawt.LWComponentPeer.updateCursorImmediately(LWComponentPeer.java:896= ) > at java.awt.Component.updateCursorImmediately(Component.java:3137) > at java.awt.Container.validate(Container.java:1640) > at javax.swing.JViewport.validateView(JViewport.java:482) > at javax.swing.JViewport.scrollRectToVisible(JViewport.java:393) > at javax.swing.JComponent.scrollRectToVisible(JComponent.java:3109) > at javax.swing.JList.ensureIndexIsVisible(JList.java:1149) > at > = javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.ja= va:1144) > at > = javax.swing.plaf.basic.BasicComboPopup.access$300(BasicComboPopup.java:63)= > at > = javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicCombo= Popup.java:981) > at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223) > at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1280) > at javax.swing.JComboBox.contentsChanged(JComboBox.java:1329) > at > = javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:1= 18) > at > = javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java= :93) > at > = javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:131)= > at javax.swing.JComboBox.addItem(JComboBox.java:716) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.initializeSofaSelectionPa= nel(CasAnnotationViewer.java:1069) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.setCAS(CasAnnotationViewe= r.java:1040) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer$4.itemStateChanged(CasAnn= otationViewer.java:370) > at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223) > at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1280) > at javax.swing.JComboBox.contentsChanged(JComboBox.java:1329) > at > = javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:1= 18) > at > = javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java= :93) > at > = javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:131)= > at javax.swing.JComboBox.addItem(JComboBox.java:716) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.initializeSofaSelectionPa= nel(CasAnnotationViewer.java:1069) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.setCAS(CasAnnotationViewe= r.java:1040) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer$4.itemStateChanged(CasAnn= otationViewer.java:370) > at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223) > at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1280) > at javax.swing.JComboBox.contentsChanged(JComboBox.java:1329) > at > = javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:1= 18) > at > = javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java= :93) > at javax.swing.JComboBox.setSelectedItem(JComboBox.java:576) > at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:622) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.initializeSofaSelectionPa= nel(CasAnnotationViewer.java:1072) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.setCAS(CasAnnotationViewe= r.java:1040) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer$4.itemStateChanged(CasAnn= otationViewer.java:370) > at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223) > at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1280) > at javax.swing.JComboBox.contentsChanged(JComboBox.java:1329) > at > = javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:1= 18) > at > = javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java= :93) > at javax.swing.JComboBox.setSelectedItem(JComboBox.java:576) > at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:622) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.initializeSofaSelectionPa= nel(CasAnnotationViewer.java:1072) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.setCAS(CasAnnotationViewe= r.java:1040) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer$4.itemStateChanged(CasAnn= otationViewer.java:370) > at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223) > at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1280) > at javax.swing.JComboBox.contentsChanged(JComboBox.java:1329) > at > = javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:1= 18) > at > = javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java= :93) > at javax.swing.JComboBox.setSelectedItem(JComboBox.java:576) > at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:622) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.initializeSofaSelectionPa= nel(CasAnnotationViewer.java:1072) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer.setCAS(CasAnnotationViewe= r.java:1040) > at > = org.apache.uima.tools.viewer.CasAnnotationViewer$4.itemStateChanged(CasAnn= otationViewer.java:370) > at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223) > at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1280) > at javax.swing.JComboBox.contentsChanged(JComboBox.java:1329) >=20 >=20 > Best, > Hector >=20 > --=20 > Hector, Liu Zhengzhong >=20 > Ph.D candidate in Language and Information Technologies > Carnegie Mellon University >=20 > Mobile: +1-412-980-0646 > LinkedIn: http://www.linkedin.com/pub/hector-zhengzhong-liu/23/115/406