Gradle on demo server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Gradle on demo server

Jacques Le Roux
Administrator
Hi Taher,

when I use " ps aux | grep ofbiz" on the demo server I notably get

9997     23811  3.8  4.9 2956292 201032 pts/0  Sl   17:26   0:18 java -Dorg.gradle.appname=gradlew -classpath
/home/ofbizDemo/trunk/gradle/wrapper/gradle-wrapper.jar org.gradle.wrapper.GradleWrapperMain ofbizSecure  --start
9997     23839 17.8 11.3 2526452 457724 pts/0  Sl   17:26   1:22 /usr/lib/jvm/java-8-oracle/bin/java
-Dnotsoserial.dryrun=/home/ofbizDemo/trunk/tools/security/notsoserial/is-deserialized.txt
-Dnotsoserial.trace=/home/ofbizDemo/trunk/tools/security/notsoserial/deserialize-trace.txt
-Dnotsoserial.whitelist=/home/ofbizDemo/trunk/tools/security/notsoserial/empty.txt -server
-javaagent:/home/ofbizDemo/trunk/tools/security/notsoserial/notsoserial-1.0-SNAPSHOT.jar -Xms128M -Xmx512M -Dfile.encoding=UTF-8 -Duser.country=US
-Duser.language=en -Duser.variant -cp
/home/ofbizDemo/trunk/build/classes/main:/home/ofbizDemo/trunk/build/resources/main:/home/ofbizDemo/trunk/build/libs/ofbiz-base-test.jar:/home/ofbizDemo/trunk/framework/base/lib/jpim-0.1.jar:/home/ofbizDemo/trunk/framework/base/lib/bsh-engine-modified.jar:/home/ofbizDemo/trunk/framework/base/lib/scripting/bsh-2.0b4.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/looks-2.0.2.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/jcl.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/XuiOptional-v3.2rc2b.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/jpos18-controls.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/XuiCoreSwing-v3.2rc2b.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/ebaycalls.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/helper.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/ebaysdkcore.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/attributes.jar:/home/ofbizDemo/trunk/specialpurpose/ldap/lib/cas-server-core-3.3.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.equinox.preferences_3.5.100.v20130422-1538.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/viewservlets.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/axis-1.4.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/flute.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.birt.runtime_4.3.1.v20130918-1142.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.update.configurator_3.3.200.v20130326-1319.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.datatools.connectivity.oda_3.4.1.v201308160907.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/commons-discovery-0.5.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/saaj.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf_2.6.0.v20130902-0605.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.w3c.dom.smil_1.0.0.v200806040011.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/Tidy.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.filesystem_1.4.0.v20130514-1240.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.resources_3.8.101.v20130717-0806.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.w3c.css.sac_1.3.0.v200805290154.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.runtime_3.9.0.v20130326-1255.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.equinox.app_1.3.100.v20130327-1442.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.contenttype_3.4.200.v20130326-1255.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.ecore.change_2.9.0.v20130827-0309.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/axis-ant-1.4.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.expressions_3.4.500.v20130515-1343.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.jobs_3.5.300.v20130429-1813.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.apache.xml.serializer_2.7.1.v201005080400.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.common_2.9.1.v20130827-0309.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.w3c.dom.svg_1.1.0.v201011041433.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.osgi.services_3.3.100.v20130513-1956.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/jaxrpc.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.ecore_2.9.1.v20130827-0309.jar:/home/ofbizDemo/trunk

Is that normal? Can't we reduce/hide the classpaths information

When, with an "Gradle OFBiz instance" running, I use
./gradlew "ofbiz --shutdown" cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
I get this

ofbizDemo@ofbiz-vm:~/trunk$ ./gradlew "ofbiz --shutdown" cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
:compileJava UP-TO-DATE
:createBaseTestServiceProviderJar
:processResources UP-TO-DATE
:classes
:ofbiz --shutdown
Start.java using configuration file org/ofbiz/base/start/start.properties
Set OFBIZ_HOME to - /home/ofbizDemo/trunk
Shutting down server : OK
:clean
:cleanCatalina
:cleanData
:cleanDownloads
:cleanEclipseClasspath UP-TO-DATE
:cleanEclipseJdt UP-TO-DATE
:cleanEclipseProject UP-TO-DATE
:cleanEclipse UP-TO-DATE
:cleanGradle
:cleanIndexes
:cleanLogs
:cleanOutput
:cleanTempfiles
:cleanUploads
:cleanXtra
:cleanAll
:ofbiz --load-data
Error: Could not find or load main class org.ofbiz.base.start.Start
:ofbiz --load-data FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ofbiz --load-data'.
 > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 24.376 secs
ofbizDemo@ofbiz-vm:~/trunk$ ./gradlew  --stacktrace "ofbiz --shutdown" cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:createBaseTestServiceProviderJar
:processResources
:classes
:ofbiz --shutdown
Start.java using configuration file org/ofbiz/base/start/start.properties
Set OFBIZ_HOME to - /home/ofbizDemo/trunk
Could not connect to /127.0.0.1:10523
Shutting down server : OFBiz is Down
:clean
:cleanCatalina
:cleanData
:cleanDownloads
:cleanEclipseClasspath UP-TO-DATE
:cleanEclipseJdt UP-TO-DATE
:cleanEclipseProject UP-TO-DATE
:cleanEclipse UP-TO-DATE
:cleanGradle
:cleanIndexes
:cleanLogs
:cleanOutput
:cleanTempfiles
:cleanUploads
:cleanXtra
:cleanAll
:ofbiz --load-data
Error: Could not find or load main class org.ofbiz.base.start.Start
:ofbiz --load-data FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ofbiz --load-data'.
 > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ofbiz --load-data'.
         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
         at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
         at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)
         at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
         at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
         at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
         at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
         at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
         at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
         at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
         at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
         at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
         at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
         at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
         at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
         at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
         at org.gradle.internal.Factories$1.create(Factories.java:22)
         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
         at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
         at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
         at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
         at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
         at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
         at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
         at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
         at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
         at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
         at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
         at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
         at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
         at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
         at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
         at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
         at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
         at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
         at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:241)
         at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:214)
         at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
         at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
         at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:207)
         at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
         at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
         at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
         at org.gradle.launcher.Main.doAction(Main.java:33)
         at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
         at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
         at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
         at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
         at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
         at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
         at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
         at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
         at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
         at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
         at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
         at
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)
         at
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
         at
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
         at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
         at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
         ... 60 more


BUILD FAILED

Total time: 1 mins 42.88 secs
ofbizDemo@ofbiz-vm:~/trunk$

I then thought it was because now the loadDefault (ex loadDemo) task was not building before starting, but I got the same with
  ./gradlew  --stacktrace "ofbiz --shutdown" cleanAll build loadDefault svnInfoFooter "ofbizBackgroundSecure --start"

I was able to do the work when splitting the task and using successuvely
  ./gradlew --stacktrace "ofbiz --shutdown" cleanAll
./gradlew  --stacktrace loadDefault svnInfoFooter "ofbizBackgroundSecure --start"

This was w/ or w/o "Gradle OFBiz process" previously running.
Should we need to put a sleep sequence between the 2 sets of tasks, or? (trying it now...)

Thanks

Jacques


Reply | Threaded
Open this post in threaded view
|

Re: Gradle on demo server

Pierre Smits
I suggest you put this in a JIRA issue.

Best regards,

Pierre Smits

ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Sun, Jul 10, 2016 at 8:04 PM, Jacques Le Roux <
[hidden email]> wrote:

> Hi Taher,
>
> when I use " ps aux | grep ofbiz" on the demo server I notably get
>
> 9997     23811  3.8  4.9 2956292 201032 pts/0  Sl   17:26   0:18 java
> -Dorg.gradle.appname=gradlew -classpath
> /home/ofbizDemo/trunk/gradle/wrapper/gradle-wrapper.jar
> org.gradle.wrapper.GradleWrapperMain ofbizSecure  --start
> 9997     23839 17.8 11.3 2526452 457724 pts/0  Sl   17:26   1:22
> /usr/lib/jvm/java-8-oracle/bin/java
> -Dnotsoserial.dryrun=/home/ofbizDemo/trunk/tools/security/notsoserial/is-deserialized.txt
> -Dnotsoserial.trace=/home/ofbizDemo/trunk/tools/security/notsoserial/deserialize-trace.txt
> -Dnotsoserial.whitelist=/home/ofbizDemo/trunk/tools/security/notsoserial/empty.txt
> -server
> -javaagent:/home/ofbizDemo/trunk/tools/security/notsoserial/notsoserial-1.0-SNAPSHOT.jar
> -Xms128M -Xmx512M -Dfile.encoding=UTF-8 -Duser.country=US
> -Duser.language=en -Duser.variant -cp
> /home/ofbizDemo/trunk/build/classes/main:/home/ofbizDemo/trunk/build/resources/main:/home/ofbizDemo/trunk/build/libs/ofbiz-base-test.jar:/home/ofbizDemo/trunk/framework/base/lib/jpim-0.1.jar:/home/ofbizDemo/trunk/framework/base/lib/bsh-engine-modified.jar:/home/ofbizDemo/trunk/framework/base/lib/scripting/bsh-2.0b4.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/looks-2.0.2.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/jcl.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/XuiOptional-v3.2rc2b.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/jpos18-controls.jar:/home/ofbizDemo/trunk/specialpurpose/pos/lib/XuiCoreSwing-v3.2rc2b.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/ebaycalls.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/helper.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/ebaysdkcore.jar:/home/ofbizDemo/trunk/specialpurpose/ebaystore/lib/attributes.jar:/home/ofbizDemo/trunk/specialpurpose/ldap/lib/cas-server-core-3.3.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.equinox.preferences_3.5.100.v20130422-1538.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/viewservlets.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/axis-1.4.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/flute.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.birt.runtime_4.3.1.v20130918-1142.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.update.configurator_3.3.200.v20130326-1319.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.datatools.connectivity.oda_3.4.1.v201308160907.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/commons-discovery-0.5.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/saaj.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf_2.6.0.v20130902-0605.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.w3c.dom.smil_1.0.0.v200806040011.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/Tidy.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.filesystem_1.4.0.v20130514-1240.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.resources_3.8.101.v20130717-0806.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.w3c.css.sac_1.3.0.v200805290154.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.runtime_3.9.0.v20130326-1255.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.equinox.app_1.3.100.v20130327-1442.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.contenttype_3.4.200.v20130326-1255.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.ecore.change_2.9.0.v20130827-0309.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/axis-ant-1.4.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.expressions_3.4.500.v20130515-1343.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.core.jobs_3.5.300.v20130429-1813.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.apache.xml.serializer_2.7.1.v201005080400.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.common_2.9.1.v20130827-0309.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.w3c.dom.svg_1.1.0.v201011041433.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.osgi.services_3.3.100.v20130513-1956.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/jaxrpc.jar:/home/ofbizDemo/trunk/specialpurpose/birt/lib/org.eclipse.emf.ecore_2.9.1.v20130827-0309.jar:/home/ofbizDemo/trunk
>
> Is that normal? Can't we reduce/hide the classpaths information
>
> When, with an "Gradle OFBiz instance" running, I use
> ./gradlew "ofbiz --shutdown" cleanAll loadDefault svnInfoFooter
> "ofbizBackgroundSecure --start"
> I get this
>
> ofbizDemo@ofbiz-vm:~/trunk$ ./gradlew "ofbiz --shutdown" cleanAll
> loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
> :compileJava UP-TO-DATE
> :createBaseTestServiceProviderJar
> :processResources UP-TO-DATE
> :classes
> :ofbiz --shutdown
> Start.java using configuration file org/ofbiz/base/start/start.properties
> Set OFBIZ_HOME to - /home/ofbizDemo/trunk
> Shutting down server : OK
> :clean
> :cleanCatalina
> :cleanData
> :cleanDownloads
> :cleanEclipseClasspath UP-TO-DATE
> :cleanEclipseJdt UP-TO-DATE
> :cleanEclipseProject UP-TO-DATE
> :cleanEclipse UP-TO-DATE
> :cleanGradle
> :cleanIndexes
> :cleanLogs
> :cleanOutput
> :cleanTempfiles
> :cleanUploads
> :cleanXtra
> :cleanAll
> :ofbiz --load-data
> Error: Could not find or load main class org.ofbiz.base.start.Start
> :ofbiz --load-data FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':ofbiz --load-data'.
> > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with
> non-zero exit value 1
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
> BUILD FAILED
>
> Total time: 24.376 secs
> ofbizDemo@ofbiz-vm:~/trunk$ ./gradlew  --stacktrace "ofbiz --shutdown"
> cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
> :compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> :createBaseTestServiceProviderJar
> :processResources
> :classes
> :ofbiz --shutdown
> Start.java using configuration file org/ofbiz/base/start/start.properties
> Set OFBIZ_HOME to - /home/ofbizDemo/trunk
> Could not connect to /127.0.0.1:10523
> Shutting down server : OFBiz is Down
> :clean
> :cleanCatalina
> :cleanData
> :cleanDownloads
> :cleanEclipseClasspath UP-TO-DATE
> :cleanEclipseJdt UP-TO-DATE
> :cleanEclipseProject UP-TO-DATE
> :cleanEclipse UP-TO-DATE
> :cleanGradle
> :cleanIndexes
> :cleanLogs
> :cleanOutput
> :cleanTempfiles
> :cleanUploads
> :cleanXtra
> :cleanAll
> :ofbiz --load-data
> Error: Could not find or load main class org.ofbiz.base.start.Start
> :ofbiz --load-data FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':ofbiz --load-data'.
> > Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with
> non-zero exit value 1
>
> * Try:
> Run with --info or --debug option to get more log output.
>
> * Exception is:
> org.gradle.api.tasks.TaskExecutionException: Execution failed for task
> ':ofbiz --load-data'.
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
>         at
> org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
>         at
> org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)
>         at
> org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
>         at
> org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
>         at
> org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
>         at
> org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
>         at
> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
>         at
> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
>         at
> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
>         at
> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
>         at
> org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
>         at
> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
>         at
> org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
>         at
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>         at
> org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
>         at
> org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
>         at
> org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
>         at
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
>         at
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
>         at
> org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
>         at org.gradle.internal.Factories$1.create(Factories.java:22)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
>         at
> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
>         at
> org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
>         at
> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
>         at
> org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
>         at
> org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
>         at
> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
>         at
> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
>         at
> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
>         at
> org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
>         at
> org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
>         at
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
>         at
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
>         at
> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
>         at
> org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
>         at
> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
>         at
> org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
>         at
> org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
>         at
> org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:241)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:214)
>         at
> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
>         at
> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:207)
>         at
> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
>         at
> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
>         at
> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
>         at org.gradle.launcher.Main.doAction(Main.java:33)
>         at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
>         at
> org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
>         at
> org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
>         at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
>         at
> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
>         at
> org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
>         at
> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
> Caused by: org.gradle.process.internal.ExecException: Process 'command
> '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
>         at
> org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
>         at
> org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
>         at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:74)
>         at
> org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
>         at
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)
>         at
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
>         at
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
>         at
> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
>         at
> org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
>         at
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
>         ... 60 more
>
>
> BUILD FAILED
>
> Total time: 1 mins 42.88 secs
> ofbizDemo@ofbiz-vm:~/trunk$
>
> I then thought it was because now the loadDefault (ex loadDemo) task was
> not building before starting, but I got the same with
>  ./gradlew  --stacktrace "ofbiz --shutdown" cleanAll build loadDefault
> svnInfoFooter "ofbizBackgroundSecure --start"
>
> I was able to do the work when splitting the task and using successuvely
>  ./gradlew --stacktrace "ofbiz --shutdown" cleanAll
> ./gradlew  --stacktrace loadDefault svnInfoFooter "ofbizBackgroundSecure
> --start"
>
> This was w/ or w/o "Gradle OFBiz process" previously running.
> Should we need to put a sleep sequence between the 2 sets of tasks, or?
> (trying it now...)
>
> Thanks
>
> Jacques
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Gradle on demo server

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
Le 10/07/2016 à 20:04, Jacques Le Roux a écrit :
> When, with an "Gradle OFBiz instance" running, I use
> ./gradlew "ofbiz --shutdown" cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
> I get this

