xzycn / language-detection

Automatically exported from code.google.com/p/language-detection
0 stars 0 forks source link

Can't find bundle for base name com.cybozu.labs.langdetect.util.messages, locale en_US #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use langauge-detection as 3rd party lib, compiled as maven dep.
2. Initialize DetectorFactory with profiles from project.
3. Detect language of String.

What is the expected output? What do you see instead?

Expected: language code

Actual: java.util.MissingResourceException

Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.cybozu.labs.langdetect.util.NGram.<clinit>(NGram.java:14)
    at com.cybozu.labs.langdetect.Detector.append(Detector.java:168)
    at MyCustomCode$$anonfun$7$$anonfun$apply$1.apply(MyCustomCode.scala:89)
    at MyCustomCode$$anonfun$7$$anonfun$apply$1.apply(MyCustomCode.scala:87)
    at scala.util.Try$.apply(Try.scala:161)
    at MyCustomCode$$anonfun$7.apply(MyCustomCode.scala:87)
    at MyCustomCode$$anonfun$7.apply(MyCustomCode.scala:83)
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34)
    at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
    at scala.collection.AbstractTraversable.map(Traversable.scala:105)
    at MyCustomCode$delayedInit$body.apply(MyCustomCode.scala:83)
    at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
    at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
    at scala.App$$anonfun$main$1.apply(App.scala:71)
    at scala.App$$anonfun$main$1.apply(App.scala:71)
    at scala.collection.immutable.List.foreach(List.scala:318)
    at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
    at scala.App$class.main(App.scala:71)
    at MyCustomCode$.main(MyCustomCode.scala:12)
    at MyCustomCode.main(MyCustomCode.scala)
Caused by: java.util.MissingResourceException: Can't find bundle for base name 
com.cybozu.labs.langdetect.util.messages, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:773)
    at com.cybozu.labs.langdetect.util.Messages.<clinit>(Messages.java:14)
    ... 23 more

What version of the product are you using? On what operating system?
Most recent on OS X.

Original issue reported on code.google.com by greaves....@gmail.com on 5 May 2015 at 12:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Got this using v.03-03-2014 on Windows 7.

Original comment by Athene1...@gmail.com on 8 Jun 2015 at 2:54