Month: October 2013
-
java.lang.OutOfMemoryError: PermGen space When Running Maven on IntelliJ
NOTE This is not a Groovy related problem, but I’m using it to illustrate my problem and solution here. PROBLEM I recently tried mixing some Groovy code into my existing JEE project. I created a simple POGO that looks as sophisticated as this:- Then, I configured one of my controllers to invoke that POGO:- After… Read More…
-
java.lang.NoSuchMethodError: javax/persistence/OneToMany.orphanRemoval()Z
PROBLEM You configure Hibernate using annotations and set orphanRemoval property in @OneToMany. When you run the application, the application server throws the following exception:- In my case, I’m getting this exception when I run on Websphere Application Server (WAS) 7.5. SOLUTION The orphanRemoval property in @OneToMany requires JPA 2.x to work. If you already have… Read More…
-
Understanding How Maven Dependencies Work
Let’s assume we have the following dependencies:- In this example, both dbunit and spring-core have a dependency on commons-logging, but they rely on a different version:- Based on the above configuration, what version of commons-logging does Maven choose? If your answer is v1.1.1, then you are absolutely right…. that you need to read the Maven… Read More…
-
The message with Action ” cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher
PROBLEM You get this error message when invoking a web service:- org.springframework.ws.soap.client.SoapFaultClientException: The message with Action ” cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the… Read More…
-
Cannot process the message because the content type ‘application/soap+xml; charset=utf-8’ was not the expected type ‘text/xml; charset=utf-8’
PROBLEM You are getting this exception when invoking a web service:- org.springframework.ws.client.WebServiceTransportException: Cannot process the message because the content type ‘application/soap+xml; charset=utf-8’ was not the expected type ‘text/xml; charset=utf-8’. [415] SOLUTION You are using the wrong SOAP version. SOAP v1.1 uses text/xml while SOAP v1.2 uses application/soap+xml. If you are using Spring Web Services, add… Read More…