Sphinx & MRL

Sed is trying to get Sphinx to work in MRL so this is a starter post to get the bits put together :) 

Well Sed,
I'm working on the trunk - I'm "guessing" that you are using one of the python scripts and its not working - in fact its throwing an error...  I'll look at the other posts and get the info & try what I have here...

I thought I saw a reference to ear.gram  ... a gram file is a JSGF grammar file..  so I'm guessing (without looking) that there is a Sphinx service looking for an ear JSGF grammar file which is not where it wants it to be...  I'll have more info shortly

Sed's picture

Yes, as a matter fact I am

Yes, as a matter fact I am using a python script. But I think that the problem is with in sphinx, I had a hard time trying to tested by itself a few months ago. I've noticed the JSapi jar is been called by Jython and places it into the libraries folder, so I am assumming that JSapi should work. enlightened

 

GroG's picture

I'm looking at it now...  

I'm looking at it now...   Sphinx comes with a good amount of dependencies libraries ..  so I might have missed something somewhere (probably) ... but if the ear.gram file is missing ... its a pretty good start.. the gram file tells Sphinx what it should recognize...

 

Oh .. then there's the complexity of making sure Sphinx is listening on the correct audio line :P

GroG's picture

Holy crud ... mine worked ! I

Holy crud ... mine worked !

I said hello, and it said hello back  ....  !

It can get in a bit of an infinite loop if it hears what it says...  I thought I fixed that but ... mmmm  I don't think so ...

Now as I'm typing it's saying " You said spin,   You said spin ...  You said power off"   :P

GroG's picture

There's an AudioCapture

There's an AudioCapture Service buried around here somewhere...  could brush that off and check that Java is listening on the correct audio line at least...

GroG's picture

Alrighty...  this will record

Alrighty...  this will record & play back 5 seconds of audio captured from the default audio line...

 

from time import sleep
from org.myrobotlab.service import Runtime
from org.myrobotlab.service import AudioCapture


audioIn = Runtime.createAndStart('audioIn','AudioCapture')
audioIn.startService()
print 'recording'
audioIn.captureAudio()
sleep(5)
audioIn.stopAudioCapture()
print 'playing back'
audioIn.playAudio()
Sed's picture

Well I found the file

Well I found the file ear.gram.

It is located under: sed@sed-MacBook:~/workspace/myrobotlab/.myrobotlab$ ls
ear.gram  ear.xml  serviceData.xml

It is a hidden file. we have to look at the path the search manager is looking at.

I also used the src folder, because the search manager could not find the src. Now it is attached.

Now I get this exception error. The linguistic, pruner and score are not found.

This is the exception error:

 

  try {
            linguist.allocate();
            pruner.allocate();
            scorer.allocate();
        } catch (IOException e) {
            throw new RuntimeException("Allocation of search manager resources failed", e);
        }
 

Sed's picture

This what I think is going

This what I think is going on. sphinx4.jar is located in lib directory outside lib we have src directory, this is looking at the sphix4 source code by it self. Now if we look at my robotlab directory none of that is there, instead of lib diectory we have libraries directory and outside libraries we don't have any src directory. Obviously sphinx4 is looking at no src directory. The way I fiexed that is placing the src directory outside libraries directory and attached the source within eclipse, that is how I got search manager code, but never the less, we a redirection problem.

Sed's picture

I've noticed that the third

I've noticed that the third party repo sphinx doest not have the jsapi jar neather the js.jar. That might have to do with it.

Sed's picture

Recent log: 0.0.0.0 0 0   

Recent log:

