TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How We Found a Missing Scala Class

85 点作者 drob超过 6 年前

8 条评论

koube超过 6 年前
FYI this domain is blocked by default for uBlock users.
评论 #17977795 未加载
评论 #17975743 未加载
评论 #17974839 未加载
评论 #17975092 未加载
drob超过 6 年前
Heap CTO here – would love to answer any questions you have.<p>This was my first exposure to btrace, which a super useful swiss army knife for JVM debugging. That made this a worthwhile adventure for sure.
评论 #17977882 未加载
评论 #17978903 未加载
评论 #17978677 未加载
评论 #17974581 未加载
userbinator超过 6 年前
<i>NoClassDefFoundError? But it’s right there!</i><p>Although in this case the cause was very different, it reminds me of an old &quot;trap for young players&quot; with loading shared libraries dynamically --- the library itself can exist and be readable and executable, and yet attempting to load it fails with a &quot;file not found&quot; error. This happens when one of its <i>dependencies</i>, directly or indirectly, is missing.
评论 #17975999 未加载
评论 #17977967 未加载
评论 #17977797 未加载
评论 #17975886 未加载
SuspiciousSwan超过 6 年前
It sounds like you have a lot of operation issues due to the technologies that you used. I mean, at least you aren&#x27;t doing your backend in node, but running an actor system on top of an actor system is going to be brutal to properly analyze once you actually have scale.<p>What sort of process do you have for picking trendy technologies vs tested ones, and how much do you talk to people who have built large scale systems before implementing things like scala?
评论 #17974897 未加载
评论 #17989088 未加载
nambit超过 6 年前
Why doesn&#x27;t java just spit out a classLoaderClosed error?
评论 #17976063 未加载
GrumpyNl超过 6 年前
I keep running in this type of problems all the time with our developers. Please keep it simple. Take a step back and ask yourself, do i need all this stuff, is this the best approach. Often they just blindly accept all the external libs. For me as an old school guy, i don&#x27;t trust all those dependencies at all.
fgheorghe超过 6 年前
How do you lose a class in a programming language?!
评论 #17976917 未加载
djsumdog超过 6 年前
The moment the article mentioned &quot;Fat jar&quot; I knew that&#x27;d be the problem.<p>I don&#x27;t recommend using any type of fat jar plugin (like OneJar) or even Google Guice for that matter. Custom class loaders are a nightmare.<p>Thanks to Docker containers, you should never really need a far jar again. Just find a decent Docker packager for your build system (sbt, gradle, etc.) and it can plop all your dependencies in there in a nice, isolated container that uses the standard class loader.
评论 #17976457 未加载
评论 #17989076 未加载
评论 #17976483 未加载