This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootApplication | |
@EnableHystrix | |
public class PaymentApplication { | |
public static void main(String[] args) { | |
SpringApplication.run(PaymentApplication.class, args); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
@HystrixCommand | |
public String fetchPaymentToken(GenerateTokenParameterData generateTokenParameterData) { | |
… | |
… | |
return payunityTokenResponse.getId(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ERROR] 2017-08-19 09:20:57,545 unexpected exception occurred. [] [http-nio-8110-exec-1] | |
java.lang.reflect.UndeclaredThrowableException: null | |
at com.sun.proxy.$Proxy135.fetchPaymentToken(Unknown Source) | |
at xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(xxxxxxxxxxxxxxxxxxxxx.java:87) | |
at xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(xxxxxxxxxxxxxxxxxxxxxxxxxx.java:76) | |
at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source) | |
... | |
... | |
at java.lang.Thread.run(Thread.java:745) | |
Caused by: java.util.concurrent.TimeoutException: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"hystrix-xxxxxxxxxxxxxxxxxxServiceImpl-6" #155 daemon prio=5 os_prio=0 tid=0x00007fbb64506000 nid=0x7b03 runnable [0x00007fbbb85d3000] | |
java.lang.Thread.State: RUNNABLE | |
at java.net.SocketInputStream.socketRead0(Native Method) | |
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) | |
at java.net.SocketInputStream.read(SocketInputStream.java:171) | |
... | |
... | |
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) | |
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:652) | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -A INPUT -p tcp -m tcp -s 123.123.123.123 --tcp-flags PSH PSH --sport 443 -j DROP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rest: | |
connection: | |
connection-request-timeout: 30000 | |
connect-timeout: 30000 | |
read-timeout: 30000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class RestTemplateConfiguration { | |
private static final String CUSTOM_HTTP_REQUEST_FACTORY_BEAN_NAME = "customHttpRequestFactory"; | |
/** | |
* See https://stackoverflow.com/a/36991745/337621 | |
* @return | |
*/ | |
@Bean(CUSTOM_HTTP_REQUEST_FACTORY_BEAN_NAME) | |
@ConfigurationProperties(prefix = "rest.connection") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Prints: | |
" " | |
"fdsajfklsdjalkf" | |
" " | |
"safd" | |
" " | |
"safsdfasdf" | |
" " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package at.liptakg.lombokdemo; | |
public class POJO | |
{ | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package at.liptakg.lombokdemo; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
import lombok.EqualsAndHashCode; | |
@Data | |
@EqualsAndHashCode(callSuper=true, exclude="name") | |
@AllArgsConstructor | |
public class WrongEntityExample extends POJO{ |
OlderNewer