From: Randall W. <ran...@al...> - 2014-04-16 00:42:41
|
This error points to a missing JAR in your build environment (commons-lang3-3.2.1.jar in lib), and not a problem with the JsonManifest code. It would be far more helpful to discuss errors like this on the mailing list, and give others a chance to investigate before arbitrarily disabling code because something is wrong with your build environment. You may want to ensure your .classpath file is correctly up to date with SVN. On 15 Apr 2014, at 19:40, dan...@us... wrote: > Revision: 25614 > http://sourceforge.net/p/jmri/code/25614 > Author: dan_boudreau > Date: 2014-04-15 23:40:32 +0000 (Tue, 15 Apr 2014) > Log Message: > ----------- > Fix problem where JsonManifest throws an exception when a new user profile is selected. The code has been committed out. > > Modified Paths: > -------------- > trunk/jmri/java/src/jmri/jmrit/operations/trains/TrainBuilder.java > > Modified: trunk/jmri/java/src/jmri/jmrit/operations/trains/TrainBuilder.java > =================================================================== > --- trunk/jmri/java/src/jmri/jmrit/operations/trains/TrainBuilder.java 2014-04-15 23:13:26 UTC (rev 25613) > +++ trunk/jmri/java/src/jmri/jmrit/operations/trains/TrainBuilder.java 2014-04-15 23:40:32 UTC (rev 25614) > @@ -538,15 +538,27 @@ > > // now make manifest > new TrainManifest(_train); > - try { > - new JsonManifest(_train).build(); > - } catch (IOException ex) { > - log.error("Unable to create JSON manifest: {}", ex.getLocalizedMessage()); > +// try { > +// new JsonManifest(_train).build(); > +// } catch (IOException ex) { > +// log.error("Unable to create JSON manifest: {}", ex.getLocalizedMessage()); > +// throw new BuildFailedException(ex); > // DAB 4/15/2014 JsonManifest throws an exception when a new user profile has been created. > // Not sure why the JSON manifest failing to complete should prevent the reset of the program > // from working properly. > -// throw new BuildFailedException(ex); > - } > +// Here's the trace: > +// 2014-04-15 19:32:10,518 ptionhandler.UncaughtExceptionHandler ERROR - Unhandled Exception: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils [Build Train] > +// java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils > +// at jmri.jmrit.operations.trains.JsonManifest.getRollingStockAttribute(JsonManifest.java:360) > +// at jmri.jmrit.operations.trains.JsonManifest.getEngineAttribute(JsonManifest.java:353) > +// at jmri.jmrit.operations.trains.JsonManifest.pickupEngines(JsonManifest.java:301) > +// at jmri.jmrit.operations.trains.JsonManifest.getLocations(JsonManifest.java:114) > +// at jmri.jmrit.operations.trains.JsonManifest.build(JsonManifest.java:59) > +// at jmri.jmrit.operations.trains.TrainBuilder.build(TrainBuilder.java:542) > +// at jmri.jmrit.operations.trains.TrainBuilder.build(TrainBuilder.java:98) > +// at jmri.jmrit.operations.trains.Train.build(Train.java:2599) > +// > +// } > if (Setup.isGenerateCsvManifestEnabled()) > new TrainCsvManifest(_train); > // now create and place train icon > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Jmri-commits mailing list > Jmr...@li... > https://lists.sourceforge.net/lists/listinfo/jmri-commits Randall Wood Alexandria Software 202.683.8604 ran...@al... http://www.alexandriasoftware.com |