Tag Archives: Java
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Caused by: java.lang.NullPointerException at com.sun.xml.internal.ws.client.ClientContainer$1.getResource(ClientContainer.java:45) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.locateResource(MetroConfigLoader.java:220) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.locateResource(MetroConfigLoader.java:230) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.init(MetroConfigLoader.java:125) at com.sun.xml.internal.ws.assembler.MetroConfigLoader.<init>(MetroConfigLoader.java:104) at com.sun.xml.internal.ws.assembler.TubelineAssemblyController.getTubeCreators(TubelineAssemblyController.java:78) at com.sun.xml.internal.ws.assembler.MetroTubelineAssembler.createClient(MetroTubelineAssembler.java:103) at com.sun.xml.internal.ws.client.Stub.createPipeline(Stub.java:328) at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:295) at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:228) at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:243) at com.sun.xml.internal.ws.client.sei.SEIStub.<init>(SEIStub.java:84) at com.sun.xml.internal.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:814) at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:803) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:436) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:404) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:459) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:463) at javax.xml.ws.Service.getPort(Service.java:188) |
If your problem is … Continue reading
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:
1 |
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server returned an incomplete response. The connection has been closed. ClientConnectionId:98d0b6f4-f3ca-4683-939e-7c0a0fca5931". |
We recently upgraded our applications from Java 6 & Java … Continue reading
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:
1 2 3 4 |
Spring 3.0.4 -> Spring 4.1.6 Hibernate 3.3.0 -> Hibernate 4.3.8 Spring Webflow 2.0.7 -> Spring Webflow 2.4.1 Spring Security 2.0.4 -> Spring Security 3.2.6 |
I am currently very stuck on a problem related the OpenSessionInViewFilter and Spring Webflows. None of the … Continue reading
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
Recent Comments