Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i tried to install as out of pox method on my local host
when i run run.sh i got this error
Feb 4, 2012 4:41:15 AM org.drupal.project.async_command.CommandLineLauncher launch
INFO: DrupalApp VERSION: 7_2_9
Feb 4, 2012 4:41:15 AM org.drupal.project.async_command.DrupalUtils locateFile
INFO: DRUPAL_HOME is set to: ../../../..
Feb 4, 2012 4:41:15 AM org.drupal.project.async_command.DrupalConnection create
WARNING: Cannot find config.properties file. Try settings.php now.
Feb 4, 2012 4:41:15 AM org.drupal.project.async_command.DrupalUtils locateFile
INFO: DRUPAL_HOME is set to: ../../../..
Feb 4, 2012 4:41:15 AM org.drupal.project.async_command.DrupalUtils locateFile
INFO: Found file 'settings.php' at: /home/quickstart/websites/book.ate/sites/default/settings.php
Feb 4, 2012 4:41:15 AM org.drupal.project.async_command.DrupalUtils evalPhp
WARNING: Please set PHP_EXEC. Use default php executable instead.
Feb 4, 2012 4:41:27 AM org.drupal.project.async_command.DrupalUtils evalPhp
WARNING: Please set PHP_EXEC. Use default php executable instead.
Feb 4, 2012 4:41:39 AM org.drupal.project.async_command.CommandLineLauncher launch
SEVERE: null
java.lang.NullPointerException
at org.drupal.project.async_command.DrupalConnection.<init>(DrupalConnection.java:116)
at org.drupal.project.async_command.DrupalConnection.create(DrupalConnection.java:82)
at org.drupal.project.async_command.CommandLineLauncher.constructDrupalApp(CommandLineLauncher.java:143)
at org.drupal.project.async_command.CommandLineLauncher.launch(CommandLineLauncher.java:61)
at org.drupal.project.recommender.RecommenderApp.main(RecommenderApp.java:26)
Feb 4, 2012 4:41:39 AM org.drupal.project.async_command.CommandLineLauncher launch
INFO: Unexpected errors. Program exits.
Comments
Comment #1
danithaca CreditAttribution: danithaca commentedThis module is still in active development so it's not very stable. Please also update to the latest async_command module and try again.
Comment #2
DerTobi75 CreditAttribution: DerTobi75 commentedHi,
I got this error, when trying to execute run.sh!
INFO: Total number of commands to run: 1
08.03.2012 00:29:07 org.drupal.project.async_command.Druplet handleException
SCHWERWIEGEND: Unexpected error happens for command: RunRecommender
org.drupal.project.async_command.exception.DrupletException: java.lang.reflect.InvocationTargetException
at org.drupal.project.async_command.Druplet.parseCommand(Druplet.java:238)
at org.drupal.project.async_command.Druplet.runSerial(Druplet.java:377)
at org.drupal.project.async_command.Druplet.run(Druplet.java:284)
at org.drupal.project.async_command.CommandLineLauncher.handleExecutables(CommandLineLauncher.java:107)
at org.drupal.project.async_command.CommandLineLauncher.launch(CommandLineLauncher.java:66)
at org.drupal.project.recommender.RecommenderApp.main(RecommenderApp.java:37)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.drupal.project.async_command.Druplet.parseCommand(Druplet.java:234)
... 5 more
Caused by: java.lang.NoSuchMethodError: org.drupal.project.async_command.DrupletUtils.decodeJsonObject(Ljava/lang/String;)Ljava/util/Map;
at org.drupal.project.recommender.RunRecommender.prepareCommand(RunRecommender.java:184)
at org.drupal.project.recommender.RunRecommender.(RunRecommender.java:78)
... 10 more
08.03.2012 00:29:07 org.drupal.project.async_command.Druplet runSerial
INFO: Command finished running with status: FAIL
Any idea what could cause this error?
Regards,
Tobi
Comment #3
danithaca CreditAttribution: danithaca commented@DerTobi75: Try to use async_command_7.x-2.0-alpha9 and recommender_7.x-4.0-alpha9, and it should fix the dependancy problem
@in a nutshell: The NullPointerException looks like you haven't started MySQL server.
Comment #4
DerTobi75 CreditAttribution: DerTobi75 commentedHi.
after the update I got the following errors!
Comment #5
DerTobi75 CreditAttribution: DerTobi75 commentedThis is the complete output, when I try to execute run.sh:
Comment #6
danithaca CreditAttribution: danithaca commentedInteresting. I've never seen this message before. Will look into it. The cloud service is almost ready. If you just want to try how the recommender works, you might consider using the free cloud service too.
Comment #7
DerTobi75 CreditAttribution: DerTobi75 commentedWill try to install it once again, and I contact my SysAdmin, maybe we find, what causes this problem!
Comment #8
danithaca CreditAttribution: danithaca commentedFrom what I see, you database doesn't support certain IsolationTransactionLevel. I have made some changes to the code to bypass it. This is fixed in 4.0-alpha13.
Mark this issue as fixed. Please reopen if it doesn't solve your problem.
Comment #10
DerTobi75 CreditAttribution: DerTobi75 commentedSorry for setting this one on active again, but I still get this errors ;(
That is, where all the trouble starts. Do not know, if I need to install something else or config anything.
I downloaded this file mahout-distribution-0.6.tar.gz from the Mahout Servers.
Then unpack it and renamed it to mahout.
EDIT: I use my webserver for Mahout, when I get the README.txt from the async_command Module right, I do not configure anything for this module, do I?
EDIT2: Could this maybe caused from my database?
Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
After a little research, this could be a MySQL Bug?!
Regards,
Tobi
Comment #11
DerTobi75 CreditAttribution: DerTobi75 commentedAnother strange thing, I changed the DRUPAL_HOME path in the run.sh to the absolute path.
But when I execute run.sh I get:
And I put the config.properties in both module folders, ...
Comment #12
DerTobi75 CreditAttribution: DerTobi75 commentedI have no idea, what there is missing or went wrong, ... ;(
Comment #13
danithaca CreditAttribution: danithaca commentedI'll look into it.
I assume you use MySQL database right?
Also, have you tried the alpha14 release?
Comment #14
DerTobi75 CreditAttribution: DerTobi75 commentedYes, I am on MySQL and all modules are the latest releases!
Comment #15
klokie CreditAttribution: klokie commentedHi, I'm having a similar issue when trying to get recommender API and async_command up and running.
run.sh
doesn't find myconfig.properties
file, outputting the following:I'm also using the fb module which, like several other modules, requires the addition of several
require_once
statements to the bottom of mysettings.php
file. That seems to be causing this "PHP process exception". For me it would be preferable to use myconfig.properties
file rather than to remove these statements.Like #11, I've tried using an absolute path, but recommender.jar still doesn't find my
config.properties
file.I've customized
run.sh
to use the appropriate relative path to myDRUPAL_ROOT
, indicating that my modules are stored insites/all/modules/contrib
. I've also tried other values forDRUPAL_ROOT
.Thanks for your help.
Comment #16
plopescHello
I'm having the same error described by DerTobi75. However, I tried it on different MySQL instances and it works fine in the first one but not in the other.
For me works fine on 5.1.61-0ubuntu0.11.10.1, but I have the STATEMENT error in 5.1.49-3-log (Debian).
Maybe this could help.
Thank you
Comment #17
danithaca CreditAttribution: danithaca commentedThanks for the report guys. I'll look at this soon! Marked it as critical.
Comment #18
mrfelton CreditAttribution: mrfelton commentedSame or similar issue fir me too. I'm getting this using a correctly configured config.properties file.
Comment #20
danithaca CreditAttribution: danithaca commentedThe new release 7.x-6.x should have fixed this problem. 7.x-4.x is not supported anymore.