Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[2.4.0-next-2016-10-03-1190] FAILURE: Build failed with an exception #572

Closed
roblav96 opened this issue Oct 3, 2016 · 13 comments
Closed

Comments

@roblav96
Copy link

roblav96 commented Oct 3, 2016

Playing around with the @next I've come across a build error with the latest 2.4.0-next-2016-10-03-1190.

./gradlew build --stacktrace --debug

06:37:19.481 [ERROR] [org.gradle.BuildExceptionReporter] 
06:37:19.483 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
06:37:19.483 [ERROR] [org.gradle.BuildExceptionReporter] 
06:37:19.483 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
06:37:19.483 [ERROR] [org.gradle.BuildExceptionReporter] Build file '/Users/roblav96/Projects/nativescript-playground/platforms/android/build-tools/android-static-binding-generator/build.gradle' line: 158
06:37:19.483 [ERROR] [org.gradle.BuildExceptionReporter] 
06:37:19.484 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
06:37:19.484 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':asbg:runAstParser'.
06:37:19.484 [ERROR] [org.gradle.BuildExceptionReporter] > java.io.IOException: Cannot run program "node": error=7, Argument list too long
06:37:19.484 [ERROR] [org.gradle.BuildExceptionReporter] 
06:37:19.485 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
06:37:19.485 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':asbg:runAstParser'.
06:37:19.485 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
06:37:19.486 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
06:37:19.486 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
06:37:19.486 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
06:37:19.486 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
06:37:19.486 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
06:37:19.487 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
06:37:19.487 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
06:37:19.487 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
06:37:19.487 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
06:37:19.487 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
06:37:19.487 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
06:37:19.488 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
06:37:19.488 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
06:37:19.488 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
06:37:19.488 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
06:37:19.488 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
06:37:19.488 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
06:37:19.488 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.Factories$1.create(Factories.java:22)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
06:37:19.489 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
06:37:19.490 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
06:37:19.490 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
06:37:19.490 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
06:37:19.490 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
06:37:19.490 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
06:37:19.490 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
06:37:19.490 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
06:37:19.491 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
06:37:19.491 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
06:37:19.491 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
06:37:19.491 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
06:37:19.491 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
06:37:19.492 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
06:37:19.492 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)
06:37:19.492 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
06:37:19.492 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
06:37:19.492 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
06:37:19.492 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
06:37:19.492 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
06:37:19.493 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
06:37:19.493 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
06:37:19.493 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
06:37:19.493 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
06:37:19.493 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
06:37:19.493 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
06:37:19.493 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.Main.doAction(Main.java:33)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
06:37:19.494 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
06:37:19.495 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.UncheckedIOException: java.io.IOException: Cannot run program "node": error=7, Argument list too long
06:37:19.495 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:43)
06:37:19.495 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:78)
06:37:19.495 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)
06:37:19.495 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
06:37:19.495 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:231)
06:37:19.496 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
06:37:19.496 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
06:37:19.496 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
06:37:19.496 [ERROR] [org.gradle.BuildExceptionReporter]    ... 60 more
06:37:19.496 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Cannot run program "node": error=7, Argument list too long
06:37:19.496 [ERROR] [org.gradle.BuildExceptionReporter]    at RunAstParserTask$_execute_closure1.doCall(/Users/roblav96/Projects/nativescript-playground/platforms/android/build-tools/android-static-binding-generator/build.gradle:158)
06:37:19.497 [ERROR] [org.gradle.BuildExceptionReporter]    at RunAstParserTask.execute(/Users/roblav96/Projects/nativescript-playground/platforms/android/build-tools/android-static-binding-generator/build.gradle:181)
06:37:19.497 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
06:37:19.497 [ERROR] [org.gradle.BuildExceptionReporter]    ... 66 more
06:37:19.497 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: error=7, Argument list too long
06:37:19.497 [ERROR] [org.gradle.BuildExceptionReporter]    ... 69 more
06:37:19.497 [ERROR] [org.gradle.BuildExceptionReporter] 
06:37:19.497 [LIFECYCLE] [org.gradle.BuildResultLogger] 
06:37:19.498 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
06:37:19.498 [LIFECYCLE] [org.gradle.BuildResultLogger] 
06:37:19.498 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 6.504 secs
@Plamen5kov
Copy link
Contributor

