Win a copy of Python Continuous Integration and Delivery this week in the Python forum!

Marco Behler

+ Follow
since Jun 01, 2014
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marco Behler

Oh and almost forogt: Always open to hear from viewers! If you have any specific topics you'd like to see covered on the site, give me a shout!
2 months ago
Hi @all,
for a while now I have been publishing video courses/screencasts on modern Java programming. That also includes tools like IntelliJ or frameworks like Spring, Hibernate or Quartz.

I have been consulting in the Java space for 10 years and tried to put all my knowledge into these courses, without them being overly dry or "fluffy". Wanted to let the code - and only the code - speak for itself.

If that sounds interesting to you, have a look at I do appreciate feedback . If it is questions about the material, if you want to see new topics being covered, anything else, even if it is just a hatemail ;) - let me know.  


2 months ago
Hey Coderanchers,

as the question "what should I learn next" pops up quite regularly when trying to learn Java, I decided to publish a fun, interactive, tutorial/learning path to become an Intermediate Java programmer.

You'll basically learn how to build a mp3 'archiving' program from scratch and learn a whole lot of things along the way: Core Java, JDBC, Servlets and much more.

Comments are much appreciated!
Guys, a bit of a thread hijack, but I'm looking for some reviews for some of my programming videos. If someone's up for it, I'll set you up with a free two week account, just send me a PM. In exchange for some notes on how you find the episodes, courses, choice of topics etc...

1 year ago
Hi Mohammed,
your question is too broad to be answered, but I'll give you a hint of what I mean.

Say you check out  the source code of Jetty, the web server. Or Tomcat. Or the source code of Wicket, the web framework. Or Git. Or whatever really.

Then it helps to have a specific use case in mind ? "How does a textfield get rendered". "How does Jetty parse HTTP headers?" "what does GIT do when you call "commit"". Of course, these could be huge topics, but it doesn't really matter, because you don't need to get a 10000% understanding. It's more about the general feel of how people solve things, the patterns, the coding style. Especially coding style wise, you'll learn that many open source projects have completely opposite rules, when it comes to coding styles. And it really often only is a matter of preferences and homogenity , instead of blind believe in certain coding rules ;)

my 5cents;
1 year ago

check out the following link. It is your project and it should work.
When you say "all type of files", do you mean text files? Binary files? Both? What type of files? Is there a specific list of file types? What exactly do you want to do?
1 year ago
Hi Andy,
sorry , your problem description is confusing. I don't really know WHAT the problem is here and also - at least for me - I cannot truly parse "it all works fine in the app, ...but the location isn't being found"
1 year ago
Siddarth, I just tried your code.

the code sample you sent me had the same problem, the same exception. BUT, you were missing the @Transactional annotations on the BookRepository, which are however in the code you pasted in here.

So with @Transactional AND @EnableTransactionManagement (no special options), it works just fine for me.
Can you put the .zipped project somewhere? Or put it on GitHub or something similar? Thanks

I agree with Peter. you should pretty much always prefer constructor injection.

Just to add (in IMHO) its best not to use field injection as it makes writing test cases awkward.  

How so, regarding tests?

To be honest with you, I'm actually seeing this as a completely religious issue. I've worked with several injection styles over the years, and from a pragmatic viewpoint.......i really don't care
1 year ago
I was asking, because in your stacktrace, there are no lines regarding a "TransactionProxy", i.e. your class does not get wrapped with a transaction. I wasn't sure if you had aspectj setup correctly and with that compile time weaving, but in any case, that's where i would have a look at.
Why are you using @EnableTransactionManagement with AspectJ "mode"? Could you try:

adviceMode=proxy, proxyTargetClass=true

Other than that, your code looks fine...?

You mean simply getting the IP address of the end-user calling your application?

Check out: HttpServletRequest.getRemoteAddr()

But if you have a proxy in front of it, also check the headers: "X-FORWARDED-FOR" or "x-real-ip"....and then simply save the contents to the db.

does that help?
1 year ago