TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How We Found a Missing Scala Class

85 pointsby drobover 6 years ago

8 comments

koubeover 6 years ago
FYI this domain is blocked by default for uBlock users.
评论 #17977795 未加载
评论 #17975743 未加载
评论 #17974839 未加载
评论 #17975092 未加载
drobover 6 years ago
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 未加载
userbinatorover 6 years ago
<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 未加载
SuspiciousSwanover 6 years ago
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 未加载
nambitover 6 years ago
Why doesn&#x27;t java just spit out a classLoaderClosed error?
评论 #17976063 未加载
GrumpyNlover 6 years ago
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.
fgheorgheover 6 years ago
How do you lose a class in a programming language?!
评论 #17976917 未加载
djsumdogover 6 years ago
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 未加载