Skip to content

Instantly share code, notes, and snippets.

View mentiflectax's full-sized avatar

Mentiflectax mentiflectax

View GitHub Profile
@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
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 / 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]
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 / config.yml
Created April 23, 2018 10:44
My DeepStream Configuration
# General
# Each server within a cluster needs a unique name. Set to UUID to have deepstream autogenerate a unique id
serverName: UUID
# Show the deepstream logo on startup (highly recommended)
showLogo: true
# Log messages with this level and above. Valid levels are DEBUG, INFO, WARN, ERROR, OFF
logLevel: INFO
# Directory where all plugins reside
libDir: /var/lib/deepstream
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@5.6.0
3 info using node@v8.11.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle deepstream.io@4.0.0-rc.5~prestart: deepstream.io@4.0.0-rc.5
6 info lifecycle deepstream.io@4.0.0-rc.5~start: deepstream.io@4.0.0-rc.5
7 verbose lifecycle deepstream.io@4.0.0-rc.5~start: unsafe-perm in lifecycle true
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.CommandLineRunner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.core.env.StandardEnvironment;
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<slf4j.version>1.7.25</slf4j.version>
# Oracle Workflow Process Definition
# dbdrv: exec fnd bin WFLOAD bin &phase=daa+52 checkfile:~PROD:~PATH:~FILE \
# dbdrv: &ui_apps 0 Y UPGRADE @~PROD:~PATH/~FILE
# $Header$
VERSION_MAJOR = "2"
VERSION_MINOR = "6"
LANGUAGE = "GERMAN"