Skip to content

Instantly share code, notes, and snippets.

SEVERE: Unable to invoke no-args constructor for class org.eclipse.lsp4j.CompletionItemInsertTextModeSupportCapabilities. Registering an InstanceCreator with Gson for this type may fix this problem.
java.lang.RuntimeException: Unable to invoke no-args constructor for class org.eclipse.lsp4j.CompletionItemInsertTextModeSupportCapabilities. Registering an InstanceCreator with Gson for this type may fix this problem.
at com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:228)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:212)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFacto
@jmayaalv
jmayaalv / pathom3 batch error
Last active May 12, 2021 14:49
batch reosolvers bug?
(def db {:a {1 {:a/id 1 :a/code "a-1"}
2 {:a/id 2 :a/code "a-2"}}
:f {1 {:f/id 1 :f/code "f-1"}
2 {:f/id 2 :f/code "f-2"}}
:b {1 [{:f/id 1}]}
:c {1 [{:f/id 2}]}})
(pco/defresolver a [input]
{::pco/input [:a/id]
::pco/output [:a/id :a/code]
(def cofx-now
"injects current time to context"
{:enter (fn [ctx]
(assoc-in ctx [:request :now] (java.util.Date.)))})
;; interceptor, in enter update value in `[:request :x]` with `inc`
(def inc-x-interceptor
{:enter (fn [ctx]
(update-in ctx [:request :x] inc))})
@jmayaalv
jmayaalv / gist:c3ddcbec479d492284b5e90bd24b8f7e
Created June 21, 2018 12:00
Avoid problems with Fira on mac
(when (window-system)
(set-default-font "Fira Code"))
(let ((alist '((33 . ".\\(?:\\(?:==\\|!!\\)\\|[!=]\\)")
(35 . ".\\(?:###\\|##\\|_(\\|[#(?[_{]\\)")
(36 . ".\\(?:>\\)")
(37 . ".\\(?:\\(?:%%\\)\\|%\\)")
(38 . ".\\(?:\\(?:&&\\)\\|&\\)")
(42 . ".\\(?:\\(?:\\*\\*/\\)\\|\\(?:\\*[*/]\\)\\|[*/>]\\)")
(43 . ".\\(?:\\(?:\\+\\+\\)\\|[+>]\\)")
(45 . ".\\(?:\\(?:-[>-]\\|<<\\|>>\\)\\|[<>}~-]\\)")
testNotSatisfiedNoPremiumReceivedSmallContrib(ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifferenceTest) Time elapsed: 0.012 sec <<< ERROR!
java.lang.NullPointerException: null
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifference.invalidDelta(AcctInvestmentPremiumReceivedMaxDifference.java:74)
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifference.isSatisfiedBy(AcctInvestmentPremiumReceivedMaxDifference.java:49)
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifferenceTest.testNotSatisfiedNoPremiumReceivedSmallContrib(AcctInvestmentPremiumReceivedMaxDifferenceTest.java:63)
testNotSatisfiedNoPremiumReceived(ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifferenceTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NullPointerException: null
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifference.invalidDelta(AcctInvestmentPremiumReceivedMaxDifference.java:7
@jmayaalv
jmayaalv / POL_870_20151020_175252176.xml
Created November 3, 2015 22:48
Production POL file for Index Product
<MSG>
<HEADER>
<FILE_NAME>POL_870_20151020_175252176.xml</FILE_NAME>
<FILE_TYPE>POLICY</FILE_TYPE>
<TENANT>1697</TENANT>
</HEADER>
<BODY>
<POLICY>
<PROPOSAL_NO>I100000548</PROPOSAL_NO>
<PLAN_NO>100</PLAN_NO>
@jmayaalv
jmayaalv / IGasOrderImporterImpl.java
Created November 3, 2015 22:39
Import Open Account changes
private void importOpenAccountCommand(String xml) {
//load product code.
//find strategy - Ex: TransactionFactoryStrategy
// execute import command = stratgegy.import(xml)
PolicyXmlOrder xmlOrder = new PolicyXmlOrder(xml);
OpenAccountCommand command = xmlOrder.command();
this.tradingApplicationServices.openAccount(command);
}
@jmayaalv
jmayaalv / imspush.sh
Last active October 21, 2015 20:04
Stg Prod Relese
stg:prod)
SRCDIR=/Users/jmaya/Documents/workspace/release/st_george/prod/beluca
DESTDIR=stage-ims
DESTSERVER=stgweb1
IMSDIR=/usr/local/staging
cd $SRCDIR
git co st_george
git pull origin st_george
mvn clean install -DskipTests=true
cd ims-web
[color]
ui = true
[alias]
ci = commit
co = checkout
d = diff
di = diff
br = branch
st = status
l = log --stat
new ExampleMessageEvent("ExampleMessageEvent " + System.currentTimeMillis(), (e) -> System.out.println("Response " + e.getResponse());