java.lang.IllegalStateException: getAttribute: Session already invalidated

I never worked with WebLogic, but from JavaDoc here I can tell that calling getPortletSession() is already wrong idea if you want to invalidate existing session, because it’s said in JavaDocs: Returns the current portlet session or, if there is no current session, creates one and returns the new session. So, it creates a new … Read more

How to show scala doc from Java Editor in Eclipse?

When using maven convention, a library is bundled as ‘group.artifact.version.jar’ for binary, ‘group.artifact.version-sources.jar’ for source code and ‘group.artifact.version-javadoc.jar’ for docs. If you don’t see the javadoc, then it means that the ‘-javadoc.jar’ for that artifact is not pulled to local, in your case for the akka artifact. If you right click on the library, you … Read more

Error compiling in IntelliJ IDEA: “No MessageCollector”

Promoting the answer in the comments to an answer, because it’s the actual answer: This appears to be a bug in the IntelliJ Kotlin plugin v1.2.40 and how it interacts with Java 10. See here. The solution is to upgrade to v1.2.41. (Don’t switch your project to building with Gradle like the other answer suggests … Read more

Why does Java enforce return type compatibility for overridden static methods?

Consider the following: public class Foo { static class A { public static void doThing() { System.out.println(“the thing”); } } static class B extends A { } static class C extends B { public static void doThing() { System.out.println(“other thing”); } } public static void main(String[] args) { A.doThing(); B.doThing(); C.doThing(); } } Run it! … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)