Skip to content

Instantly share code, notes, and snippets.

View Biacode's full-sized avatar
:octocat:
Coding

Arthur Biacode

:octocat:
Coding
View GitHub Profile

Keybase proof

I hereby claim:

  • I am biacode on github.
  • I am biacode (https://keybase.io/biacode) on keybase.
  • I have a public key ASAZutsTd8XjyooFl6C2iH7jm1wUoq79ipo-NrbV64Qv7Qo

To claim this, I am signing this object:

Array.prototype.flatMap = function (lambda) {
return Array.prototype.concat.apply([], this.map(lambda));
};
var foo = [
[
[{"uuid": 1, "name": "name_1"}],
[{"uuid": 2, "name": "name_2"}],
[{"uuid": 3, "name": "name_3"}]
],
2017-03-15 14:42:02,121 ERROR [pool-5-thread-1] com.sfl.coolmonkey.reporting.service.logging.impl.ActivityLogServiceImpl.assertActivityLogNotClosedForUuid(ActivityLogServiceImpl.java:183) - Activity log with uuid - 07c9ea12-c64b-4fc6-bcea-c03d362aeb81 already closed
2017-03-15 14:42:02,123 ERROR [pool-5-thread-1] org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler.handleError(TaskUtils.java:95) - Unexpected error occurred in scheduled task.
com.sfl.coolmonkey.reporting.service.common.exception.ServicesRuntimeException: Activity log with uuid - 07c9ea12-c64b-4fc6-bcea-c03d362aeb81 already closed
at com.sfl.coolmonkey.reporting.service.logging.impl.ActivityLogServiceImpl.assertActivityLogNotClosedForUuid(ActivityLogServiceImpl.java:184)
at com.sfl.coolmonkey.reporting.service.logging.impl.ActivityLogServiceImpl.close(ActivityLogServiceImpl.java:113)
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
2017-03-15 14:58:26,349 ERROR [http-apr-8080-exec-2] com.sfl.coolmonkey.company.api.rest.resources.aspect.ResourceMethodLoggingAspect.afterThrowing(ResourceMethodLoggingAspect.java:52) - #InvitationResource.updateAlternativeEmail([com.sfl.coolmonkey.company.api.model.invitation.request.UpdateInvitationAlternativeEmailRequest@32d4218f[callCenterAdminUuid=73b9b78e-9d0f-407c-a2e6-b696313e955c,companyManagerUuid=8a9ad4df-7d78-413c-bac0-18c2c64be3b8,alternativeEmail=]]):
java.lang.IllegalArgumentException: Update invitation alternative email request alternative email should not be null
at org.springframework.util.Assert.hasText(Assert.java:168)
at com.sfl.coolmonkey.company.facade.invitation.impl.InvitationFacadeImpl.assertUpdateInvitationAlternativeEmailRequest(InvitationFacadeImpl.java:416)
at com.sfl.coolmonkey.company.facade.invitation.impl.InvitationFacadeImpl.updateAlternativeEmail(InvitationFacadeImpl.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodA
2017-02-15 06:46:44,487 ERROR [http-apr-8080-exec-6] com.sfl.coolmonkey.address.api.rest.resources.aspect.ResourceMethodLoggingAspect.afterThrowing(ResourceMethodLoggingAspect.java:51) - #FieldDefinitionResource.update([com.sfl.coolmonkey.address.api.model.fielddefinition.request.UpdateFieldDefinitionRequest@6d22cc9[companyUuid=6aa7d6e0-b158-421f-93ba-c41541b25dee,model=com.sfl.coolmonkey.address.api.model.fielddefinition.PullDownFieldDefinitionModel@3514f06[parentFieldDefinitionUuid=<null>,options=[com.sfl.coolmonkey.address.api.model.fielddefinition.aggregation.FieldOptionDefinitionModel@14255e80[uuid=101f8619-b49a-424c-a6ee-0b37b1039acd,optionName=Op eigen locatie. Datum van aanschaf: ,hasTextBox=true,parentFieldOptionUuid=<null>], com.sfl.coolmonkey.address.api.model.fielddefinition.aggregation.FieldOptionDefinitionModel@4cad3033[uuid=ae233c6d-47ba-4c06-b382-0c168c1a013f,optionName=In de cloud (vul leverancier in),hasTextBox=true,parentFieldOptionUuid=<null>], com.sfl.coolmonkey.address.api.model.fielddef
@Biacode
Biacode / Caused by hdd?
Created February 14, 2017 23:03
The read operation time out. Probably caused by HDD slowness
2017-02-14 22:50:32,302 ERROR [http-apr-8080-exec-1] com.sfl.coolmonkey.address.api.rest.resources.aspect.ResourceMethodLoggingAspect.afterThrowing(ResourceMethodLoggingAspect.java:51) - #AddressResource.reindexAddressesForEmailUuids([com.sfl.coolmonkey.address.api.model.address.request.ReindexAddressesForEmailUuidsRequest@3791a826[uuids=[bdcf1280-6889-4a6a-8e3f-b7c9fbb43c53]]]):
org.springframework.dao.DataAccessResourceFailureException: Read operation to server mongo:27017 failed on database coolmonkey; nested exception is com.mongodb.MongoException$Network: Read operation to server mongo:27017 failed on database coolmonkey
at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:73)
at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:2011)
at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1894)
at org.springframework.data.mongodb.
@Biacode
Biacode / Cronofy
Created February 14, 2017 12:13
Unexpected error occurred while trying to refresh cronofy access token
2017-02-14 00:00:10,103 ERROR [pool-4-thread-1] ?.?(?:?) - Unexpected error occurred in scheduled task.
javax.ws.rs.ProcessingException: java.net.UnknownHostException: api.cronofy.com
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:287)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
at org.glassfish.jersey.client.JerseyInvocation$3.call(JerseyInvocation.java:722)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:718)
@Biacode
Biacode / reportingms
Created February 14, 2017 12:09
Can not cancel qualified KPI
2017-02-14 11:24:33,921 ERROR [http-apr-8080-exec-6] ?.?(?:?) - #ReportingResource.cancelQualifiedKpi([com.sfl.coolmonkey.reporting.api.model.reporting.request.CancelQualifiedKpiRequest@44bdfd92[operatorUuid=ba85e147-b525-4160-9bcf-9f7896a82e35,addressUuid=b89d94d9-e893-4aba-baed-6ecd9abfc2ac]]):
com.sfl.coolmonkey.reporting.facade.common.exception.FacadeRuntimeException: Can not cancel qualified kpi for operator uuid - ba85e147-b525-4160-9bcf-9f7896a82e35 and address uuid - b89d94d9-e893-4aba-baed-6ecd9abfc2ac
at com.sfl.coolmonkey.reporting.facade.reporting.impl.ReportingFacadeImpl.cancelQualifiedKpi(ReportingFacadeImpl.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302
@Biacode
Biacode / addressms
Created February 14, 2017 12:07
Can not cancel qualified KPI
javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1002)
at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:859)
at org.glassfish.jersey.client.JerseyInvocation.access$600(JerseyInvocation.java:91)
at org.glassfish.jersey.client.JerseyInvocation$3.call(JerseyInvocation.java:709)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:705)
@Biacode
Biacode / counter.sh
Created December 8, 2016 07:38 — forked from jessex/counter.sh
Count all lines of code for java source files in current directory
find . -name '*.java' | xargs wc -l