Quantcast
Channel: User AHungerArtist - Stack Overflow
Browsing latest articles
Browse All 38 View Live
↧

Comment by AHungerArtist on Storing a static variable in a temp variable

You are making temp reference your static chessboard. As such, they are essentially the same thing. You need to make a new chessboard and populate. String temp[][]=chessBoard;does NOT copy the values...

View Article


Comment by AHungerArtist on How do I Make Injected Mocks Equal to Null?

If this is as simple as the example here, you could just create a new Foo in the junit and run it. If, as I imagine, it's much more complex with other dependencies that are needed to get to the point...

View Article

Comment by AHungerArtist on Queue broker that implements a queue of queues

@GoloRoden I've yet to solve it but had to move on to other things. If you should happen to figure out a solution, please come back here and provide some insight.

View Article

Comment by AHungerArtist on Jmeter Maven Plugin not starting remote nodes

Wow, I had no idea about this option. I'm still a little confused as to how it would work, though. Wouldn't it need the node credentials to actually log on to the box to start the remote server?

View Article

Comment by AHungerArtist on maven antrun ssh or scp hides the output

Thanks for mentioning this. The other comment had it but I kind of glossed over the snippet in there because the versions were mentioned above. This comment called out that change directly.

View Article


Comment by AHungerArtist on Java in Visual Studio Code

Just an FYI, Java is not an abbreviation for anything. It's just a word. No need to capitalize it all.

View Article

Comment by AHungerArtist on Spring Boot Hibernate not picking up...

Sigh. Thank you. I must have been blind to the difference.

View Article

Comment by AHungerArtist on IMB PCF agent returns error while inquiring...

This post was really useful for me for understanding some of the nature of the PCFMessageAgent. I was wondering if you could point to any IBM documentation that details the internal behavior of the...

View Article


Comment by AHungerArtist on Mapping wild card Function interface to a typed...

@Thiyagu So, right now, those fields can either be a String or Long, but might eventually become more types. I think I want to have a Function<Context, Optional<?>> and transform it to...

View Article


Comment by AHungerArtist on How to develop/test for a system that must run...

It's more than just files, though, it's a running application on Linux that I can't run on Windows.

View Article

How to go from XML Spring scheduling configuration to annotation/code...

I am trying to convert the following Spring task xml configuration to a purely code/annotation based version:<task:executor id="xyz.executor" pool-size="${xyz.job.executor.pool.size:1-40}"...

View Article

Answer by AHungerArtist for Long vs BigInteger

BigInteger is capable of holding far bigger numbers than Long. BigInteger seems capable of holding (2 ^ 32) ^ Integer.MAX_VALUE, though that depends on the implementation (and, even if truly unbounded...

View Article

Answer by AHungerArtist for Spring RestTemplate Behavior when handling...

This should now be fixed in Spring 3.1 RC1.https://jira.spring.io/browse/SPR-7911

View Article


Is it possible to replace the entire Repository Url with a parameterized...

In Hudson/Jenkins, is it possible to replace the entire string in the Subversion Module Repository URL with a String parameter? I don't want to just replace just the version or anything like that, I...

View Article

Possible to disable an SQL execution plan in Oracle?

I have a situation where Oracle creates multiple execution plans for a given query. Most of the time, it chooses a certain one that performs quite well. Sometimes, however, it chooses one that contains...

View Article


Force SQL subquery to be run first

I have a (simplified) query like so:SELECT DISTINCT this_.person_id AS y0_ FROM coded_entity this_ WHERE this_.code = ? AND this_.tenant_id = ? AND this_.person_id IN (SELECT person_id FROM person that...

View Article

Adding windows command line prompt right click option to Eclipse

I was wondering if anyone knew of a plugin or some other capability that would allow me to right click on a project in Eclipse and have an option for a Windows command line prompt to appear from the...

View Article


Alter table on global temporary table (preserve to delete)

Is it possible to change a global temporary table in Oracle from PRESERVE ROWS to DELETE ROWS? I have tried the following command and I get a syntax error. If it is possible, what is the correct...

View Article

SQL Order by using the values from two different columns

Suppose I have a table NAME with the columns PART_TYPE and VALUE. Each type can have multiple types like FAMILY, GIVEN, PREFIX, etc. What I would like to do is write SQL to get all the names but have...

View Article

Answer by AHungerArtist for Creating a spring boot app and can't get...

Try changing @Value("${inputDirectory}") to @Value("${atb:inputDirectory}") or @Value("${atb.inputDirectory}").

View Article

Make Hibernate discriminator value use bind variable instead of literal

When using the @DiscriminatorColumn on a class and @DiscriminatorValue on subclasses, the SQL that Hibernate generates uses the discriminator value as a literal for the clause involving the...

View Article


Answer by AHungerArtist for Access issues within the same package?

You have to understand the scope of your objects. Just because you created a Player and Room in your Main class, doesn't mean instances of those classes have access to each other by default. For...

View Article


Java Collections automatic reallocation when size is reached

I'm not sure if I'm using the correct terms, but I am curious how it's determined how much to increase the size of a Collection in Java when it gets full? I've tried searching but I'm not really coming...

View Article

Answer by AHungerArtist for MySQL InnoDB "SELECT FOR UPDATE" - SKIP LOCKED...

This appears to now exist in MySQL starting in 8.0.1:https://mysqlserverteam.com/mysql-8-0-1-using-skip-locked-and-nowait-to-handle-hot-rows/Starting with MySQL 8.0.1 we are introducing the SKIP LOCKED...

View Article

Using RestTemplate, how to send the request to a proxy first so I can use my...

I have a web service running on my dev box implemented using Spring-MVC 3.0. I have various JUnits that test against that service using RestTemplate. What I would like to do is have JMeter pick up...

View Article


Answer by AHungerArtist for Annotation Configuration Replacement for...

For Spring 3 & 4:One way to do this is to have your configuration class extend WebMvcConfigurerAdapter, then override the following method as such:@Overridepublic void addResourceHandlers(final...

View Article

How to intercept static methods in Spring?

Subject line basically says it all. I have a static method I want to intercept so that around advice can be applied to it. I can get this to work with any non-static methods but I'm unsure how to allow...

View Article

Answer by AHungerArtist for How do I Make Injected Mocks Equal to Null?

If this is as simple as the example here, you could just create a new Foo (ie, actual new Foo() instantiation) in the junit and run it. If, as I imagine, it's much more complex with other dependencies...

View Article

Jmeter Maven Plugin not starting remote nodes

I am trying to run a simple distributed jmeter test with the jmeter-maven-plugin but I cannot get the remote nodes to be started by the plugin. If I manually start jmeter-server on each node, it will...

View Article



Answer by AHungerArtist for JMeter can't read custom search_paths directory

The answer was simple. It could not read the directory because it could not find it because the value I provided it wasn't correct.search_paths=../lib/ext/customIt needed that look back to correctly...

View Article

JMeter can't read custom search_paths directory

I want JMeter to find a jar in lib/ext/custom. In my jmeter.properties:search_paths=lib/ext/customWhen I run the test, I get this output:2019-06-25 10:21:54,792 INFO o.a.j.JMeter:...

View Article

How to test constructor of a class that has a @PostConstruct method using...

If I have a class with a @PostConstruct method, how can I test its constructor and thus its @PostConstruct method using JUnit and Spring? I can't simply use new ClassName(param, param) because then...

View Article

Spring RestTemplate Behavior when handling responses with a status of NO_CONTENT

Okay, I have a class NamedSystems, that has as its only field a Set of NamedSystem. I have a method to find NamedSystems by certain criteria. That's not really important. When it gets results,...

View Article


Spring Boot Hibernate not picking up use-new-id-generator-mappings property

I'm upgrading my project to Spring Boot 2.1.18 that uses Hibernate 5.3.18.Previously, my entity looked like thus and would use the SequenceHiLoGenerator:@Entity@Table(name =...

View Article

Creating a Hibernate Criteria that can filter by referenced entity

I have an entity (PersonQuestionsEntity) that has a PersonEntity and QuestionEntity as its primary key. I use a composite key to reflect this relationship.Now, I want to create a Criteria object that...

View Article

Unable to log in as new created user in Oracle 11g

I recently made a new tablespace and associated a user with it (sonar). Currently, a copy and paste of the user profile looks like this:Name SONARProfile DEFAULTAuthentication PasswordDefault...

View Article


Average Inter-Keypress time when typing

I have tried to google for answers to this, but perhaps there isn't widely available research or perhaps I'm not using the right terms.Basically, I would like to have some idea as to the average time...

View Article

Browsing latest articles
Browse All 38 View Live