0.0.0.0
0
0    [main] DEBUG class org.myrobotlab.framework.Service  - setLogLevel null DEBUG
2    [main] DEBUG class org.myrobotlab.framework.Service  - setLogLevel null INFO
service count 1
3    [main] INFO  org.myrobotlab.service.Runtime  - attempting to invoke : org.myrobotlab.service.GUIService named gui
3    [main] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
4    [main] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
4    [main] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
4    [main] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
4    [main] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
4    [main] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
4    [main] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
7444 [main] INFO  class org.myrobotlab.framework.Service  - ---------------normalize-------------------
7444 [main] INFO  class org.myrobotlab.framework.Service  - os.name [Linux] getOS [linux]
7444 [main] INFO  class org.myrobotlab.framework.Service  - os.arch [i386] getArch [x86]
7444 [main] INFO  class org.myrobotlab.framework.Service  - getBitness [32]
7444 [main] INFO  class org.myrobotlab.framework.Service  - java.vm.name [OpenJDK Server VM] getVMName [hotspot]
7444 [main] INFO  class org.myrobotlab.framework.Service  - ---------------non-normalize---------------
7444 [main] INFO  class org.myrobotlab.framework.Service  - java.vm.name [OpenJDK Server VM]
7444 [main] INFO  class org.myrobotlab.framework.Service  - java.vm.vendor [Sun Microsystems Inc.]
7444 [main] INFO  class org.myrobotlab.framework.Service  - java.home [/usr/lib/jvm/java-6-openjdk-i386/jre]
7445 [main] INFO  class org.myrobotlab.framework.Service  - os.version [3.2.0-23-generic-pae]
7445 [main] INFO  class org.myrobotlab.framework.Service  - java.class.path [/home/sed/workspace/myrobotlab/bin:/home/sed/workspace/myrobotlab/thirdParty/repo/com.centralnexus.joystick/joystick/0.7/Joystick.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.google.gson/gson/1.7.1/gson-1.7.1.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacpp.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacv-android-arm.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacv-linux-x86.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacv-linux-x86_64.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacv-macosx-x86_64.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacv-windows-x86.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacv-windows-x86_64.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.googlecode.javacv/javacv/20111001/javacv.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.mxgraph.jgraph/jgraph/1.6.1.2/jgraphx.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.sun.java3d/java3d/1.5.1/j3dcore.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.sun.java3d/java3d/1.5.1/j3dutils.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.sun.java3d/java3d/1.5.1/vecmath.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.sun.jna/jna/3.2.2/jna.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/com.sun.speech.freetts/freetts/1.2/freetts.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/edu.cmu.sphinx/sphinx/4-1.0beta6/batch.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/edu.cmu.sphinx/sphinx/4-1.0beta6/jsapi-1.0-base.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/edu.cmu.sphinx/sphinx/4-1.0beta6/sphinx4.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/edu.cmu.sphinx/sphinx/4-1.0beta6/tags.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/edu.cmu.sphinx/sphinx/4-1.0beta6/TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/edu.cmu.sphinx/sphinx/4-1.0beta6/WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/edu.cmu.sphinx/sphinx/4-1.0beta6/WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/gnu.io.rxtx/rxtx/2.1-7r2/RXTXcomm.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/javaclient3.playerstage/playerstage/3/javaclient3.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/javaFlacEncoder.FLAC_FileEncoder/FLAC_FileEncoder/0.1/javaFlacEncoder-0.1.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/javax.speech.recognition/recognition/1.0/jsapi.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/javax.vecmath/vecmath/1.5.1/vecmath.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/javazoom.jl.player/player/1.0.1/jl1.0.1.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/net.sourceforge.simbad/simbad/1.4/simbad-1.4.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.apache.commons.codec/codec/1.3/commons-codec-1.3.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.apache.commons.httpclient/httpclient/3.1/commons-httpclient-3.1.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.apache.commons.logging/logging/1.1/commons-logging-1.1.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.apache.ivy/ivy/2.0.0/ivy.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.apache.log4j/log4j/1.2.14/log4j-1.2.14.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.jfugue.music/music/4.0.3/jfugue-4.0.3.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.jibble.simplewebserver/simplewebserver/1.0/SimpleWebServer.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.op.chess/chess/1.0.0/ChessBoard.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.python.core/core/2.5.2/jython.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.simpleframework.xml/xml/2.5.3/simple-xml-2.5.3.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.tritonus.share.sampled.floatsamplebuffer/floatsamplebuffer/0.3.6/tritonus_share-0.3.6.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/simbad.gui/gui/1.4/simbad-1.4.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/wiiuse.wiimote/wiimote/0.12b/wiiusej.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.quartz/quartz/2.1.5/quartz-2.1.5.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.slf4j/slf4j/1.6.1/slf4j-log4j12-1.6.1.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.slf4j/slf4j/1.6.1/slf4j-api-1.6.1.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.fife.rsyntaxtextarea/rsyntaxtextarea/2.0.1/rsyntaxtextarea.jar:/home/sed/workspace/myrobotlab/thirdParty/repo/org.fife.autocomplete/autocomplete/2.0.0/autocomplete.jar]
7445 [main] INFO  class org.myrobotlab.framework.Service  - java.library.path [./libraries/native/x86.32.linux:./libraries/native/x86.64.linux:./libraries/native/x86.32.mac:libraries/native/x86.32.linux]
7445 [main] INFO  class org.myrobotlab.framework.Service  - user.dir [/home/sed/workspace/myrobotlab]
7446 [main] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.BORG 31646.properties not found
7447 [main] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
7789 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy has 26 files
7792 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.python.core has 1 files
7792 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.python.core/core has 5 files
7792 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.python.core/core/jars has 1 files
7793 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.simpleframework.xml has 1 files
7793 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.simpleframework.xml/xml has 5 files
7793 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.simpleframework.xml/xml/jars has 1 files
7795 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/javax.speech.recognition has 1 files
7795 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/javax.speech.recognition/recognition has 5 files
7795 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/javax.speech.recognition/recognition/jars has 1 files
7796 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.myrobotlab has 1 files
7796 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.myrobotlab/myrobotlab has 5 files
7796 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.myrobotlab/myrobotlab/jars has 1 files
7797 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.apache.log4j has 1 files
7797 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.apache.log4j/log4j has 7 files
7798 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/org.apache.log4j/log4j/jars has 1 files
7798 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/edu.cmu.sphinx has 1 files
7799 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/edu.cmu.sphinx/sphinx has 5 files
7799 [main] INFO  org.myrobotlab.fileLib.FindFile  - looking at path .ivy/edu.cmu.sphinx/sphinx/jars has 7 files
7803 [main] INFO  class org.myrobotlab.framework.ServiceInfo  - adding dependency edu.cmu.sphinx 0 to local thirdPartyLib
7803 [main] INFO  class org.myrobotlab.framework.ServiceInfo  - adding dependency javax.speech.recognition 0 to local thirdPartyLib
7804 [main] INFO  class org.myrobotlab.framework.ServiceInfo  - adding dependency org.apache.log4j 0 to local thirdPartyLib
7804 [main] INFO  class org.myrobotlab.framework.ServiceInfo  - adding dependency org.myrobotlab 0 to local thirdPartyLib
7805 [main] INFO  class org.myrobotlab.framework.ServiceInfo  - adding dependency org.python.core 0 to local thirdPartyLib
7805 [main] INFO  class org.myrobotlab.framework.ServiceInfo  - adding dependency org.simpleframework.xml 0 to local thirdPartyLib
7806 [main] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.gui.properties not found
7806 [main] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
7845 [main] INFO  class org.myrobotlab.framework.Service  - adding interface java.awt.event.WindowListener
7845 [main] INFO  class org.myrobotlab.framework.Service  - adding interface java.awt.event.ActionListener
7845 [main] INFO  class org.myrobotlab.framework.Service  - adding interface java.io.Serializable
20047 [main] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.GUIService
20152 [main] INFO  org.myrobotlab.service.GUIService  - service count 2
60844 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 0
60855 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 1
60855 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 2
60855 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 3
60855 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 4
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 5
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 6
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 7
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 8
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 9
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 10
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 11
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 12
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 13
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 14
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 15
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 16
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 17
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 18
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 19
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 20
60856 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 21
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 22
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 23
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 24
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 25
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 26
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 27
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 28
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 29
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 30
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 31
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 32
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 33
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 34
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 35
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 36
60857 [AWT-EventQueue-0] INFO  org.myrobotlab.control.RuntimeGUI  - 37
60867 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60868 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60868 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60868 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60868 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60868 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60868 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60869 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748054
60869 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
60872 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646resolveSuccess to gui.resolveSuccess
60872 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60873 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748054
60874 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646resolveError to gui.resolveError
60874 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60874 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748055
60875 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646resolveBegin to gui.resolveBegin
60875 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60875 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748055
60876 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646resolveEnd to gui.resolveEnd
60876 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60876 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748055
60877 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646registered to gui.registered
60877 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60877 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748056
60878 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646released to gui.released
60878 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60878 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748056
60878 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646failedDependency to gui.failedDependency
60879 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60879 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.addListener(MRLListener) 20120623191748056
60881 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - adding addListener from BORG 31646proposedUpdates to gui.proposedUpdates
60881 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.addListener
60998 [main] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
61075 [main] INFO  org.myrobotlab.control.ServiceGUI  - service count 2
61276 [main] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
61276 [main] INFO  org.myrobotlab.control.ServiceGUI  - service count 2
68659 [AWT-EventQueue-0] INFO  class org.myrobotlab.framework.ServiceInfo  - here
68662 [AWT-EventQueue-0] INFO  class org.myrobotlab.framework.ServiceInfo  - here
82747 [AWT-EventQueue-0] ERROR org.myrobotlab.control.RuntimeGUI  - ******************popUpTrigger*********************
89717 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 31646
89717 [BORG 31646] INFO  class org.myrobotlab.framework.Service  - invoking BORG 31646.createAndStart(String,String) 20120623191816904
89718 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
89718 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
89718 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
89718 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
89718 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
89718 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
89718 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
89732 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89733 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89734 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89735 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89736 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89737 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89738 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89739 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89740 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89741 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89741 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89741 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89741 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89743 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89743 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89743 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89744 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89745 [BORG 31646] INFO  org.myrobotlab.service.Jython  - will filter method
89746 [BORG 31646] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.Jython.properties not found
89747 [BORG 31646] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
89759 [BORG 31646] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.Jython
89767 [BORG 31646_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 31646.createAndStart
90179 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
90179 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.addListener(MRLListener) 20120623191817366
90179 [Jython] INFO  class org.myrobotlab.framework.Service  - adding addListener from JythonpublishState to gui.getState
90180 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.addListener
90180 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
90180 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.addListener(MRLListener) 20120623191817367
90180 [Jython] INFO  class org.myrobotlab.framework.Service  - adding addListener from JythonfinishedExecutingScript to gui.finishedExecutingScript
90181 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.addListener
90181 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
90181 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.addListener(MRLListener) 20120623191817368
90181 [Jython] INFO  class org.myrobotlab.framework.Service  - adding addListener from JythonpublishStdOut to gui.getStdOut
90181 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.addListener
90394 [gui] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
90395 [gui] INFO  org.myrobotlab.control.ServiceGUI  - service count 3
100378 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
100388 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
100388 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.attachJythonConsole(null) 20120623191827566
105900 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.attachJythonConsole
105904 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.exec(String) 20120623191827566
106024 [Jython] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
106033 [Jython] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
106040 [Jython] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
106052 [Jython] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
106052 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
106052 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
106052 [Jython] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
106054 [Jython] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.ear.properties not found
106055 [Jython] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
106086 [Jython] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.Sphinx
106219 [Jython] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
106220 [Jython] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
106220 [Jython] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
106220 [Jython] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
106220 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
106220 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
106221 [Jython] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
106221 [Jython] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.mouth.properties not found
106221 [Jython] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
106227 [Jython] INFO  org.myrobotlab.service.Speech  - Using voice: audrey
106231 [Jython] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.Speech
106365 [Jython] INFO  class org.myrobotlab.framework.Service  - adding addListener from earrecognized to Jython.heard
106380 [Jython] INFO  class org.myrobotlab.framework.Service  - adding addListener from mouthisSpeaking to Jython.isSpeaking
106388 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.exec
106469 [gui] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
106480 [gui] INFO  org.myrobotlab.control.ServiceGUI  - service count 5
106651 [gui] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
106652 [gui] INFO  org.myrobotlab.control.ServiceGUI  - service count 5
148132 [gui] ERROR class org.myrobotlab.framework.Service  - ------
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.myrobotlab.framework.Service.invoke(Service.java:1082)
    at org.myrobotlab.service.GUIService.preProcessHook(GUIService.java:185)
    at org.myrobotlab.framework.Service.run(Service.java:572)
    at java.lang.Thread.run(Thread.java:679)
Caused by: java.util.IllegalFormatConversionException: d != java.lang.String
    at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4011)
    at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2725)
    at java.util.Formatter$FormatSpecifier.print(Formatter.java:2677)
    at java.util.Formatter.format(Formatter.java:2455)
    at java.util.Formatter.format(Formatter.java:2383)
    at java.lang.String.format(String.java:2781)
    at org.myrobotlab.service.GUIService.removeTab(GUIService.java:305)
    at org.myrobotlab.control.RuntimeGUI.released(RuntimeGUI.java:384)
    ... 8 more
------

148136 [AWT-EventQueue-0] INFO  org.myrobotlab.service.Runtime  - stopping service null/Jython
148139 [Jython] WARN  class org.myrobotlab.framework.Service  - Jython
148141 [Jython] WARN  class org.myrobotlab.framework.Service  - service INTERRUPTED
148141 [AWT-EventQueue-0] INFO  org.myrobotlab.service.Runtime  - stopping service null/gui
148137 [gui] ERROR class org.myrobotlab.framework.Service  - ------
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.myrobotlab.framework.Service.invoke(Service.java:1082)
    at org.myrobotlab.service.GUIService.preProcessHook(GUIService.java:185)
    at org.myrobotlab.framework.Service.run(Service.java:572)
    at java.lang.Thread.run(Thread.java:679)
Caused by: java.util.IllegalFormatConversionException: d != java.lang.String
    at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4011)
    at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2725)
    at java.util.Formatter$FormatSpecifier.print(Formatter.java:2677)
    at java.util.Formatter.format(Formatter.java:2455)
    at java.util.Formatter.format(Formatter.java:2383)
    at java.lang.String.format(String.java:2781)
    at org.myrobotlab.service.GUIService.removeTab(GUIService.java:305)
    at org.myrobotlab.control.RuntimeGUI.released(RuntimeGUI.java:384)
    ... 8 more
