Skip to content

Instantly share code, notes, and snippets.

View hferentschik's full-sized avatar

Hardy Ferentschik hferentschik

View GitHub Profile
Running TestSuite
Tests run: 1048, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 41.127 sec <<< FAILURE! - in TestSuite
testIsValid(org.hibernate.validator.test.internal.constraintvalidators.bv.future.FutureValidatorForOffsetTimeTest) Time elapsed: 0.027 sec <<< FAILURE!
java.lang.AssertionError: expected [true] but found [false]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertTrue(Assert.java:42)
at org.testng.Assert.assertTrue(Assert.java:52)
at org.hibernate.validator.test.internal.constraintvalidators.bv.future.FutureValidatorForOffsetTimeTest.testIsValid(FutureValidatorForOffsetTimeTest.java:51)
@hferentschik
hferentschik / Foo
Last active August 29, 2015 14:04
Type annotations and Hibernate Validator
public class Foo {
@Valid // !? needed or not? Atm this is needed to trigger iteration
private List<@Email String> myEmailList; // that's the case we should primarily address
// ...
}
[ERROR] my-rules:PublicMethodsMayNotExposeInternalTypes: API/SPI methods must not expose internal types.
[ERROR] method=org.hibernate.search.engine.spi.SearchFactoryImplementor#org.hibernate.search.engine.impl.FilterDef getFilterDefinition(java.lang.String)
[ERROR] method=org.hibernate.search.engine.spi.SearchFactoryImplementor#org.hibernate.search.indexes.impl.IndexManagerHolder getIndexManagerHolder()
[ERROR] method=org.hibernate.search.engine.spi.SearchFactoryImplementor#org.hibernate.search.backend.impl.batch.BatchBackend makeBatchBackend(org.hibernate.search.batchindexing.MassIndexerProgressMonitor)
[ERROR] method=org.hibernate.search.engine.spi.EntityIndexBinding#org.hibernate.search.query.collector.impl.FieldCacheCollectorFactory getIdFieldCacheCollectionFactory()
[ERROR] method=org.hibernate.search.engine.spi.DocumentBuilderIndexedEntity#org.hibernate.search.query.collector.impl.FieldCacheCollectorFactory getIdFieldCacheCollectionFactory()
[ERROR] method=org.hibernate.search.engine.spi.Abs
After some time in the making, we are happy to announce the first Hibernate Validator release of
the 5.2 series - 5.2.0.Alpha1.
This release focuses mainly on Java 8 support, but we will get to this in a bit.
First a big thank you to [Khalid Alqinyah=>https://github.com/khalidq] who, as part of a
[Google Summer of Code=>https://www.google-melange.com/gsoc/homepage/google/gsoc2014] project,
implemented many of these new features.
So what's in it for you?
404 - GroupItemNotFoundException
Path /org/hibernate/hibernate-search-engine/5.0.0.Beta2/ not found in group repository "Public JBoss Repository Group" [id=public-jboss].
org.sonatype.nexus.proxy.repository.GroupItemNotFoundException: Path /org/hibernate/hibernate-search-engine/5.0.0.Beta2/ not found in group repository "Public JBoss Repository Group" [id=public-jboss].
at org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:301)
at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:154)
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:765)
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:608)
at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:155)
import java.util.List;
import java.util.Map;
import acme.Film;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
cdk.vm.provision :shell, inline: <<-SHELL
/opt/adb/openshift/add_insecure_registry -ip #{REGISTRY_HOST}
systemctl enable openshift
systemctl start openshift
# https://github.com/projectatomic/adb-utils/issues/32
export KUBECONFIG=/var/lib/openshift/openshift.local.config/master/admin.kubeconfig
oadm policy add-cluster-role-to-user cluster-admin admin
Bringing machine 'cdk' up with 'virtualbox' provider...
==> cdk: Importing base box 'cdk_v2'...
Progress: 10%
Progress: 20%
Progress: 30%
Progress: 40%
Progress: 50%
Progress: 90%
==> cdk: Matching MAC address for NAT networking...
==> cdk: Setting the name of the VM: openshift.cdk-2-ose-3-2
@hferentschik
hferentschik / Vagrantfile
Created March 22, 2016 14:16
Default CDK Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# The private network IP of the VM. You will use this IP to connect to OpenShift.
PUBLIC_ADDRESS="10.1.2.2"
# Number of virtualized CPUs
VM_CPU = ENV['VM_CPU'] || 2
# Amount of available RAM
@hferentschik
hferentschik / gist:fe9dbb3bc28f56940f165061befab6b2
Created March 31, 2016 11:48
sftp-server not found error
==> cdk: Mounting SSHFS shared folders...
==> cdk: Mounting folder via SSHFS: C:/DeveloperPlatform/cygwin/home/hardy => C:DeveloperPlatformcygwinhomehardy
==> cdk: Checking Mount..
Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..