Category "java"

Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authorization Required"

I was trying to hit the https url for google api. Using the code below but its giving some errors. but i can hitting one google api http url and its working ve

Aws step functions - Resume from failed step function activity instead of starting a new execution

I created a step function with 4 different activities which run one after other and also integrated to trigger this step function from a java application. Flow

Using log4j.xml, log specific file or package at debug everything else at error

I'd like to setup my log4j.xml file to log specific classes/packages at DEBUG level and the rest at ERROR level. As you can see below I updated the logging lev

Spel not supported on spring annotation @Scheduled.fixedDelayString

I want to configure the fixedDelay in seconds in my properties file, then I want to convert it to millis in @Scheduled annotation. I expected this to work: @Sch

Using maven to output the version number to a text file

I want to generate a zip file that will update an application with maven. The zip will be hosted on a server and I am using the assembly plugin to generate the

Java - set opacity in JPanel

Let's say I want to make the opacity of a JPanel %20 viewable? I don't mean setOpaque (draw or not draw) or setVisible (show or hide)... I mean make it see-thro

'dependencies.dependency.version' is missing error, but version is managed in parent

I have a maven project that contains several modules. In Eclipse (Juno, with m2e) it seems to compile fine. But when I do a maven install on one of the module

Is there a way to do deep comparison on a nested property with Hamcrest

I use hamcrest for most of my testing ,but have encountered a issue with it not being able to test a property one level down in the object graph .A snipped of m

How to make JTextField lose its focus?

Exacly as stated in the subject how to make JTextField lose its focus? Something like: jtf.setFocus(false)

Passing in a file name / directory into command line in Java

I'm trying to do some processing on whether the user enters a (1) file name, or (2) directory name into the command line. Anything else should throw an error.

Postman returns null when using POST (Spring Boot)

** Update Updated the input in Postman: { "firstName": "Thierry", "lastName": "Blossom", "dateOfBirth": "1981-01-20", "email": "thierry@gmai

CucumberException: Failed to instantiate class stepDefinitions When run tests

Please help. I think that there is a mistake when initializing the page public class AuthStepDefinitions { private final AuthPage authPage = new AuthPage();

Editable JComboBox: Determining whether enter is pressed while ignoring it in drop down selection?

I have a panel with a couple of text fields and an editable JComboBox used to perform a search. I want all of these to act as if I press the search button under

ClassCastException: android.app.Application cannot be cast to android.app.Activity

I have an activity class along with customlistadapter inside customlist adapter. I have a thread runouithread which give me error msg when i wrap it with ((Act

Make a JFormattedTextField behave like ATM input

I would like to know if there is anyway to make a JformattedTextField or jtextField behave like an atm money input. With that I mean you enter from the right to

Sending an unbidden 408 response from Netty on connection timeout

According to the specs an HTTP server should send a 408 if it hasn't received a request in a certain time. This is a bit unintuitive as it means you can send a

Cannot find findelementbyandroiduiautomator method for appium android driver

I am using android driver with mobileElement typecast, but I cannot find the findelementbyandroiduiautomator method in my list of methods. All the other methods

How do I produce just one message using Spring Cloud Stream w/o deprecated @Output, or turn off polling?

I am trying to publish just one message to Kafka, using Spring Cloud without any deprecated classes/methods or annotations. I would also like to be able to easi

SonnarQube's issue: change code to not construct the URL from user-controlled data

I facing a SonarQube bug and am not able to figure out whats the issue. SonnarQube's issue is, change this code to not construct the URL from user-controlled da

java.sql.SQLException: No database selected - why?

the last days I was trying to learn how to access mySQL databases via Java. I am able to load the driver and get a connection to the database ( at least I thin