------

148149 [AWT-EventQueue-0] INFO  org.myrobotlab.service.Runtime  - stopping service null/ear
148153 [ear] WARN  class org.myrobotlab.framework.Service  - ear
148154 [ear] WARN  class org.myrobotlab.framework.Service  - service INTERRUPTED
148155 [AWT-EventQueue-0] INFO  org.myrobotlab.service.Runtime  - stopping service null/mouth
148183 [mouth] WARN  class org.myrobotlab.framework.Service  - mouth
148184 [mouth] WARN  class org.myrobotlab.framework.Service  - service INTERRUPTED
148197 [AWT-EventQueue-0] INFO  org.myrobotlab.service.Runtime  - stopping service null/BORG 31646
148202 [BORG 31646] WARN  class org.myrobotlab.framework.Service  - BORG 31646
148202 [BORG 31646] WARN  class org.myrobotlab.framework.Service  - service INTERRUPTED
148203 [AWT-EventQueue-0] INFO  org.myrobotlab.service.Runtime  - clearing hosts environments
148204 [AWT-EventQueue-0] INFO  org.myrobotlab.service.Runtime  - clearing registry
Exception in thread "ear_ear" java.lang.RuntimeException: Allocation of search manager resources failed
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:650)
    at edu.cmu.sphinx.decoder.AbstractDecoder.allocate(AbstractDecoder.java:87)
    at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:168)
    at org.myrobotlab.service.Sphinx$SpeechProcessor.run(Sphinx.java:215)