OK, this seems to work

./gradlew "ofbiz --shutdown"
sleep 10
./gradlew cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"

I'll confirm later... France-Portugal starting soon...

Jacques

Reply | Threaded
Open this post in threaded view
|

Re: Gradle on demo server

taher
Hi Jacques,

Regarding the huge process name, it is normal .. and I am about to finish
some work that would fix it (hint .. the windows crashing issue :) )

Cheers

Taher Alkhateeb
On Jul 10, 2016 9:47 PM, "Jacques Le Roux" <[hidden email]>
wrote:

> Le 10/07/2016 à 20:04, Jacques Le Roux a écrit :
>
>> When, with an "Gradle OFBiz instance" running, I use
>> ./gradlew "ofbiz --shutdown" cleanAll loadDefault svnInfoFooter
>> "ofbizBackgroundSecure --start"
>> I get this
>>
>
> OK, this seems to work
>
> ./gradlew "ofbiz --shutdown"
> sleep 10
> ./gradlew cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure
> --start"
>
> I'll confirm later... France-Portugal starting soon...
>
> Jacques
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Gradle on demo server

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
Le 10/07/2016 à 20:47, Jacques Le Roux a écrit :

> Le 10/07/2016 à 20:04, Jacques Le Roux a écrit :
>> When, with an "Gradle OFBiz instance" running, I use
>> ./gradlew "ofbiz --shutdown" cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
>> I get this
>
> OK, this seems to work
>
> ./gradlew "ofbiz --shutdown"
> sleep 10
> ./gradlew cleanAll loadDefault svnInfoFooter "ofbizBackgroundSecure --start"
>
> I'll confirm later... France-Portugal starting soon...
>
> Jacques
>

Did not work, but splitting each task on one line of course works and "gradlew terminateOfbiz" is very useful (no longer need to use "kill -9" which
I'm always reluctant because of possible side effects)

Jacques