Plamen5kov commented Oct 3, 2016

Hi @roblav96,
Can you tell us what version of cli are you using and on what OS did this error occur on and what are the steps to reproduce the problem?

For future reference please use the provided issues template so we can help you.

@Plamen5kov Plamen5kov self-assigned this Oct 3, 2016
@roblav96
Copy link
Author

roblav96 commented Oct 3, 2016

@Plamen5kov Sorry, about that. I usually do, I forgot this one.

┌──────────────────┬────────────────────────────┬────────────────┬─────────────┐
│ Component        │ Current version            │ Latest version │ Information │
│ nativescript     │ 2.4.0-2016-09-18-6687      │ 2.3.0          │ Up to date  │
│ tns-core-modules │ 2.3.0                      │ 2.3.0          │ Up to date  │
│ tns-android      │ 2.4.0-next-2016-10-03-1190 │ 2.3.0          │ Up to date  │
│ tns-ios          │ 2.4.0-2016-9-28-1          │ 2.3.0          │ Up to date  │
└──────────────────┴────────────────────────────┴────────────────┴─────────────┘

Android 6.0.1

@Plamen5kov
Copy link
Contributor

@roblav96 and what about the operating system and the steps to reproduce?

@roblav96
Copy link
Author

roblav96 commented Oct 3, 2016

Mac OSX 10.11.5 (15F34)

tns create playground
cd playground
tns platform add android@next
tns platform add ios@next
tns run android

@roblav96
Copy link
Author

roblav96 commented Oct 3, 2016

node -v
v6.5.0

@Plamen5kov
Copy link
Contributor

@roblav96 what's your version of java? Check by running java -version;

@roblav96
Copy link
Author

roblav96 commented Oct 3, 2016

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

@roblav96
Copy link
Author

roblav96 commented Oct 3, 2016

Reverting back to 2.4.0-next-2016-09-29-1186 I have no issues.

@Plamen5kov
Copy link
Contributor

@roblav96 can you try out running the same example with @next, I made a fix in master, but because I could not reproduce the problem, I had to make a blind fix and it would be really helpful if you could run the build again.
Please share if the problem is fixed on your end so we can rest easy :)

@roblav96
Copy link
Author

roblav96 commented Oct 4, 2016

@Plamen5kov ill give it a shot right meow 🐱

@roblav96
Copy link
Author

roblav96 commented Oct 4, 2016

@Plamen5kov

Good to go :D

BUILD SUCCESSFUL

Total time: 28.428 secs
Project successfully built
The system failed to delete the package for an unspecified reason.
Successfully deployed on device with identifier 'HT495SF00457'.
^Croblav96@Roberts-iMac:/Volumes/OSX HD/Downloads/playground $ tns info
All NativeScript components versions information
┌──────────────────┬────────────────────────────┬────────────────┬───────────────┐
│ Component        │ Current version            │ Latest version │ Information   │
│ nativescript     │ 2.3.0                      │ 2.3.0          │ Up to date    │
│ tns-core-modules │ 2.3.0                      │ 2.3.0          │ Up to date    │
│ tns-android      │ 2.4.0-next-2016-10-04-1201 │ 2.3.0          │ Up to date    │
│ tns-ios          │                            │ 2.3.0          │ Not installed │
└──────────────────┴────────────────────────────┴────────────────┴───────────────┘

@roblav96 roblav96 closed this as completed Oct 4, 2016
@Plamen5kov
Copy link
Contributor

@roblav96 great, thanks for the quick feedback.

@roblav96
Copy link
Author

roblav96 commented Oct 4, 2016

@Plamen5kov no problem!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants