2011/9/29 Israel Sotomayor Azcuna <[email protected]>

> Sorry for my late answer and thanks for your fast answer :)
> I'll write in English because I think it's better to reach the greatest
> number of people.
>
> > Could you please show us the contents of the file
> > "$PREFIX/share/apertium/modes/en-es-null.mode"? It seems that the
> Apertium
> > process dies each time you try to translate a text with it.
>
> Yes i think thats the problem, but i dont know why, this is the code of
> "en-es-null.mode": http://pastebin.com/TvSXTzsf
>
>
The file seems correct. Could you please execute the following command and
paste the output here?

echo "Hola mundo" | /usr/local/bin/apertium es-en-null


> > In addition, have you updated the configuration file "*
> > ScaleMTSlave-1.0/conf/translation-engines.xml*" to include the right
> > location of the Apertium modules?
>
> I'm looking for the path to Apertium modules location but I didn't find it,
> so i send you the content of the file: http://pastebin.com/TvSXTzsf
>
>
Don't worry, as you have installed Apertium in the default location, you
don't need to change it.


> > I would choose a higher value. It is the maximum amount of memory a
> daemon
> > can consume. If it reaches that limit, it is automatically killed. You
> can
> > safely delete the entry in the "configuration.properties" file, as a
> > convenient default value is used it the entry is not found.
>
> I don't know if I understand you, if I don't put "maximum_amount_of_memory"
> and i start the Slave it's die, it's like try to load a default value but
> don't find it and do a parse to null value then throw
> java.lang.NumberFormatException
>
> I try to choose a high value but doesn't work :S, it's die when I make a
> request
>
>
I think the reason the daemon dies is not the value of this property, but
some problem
in your Apertium installation. So, put a value around 1000 and it should be
ok.

> WARN - Daemon -Exception reading max_memory_per_daemon
> > java.lang.NumberFormatException: null
> >        at java.lang.Long.parseLong(Long.java:404)
>
> When I was installing ./installApertiumAndPairs.sh
>
> Don't find libapertium3-3.2 so I install libapertium3-3.1-0 from Ubuntu
> repositories I don't know if it's a problem.
>

Maybe this is the cause of the problem. Let's check the output of the
command to find it out.


>
> Thanks!
>

You're welcome!

>
> ------------------------------
>
> Message: 6
> Date: Wed, 28 Sep 2011 08:54:21 +0200
> From: "Israel Sotomayor Azcuna" <[email protected]>
> Subject: [Apertium-stuff] [DaemonDeadException] ScaleMT Problems!
> To: <[email protected]>
> Message-ID: <000c01cc7dab$75cc1390$61643ab0$@[email protected]>
> Content-Type: text/plain;       charset="iso-8859-1"
>
> Hi! First of all sorry about my english.
>
> I have somes problems with the ScaleMTSlave.
>
> ** -> 1 problem
>
> When I run ScaleMTSlave:
>
>        me@me-vb:~/Escritorio/ScaleMTSlave-1.0$ sudo ./run-scaleMT.sh
> localhost
>        28/09/2011 08:15:39 - INFO - Main -Started RMI Registry on port 1099
>
>        28/09/2011 08:15:39 - INFO - Main -Server information. Cpu capacity:
> 10000 Max capacity per daemon: 10000 Memory capacity: 288
>        28/09/2011 08:15:39 - INFO - Main -Remote object ScaleMTSlave bound
> OK. Name: ScaleMTSlave. Port: 1331
>        28/09/2011 08:15:39 - INFO - Main -Server ready: registered with
> request router
>        28/09/2011 08:17:42 - ERROR - Daemon$StatusReader -Daemon 0 frozen
>        org.scalemt.rmi.exceptions.DaemonDeadException
>                at
> org.scalemt.daemon.Daemon$EngineReader.run(Daemon.java:320)
>                at java.lang.Thread.run(Thread.java:636)
>        28/09/2011 08:17:42 - ERROR - Daemon -Unexpected exception while
> translating
>        org.scalemt.rmi.exceptions.DaemonDeadException
>                at
> org.scalemt.daemon.Daemon$EngineReader.run(Daemon.java:320)
>                at java.lang.Thread.run(Thread.java:636)
>
> The?error happens when?i make a request like this one:
> http://localhost:8080/ScaleMTRouter/json/translate?q=hello&langpair=en|es
>
> ** -> 2 problem
>
> When i was installing the ScaleMTSlave I received a message with an error
> like ?can?t find apertium-module? I think it?s in the
> InstallApertiumAndPairs.sh file on this line ?cp apertium-module/*
> $REAL_PREFIX/bin? What?s apertium-modules? And what it does? I don?t find
> anything about that on the documentation.
>
> ** -> 3 problem
>
> When I start the Slave it ask about "max_memory_per_daemon" and then die
>
> WARN - Daemon -Exception reading max_memory_per_daemon
> java.lang.NumberFormatException: null
>        at java.lang.Long.parseLong(Long.java:404)
>        at java.lang.Long.parseLong(Long.java:483)
>        at org.scalemt.daemon.Daemon.<init>(Daemon.java:691)
>        at
> org.scalemt.daemon.DaemonFactory.newDaemon(DaemonFactory.java:554)
>        at
>
> org.scalemt.main.TranslationEnginePool.startDaemon(TranslationEnginePool.jav
> a:719)
>        at
>
> org.scalemt.main.TranslationEnginePool.computeServerCpuCapacity(TranslationE
> nginePool.java:458)
>        at
>
> org.scalemt.main.TranslationEnginePool.guessServerInformation(TranslationEng
> inePool.java:383)
>        at org.scalemt.main.Main.startSlave(Main.java:387)
>        at org.scalemt.main.Main.main(Main.java:309)
>
> So to solve it, I add to the configuration.properties the variable
> "max_memory_per_daemon = 256" with the value 256, but I'm not sure if
> that?s
> the correct way
>
> Thanks in advance!
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 28 Sep 2011 09:10:39 +0000
> From: Francis Tyers <[email protected]>
> Subject: Re: [Apertium-stuff] [DaemonDeadException] ScaleMT Problems!
> To: [email protected]
> Cc: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="UTF-8"
>
> El dc 28 de 09 de 2011 a les 08:54 +0200, en/na Israel Sotomayor Azcuna
> va escriure:
> > Hi! First of all sorry about my english.
>
> Never be sorry about your English! Y de todas maneras, puedes escribir a
> la lista el idioma que manejas mejor -- es multiling?e.
>
> > I have somes problems with the ScaleMTSlave.
>
> No s? la soluci?n, pero pongo a V?ctor en cop?a que probablemente ?l
> sabr?.
>
> Tambi?n nos ayudar?a si puderias copiar y pegar todos los comandos que
> has hecho en pastebin.com.
>
> Saludos,
>
> Fran
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 28 Sep 2011 11:44:21 +0200
> From: V?ctor Manuel S?nchez Cartagena <[email protected]>
> Subject: Re: [Apertium-stuff] [DaemonDeadException] ScaleMT Problems!
> To: [email protected]
> Message-ID:
>        <cajzc5ndjd+qeuqzdg+tmampvk3bvd5zgbj2uytfptmvusnv...@mail.gmail.com
> >
> Content-Type: text/plain; charset="windows-1252"
>
> 2011/9/28 Israel Sotomayor Azcuna <[email protected]>
>
> > Hi! First of all sorry about my english.
> >
> > I have somes problems with the ScaleMTSlave.
> >
> > ** -> 1 problem
> >
> > When I run ScaleMTSlave:
> >
> >        me@me-vb:~/Escritorio/ScaleMTSlave-1.0$ sudo ./run-scaleMT.sh
> > localhost
> >        28/09/2011 08:15:39 - INFO - Main -Started RMI Registry on port
> 1099
> >
> >        28/09/2011 08:15:39 - INFO - Main -Server information. Cpu
> capacity:
> > 10000 Max capacity per daemon: 10000 Memory capacity: 288
> >        28/09/2011 08:15:39 - INFO - Main -Remote object ScaleMTSlave
> bound
> > OK. Name: ScaleMTSlave. Port: 1331
> >        28/09/2011 08:15:39 - INFO - Main -Server ready: registered with
> > request router
> >        28/09/2011 08:17:42 - ERROR - Daemon$StatusReader -Daemon 0 frozen
> >        org.scalemt.rmi.exceptions.DaemonDeadException
> >                at
> > org.scalemt.daemon.Daemon$EngineReader.run(Daemon.java:320)
> >                at java.lang.Thread.run(Thread.java:636)
> >        28/09/2011 08:17:42 - ERROR - Daemon -Unexpected exception while
> > translating
> >        org.scalemt.rmi.exceptions.DaemonDeadException
> >                at
> > org.scalemt.daemon.Daemon$EngineReader.run(Daemon.java:320)
> >                at java.lang.Thread.run(Thread.java:636)
> >
> > The error happens when i make a request like this one:
> >
> http://localhost:8080/ScaleMTRouter/json/translate?q=hello&langpair=en|es
> >
> >
> Could you please show us the contents of the file
> "$PREFIX/share/apertium/modes/en-es-null.mode"? It seems that the Apertium
> process dies each time you try to translate a text with it.
>
> In addition, have you updated the configuration file "*
> ScaleMTSlave-1.0/conf/translation-engines.xml*" to include the right
> location of the Apertium modules?
>
>
>
> ** -> 2 problem
> >
> > When i was installing the ScaleMTSlave I received a message with an error
> > like ?can?t find apertium-module? I think it?s in the
> > InstallApertiumAndPairs.sh file on this line ?cp apertium-module/*
> > $REAL_PREFIX/bin? What?s apertium-modules? And what it does? I don?t find
> > anything about that on the documentation.
> >
> > Don't worry about that, it was an error in the installation script which
> I
> have just fixed.
>
>
>
> ** -> 3 problem
> >
> > When I start the Slave it ask about "max_memory_per_daemon" and then die
> >
> > WARN - Daemon -Exception reading max_memory_per_daemon
> > java.lang.NumberFormatException: null
> >        at java.lang.Long.parseLong(Long.java:404)
> >        at java.lang.Long.parseLong(Long.java:483)
> >        at org.scalemt.daemon.Daemon.<init>(Daemon.java:691)
> >        at
> > org.scalemt.daemon.DaemonFactory.newDaemon(DaemonFactory.java:554)
> >        at
> >
> >
>
> org.scalemt.main.TranslationEnginePool.startDaemon(TranslationEnginePool.jav
> > a:719)
> >        at
> >
> >
>
> org.scalemt.main.TranslationEnginePool.computeServerCpuCapacity(TranslationE
> > nginePool.java:458)
> >        at
> >
> >
>
> org.scalemt.main.TranslationEnginePool.guessServerInformation(TranslationEng
> > inePool.java:383)
> >        at org.scalemt.main.Main.startSlave(Main.java:387)
> >        at org.scalemt.main.Main.main(Main.java:309)
> >
> > So to solve it, I add to the configuration.properties the variable
> > "max_memory_per_daemon = 256" with the value 256, but I'm not sure if
> > that?s
> > the correct way
> >
> >
> I would choose a higher value. It is the maximum amount of memory a daemon
> can consume. If it reaches that limit, it is automatically killed. You can
> safely delete the entry in the "configuration.properties" file, as a
> convenient default value is used it the entry is not found.
>
>
>
>
>
> > Thanks in advance!
> >
> >
> >
> >
>
> ----------------------------------------------------------------------------
> --
> > All the data continuously generated in your IT infrastructure contains a
> > definitive record of customers, application performance, security
> > threats, fraudulent activity and more. Splunk takes this data and makes
> > sense of it. Business sense. IT sense. Common sense.
> > http://p.sf.net/sfu/splunk-d2dcopy1
> > _______________________________________________
> > Apertium-stuff mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/apertium-stuff
> >
>
>
> Regards,
>
> V?ctor
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ----------------------------------------------------------------------------
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
>
> ------------------------------
>
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
> End of Apertium-stuff Digest, Vol 53, Issue 8
> *********************************************
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to