I try to install symfony only after i enter my things like database and smtp data then comes an error:
In Process.php line 143:
[TypeError]
Symfony\Component\Process\Process::__construct(): Argument #1 ($command) mu
st be of type array, string given, called in /home/esbdkig/test.pluginstube
.net/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Com
poser/ScriptHandler.php on line 342
Exception trace:
at phar:///home/esbdkig/composer.phar/vendor/symfony/process/Process.php:143
Symfony\Component\Process\Process->__construct() at /home/esbdkig/test.pluginstube.net/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:342
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeBuildBootstrap() at /home/esbdkig/test.pluginstube.net/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:82
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap() at phar:///home/esbdkig/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:386
Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///home/esbdkig/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:246
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///home/esbdkig/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:107
Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///home/esbdkig/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:226
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///home/esbdkig/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:123
Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///home/esbdkig/composer.phar/src/Composer/Installer.php:374
Composer\Installer->run() at phar:///home/esbdkig/composer.phar/src/Composer/Command/CreateProjectCommand.php:263
Composer\Command\CreateProjectCommand->installProject() at phar:///home/esbdkig/composer.phar/src/Composer/Command/CreateProjectCommand.php:171
Composer\Command\CreateProjectCommand->execute() at phar:///home/esbdkig/composer.phar/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar:///home/esbdkig/composer.phar/vendor/symfony/console/Application.php:1028
Symfony\Component\Console\Application->doRunCommand() at phar:///home/esbdkig/composer.phar/vendor/symfony/console/Application.php:299
Symfony\Component\Console\Application->doRun() at phar:///home/esbdkig/composer.phar/src/Composer/Console/Application.php:375
Composer\Console\Application->doRun() at phar:///home/esbdkig/composer.phar/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar:///home/esbdkig/composer.phar/src/Composer/Console/Application.php:139
Composer\Console\Application->run() at phar:///home/esbdkig/composer.phar/bin/composer:88
require() at /home/esbdkig/composer.phar:29
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]
Console IMAGE
Can someone please help me
I have tried to install it as it is described here https://docs.ovh.com/de/hosting/composer-installieren-hosting/](https://docs.ovh.com/de/hosting/composer-installieren-hosting/)
Related
Trying to build Spring Kafka to use it as part of a test data for something. The build fails for a reason that's a bit... bizarre to me, considering I downloaded sources tagged for release, which to me should mean it should compile without an issue.
The error is the following:
* Where:
Build file 'C:\Users\FlyingScoots\Downloads\spring-kafka-2.3.4.RELEASE\build.gradle' line: 38
* What went wrong:
A problem occurred evaluating root project 'spring-kafka-dist'.
> Cannot invoke method status() on null object
Looking into line 38 in build.gradle reveals that it's this line:
modifiedFiles =
files(grgit.status().unstaged.modified).filter{ f -> f.name.endsWith('.java') || f.name.endsWith('.kt') }
...but this is still in their current codebase and according to the tags on their github page it builds fine? So why does this break? What should I do? Stacktrace, if it's at all necessary:
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'spring-kafka-dist'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:237)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:242)
at org.gradle.configuration.BuildOperationScriptPlugin$1$1.run(BuildOperationScriptPlugin.java:69)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:66)
at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:63)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:49)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:63)
at org.gradle.configuration.project.BuildScriptProcessor$1.run(BuildScriptProcessor.java:45)
at org.gradle.internal.Factories$1.create(Factories.java:26)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:212)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:193)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject$1.run(LifecycleProjectEvaluator.java:107)
at org.gradle.internal.Factories$1.create(Factories.java:26)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:189)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:238)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:232)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:193)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:96)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:68)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:699)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:142)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:36)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62)
at org.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:61)
at org.gradle.configuration.BuildOperatingFiringProjectsPreparer$ConfigureBuild.run(BuildOperatingFiringProjectsPreparer.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.BuildOperatingFiringProjectsPreparer.prepareProjects(BuildOperatingFiringProjectsPreparer.java:40)
at org.gradle.initialization.DefaultGradleLauncher.prepareProjects(DefaultGradleLauncher.java:204)
at org.gradle.initialization.DefaultGradleLauncher.doClassicBuildStages(DefaultGradleLauncher.java:142)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:130)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:110)
at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:60)
at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:57)
at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:85)
at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:78)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:189)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:78)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:57)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:63)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:50)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:47)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:68)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:27)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: java.lang.NullPointerException: Cannot invoke method status() on null object
at build_1s8la5fw4h13vkdg97ia8h548$_run_closure1.doCall(C:\Users\FlyingScoots\Downloads\spring-kafka-2.3.4.RELEASE\build.gradle:38)
at org.gradle.util.ClosureBackedAction.execute(ClosureBackedAction.java:71)
at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:154)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:105)
at org.gradle.util.ConfigureUtil$WrappedConfigureAction.execute(ConfigureUtil.java:166)
at org.gradle.internal.extensibility.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:173)
at org.gradle.internal.extensibility.ExtensionsStorage.configureExtension(ExtensionsStorage.java:64)
at org.gradle.internal.extensibility.DefaultConvention.configureExtension(DefaultConvention.java:364)
at org.gradle.internal.extensibility.DefaultConvention.access$500(DefaultConvention.java:45)
at org.gradle.internal.extensibility.DefaultConvention$ExtensionsDynamicObject.tryInvokeMethod(DefaultConvention.java:301)
at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)
at org.gradle.internal.extensibility.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:34)
at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.tryInvokeMethod(BasicScript.java:134)
at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:162)
at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:83)
at build_1s8la5fw4h13vkdg97ia8h548.run(C:\Users\FlyingScoots\Downloads\spring-kafka-2.3.4.RELEASE\build.gradle:28)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
... 129 more
As a last addendum, I'm on a Windows machine.
According to grgit-gradle
The org.ajoberstar.grgit plugin adds a grgit property to your build,
which is an instance of Grgit opened to the repository visible from
your project’s root dir. This will check the project directory and its
parents for a .git directory. If no repository is found, the grgit
property is null.
Use git clone to get the source code or use git init after download the source code.
I've created a template project with giter8, and trying to add conditional expression.
in the defaults.properties I added:
param=true
and in the template file I added:
$if(param.truthy)$
....
$endif$
when I'm generating the project with:
g8 file://proj.g8
everything works as expected.
in the interactive part, param would have 2 options:
param [YES/no]:
and the generated file will include the additional text based on the value of the param
But, when I generate the project with:
sbt new file://proj.g8
param is being treated as a string.
during the interactive part, there are no yes/no options:
param [yes]:
and I'm getting the following error:
Exiting due to error in the template File:
/tmp/giter8-135496483100759/src/main/g8/build.sbt, context [anonymous]
44:6 internal error: org.stringtemplate.v4.compiler.STException:
context [anonymous] 44:6 no such property or can't access:
java.lang.String.truthy Caused by:
org.stringtemplate.v4.misc.STNoSuchPropertyException: no such
property: java.lang.String.truthy at
org.stringtemplate.v4.misc.ObjectModelAdaptor.throwNoSuchProperty(ObjectModelAdaptor.java:167)
at
org.stringtemplate.v4.misc.ObjectModelAdaptor.getProperty(ObjectModelAdaptor.java:89)
at
org.stringtemplate.v4.Interpreter.getObjectProperty(Interpreter.java:1200)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:210) at
org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145) at
org.stringtemplate.v4.ST.write(ST.java:427) at
org.stringtemplate.v4.ST.render(ST.java:497) at
org.clapper.scalasti.ST.render(ST.scala:285) at
giter8.G8$.applyTemplate(g8.scala:102) at
giter8.G8$.write(g8.scala:154) at giter8.G8$.write(g8.scala:138) at
giter8.G8$.$anonfun$writeTemplates$3(g8.scala:396) at
scala.util.control.Exception$Catch.$anonfun$opt$1(Exception.scala:242)
at scala.util.control.Exception$Catch.apply(Exception.scala:224) at
scala.util.control.Exception$Catch.opt(Exception.scala:242) at
giter8.G8$.$anonfun$writeTemplates$2(g8.scala:396) at
scala.collection.immutable.Stream.foreach(Stream.scala:530) at
giter8.G8$.writeTemplates(g8.scala:386) at
giter8.G8$.$anonfun$applyT$1(g8.scala:257) at
scala.util.Either$RightProjection.flatMap(Either.scala:702) at
giter8.G8$.applyT(g8.scala:249) at
giter8.G8$.fromDirectory(g8.scala:62) at
giter8.JgitHelper$.$anonfun$run$3(JgitHelper.scala:64) at
scala.util.Either$RightProjection.flatMap(Either.scala:702) at
giter8.JgitHelper$.run(JgitHelper.scala:63) at
giter8.Giter8.$anonfun$run$2(giter8.scala:34) at
scala.Option.map(Option.scala:146) at
giter8.Giter8.run(giter8.scala:33) at
sbtgiter8resolver.Giter8TemplateResolver.run(Giter8TemplateResolver.scala:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
sbt.TemplateCommandUtil$.call(TemplateCommand.scala:100) at
sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:78) at
sbt.TemplateCommandUtil$.$anonfun$run$1(TemplateCommand.scala:58) at
sbt.TemplateCommandUtil$.$anonfun$run$1$adapted(TemplateCommand.scala:54)
at
scala.collection.LinearSeqOptimized.find(LinearSeqOptimized.scala:111)
at
scala.collection.LinearSeqOptimized.find$(LinearSeqOptimized.scala:108)
at scala.collection.immutable.List.find(List.scala:86) at
sbt.TemplateCommandUtil$.run(TemplateCommand.scala:54) at
sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:41) at
sbt.TemplateCommandUtil$.$anonfun$templateCommand$2(TemplateCommand.scala:24)
at sbt.Command$.$anonfun$applyEffect$4(Command.scala:134) at
sbt.Command$.$anonfun$applyEffect$2(Command.scala:130) at
sbt.MainLoop$.processCommand(MainLoop.scala:153) at
sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:136) at
sbt.State$$anon$1.runCmd$1(State.scala:242) at
sbt.State$$anon$1.process(State.scala:248) at
sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:136) at
sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
at sbt.MainLoop$.next(MainLoop.scala:136) at
sbt.MainLoop$.run(MainLoop.scala:129) at
sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:107) at
sbt.io.Using.apply(Using.scala:22) at
sbt.MainLoop$.runWithNewLog(MainLoop.scala:101) at
sbt.MainLoop$.runAndClearLast(MainLoop.scala:57) at
sbt.MainLoop$.runLoggedLoop(MainLoop.scala:42) at
sbt.MainLoop$.runLogged(MainLoop.scala:34) at
sbt.StandardMain$.runManaged(Main.scala:113) at
sbt.xMain.run(Main.scala:76) at
xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) at
xsbt.boot.Launch$.withContextLoader(Launch.scala:128) at
xsbt.boot.Launch$.run(Launch.scala:109) at
xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35) at
xsbt.boot.Launch$.launch(Launch.scala:117) at
xsbt.boot.Launch$.apply(Launch.scala:18) at
xsbt.boot.Boot$.runImpl(Boot.scala:41) at
xsbt.boot.Boot$.main(Boot.scala:17) at
xsbt.boot.Boot.main(Boot.scala)
at giter8.G8$STErrorHandler.runTimeError(g8.scala:110) at
giter8.G8$STErrorHandler.runTimeError(g8.scala:105) at
org.stringtemplate.v4.misc.ErrorManager.runTimeError(ErrorManager.java:137)
at
org.stringtemplate.v4.Interpreter.getObjectProperty(Interpreter.java:1203)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:210) at
org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145) at
org.stringtemplate.v4.ST.write(ST.java:427) at
org.stringtemplate.v4.ST.render(ST.java:497) at
org.clapper.scalasti.ST.render(ST.scala:285) at
giter8.G8$.applyTemplate(g8.scala:102) at
giter8.G8$.write(g8.scala:154) at giter8.G8$.write(g8.scala:138) at
giter8.G8$.$anonfun$writeTemplates$3(g8.scala:396) at
scala.util.control.Exception$Catch.$anonfun$opt$1(Exception.scala:242)
at scala.util.control.Exception$Catch.apply(Exception.scala:224) at
scala.util.control.Exception$Catch.opt(Exception.scala:242) at
giter8.G8$.$anonfun$writeTemplates$2(g8.scala:396) at
scala.collection.immutable.Stream.foreach(Stream.scala:530) at
giter8.G8$.writeTemplates(g8.scala:386) at
giter8.G8$.$anonfun$applyT$1(g8.scala:257) at
scala.util.Either$RightProjection.flatMap(Either.scala:702) at
giter8.G8$.applyT(g8.scala:249) at
giter8.G8$.fromDirectory(g8.scala:62) at
giter8.JgitHelper$.$anonfun$run$3(JgitHelper.scala:64) at
scala.util.Either$RightProjection.flatMap(Either.scala:702) at
giter8.JgitHelper$.run(JgitHelper.scala:63) at
giter8.Giter8.$anonfun$run$2(giter8.scala:34) at
scala.Option.map(Option.scala:146) at
giter8.Giter8.run(giter8.scala:33) at
sbtgiter8resolver.Giter8TemplateResolver.run(Giter8TemplateResolver.scala:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
sbt.TemplateCommandUtil$.call(TemplateCommand.scala:100) at
sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:78) at
sbt.TemplateCommandUtil$.$anonfun$run$1(TemplateCommand.scala:58) at
sbt.TemplateCommandUtil$.$anonfun$run$1$adapted(TemplateCommand.scala:54)
at
scala.collection.LinearSeqOptimized.find(LinearSeqOptimized.scala:111)
at
scala.collection.LinearSeqOptimized.find$(LinearSeqOptimized.scala:108)
at scala.collection.immutable.List.find(List.scala:86) at
sbt.TemplateCommandUtil$.run(TemplateCommand.scala:54) at
sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:41) at
sbt.TemplateCommandUtil$.$anonfun$templateCommand$2(TemplateCommand.scala:24)
at sbt.Command$.$anonfun$applyEffect$4(Command.scala:134) at
sbt.Command$.$anonfun$applyEffect$2(Command.scala:130) at
sbt.MainLoop$.processCommand(MainLoop.scala:153) at
sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:136) at
sbt.State$$anon$1.runCmd$1(State.scala:242) at
sbt.State$$anon$1.process(State.scala:248) at
sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:136) at
sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
at sbt.MainLoop$.next(MainLoop.scala:136) at
sbt.MainLoop$.run(MainLoop.scala:129) at
sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:107) at
sbt.io.Using.apply(Using.scala:22) at
sbt.MainLoop$.runWithNewLog(MainLoop.scala:101) at
sbt.MainLoop$.runAndClearLast(MainLoop.scala:57) at
sbt.MainLoop$.runLoggedLoop(MainLoop.scala:42) at
sbt.MainLoop$.runLogged(MainLoop.scala:34) at
sbt.StandardMain$.runManaged(Main.scala:113) at
sbt.xMain.run(Main.scala:76) at
xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) at
xsbt.boot.Launch$.withContextLoader(Launch.scala:128) at
xsbt.boot.Launch$.run(Launch.scala:109) at
xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35) at
xsbt.boot.Launch$.launch(Launch.scala:117) at
xsbt.boot.Launch$.apply(Launch.scala:18) at
xsbt.boot.Boot$.runImpl(Boot.scala:41) at
xsbt.boot.Boot$.main(Boot.scala:17) at
xsbt.boot.Boot.main(Boot.scala)
I'm using version 0.11.0-M3 for both g8 and sbt-giter8 plugin
How can I fix this problem?
EDIT: some more details:
I'm using sbt 1.1.1 (for both the g8 project and the sbt launcher on my machine)
I added the plugin in the g8 project in the file project/plugins.sbt with
addSbtPlugin("org.foundweekends.giter8" %% "sbt-giter8" % "0.11.0-M3")
if I remove the truthy parts from the template, the project is generated correctly from sbt new
This issue been fixed in sbt 1.2.0
in order to fix, should use:
sbt -Dsbt.version=1.2.0 new file://proj.g8
The version of giter8 used internally for sbt new is fixed and adding sbt-giter8 plugin won't change it. sbt 1.1.1 uses sbt-giter8-resolver v0.1.3, which uses giter8 0.7.2 (which doesn't support conditionals).
You could update sbt-giter8-resolver, publish it locally and try to replace the default Giter8TemplatePlugin, but I think it's not worth it. Just use g8 directly until sbt gets updated.
There was an effort to support arbitrary giter8 version set in the template, but something went wrong and this feature has been reverted.
1.I use command
pm2 start pm2.json
my pm2.json is
{
"apps": [{
"name": "test_pm2",
"script": "www/app.js",
"cwd": "/var/www/test_pm2",
"exec_mode": "cluster",
"instances": 0,
"max_memory_restart": "1G",
"autorestart": true,
"node_args": [],
"args": [],
"env": {
}
}]
}
2.then i use command
pm2 reload all
and pm2 stop all process,but can't relaod my project,The command line is always waiting.
To visit my project throgh browser,the Nginx 502 error showed.
So i have to use commond pm2 start pm2.json to start.
My environment:
pm2 v2.4.0; node v6.9.5; npm v3.10.10
I hope someone can answer the confusion, thanks!
Just looking over your file these may be the problems. (not sure)
"apps": [{
"name": "test_pm2",
"script": "www/app.js",
"cwd": "/var/www/test_pm2",
"exec_mode": "cluster",
"instances": 0,
"max_memory_restart": "1G",
"autorestart": true,
"node_args": [],
"args": [],
"env": {
}
script: --> are you sure this is the correct path?? Usually it would read:
"./app.js",
cwd: ---> maybe it is var\html\www ???
If all else fails try instances: 'max'
and get rid of the max_memory_restart
Also make sure you are running the app.js by way of the pm2.json file (kind of obvious).
To see where the problem is coming from do it step by step. Some of the commands in your pm2.json file may be problematic.
Hope this helps.
answering my own question !
The pm2.log is:
===============================================================================
2017-03-31 13:23:12: --- PM2 global error caught ---------------------------------------------------
2017-03-31 13:23:12: Time : Fri Mar 31 2017 13:23:12 GMT+0800 (CST)
2017-03-31 13:23:12: Cannot read property 'forEach' of null
2017-03-31 13:23:12: TypeError: Cannot read property 'forEach' of null
at ChildProcess.onClose (/usr/lib/node_modules/pm2/lib/TreeKill.js:104:26)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
2017-03-31 13:23:12: ===============================================================================
2017-03-31 13:23:12: [PM2][%s] Resurrecting PM2
2017-03-31 13:23:12: Stopping app:tadx_sys id:_old_1
/usr/lib/node_modules/pm2/lib/TreeKill.js:104
allData.match(/\d+/g).forEach(function (pid) {
^
TypeError: Cannot read property 'forEach' of null
at ChildProcess.onClose (/usr/lib/node_modules/pm2/lib/TreeKill.js:104:26)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
module.js:471
throw err;
^
Error: Cannot find module '/var/www/tadx.borui-ad.com/undefined'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
I have found a solution for the issue in PM2 official GitHub page Go to issue url
Upgrade to PM2 greater than v2.4.0
We had two jar files - weblogic.jar and weblogic-binding.jar
Now as we are moving to WAS8.0, i removed these two files from the project.
(After removing the files, i make sure that javax.servlet api is available to my project from Websphere).
From then, I am getting below exception:
[8/15/13 15:21:34:180 EDT] 00000016 ExceptionHand E dcf.ess.frameworks.exception.ProgramLogicException logException Unhandled Exception caught and new ProgramLogic exception thrown. - UnavailableException: null Code: P3003FEXS01 ID:dd953aa2-e52e-49f0-95ed-33c121a2bdfd
dcf.ess.frameworks.exception.ProgramLogicException: UnavailableException: null
at dcf.ess.frameworks.exception.ExceptionHandler.findRootException(ExceptionHandler.java:50)
at dcf.ess.frameworks.exception.ExceptionHandler.handleException(ExceptionHandler.java:31)
at dcf.ess.nextgen.ssp.frameworks.presentation.SessionFilter.redirectToErrorPage(SessionFilter.java:92)
at dcf.ess.nextgen.ssp.frameworks.presentation.SessionFilter.doFilter(SessionFilter.java:54)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at dcf.ess.nextgen.ssp.frameworks.presentation.CrossScriptingFilter.doFilter(CrossScriptingFilter.java:28)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:883)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1659)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1648)
Caused by: javax.servlet.UnavailableException
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:482)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:449)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
at dcf.ess.nextgen.ssp.frameworks.presentation.SessionFilter.doFilter(SessionFilter.java:46)
... 23 more
What is "dcf.ess.frameworks"?
Did you recompile the application or you simply removed the jar file from the ear ?
We have a problem with your API. When we try to receive data from an address using IE,
we receive a 500 error from your API.
Watching the generated url to access this information, I get the following:
Chrome
http://api.places.lbs.maps.nokia.com/places/v1/discover/search/?callback=nokia.places.comm.data.clb[%22101%22]&app_id=ywQ7oG0pDVf4baOfgD63&app_code=FhWanW-p-KHXfPpqWIRDOg&Accept-Language=en-US&size=10&q=Fuentes%20Acebedo%20%2023%2COviedo%2C33006%2CAsturias&at=40.41764566275246,-3.7002038955688477
IE
http://api.places.lbs.maps.nokia.com/places/v1/discover/search/?callback=nokia.places.comm.data.clb["101"]&app_id=ywQ7oG0pDVf4baOfgD63&app_code=FhWanW-p-KHXfPpqWIRDOg&Accept-Language=en-US&size=10&q=Fuentes%20acebedo%20%2023%2Coviedo%2C33006%2Casturias&at=40.41764566275246,-3.7002038955688476
The only difference is that:
IE --> ["101"]
Chrome --> [%22101%22]
If you go to the url that I specified for IE, you will see you get a 500 error.
You have a solution for this error?
tnks!
Full error
HTTP ERROR 500
Problem accessing /places/v1/discover/search/. Reason:
Server Error
Caused by:
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:841)
at pbapi.Uri$.fromString(Uri.scala:37)
at pbapi.http.RequestSummary.toCurl(RequestSummary.scala:45)
at pbapi.monitoring.Incident$$anonfun$apply$2.apply(Incident.scala:41)
at pbapi.monitoring.Incident$$anonfun$apply$2.apply(Incident.scala:41)
at scala.Option.map(Option.scala:133)
at pbapi.monitoring.Incident$.apply(Incident.scala:41)
at pbapi.monitoring.LoggingIncidentReporter.createIncident(LoggingIncidentReporter.scala:46)
at pbapi.monitoring.LoggingIncidentReporter.requestProcessingError(LoggingIncidentReporter.scala:34)
at pbapi.web.springmvc.GenericExceptionResolver.resolveException(GenericExceptionResolver.scala:79)
at spring.helpers.PlacesApiDispatcherServlet.processHandlerException(PlacesApiDispatcherServlet.scala:91)
at spring.helpers.PlacesApiDispatcherServlet.doDispatch(PlacesApiDispatcherServlet.scala:72)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336)
at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:137)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at pbapi.web.preprocessors.CorsPreprocessor.go(CorsPreprocessor.scala:20)
at pbapi.web.preprocessors.CorsPreprocessor.doFilter(CorsPreprocessor.scala:12)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at pbapi.web.preprocessors.RequestAttributor.doFilter(RequestAttributor.scala:25)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at pbapi.web.preprocessors.Query2Header.doFilter(Query2Header.scala:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:365)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.URISyntaxException: Illegal character in query at index 100: http://api.places.lbs.maps.nokia.com/places/v1/discover/search/?callback=nokia.places.comm.data.clb["101"]&app_id=ywQ7oG0pDVf4baOfgD63&app_code=FhWanW-p-KHXfPpqWIRDOg&Accept-Language=en-US&size=10&q=Fuentes%20acebedo%20%2023%2Coviedo%2C33006%2Casturias&at=40.41764566275246,-3.7002038955688476
at java.net.URI$Parser.fail(URI.java:2810)
at java.net.URI$Parser.checkChars(URI.java:2983)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3015)
at java.net.URI.<init>(URI.java:577)
at java.net.URI.create(URI.java:839)
... 53 more
Caused by:
java.net.URISyntaxException: Illegal character in query at index 100: http://api.places.lbs.maps.nokia.com/places/v1/discover/search/?callback=nokia.places.comm.data.clb["101"]&app_id=ywQ7oG0pDVf4baOfgD63&app_code=FhWanW-p-KHXfPpqWIRDOg&Accept-Language=en-US&size=10&q=Fuentes%20acebedo%20%2023%2Coviedo%2C33006%2Casturias&at=40.41764566275246,-3.7002038955688476
at java.net.URI$Parser.fail(URI.java:2810)
at java.net.URI$Parser.checkChars(URI.java:2983)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3015)
at java.net.URI.<init>(URI.java:577)
at java.net.URI.create(URI.java:839)
at pbapi.Uri$.fromString(Uri.scala:37)
at pbapi.http.RequestSummary.toCurl(RequestSummary.scala:45)
at pbapi.monitoring.Incident$$anonfun$apply$2.apply(Incident.scala:41)
at pbapi.monitoring.Incident$$anonfun$apply$2.apply(Incident.scala:41)
at scala.Option.map(Option.scala:133)
at pbapi.monitoring.Incident$.apply(Incident.scala:41)
at pbapi.monitoring.LoggingIncidentReporter.createIncident(LoggingIncidentReporter.scala:46)
at pbapi.monitoring.LoggingIncidentReporter.requestProcessingError(LoggingIncidentReporter.scala:34)
at pbapi.web.springmvc.GenericExceptionResolver.resolveException(GenericExceptionResolver.scala:79)
at spring.helpers.PlacesApiDispatcherServlet.processHandlerException(PlacesApiDispatcherServlet.scala:91)
at spring.helpers.PlacesApiDispatcherServlet.doDispatch(PlacesApiDispatcherServlet.scala:72)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336)
at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:137)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at pbapi.web.preprocessors.CorsPreprocessor.go(CorsPreprocessor.scala:20)
at pbapi.web.preprocessors.CorsPreprocessor.doFilter(CorsPreprocessor.scala:12)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at pbapi.web.preprocessors.RequestAttributor.doFilter(RequestAttributor.scala:25)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at pbapi.web.preprocessors.Query2Header.doFilter(Query2Header.scala:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:365)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:662)
Powered by Jetty://
Solution is quite simple.
Use version 2.2.3 instead of 2.2.0