web-devel / cuba-component-data-generator

Data generator add-on for CUBA applications
Apache License 2.0
4 stars 1 forks source link

Error initializing application in uberJar #8

Open web-devel opened 4 years ago

web-devel commented 4 years ago
exception 2020-02-14 00:44:53.688 ERROR [main] com.haulmont.cuba.core.sys.AbstractWebAppContextLoader - Error initializing application org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'datagen_FakerService' defined in URL [jar:file:/home/vlad/work/astro/astro-app/build/distributions/uberJar/app.jar!/LIB-INF/app-core/WEB-INF/classes/com/haulmont/addon/datagen/service/FakerServiceBean.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.haulmont.addon.datagen.service.FakerServiceBean]: Constructor threw exception; nested exception is java.net.MalformedURLException: no !/ in spec
web-devel commented 4 years ago

It seems the problem is on the Faker's side. As a temporary solution - faker is safely instantiated (and will not work in uberJar)