【发布时间】:2014-11-25 13:13:44
【问题描述】:
我正在尝试使用来自 google Guava 的 InternetDomainName 函数;我已经使用 Eclipse 在 scala 中编写了代码,它编译得很好,但是当我运行它时,我不断收到一条错误消息:
java.lang.IllegalStateException: Not under a public suffix: display_url
at com.google.common.base.Preconditions.checkState(Preconditions.java:176)
at com.google.common.net.InternetDomainName.topPrivateDomain(InternetDomainName.java:445)
我已经将"com.google.guava" % "guava" % "16.0"添加到依赖库中,并将Guava库添加到项目中。我不确定这意味着什么。是不是因为我输入了不是 URL 的数据?
【问题讨论】: