Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue May 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 5 May 2015 at 12:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant