Tag Archives: java

From Java to AngularJS (without pain)

At the jQuery Conf in Berlin (December 2015) and at the Rubyslava Meetup in Bratislava (17.3.2016) I was presenting my talk “From Java to AngularJS (without pain)”. jQuery Conf Rubyslava This is a (pretty shitty, sorry for that) video of … Continue reading

Posted in konferenzen | Tagged , , , , , , | Leave a comment

Integration Test Coverage with Sonar

I love to develop test driven, but even more I love code analysis tools that show me what to improve. Sonar is quite “popular” and common for Java developers and I’m using it already for years in different projects. If … Continue reading

Posted in howtos | Tagged , , , , , , , | Leave a comment

Java: break, continue, return in Loops

Although this is pretty basic Java functionality I often have to look this up, because I confound these calls, esp. break and continue. So this is my cheat sheet: Break for (..) {   ..   // leave loop immediately   break;   .. … Continue reading

Posted in howtos | Tagged , , , , , , , | 1 Comment

Thread dumps, memory dump, and stack traces

1. Getting a Stack Trace jstack -l [pid] jstack is for java processes 2. Getting a Thread Dump kill -3 [pid] on unix 3. Surviving a OutOfMemoryException in Production Sometimes you see an “OutOfMemoryException” in production and you need a … Continue reading

Posted in news | Tagged , , , , , , , | 1 Comment

Java – CertificateException: No name matching xxx found

At paysafecard we have a lot to deal with certificates. For our test systems we use one SSL certificate for different sub-domains, e.g. one certificate for “https://test.yunacard.com” used for “https://testa.yunacard.com” and “https://testb.yunacard.com”. But when you do this, you get a … Continue reading

Posted in howtos, work | Tagged , , , , , | Leave a comment

Java: Rounding error from Double to BigDecimal

Today’s amusement in my job: Rounding error from Double to BigDecimal, see java docs for public BigDecimal(double val). Java creates a BigDecimal which is exactly equal to 0.1 (an unscaled value of 1, with a scale of 1), but it is … Continue reading

Posted in howtos | Tagged , , , | 3 Comments

Multiple writable mappings in Java Persistence API

Seit kurzem setzte ich mich mit der Java Persistence API auseinander, das mit Hibernate und dem von uns eingesetzten Oracle Toplink implementiert wurde. Folgende Fehlermeldung beschäftigte mich bei einer OneToMany-Relation Multiple writable mappings exist for the field [tabltenname.spaltenname]. Only one … Continue reading

Posted in howtos | Tagged , , , , , , | 1 Comment

convert date to calendar in java

heute wieder mal googlen müssen, weils mir wieder mal entfallen ist, deswegen gleich ein beitrag für die howto section. in java sind die alten, sehr hilfreichen funktionen von java.util.Date, die teile des datums zurückgeben, wie date.getMonth(), leider depricated, und zwar … Continue reading

Posted in howtos | Tagged , , , , , | 4 Comments

torque throws ORA-01424 – purge the recycle bin

schon wieder passiert und wieder mal länger nach der lösung gesucht, bis es mir wieder (spät, aber doch) eingefallen ist: wird eine ORA-01424 oracle fehlermeldung beim generieren der java-klassen aus der DB über die torque geworfen, hat man wohl wieder … Continue reading

Posted in howtos | Tagged , , , , , | Leave a comment