Author Archives: Jason Mihalick

Workaround for JAX-WS NullPointerException when calling web service from embedded Java 8 JVM

[Note: I originally posted this solution to Stackoverflow.com] Problem: When connecting to a SOAP based web service from a Java 8 embedded JVM using JAX-WS dynamic generation of the client stubs, you get this NullPointerException:

If your problem is … Continue reading

Posted in Java | Tagged , , , , , , | 2 Comments

Curl command line encoding of query parameters for an HTTP PUT

[Note: I originally posted this problem/solution to Stackoverflow.com] Problem: I have multiple query parameters that I want to send in an HTTP PUT operation using curl. How do I encode the query parameters? Example:

If ‘value 1’ contains spaces … Continue reading

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

SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption

[Note: I originally posted this problem/solution to Stackoverflow.com] Problem: I am getting the following error when connecting to a SQL Server database using version the Microsoft JDBC Driver:

  We recently upgraded our applications from Java 6 & Java … Continue reading

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

Spring 4.1 MVC + Hibernate 4.3 + Webflow 2.4 + OpenSessionInViewFilter = java.lang.IllegalStateException, Already value for key bound to thread

[Note: I originally posted this problem/solution to Stackoverflow.com] Problem: I am upgrading an application from these component versions to their latest counterparts:

I am currently very stuck on a problem related the OpenSessionInViewFilter and Spring Webflows. None of the … Continue reading

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

How to require a particular Java version for compilation using Maven

Lately we’ve had a few instances at my current client where we’ve had problems with deployment of Java web apps which have been built using the wrong JDK version.  We are using Atlassian Bamboo for continuous integration on our daily … Continue reading

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