Skip to content

Instantly share code, notes, and snippets.

View mentiflectax's full-sized avatar

Mentiflectax mentiflectax

View GitHub Profile
protected <T> Object readWithMessageConverters(HttpInputMessage inputMessage, MethodParameter param,
Type targetType) throws IOException, HttpMediaTypeNotSupportedException, HttpMessageNotReadableException {
MediaType contentType;
boolean noContentType = false;
try {
contentType = inputMessage.getHeaders().getContentType();
}
catch (InvalidMediaTypeException ex) {
throw new HttpMediaTypeNotSupportedException(ex.getMessage());
@mentiflectax
mentiflectax / gist:288a8f4d53d6e8254af1ae96ae5713cc
Created August 7, 2017 19:18
minimal-react-boot-project output
C:\usr\dp\dev\minimal-react-boot-project>mvn clean spring-boot:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building minimal-react-boot-project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ minimal-react-boot-project ---
[INFO] Deleting C:\usr\dp\dev\minimal-react-boot-project\target
[INFO]
Error:Kotlin: [Internal Error] org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression at (60,19) in E:/altruix-is/src/main/kotlin/cc/altruix/is1/capsulecrm/CapsuleCrmSubsystem.kt:
client.execute(req)
at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.logOrThrowException(ExpressionTypingVisitorDispatcher.java:257)
at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.access$200(ExpressionTypingVisitorDispatcher.java:48)
at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher$1.invoke(ExpressionTypingVisitorDispatcher.java:227)
at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher$1.invoke(ExpressionTypingVisitorDispatcher.java:172)
at org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:92)
at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:172)
at org.jetbrains.kotlin.types.expressions.Ex
@mentiflectax
mentiflectax / CapsuleCrmSubsystem.kt
Created March 3, 2017 06:04
CapsuleCrmSubsystem.kt
package com.mycompany.myproduct.capsulecrm
import com.mycompany.myproduct.telegram.cmd.bp1add.Bp1CompanyData
import com.mycompany.myproduct.telegram.cmd.bp1add.ContactDataType
import com.mycompany.myproduct.validation.FailableOperationResult
import com.mycompany.myproduct.validation.ValidationResult
import com.beust.klaxon.JsonObject
import com.beust.klaxon.array
import com.beust.klaxon.long
import com.beust.klaxon.string