Caused by: java.io.FileNotFoundException: .\.myrobotlab/ear.gram (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at java.io.FileInputStream.<init>(FileInputStream.java:96)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:87)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:178)
    at java.net.URL.openStream(URL.java:1029)
    at edu.cmu.sphinx.jsgf.parser.JSGFParser.newGrammarFromJSGF(JSGFParser.java:232)
    at edu.cmu.sphinx.jsgf.JSGFGrammar.loadNamedGrammar(JSGFGrammar.java:697)
    at edu.cmu.sphinx.jsgf.JSGFGrammar.commitChanges(JSGFGrammar.java:613)
    at edu.cmu.sphinx.jsgf.JSGFGrammar.createGrammar(JSGFGrammar.java:300)
    at edu.cmu.sphinx.linguist.language.grammar.Grammar.allocate(Grammar.java:116)
    at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate(FlatLinguist.java:300)
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:646)

Sed's picture

Testing, Testing and more

Testing, Testing and more Testing!

Well, I've got sphinx running by itself in the gui and it woks. The problem here is that when I use Jython, it is not getting load it. I've noticed that who ever made the sample test has :

from org.myrobotlab.service import Sphinx

There is source when jython is calling the third prty repo sphinx. There is ONLY some jar files, NO js.jar, No src folder.

Sed's picture

Well, after some trial and

Well, after some trial and error I found that if  you load by starting the service sphinx and then starting the service Jython afeter a few minutes it will kick in. It is obvious that we don't need load sphinx if Jython is suppost to take care of that.

I did get that while loop you were talking about GroG. Thta is a strange behaviour!

Here is the last lines of the log output:

151395 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
168270 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: no

168275 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
184700 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: yes

184707 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
188232 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: yes

188232 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
 

GroG's picture

Great work Sed !  I fixed a

Great work Sed ! 

I fixed a few more bugs, so you may want to update to head again...

I'd like to know what the issue was...  You say you can't load it directly from the Jython script?  That you have to laod it through the GUI to get it to work?

Sed's picture

Yes, that is right. You can

Yes, that is right. You can not load sphinx through the jython script. The problem is that the thirdParty library does not have all the jars  and src tht it needs to run. When jython calls sphinx it loads only what it has available.

Did you update the sphinx directory under thirdParty?

Sed's picture

This is the log output when I

This is the log output when I start the service sphinx by it self:

14769 [AWT-EventQueue-0] ERROR org.myrobotlab.control.RuntimeGUI  - ******************popUpTrigger*********************
25570 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY BORG 50843
25578 [BORG 50843] INFO  class org.myrobotlab.framework.Service  - invoking BORG 50843.createAndStart(String,String) 20120624172829340
25578 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
25578 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
25578 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
25578 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
25578 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
25578 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
25578 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
25580 [BORG 50843] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.Sphinx.properties not found
25580 [BORG 50843] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
25585 [BORG 50843] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.Sphinx
25593 [BORG 50843_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for BORG 50843.createAndStart
26120 [gui] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
26120 [gui] INFO  org.myrobotlab.control.ServiceGUI  - service count 3
29691 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
160827 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
168531 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: look

168532 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
176039 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: hello

176040 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
182737 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: look

182738 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
185786 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: yes

185786 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
188611 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: yes

188612 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening
191990 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - You said: no

191991 [Sphinx_ear] ERROR org.myrobotlab.service.Sphinx  - listening

 

So, the problem relies on the jython script, since we get the pipe hooked on sphinx. I do not know why I get  the word ERROR on the log. May be because of some missing libraries?

GroG's picture

Hi Sed, MyRobotLab has begun

Hi Sed,

MyRobotLab has begun to operate a little like a Linux repo.  I'm guessing your pretty familiar with the concept since your running Ubuntu.

The general idea is MRL can start as a very slim and lean system, and that depending on what is needed or wanted - the appropriate Service can be loaded from the repo and utilized...

At least that is how its supposed to work cheeky

I'm guessing you "loaded" it from the GUI .. which really means it was installed with the repo-manager..

The script does not try to install it...  so if its run without first getting it from the repo .. it won't work.

Does this make sense?

 

I'm guessing - the Jython script "should" work now - that you have the Service actually installed.  If it doesn't then theres a bug somewhere...  if it does then you now understand the progression of - Loading/Installing a Service module versus starting/instantiating a Service.

Could you try the script again and see if it works?

The ERRORs you recently referred to is my sloppyness... they aren't "real" errors - I have since checked in corrections there...   

GroG's picture

BTW - there's a way to start

BTW - there's a way to start a Service in the Jython script which checks to see if the Service is installed or not, and downloads/installs the Service if its not already there... 

Heh, the exact lines of Jython code escape me at the moment... but we are working on autocompletion in the editor ... so failing brain won't have to remember !

Sed's picture

I'll check it out. Talking

I'll check it out.

Talking about the ear.gram. I am tracing it back.

This is  the sphinx.java class:

String newPath = cfgDir + File.separator + myService.getName() + ".xml";
            File localGramFile  = new File(newPath);

            if (localGramFile.exists())
            {
                cm = new ConfigurationManager(newPath);    
            } else {
                // resource in jar default
                cm = new ConfigurationManager(this.getClass().getResource("/resource/simple.xml"));
            }

Then I went ahead to look for the simple.xml file under myrobotlab/src/resource and I found simple.xml and simple.gram there. No ear.xml and No ear.gram, if we look at the if statement above we can redirect to the ear.xml by changing newpath to our ear.gram location.

 

 

Sed's picture

package-list

package-list file:

javax.speech
javax.speech.recognition
javax.speech.synthesis

Sed's picture

Recent log: 48037

Recent log:

48037 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
48048 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
48048 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.attachJythonConsole(null) 20120625232344101
51412 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.attachJythonConsole
51413 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.exec(String) 20120625232344101
51466 [Jython] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
51468 [Jython] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
51487 [Jython] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
51487 [Jython] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
51488 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
51488 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
51488 [Jython] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
51489 [Jython] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.ear.properties not found
51490 [Jython] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
51507 [Jython] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.Sphinx
51561 [Jython] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
51581 [Jython] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
51581 [Jython] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
51582 [Jython] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
51582 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
51582 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
51582 [Jython] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
51583 [Jython] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.mouth.properties not found
51583 [Jython] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
51588 [Jython] INFO  org.myrobotlab.service.Speech  - Using voice: audrey
51589 [Jython] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.Speech
51750 [gui] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
51751 [gui] INFO  org.myrobotlab.control.ServiceGUI  - service count 5
51794 [Jython] INFO  class org.myrobotlab.framework.Service  - adding addListener from earrecognized to Jython.heard
51809 [Jython] INFO  class org.myrobotlab.framework.Service  - adding addListener from mouthisSpeaking to Jython.isSpeaking
51828 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.exec
51915 [gui] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph

51915 [gui] INFO  org.myrobotlab.control.ServiceGUI  - service count 5

GroG's picture

So this is what I get : I'm

So this is what I get :

I'm on Windows 7 on a EliteBook 8560w.
I've done the install through the gui of Sphinx & Jython (Jython came pre-loaded) - both are green in the Runtime console..

Hit F11 on Jython.java

I go to examples->speech->talkBack.py

Hit the execute button...

It processes... takes a while (Sphinx is slow to load) - and then this log entry comes up

 

 
75018 [ear_ear] INFO org.myrobotlab.service.Sphinx  - listening
if I say "Hello" - it "sometimes" comes back with this

244822 [ear_ear] DEBUG org.myrobotlab.framework.Outbox  -  msgBox size 1 msg [recognized(String)]
244823 [ear_ear] INFO  org.myrobotlab.service.Sphinx  - recognized: hello
 
244824 [ear_ear] INFO  org.myrobotlab.service.Sphinx  - listening
244823 [ear_outbox_0] DEBUG org.myrobotlab.framework.Outbox  - removed from msgBox size now 0
244825 [ear_outbox_0] DEBUG class org.myrobotlab.net.CommunicationManager  - sending local
 
 

 

GroG's picture

Do you have an  ear.gram &

Do you have an 

ear.gram & ear.xml file under the ./myrobotlab directory  ?

Sed's picture

this is the main reason is

this is the main reason is not working:

java.io.FileNotFoundException: .\.myrobotlab/ear.gram (No such file or directory)

Eventhogh the .myrobotlab directory and the file ear.gram is there jython is unable to read it. I've already change the permissions  to 777 and still with No Luck.

I have noticed that my value in my variables is :

.\\.myrobotlab/ear.gram (No such file or directory)

That second back slash might be the problem, don't you think!

Sed's picture

if you load them both like

if you load them both like you did, what is happening is that the service running is the sphinx and not jython. It is like send two people to listen  to a metting and one of them is deaf. You got me!

Sed's picture

Well, I got to say that

Well, I got to say that sphinx is looking to the default simple.xml to get the ear.gram. I have made some changes to the code here.

public boolean createGrammar (String grammar)
    {    
        // get base simple.xml file - and modify it to
        // point to the correct .gram file
        String simplexml = FileIO.getResourceFile("ear.xml"); //change simple to ear by sed
        //String grammarLocation = "file://" + cfgDir.replaceAll("\\\\", "/") + "/";
        //simplexml = simplexml.replaceAll("resource:/resource/", cfgDir.replaceAll("\\\\", "/"));
        simplexml = simplexml.replaceAll("resource:/resource/", ".\\\\.myrobotlab");
        //replacing simple with ear by sed
        simplexml = simplexml.replaceAll("name=\"grammarName\" value=\"ear\"", "name=\"grammarName\" value=\""+this.getName()+"\"");
        save("xml", simplexml);
        
        
        String gramdef = "#JSGF V1.0;\n"
                + "grammar "+getName()+";\n"
                + "public <greet> = (" + grammar + ");";
        save("gram", gramdef);
        
        return true;
    }

And i don't get that nasty window of the debugger, it runs through it and I get this out put with this one error.

This is the log output:

27999 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
28008 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.attachJythonConsole(null) 20120626063945786
28009 [gui_outbox_0] INFO  org.myrobotlab.framework.Outbox  - configured to RELAY Jython
31439 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.attachJythonConsole
31440 [Jython] INFO  class org.myrobotlab.framework.Service  - invoking Jython.exec(String) 20120626063945787
31518 [Jython] INFO  org.myrobotlab.service.Runtime  - loader for this class sun.misc.Launcher.AppClassLoader
31519 [Jython] INFO  org.myrobotlab.service.Runtime  - parent sun.misc.Launcher.ExtClassLoader
31519 [Jython] INFO  org.myrobotlab.service.Runtime  - system class loader sun.misc.Launcher$AppClassLoader@df6ccd
31520 [Jython] INFO  org.myrobotlab.service.Runtime  - parent should be nullsun.misc.Launcher.ExtClassLoader
31540 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context sun.misc.Launcher.AppClassLoader
31540 [Jython] INFO  org.myrobotlab.service.Runtime  - thread context parent sun.misc.Launcher.ExtClassLoader
31541 [Jython] INFO  org.myrobotlab.service.Runtime  - refreshing classloader
31548 [Jython] WARN  class org.myrobotlab.framework.ConfigurationManager  - file sed-MacBook.ear.properties not found
31549 [Jython] INFO  class org.myrobotlab.net.CommunicationManager  - instanciating a org.myrobotlab.net.CommObjectStreamOverUDP
31560 [Jython] INFO  org.myrobotlab.service.Runtime  - returning org.myrobotlab.service.Sphinx
31569 [Jython] ERROR org.myrobotlab.fileLib.FileIO  - resource ear.xml not found
31577 [Jython] ERROR class org.myrobotlab.framework.Service  - ------
Traceback (most recent call last):
  File "<string>", line 31, in <module>
    at org.myrobotlab.service.Sphinx.createGrammar(Sphinx.java:122)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)

