Test Failure From Current Source, Failure to Run GUI from Eclipse

Monday, 14 May 2018 · 2 messages · last reply 15 May 2018
EK
Eliot Kimber14 May 2018 23:26 #
I thought I would see if I could add the Xerces grammar caching to BaseX, at least to see if it improved things for DITA loading. I've updated my fork of the basex project to the current version in github. Using the master branch as the basis for my local feature branch and with no modified files, I get one failing test from "mvn test": Failed tests: FnTest.sum:91->AdvancedQueryTest.error:78 Query did not fail: sum(1, 'x') [E] Error: err:FORG0006 [F] 1 Tests run: 1578, Failures: 1, Errors: 0, Skipped: 5 I'm also not able to run the BaseXGUI class using an Eclipse run configuration per the documentation on the BaseX site. I get A bunch of messages about things missing from English.lang: /lang/English.lang not found. English.lang: 'port' is missing ... lots more English.lang: 'h_no_html_parser' is missing Then this fatal error:
Image not found: /img/text_xml.png
	at org.basex.util.Util.stack(Util.java:224)
	at org.basex.gui.layout.BaseXImages.url(BaseXImages.java:125)
	at org.basex.gui.layout.BaseXImages.get(BaseXImages.java:62)
	at org.basex.gui.layout.BaseXImages.icon(BaseXImages.java:109)
	at org.basex.gui.layout.BaseXImages.<clinit>(BaseXImages.java:34)
	at org.basex.gui.GUIMacOSX.addDockIcon(GUIMacOSX.java:84)
	at org.basex.gui.GUIMacOSX.<init>(GUIMacOSX.java:60)
	at org.basex.BaseXGUI.<init>(BaseXGUI.java:58)
	at org.basex.BaseXGUI.main(BaseXGUI.java:39)
Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.basex.gui.GUIMacOSX.addDockIcon(GUIMacOSX.java:84)
	at org.basex.gui.GUIMacOSX.<init>(GUIMacOSX.java:60)
	at org.basex.BaseXGUI.<init>(BaseXGUI.java:58)
	at org.basex.BaseXGUI.main(BaseXGUI.java:39)
Caused by: java.lang.IllegalArgumentException: input == null!
	at javax.imageio.ImageIO.read(ImageIO.java:1388)
	at org.basex.gui.layout.BaseXImages.get(BaseXImages.java:72)
	at org.basex.gui.layout.BaseXImages.get(BaseXImages.java:62)
	at org.basex.gui.layout.BaseXImages.icon(BaseXImages.java:109)
	at org.basex.gui.layout.BaseXImages.<clinit>(BaseXImages.java:34)
	... 4 more
I suspect it's something very simple but no idea what it might be. Thanks, Eliot
-- Eliot Kimber http://contrext.com
CG
Christian Grün15 May 2018 19:28 #
Hi Eliot, In the current master branch, there is no FnTest class (anymore). Maybe things will work out if create a local clone from the master branch? Thanks, Christian
Quoted text · Eliot Kimber · 61 lines
On Mon, May 14, 2018 at 9:26 PM, Eliot Kimber <ekimber at contrext.com> wrote: > I thought I would see if I could add the Xerces grammar caching to BaseX, at least to see if it improved things for DITA loading. > > I've updated my fork of the basex project to the current version in github. > > Using the master branch as the basis for my local feature branch and with no modified files, I get one failing test from "mvn test": > > Failed tests: > FnTest.sum:91->AdvancedQueryTest.error:78 Query did not fail: > sum(1, 'x') > [E] Error: err:FORG0006 > [F] 1 > > Tests run: 1578, Failures: 1, Errors: 0, Skipped: 5 > > I'm also not able to run the BaseXGUI class using an Eclipse run configuration per the documentation on the BaseX site. I get > > A bunch of messages about things missing from English.lang: > > /lang/English.lang not found. > English.lang: 'port' is missing > ... lots more > English.lang: 'h_no_html_parser' is missing > > Then this fatal error: > > Image not found: /img/text_xml.png > at org.basex.util.Util.stack(Util.java:224) > at org.basex.gui.layout.BaseXImages.url(BaseXImages.java:125) > at org.basex.gui.layout.BaseXImages.get(BaseXImages.java:62) > at org.basex.gui.layout.BaseXImages.icon(BaseXImages.java:109) > at org.basex.gui.layout.BaseXImages.<clinit>(BaseXImages.java:34) > at org.basex.gui.GUIMacOSX.addDockIcon(GUIMacOSX.java:84) > at org.basex.gui.GUIMacOSX.<init>(GUIMacOSX.java:60) > at org.basex.BaseXGUI.<init>(BaseXGUI.java:58) > at org.basex.BaseXGUI.main(BaseXGUI.java:39) > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.basex.gui.GUIMacOSX.addDockIcon(GUIMacOSX.java:84) > at org.basex.gui.GUIMacOSX.<init>(GUIMacOSX.java:60) > at org.basex.BaseXGUI.<init>(BaseXGUI.java:58) > at org.basex.BaseXGUI.main(BaseXGUI.java:39) > Caused by: java.lang.IllegalArgumentException: input == null! > at javax.imageio.ImageIO.read(ImageIO.java:1388) > at org.basex.gui.layout.BaseXImages.get(BaseXImages.java:72) > at org.basex.gui.layout.BaseXImages.get(BaseXImages.java:62) > at org.basex.gui.layout.BaseXImages.icon(BaseXImages.java:109) > at org.basex.gui.layout.BaseXImages.<clinit>(BaseXImages.java:34) > ... 4 more > > I suspect it's something very simple but no idea what it might be. > > Thanks, > > Eliot > > -- > Eliot Kimber > http://contrext.com > > >

⚡Generated with XQuery