Skip to content
Advertisement

Tag: java

How to pass JVM options from bootRun

I’m developing simple Spring web application that communicates with remote host and I would like to test it locally behind corporate proxy. I use “Spring Boot” gradle plugin and the question is how can I specify proxy settings for JVM? I have try several ways to do it: gradle -Dhttp.proxyHost=X.X.X.X -Dhttp.proxyPort=8080 bootRun export JAVA_OPTS=”-Dhttp.proxyHost=X.X.X.X -Dhttp.proxyPort=8080″ export GRADLE_OPTS=”-Dhttp.proxyHost=X.X.X.X -Dhttp.proxyPort=8080″ But it

KSoap2 on Android freezing the device instead of making a webservice call

I’m trying to connect to .NET 4.0 webservice I created for receiving SOAP-calls from Android-devices, now hosted on local IIS for testing purposes. I found out that ksoap2 would be an excellent class library for doing what i want to do. Downloaded the .jar package from https://code.google.com/p/ksoap2-android/ and started pounding the keyboard in ecstacy… with my fingers. The amount of

java.lang.NoClassDefFoundError: Could not initialize class com.google.api.client.util.Data [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 8 years ago. Improve this question When I programming, an error occured: How to resolve it? java.lang.NoClassDefFoundError: Could not

Difference between e.getMessage() and e.getLocalizedMessage()

What is the difference between the getMessage and getLocalizedMessage methods on Java exceptions? I am using these both methods to get the message thrown by the catch block while performing error handling. Both of them get me the message from the error handling, but how exactly do these two differ? I did some searching on the Internet and found this

How to skip the maven antrun copy/shade:shade goal dynamically?

I am using maven for configuration of an application consisting of multiple small services. Most of the services developed in java share the same maven configuration, as in the same build lifecycle, some shared resources (like spring AMQP). So I have organized the shared resources in a SuperPom. While the shade plugin doesn’t really seem to disturb the install process,

Advertisement