java.lang.NullPointerException: java.lang.NullPointerException

    at org.python.core.PyException.fillInStackTrace(PyException.java:70)
    at java.lang.Throwable.<init>(Throwable.java:198)
    at java.lang.Exception.<init>(Exception.java:46)
    at java.lang.RuntimeException.<init>(RuntimeException.java:49)
    at org.python.core.PyException.<init>(PyException.java:46)
    at org.python.core.PyException.<init>(PyException.java:43)
    at org.python.core.Py.JavaError(Py.java:481)
    at org.python.core.Py.JavaError(Py.java:474)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
    at org.python.core.PyObject.__call__(PyObject.java:404)
    at org.python.core.PyObject.__call__(PyObject.java:408)
    at org.python.core.PyMethod.__call__(PyMethod.java:124)
    at org.python.pycode._pyx2.f$0(<string>:60)
    at org.python.pycode._pyx2.call_function(<string>)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1261)
    at org.python.core.Py.exec(Py.java:1305)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
    at org.myrobotlab.service.Jython.exec(Jython.java:166)
    at org.myrobotlab.service.Jython.exec(Jython.java:139)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.myrobotlab.framework.Service.invoke(Service.java:1054)
    at org.myrobotlab.framework.Service.invoke(Service.java:1019)
    at org.myrobotlab.framework.Service.invoke(Service.java:910)
    at org.myrobotlab.framework.Service.run(Service.java:576)
    at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NullPointerException
    at org.myrobotlab.service.Sphinx.createGrammar(Sphinx.java:122)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
    ... 22 more
------

31593 [Jython_outbox_0] INFO  org.myrobotlab.framework.Outbox  - no static route for Jython.exec
31758 [gui] INFO  org.myrobotlab.control.ServiceGUI  - buildGraph
31770 [gui] INFO  org.myrobotlab.control.ServiceGUI  - service count 4

The reason is not finding the ear.xml is because of the path when trying to get the file.

At least we get some python output now, don't you think.

We are one more step closer! :)

I hope that helps a little bit GroG

 

Sed's picture

Ok. Now I am starting to

Ok. Now I am starting to understand. This ear.gram and ear.xml are created by the jython script. I just noticed that when I was running the jython scrpt and had the file open with gedit,  I noticed the changes in real time. Now that I know that, all I got to do is findout why the system is not finding it. It creates it, throws it out  and then the system can't find the right path to it.

Sed's picture

GroG, I think we found our

GroG, I think we found our problem. It might be bigger than what I thought. Doing a serach in eclipse for the Service.java I've got an error that looks like this:

Problems encountered during text search.
File 'myrobotlab/thirdParty/repo/cc.arduino/arduino/1.0/arduino.x86.32.linux.zip' has been skipped, problem while reading: ('Input/output error').
Input/output error
File 'myrobotlab/.myrobotlab/serviceData.xml' has been skipped, problem while reading: ('Resource is out of sync with the file system: '/myrobotlab/.myrobotlab/serviceData.xml'.').
Resource is out of sync with the file system: '/myrobotlab/.myrobotlab/serviceData.xml'.
File 'myrobotlab/.myrobotlab/ear.xml' has been skipped, problem while reading: ('Resource is out of sync with the file system: '/myrobotlab/.myrobotlab/ear.xml'.').
Resource is out of sync with the file system: '/myrobotlab/.myrobotlab/ear.xml'.
File 'myrobotlab/.myrobotlab/ear.gram' has been skipped, problem while reading: ('Resource is out of sync with the file system: '/myrobotlab/.myrobotlab/ear.gram'.').
Resource is out of sync with the file system: '/myrobotlab/.myrobotlab/ear.gram'.

I did find the Service.java class though. I will look into it later on. Have a good one!