Re:Apache Helix – Near-Realtime Rsync Replicated File System
by threeseed on Monday October 26, 2020 @04:44PM
(#24901170)
You know that none of that has to do with Java itself.
It's the app whose stack traces you are looking at. And the app that decided to use XML config files.
Re:Apache Helix – Near-Realtime Rsync Replicated File System
by cle on Monday October 26, 2020 @10:14PM
(#24903902)
It most definitely comes with the territory.
Re:Apache Helix – Near-Realtime Rsync Replicated File System
by lmm on Monday October 26, 2020 @11:20PM
(#24904200)
But applications tend to feel the need to use XML config files because of the limitations of Java.
Re:Apache Helix – Near-Realtime Rsync Replicated File System
by meddlepal on Tuesday October 27, 2020 @12:16AM
(#24904453)
Please elaborate on those "limitations".
I really haven't seen all that much XML in Java recently outside of legacy applications... there's libraries for loading config data from JSON, YAML, etc etc.
Re:Apache Helix – Near-Realtime Rsync Replicated File System
by lmm on Tuesday October 27, 2020 @05:24AM
(#24905707)
JSON, YAML, or XML, it's all the same crap. The fact that programmers are feeling the need to externalise their business logic into "config" files is a sign that the language has failed. In a decent language you would write logic or "config" in the language itself, because the language would be a comfortable medium for expressing things (this is the norm in Python for example - while a few overengineered pieces insist on using TOML or something, most Python libraries don't require any separate config, you just "configure" them the same way you do the rest of your programming, in Python).
Re:Apache Helix – Near-Realtime Rsync Replicated File System
by nisa on Monday October 26, 2020 @03:15PM
(#24900053)
well yes... it's a learning curve and it takes a while but if you are familiar with the jvm and xml and to some degree spring-framework and reflection it's usally pretty easy to find a root-cause - you also have great tooling like async-profiler or just sending `kill -3 <pid>` to get a stacktrace. At least you've got a hill to climb upon instead of an empty field.
Re:Apache Helix – Near-Realtime Rsync Replicated File System
by slaymaker1907 on Monday October 26, 2020 @05:02PM
(#24901350)
At least there is a stack trace as opposed to a segfault with no context.
All the worst and most time-consuming troubleshooting experiences of my life have involved Java. Whether staring at pages of obscure stacktraces that the JVM decided to vomit all over my screen, or hours on end with Oracle tech support troubleshooting why Java decided to throw a tantrum (followed by editing obscure Java XML config files).
These days I just stay well away from Java.