Can not configure deployment settings

Hi community,

I watch a webinar:
https://www.cuba-platform.com/webinars/deploying-applications-paas-docker

and there, I have to configure the DEPLOYMENT SETTINGS for Uber Jar. I need to enable: Build Uber JAR and Generate Logback, configuration file and a custom jetty environment file. NOW, when I cklick on okay, I get this problem: Field ‘null’ is required.

How can I solve it? Does anyone have an idea? @tsarev

FAIL

Here is an image of the problem. Maybe it is a bug of cuba?
This error comes, when I want to “save” this configurations.

Hello, @spamhater.alex

Yes, it is a bug. Please clarify what version of CUBA Studio do you use?

Regards,
Daniil.

On my desktop, cuba application is 6.7,

but I think maybe its not a bug.

Because in studio.log I find this:

2018-03-28 11:50:45,427 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 3.4.1
2018-03-28 11:50:48,693 INFO  [com.haulmont.studio.backend.p.d] Restoring saved base project group platform
2018-03-28 11:50:48,803 INFO  [com.haulmont.studio.backend.u] Opening Project{name='one_usecase'}
2018-03-28 11:50:48,841 INFO  [com.haulmont.studio.backend.e.c.e] JDBC driver not found: oracle.jdbc.OracleDriver
2018-03-28 11:50:48,853 INFO  [com.haulmont.studio.backend.p.d] Restoring saved base project group platform
2018-03-28 11:50:48,883 INFO  [com.haulmont.studio.backend.z.c] Successful file tree registration
2018-03-28 11:50:49,032 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 3.4.1
2018-03-28 11:51:00,159 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 3.4.1
2018-03-28 11:51:00,167 INFO  [com.haulmont.studio.backend.z.c] Successful file tree registration
2018-03-28 12:13:15,860 INFO  [com.haulmont.studio.backend.p.d] Restoring saved base project group platform
2018-03-28 12:24:40,878 INFO  [com.haulmont.studio.backend.p.d] Restoring saved base project group platform
2018-03-28 12:27:16,994 INFO  [com.haulmont.studio.backend.p.d] Restoring saved base project group platform
2018-03-28 12:27:17,172 INFO  [com.haulmont.studio.backend.u] Opening Project{name='one_usecase'}
2018-03-28 12:27:17,211 INFO  [com.haulmont.studio.backend.e.c.e] JDBC driver not found: oracle.jdbc.OracleDriver
2018-03-28 12:27:17,232 INFO  [com.haulmont.studio.backend.p.d] Restoring saved base project group platform
2018-03-28 12:27:17,238 WARN  [com.haulmont.studio.common.m] Unable initialize studio config(http://files.cuba-platform.com/cuba/studio/studio-config.json) when the 'Offline' mode is on
2018-03-28 12:27:17,238 WARN  [com.haulmont.studio.backend.p.i] Unable to read published platform versions. Url: 'http://files.cuba-platform.com/cuba/studio/studio-config.json'
2018-03-28 12:27:17,290 INFO  [com.haulmont.studio.backend.z.c] Successful file tree registration
2018-03-28 12:27:17,631 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 3.4.1
2018-03-28 12:27:37,061 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 3.4.1
2018-03-28 12:27:37,115 INFO  [com.haulmont.studio.backend.z.c] Successful file tree registration
2018-03-28 12:28:44,806 WARN  [com.vaadin.server.communication.ServerRpcHandler] Ignoring RPC call for disabled connector com.haulmont.studio.ui.n.a.b, caption=App properties (Groovy expression, must return Map) 

Could it be, because of the SSL connection to database, when the file for jetty will be created? Maybe there will an error appear?

There is no something wrong that is related to CUBA Studio.

But the Field "null" is required message is a bug. I’ve created a ticket about it: YouTrack.

Okay, do you know, how the build.gradle file will look for this example? Because in this git, there is only the base of the source code.

It would be nice, if I could know it, so that I can continue doing the tutorial :stuck_out_tongue:

Because I need the task, to create UberJar

Have you tried to download the latest version of CUBA Studio?

Yes, I download the latest version about 1 week ago, and I try it with it too. The difference was, that I had “connection” parameters for the jetty-file for the database, which I did not have before. But the error is same. I can try it again of course.

I tried with cuba 6.8.2, and this was the log:

 2018-03-28 12:50:16,471 INFO [com.haulmont.studio.ui.app.App] Stop jetty server
    2018-03-28 12:51:01,664 INFO [com.haulmont.studio.server.d] CUBA Studio v.6.8.2 built on 2018-02-22 16:13:07
    2018-03-28 12:51:06,119 INFO [org.atmosphere.util.IOUtils] META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
    2018-03-28 12:51:06,214 INFO [org.atmosphere.util.IOUtils] META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
    2018-03-28 12:51:15,646 INFO [com.haulmont.studio.ui.app.App] Calling Electron UI API: [checkForUpdates]
    2018-03-28 12:51:16,679 INFO [com.haulmont.studio.backend.o.d] Restoring saved base project group platform
    2018-03-28 12:51:19,625 INFO [com.haulmont.studio.backend.o.d] Restoring saved base project group platform
    2018-03-28 12:51:20,075 INFO [com.haulmont.studio.backend.u] Opening Project{name='first_usecase'}
    2018-03-28 12:51:20,876 INFO [com.haulmont.studio.backend.o.d] Restoring saved base project group platform
    2018-03-28 12:51:20,889 WARN [com.haulmont.studio.common.m] Unable initialize studio config(http://files.cuba-platform.com/cuba/studio/studio-config.json) when the 'Offline' mode is on
    2018-03-28 12:51:20,890 WARN [com.haulmont.studio.backend.o.j] Unable to read published platform versions. Url: 'http://files.cuba-platform.com/cuba/studio/studio-config.json'
    2018-03-28 12:51:21,099 INFO [com.haulmont.studio.backend.ed.ddl.l] JDBC driver not found: oracle.jdbc.OracleDriver
    2018-03-28 12:51:21,223 INFO [com.haulmont.studio.backend.y.c] Successful file tree registration
    2018-03-28 12:51:34,817 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 4.3.1
    2018-03-28 12:51:34,921 DEBUG [org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader] Using tooling provider from Gradle installation 'C:\Gradle\gradle-4.3.1'
    2018-03-28 12:51:34,927 DEBUG [org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader] Using tooling provider classpath: [C:\Gradle\gradle-4.3.1\lib\annotations-13.0.jar, C:\Gradle\gradle-4.3.1\lib\ant-1.9.6.jar, C:\Gradle\gradle-4.3.1\lib\ant-launcher-1.9.6.jar, C:\Gradle\gradle-4.3.1\lib\asm-debug-all-6.0_ALPHA.jar, C:\Gradle\gradle-4.3.1\lib\commons-collections-3.2.2.jar, C:\Gradle\gradle-4.3.1\lib\commons-compress-1.14.jar, C:\Gradle\gradle-4.3.1\lib\commons-io-2.2.jar, C:\Gradle\gradle-4.3.1\lib\commons-lang-2.6.jar, C:\Gradle\gradle-4.3.1\lib\gradle-base-services-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-base-services-groovy-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-build-cache-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-build-option-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-cli-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-core-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-core-api-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-docs-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-installation-beacon-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-jvm-services-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-kotlin-dsl-0.12.3.jar, C:\Gradle\gradle-4.3.1\lib\gradle-kotlin-dsl-tooling-builders-0.12.3.jar, C:\Gradle\gradle-4.3.1\lib\gradle-kotlin-dsl-tooling-models-0.12.3.jar, C:\Gradle\gradle-4.3.1\lib\gradle-launcher-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-logging-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-messaging-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-model-core-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-model-groovy-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-native-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-persistent-cache-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-process-services-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-resources-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-runtime-api-info-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-tooling-api-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\gradle-wrapper-4.3.1.jar, C:\Gradle\gradle-4.3.1\lib\groovy-all-2.4.12.jar, C:\Gradle\gradle-4.3.1\lib\guava-jdk5-17.0.jar, C:\Gradle\gradle-4.3.1\lib\jansi-1.14.jar, C:\Gradle\gradle-4.3.1\lib\javax.inject-1.jar, C:\Gradle\gradle-4.3.1\lib\jcip-annotations-1.0.jar, C:\Gradle\gradle-4.3.1\lib\jcl-over-slf4j-1.7.10.jar, C:\Gradle\gradle-4.3.1\lib\jsr305-1.3.9.jar, C:\Gradle\gradle-4.3.1\lib\jul-to-slf4j-1.7.10.jar, C:\Gradle\gradle-4.3.1\lib\kotlin-compiler-embeddable-1.1.51.jar, C:\Gradle\gradle-4.3.1\lib\kotlin-reflect-1.1.51.jar, C:\Gradle\gradle-4.3.1\lib\kotlin-sam-with-receiver-compiler-plugin-1.1.51.jar, C:\Gradle\gradle-4.3.1\lib\kotlin-stdlib-1.1.51.jar, C:\Gradle\gradle-4.3.1\lib\kryo-2.20.jar, C:\Gradle\gradle-4.3.1\lib\log4j-over-slf4j-1.7.10.jar, C:\Gradle\gradle-4.3.1\lib\minlog-1.2.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-freebsd-amd64-libcpp-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-freebsd-amd64-libstdcpp-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-freebsd-i386-libcpp-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-freebsd-i386-libstdcpp-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-linux-amd64-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-linux-amd64-ncurses5-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-linux-amd64-ncurses6-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-linux-i386-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-linux-i386-ncurses5-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-linux-i386-ncurses6-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-osx-amd64-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-osx-i386-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-windows-amd64-0.14.jar, C:\Gradle\gradle-4.3.1\lib\native-platform-windows-i386-0.14.jar, C:\Gradle\gradle-4.3.1\lib\objenesis-1.2.jar, C:\Gradle\gradle-4.3.1\lib\reflectasm-1.07-shaded.jar, C:\Gradle\gradle-4.3.1\lib\slf4j-api-1.7.10.jar]
    2018-03-28 12:51:40,459 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 4.3.1
    2018-03-28 12:51:40,472 INFO [com.haulmont.studio.backend.y.c] Successful file tree registration 

still same error :confused: