Skip to content

Instantly share code, notes, and snippets.

View ptahchiev's full-sized avatar

Petar Tahchiev ptahchiev

View GitHub Profile
2018-11-24 18:16:47,982 com.nemesis.platform.core.mapper.catalog.SyncMappingContext [platform-batch-1] ERROR: org.hibernate.exception.ConstraintViolationException: could not execute batch
javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute batch
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:149)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:157)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:164)
at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1443)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1423)
at sun.reflect.GeneratedMethodAccessor563.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
This file has been truncated, but you can view the full file.
MERGE com.nemesis.platform.core.entity.media.MediaEntity ,code[id] ,altText[locale=en] ,fileName[required;translator=media] ,mediaContainer[default=default;attr=code] ,mediaFormat[attr=code] ,categories[default=samplestore-b2c-content;split=|;attr=code
[ERROR] testMultiCheckoutStepConfirmationValid(com.samplestore.storefront.controller.commerce.checkout.MultiStepCheckoutControllerIntegrationTest) Time elapsed: 2.689 s <<< ERROR!
org.springframework.web.util.NestedServletException:
Request processing failed; nested exception is CurrencyConversionException [base=EUR, term=USD, conversionContext=null]: Cannot convert EUR into USD: All delegate prov iders failed to deliver rate, providers=[org.javamoney.moneta.internal.convert.IdentityRateProvider@546f679c, org.javamoney.moneta.internal.convert.ECBCurrentRateProvider{ context: ProviderContext (
{rateTypes=[DEFERRED], providerDescription=European Central Bank, days=1, provider=ECB})}, org.javamoney.moneta.internal.convert.IMFRateProvider{ context: ProviderContext (
{rateTypes=[DEFERRED], providerDescription=International Monetary Fond, days=1, provider=IMF})}, org.javamoney.moneta.internal.convert.IMFHistoricRateProvider{ context: ProviderContext (
{rateTypes=[HISTORIC], providerDescription=Historic Internati
@ptahchiev
ptahchiev / gist:6438a1137d48d3c427f0666dfcb287b4
Created May 18, 2018 20:37
cache-manager-delegate-toggle-region
@WriteOperation
public void toggleCache(@Selector String cache, @Nullable String cacheManager) {
NemesisCacheEntry entry = extractUniqueCacheEntry(cache, getCacheEntries((name) -> name.equals(cache), safeEqual(cacheManager)));
toggleCache(entry);
}
private NemesisCacheEntry extractUniqueCacheEntry(String cache, List<NemesisCacheEntry> entries) {
if (entries.size() > 1) {
throw new NonUniqueCacheException(cache, entries.stream().map(NemesisCacheEntry::getCacheManager).distinct().collect(Collectors.toList()));
}
@ptahchiev
ptahchiev / gist:b640639e0126be6d2451bddd710bbff4
Created May 10, 2018 07:24
maven-jaxb2-plugin on java9 branch
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T22:39:06+03:00)
Maven home: /usr/share/maven/apache-maven-3.5.0
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-119-generic", arch: "amd64", family: "unix"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core
[DEBUG] Imported: javax.enterprise.util.* < plexus.core
petar@petar-XPS-15-9550:~/workspace/demo$ mvn spring-boot:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run (default-cli) > test-compile @ demo >>>
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ demo ---
petar@petar-XPS-15-9550:~/workspace/spring-framework/spring-context$ gradle install
Starting a Gradle Daemon (subsequent builds will be faster)
Generating JAR file 'gradle-api-4.1.jar'
Download https://repo.spring.io/plugins-release/org/jetbrains/dokka/dokka-gradle-plugin/0.9.16/dokka-gradle-plugin-0.9.16.pom
> Configure project :
POM relocation to an other version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to xml-apis:xml-apis:1.0.b2.
Please update your dependency to directly use the correct version 'xml-apis:xml-apis:1.0.b2'.
Resolution will only pick dependencies of the relocated element. Artifacts and other metadata will be ignored.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Samplestore Application 2.0.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repository.nemesis.io/artifactory/libs-release/org/webjars/bower/jquery/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/org/webjars/bower/jquery/maven-metadata.xml
Downloading: https://repository.nemesis.io/artifactory/libs-snapshot/org/webjars/bower/jquery/maven-metadata.xml
Downloading: https://repository.nemesis.io/artifactory/libs-snapshot/org/webjars/bower/jquery/maven-metadata.xml
Downloaded: http://repo1.maven.org/maven2/org/webjars/bower/jquery/maven-metadata.xml (1.7 kB at 2.7 kB/s)
petar@petar-XPS-15-9550:~/workspace/nemesis-archetype$ redis-cli
127.0.0.1:6379> monitor
OK
1513269659.631604 [0 127.0.0.1:36386] "PING"
1513269660.019549 [0 127.0.0.1:36364] "SMEMBERS" "spring:session:expirations:1513269660000"
1513269660.033396 [0 127.0.0.1:36364] "DEL" "spring:session:expirations:1513269660000"
petar@petar-XPS-15-9550:~/workspace/nemesis-archetype$
2017-12-14 18:41:00,016 io.lettuce.core.protocol.DefaultEndpoint [defaultTaskScheduler-1] DEBUG: [channel=0x173e6175, /127.0.0.1:36364 -> localhost/127.0.0.1:6379, epid=0x1] write() writeAndFlush command AsyncCommand [type=SMEMBERS, output=ValueSetOutput [output=[], error='null'], commandType=io.lettuce.core.protocol.Command]
2017-12-14 18:41:00,016 io.lettuce.core.protocol.DefaultEndpoint [defaultTaskScheduler-1] DEBUG: [channel=0x173e6175, /127.0.0.1:36364 -> localhost/127.0.0.1:6379, epid=0x1] write() done
2017-12-14 18:41:00,017 io.lettuce.core.protocol.CommandHandler [lettuce-nioEventLoop-4-1] DEBUG: [channel=0x173e6175, /127.0.0.1:36364 -> localhost/127.0.0.1:6379, chid=0x1] write(ctx, AsyncCommand [type=SMEMBERS, output=ValueSetOutput [output=[], error='null'], commandType=io.lettuce.core.protocol.Command], promise)
2017-12-14 18:41:00,018 io.lettuce.core.protocol.CommandEncoder [lettuce-nioEventLoop-4-1] DEBUG: [channel=0x173e6175, /127.0.0.1:36364 -> localhost/127.0.0.1:6379] writing command AsyncCom