-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ljava.lang.Object cannot be cast to Ljava.lang.String when running demo workflows in Ubuntu #171
Comments
What is a specific drakefile that you have problems with? The demo directory itself does not have a runnable drakefile. I tried reproducing locally on some of the demo drakefiles, and it works fine. As for your Docker container, I don't know a lot about docker but after installing it and downloading your dockerfile, the commands you recommend do not succeed in making anything happen:
|
Ah my bad, I was running the peopleskills workflow. As for why your Docker is failing, if you're running on OSX you have to use boot2docker. You might try Thanks! |
Does this docker instance really have no text editor at all? How am I supposed to debug this? I can't run emacs, vim, nano, anything. And I apparently can't apt-get any of them either. |
I'll set up a better debug environment where the repo is attached as a volume instead so that you can edit the code on your local machine and run it inside the container. |
Here are the steps to best test it:
Now, you can edit the code on your local machine, and use the bash shell running in the container to execute the code. The repository will be located in the You could probably even get an nrepl server up and running by specifiying a port using the Let me know if you need any more information. I haven't had time to boot this up on my clojure environment, but I'll dig in over the weekend to see if I can't help in getting to the bottom of it. |
I ran into the same issue on docker. I have a workaround, which is to add the SHELL env variable before launching a drake workflow: export SHELL="/bin/bash" The issue is that when SHELL is null it affects drake: drake/src/drake/protocol_interpreters.clj Line 17 in b71c1d1
When running a step, this causes an incorrect split: Which passes in an empty array as an arg (typed as Object[]), leading to the ClassCastException: |
I'm receiving the following error when trying to run pretty much any drake workflow, including the workflows included with the source:
I'm running this within Docker using open-jdk-6 (or 7, the same error crops up) and the latest version of leiningen.
Easiest way to reproduce:
docker build -t drake-bug
docker run --name drake-bug -t drake-bug .
docker exec -it drake-bug bash
cd
into the demo directory in the drake repojava -jar ../../drake.jar
The text was updated successfully, but these errors were encountered: