Skip navigation.
Home

java

Finding Hidden/Swallowed Exceptions in IntelliJ and Eclipse

HomerWhen working with an event driven asynchronous application, it is difficult to troubleshoot Exceptions. It is difficult to figure out exactly why an Exception occurred and sometimes it is difficult to even determine that an Exception has occurred at all. I ran into this last problem when writing a GWT application; the client was swallowing all sorts of Exceptions. Here's how I was able to shed some light on spurious and hidden exceptions...

Java Memory Puzzle

Java LogoAfter reading a JavaSpecialists article about a Java Memory Puzzle (about whether nulling local variables was ever really necessary), I wanted to see if I could figure out the answer.

How to install GXT (or any other binary distribution) into Nexus (or any other maven repository)

Maven ImageI needed to upload a 3rd party jar to Nexus. This is pretty easy when you use the admin UI, but I couldn't find a way to upload the other artifacts (e.g. the sources and javadoc jars). Here's how to do it...

Solution: Intellij IDEA won't synchronize with file system changes

Intellij IconNormally this isn't an issue. I've been working with IntelliJ for a few years now and never had this problem before. But no matter what I did, the IDE would only present me with an old version of my filesystem whenever the choose location dialog would come up. Then stranger things started to happen... I couldn't create a new project, builds started to fail and classes that existed on the filesystem wouldn't show up in the project. I took me a while to figure out how to get things back on track, even though the solution takes about 2 seconds once you know what to do.

How Spring Security hooks to Central Authentication Service (CAS)

CAS High Level Collaboration DiagramOur latest software project used CAS for authentication and single sign-on. I couldn't find any good documentation on how Spring Security and CAS played together. There is some documentation about how to configure your application to use CAS but not much on what messages go back and forth by whom and when.

Running Maven Built Web Applications Directly From Intellij IDEA

Intellij IconHere's how you can run maven built web applications directly from within Intellij IDEA 8. Once you run this way, you completely eliminate the code, build, deploy, restart cycle just when you want to make a change... you can even change classes on the fly (hot swapping).

WS-Security, Weblogic 10.2, Service Controls, and legacy namespaces

BEA LogoI was working on a Weblogic Portal application that needed to get information from a secure (WS-Security) third party web service over https. This web service used a legacy (pre-OASIS) WS-Security namespace and modern clients (like the one bundled with Weblogic server) don't create messages that conform to the old specification. Here's what I did to work around this restriction...

QName exception when generating a Service Control in Weblogic Workshop 10.2

QName exception popupWe recently upgraded Weblogic Workshop to version 10.2. When I went to regenerate an existing Service Control from a new WSDL file, I was greeted with a not so nice error popup...

OSX: The Apache Tomcat Native library... was not found on the java.library.path

Tomcat IconHere's how to get rid of the log message-- INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path when you startup Tomcat on OSX. On Windows, all one needs to do is drop in a precompiled dll, on OSX there are a few more steps...

Dynamic list binding in Spring MVC... what? why?

Spring IconPreviously, I wrote an article on how to achieve dynamic list binding in Spring MVC. Since I wrote that article, I have received emails and comments that ask (in a roundabout way) Why would I need to do this? When I wrote the other article I didn't explain the why; I just wrote the how. Here's why you need dynamic binding and the problems it is trying to solve.

Syndicate content