Skip to Content.
Sympa Menu

illinois-ml-nlp-users - Re: [Illinois-ml-nlp-users] Invalid method name: 'describeAnnotations' / 'provide' -- Resolved!

illinois-ml-nlp-users AT lists.cs.illinois.edu

Subject: Support for users of CCG software closed 7-27-20

List archive

Re: [Illinois-ml-nlp-users] Invalid method name: 'describeAnnotations' / 'provide' -- Resolved!


Chronological Thread 
  • From: Meghana Kshirsagar <mkshirsa AT andrew.cmu.edu>
  • To: Meghana Kshirsagar <mkshirsa AT andrew.cmu.edu>
  • Cc: illinois-ml-nlp-users AT cs.uiuc.edu
  • Subject: Re: [Illinois-ml-nlp-users] Invalid method name: 'describeAnnotations' / 'provide' -- Resolved!
  • Date: Sun, 30 Mar 2014 17:02:19 -0400
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/illinois-ml-nlp-users/>
  • List-id: Support for users of CCG software <illinois-ml-nlp-users.cs.uiuc.edu>


Hello there,
This error is gone now. I reinstalled Curator and now it's working alright so
far.

Thanks.
best,
M.

On Mar 28, 2014, at 11:35 PM, Meghana Kshirsagar wrote:

> Hello there,
> I forgot to attach the server log in my previous post. The client-side
> error is in my previous post (also in the attached email below this one).
> I think it is a problem due to some inconsistency in jars (based on a
> google search). I am making sure that both the client and server use the
> same jars for everything. Yet the issue with the "Invalid method name:"
> remains. It will be great if you had any idea on what else I could try.
>
> java -cp
> /<path>/curator-1.0.7/dist/components/illinois-verb-srl-server.jar:/<path>/curator-1.0.7/dist:/<path>/curator-1.0.7/dist/components/illinois-abstract-server.jar:/<path>/curator-1.0.7/dist/components/curator-interfaces.jar:/<path>/curator-1.0.7/dist:/<path>/curator-1.0.7/dist/lib/illinoisSRL-3.0.5.jar:/<path>/curator-1.0.7/dist/lib/commons-cli-1.2.jar:/<path>/curator-1.0.7/dist/lib/commons-collections-3.2.1.jar:/<path>/curator-1.0.7/dist/lib/commons-configuration-1.6.jar:/<path>/curator-1.0.7/dist/lib/commons-lang-2.5.jar:/<path>/curator-1.0.7/dist/lib/commons-logging-1.1.1.jar:/<path>/curator-1.0.7/dist/lib/coreUtilities-0.1.4.jar:/<path>/curator-1.0.7/dist/lib/edison-0.2.10.jar:/<path>/curator-1.0.7/dist/lib/jwnl-1.4_rc3.jar:/<path>/curator-1.0.7/dist/lib/LBJLibrary-2.8.2.jar:/<path>/curator-1.0.7/dist/lib/libthrift-0.8.0.jar:/<path>/curator-1.0.7/dist/lib/logback-classic-0.9.28.jar:/<path>/curator-1.0.7/dist/lib/logback-core-0.9.28.jar:/<path>/curator-1.0.7/dist/lib/slf4j-api-1.6.1.jar:/<path>/curator-1.0.7/dist/lib/snowball-1.0.jar:/<path>/curator-1.0.7/dist/lib/illinoisSRL-verb-models-3.0.5.jar:/<path>/curator-1.0.7/dist/configs/srl-config.properties
> -p 14810
>
> 23:18:24,673 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
> Could NOT find resource [logback.groovy]
> 23:18:24,674 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
> Could NOT find resource [logback-test.xml]
> 23:18:24,674 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
> Found resource [logback.xml] at
> [file:/<path>/curator-1.0.7/dist/logback.xml]
> 23:18:24,757 |-INFO in
> ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute
> not set
> 23:18:24,758 |-INFO in
> ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter@7bc9a682
> - Will scan for changes in [[/<path>/curator-1.0.7/dist/logback.xml]]
> every 60 seconds.
> 23:18:24,758 |-INFO in
> ch.qos.logback.classic.joran.action.ConfigurationAction - Adding
> ReconfigureOnChangeFilter
> as a turbo filter
> 23:18:24,772 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
> 23:18:24,775 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> Naming appender as [STDOUT]
> 23:18:24,863 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This
> appender no longer admits a layout as a sub-component, set an encoder
> instead.
> 23:18:24,863 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To
> ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
> 23:18:24,863 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See
> also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
> 23:18:24,863 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> About to instantiate appender of type
> [ch.qos.logback.core.rolling.RollingFileAppender]
> 23:18:24,866 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> Naming appender as [FILE]
> 23:18:24,888 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No
> compression will be used
> 23:18:24,890 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use
> the pattern logs/dated/<xxx>.cs.cmu.edu-servers.%d{yyyy-MM-dd}.log for the
> active file
> 23:18:24,894 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date
> pattern is 'yyyy-MM-dd' from file name pattern
> 'logs/dated/<xxx>.cs.cmu.edu-servers.%d{yyyy-MM-dd}.log'.
> 23:18:24,894 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy -
> Roll-over at midnight.
> 23:18:24,897 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting
> initial period to Fri Mar 28 23:18:24 EDT 2014
> 23:18:24,899 |-WARN in
> ch.qos.logback.core.rolling.RollingFileAppender[FILE] - This appender no
> longer admits a layout as a sub-component, set an encoder instead.
> 23:18:24,899 |-WARN in
> ch.qos.logback.core.rolling.RollingFileAppender[FILE] - To ensure
> compatibility, wrapping your layout in LayoutWrappingEncoder.
> 23:18:24,899 |-WARN in
> ch.qos.logback.core.rolling.RollingFileAppender[FILE] - See also
> http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
> 23:18:24,899 |-WARN in
> ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Setting "File"
> property to null on account of prudent mode
> 23:18:24,899 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file
> name: logs/dated/<xxx>.cs.cmu.edu-servers.2014-03-28.log
> 23:18:24,899 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is
> set to [null]
> 23:18:24,900 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction
> - Setting level of ROOT logger to INFO
> 23:18:24,900 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction -
> Attaching appender named [STDOUT] to Logger[ROOT]
> 23:18:24,902 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction -
> Attaching appender named [FILE] to Logger[ROOT]
> 23:18:24.914 [main] INFO e.i.c.c.a.h.IllinoisVerbSRLHandler - Verb SRL
> ready
> 23:18:25.005 [main] INFO e.i.cs.cogcomp.srl.main.SRLSystem - Initializing
> SRL classifiers
> 23:18:25.024 [main] INFO e.i.cs.cogcomp.srl.main.SRLSystem - Finished
> initializing all classifiers
> 23:18:25.050 [main] INFO e.i.cs.cogcomp.srl.main.SRLSystem - Loading
> models into memory by running SRL on a dummy sentence...
> 23:18:25.050 [main] INFO e.i.cs.cogcomp.srl.main.SRLSystem - Dummy
> sentence: I do .
> 23:18:25.055 [main] INFO e.i.c.c.e.utilities.WordNetManager - Loading
> wordnet properties as a classpath resource: true
> Mar 28, 2014 11:18:25 PM net.didion.jwnl.util.MessageLog doLog
> INFO: Installing dictionary
> net.didion.jwnl.dictionary.FileBackedDictionary@71cc2368
> 23:18:31.314 [main] INFO e.i.c.c.s.f.VerbFeatureGenerator - Reading verb
> class dictionary. Looking for verbClass.txt in the classpath
> 23:18:31.336 [main] INFO e.i.c.c.s.f.VerbFeatureGenerator - Loaded verb
> class dictionary. Test: classes for 'give' are [ 13.1]
> 23:18:34.065 [main] INFO e.i.c.c.s.u.PropBankUtilities - Successfully
> loaded legal arguments. Legal arguments for abandon are [null, A0, A1, A2,
> AM-ADV, AM-CAU, AM-DIS, AM-LOC, AM-MNR, AM-MOD, AM-NEG, AM-PNC, AM-TMP,
> R-A0, R-A1, null]
> ## VerbSRLSystem.getSRLSystemIdentifier(): returning id:
> 'verb-IllinoisSRL-3.0.4'
> 23:18:56.679 [main] INFO e.i.cs.cogcomp.srl.main.SRLSystem - Obtained SRL
> for sentence: do:Predicate(A0:I, )
> 23:18:56.680 [main] INFO e.i.cs.cogcomp.srl.main.SRLSystem - Finished
> loading models. Phew!
> 23:18:56.680 [main] INFO e.i.c.c.a.h.IllinoisVerbSRLHandler - set name to
> 'verb-IllinoisSRL'.
> 23:18:56.680 [main] INFO e.i.c.c.a.h.IllinoisVerbSRLHandler - set version
> to '3.0.4'.
> 23:18:56.697 [main] INFO e.i.c.c.a.s.IllinoisVerbSRLServer - Starting the
> server on port 14810 with 2 threads
>
>
>
>
>
> On Mar 28, 2014, at 3:37 PM, Meghana Kshirsagar wrote:
>
>>
>> Dear Mark,
>> Thanks for your quick reply.
>>
>> I managed to finally install curator and everything seems to be alright --
>> I've only installed the BASIC and SRL packages. The SRL server is running
>> at port 14810. Now, when I run the client (I'm using the
>> CuratorClient.java code from the curator distribution directory:
>> dist/client-examples/java), I get the following error (all output shown
>> below):
>>
>> $ ./runclient.sh localhost 14810 test.txt
>> java -cp
>> .:<path>/curator-1.0.7/dist/components/curator-interfaces.jar:<path>/curator-1.0.7/dist/lib/libthrift-0.8.0.jar:<path>/curator-1.0.7/dist/lib/logback-classic-0.9.17.jar:<path>/curator-1.0.7/dist/lib/logback-core-0.9.17.jar:<path>/curator-1.0.7/dist/lib/slf4j-api-1.5.8.jar
>> -Xmx512m CuratorClient localhost 14810 test.txt
>>
>> ## read in text: Mr. Smith saw the dog with a telescope.
>>
>> We are going to be calling the Curator with the following text:
>> Mr. Smith saw the dog with a telescope.
>>
>> We are going to inspect the Curator for the available annotations:
>>
>> org.apache.thrift.TApplicationException: Invalid method name:
>> 'describeAnnotations'
>> at
>> org.apache.thrift.TApplicationException.read(TApplicationException.java:108)
>> at
>> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:71)
>> at
>> edu.illinois.cs.cogcomp.thrift.curator.Curator$Client.recv_describeAnnotations(Curator.java:183)
>> at
>> edu.illinois.cs.cogcomp.thrift.curator.Curator$Client.describeAnnotations(Curator.java:171)
>> at CuratorClient.main(CuratorClient.java:113)
>> Exception in thread "main" java.lang.NullPointerException
>> at CuratorClient.main(CuratorClient.java:119)
>>
>>
>> It seems there is some problem in the apache thrift method mapping. I
>> tried both the thrift libraries : libthrift-0.8.0.jar, libthrift.jar but
>> no luck.
>> Note that I modified the provided client to perform only the SRL
>> annotations. I have attached the modified file, just in case you need it.
>>
>> Thanks for your time.
>> best,
>> Meghana.
>>
>> <CuratorClient.java>
>>
>>
>> On Mar 28, 2014, at 1:12 AM, Sammons, Mark wrote:
>>
>>> Hi, Meghana.
>>>
>>> You will need to install the Curator package. This satisfies the
>>> prerequisites of the SRL; the hostname and port for the srl.sh script
>>> will be the hostname and port of the Curator instance you start.
>>>
>>> Regards,
>>>
>>> Mark
>>>
>>> ________________________________________
>>> From:
>>> illinois-ml-nlp-users-bounces AT cs.uiuc.edu
>>>
>>> [illinois-ml-nlp-users-bounces AT cs.uiuc.edu]
>>> on behalf of Meghana Kshirsagar
>>> [mkshirsa AT andrew.cmu.edu]
>>> Sent: Thursday, March 27, 2014 9:35 PM
>>> To:
>>> illinois-ml-nlp-users AT cs.uiuc.edu
>>> Subject: [Illinois-ml-nlp-users] Illinois-SRL-3.0.5 service "Connection
>>> timed out"
>>>
>>> Dear CCGers,
>>> Thanks for your great packages!
>>>
>>> I was trying to use the illinois-SRL-3.0.5 package. Running the script
>>> srl.sh seems to require a remote SRL server's connection properties --
>>> hostname and port. I used the ones specified by default and also the ones
>>> at:
>>> https://cogcomp.cs.illinois.edu/cgi-secure/private/connect_to_server_monitor.pl?smPort=8001
>>> However, the connection times out.
>>>
>>> Here is the output from running the script:
>>>
>>> ./srl.sh -v --batch-whitespace --batch cv.test.sentences
>>> --batch-output-file cv.test.sentences.srl
>>> INFO: 22:29:33.130 [main] e.i.c.c.srl.main.SRLApplication - Finished
>>> reading configuration.
>>> INFO: 22:29:33.148 [main] e.i.cs.cogcomp.srl.main.SRLSystem -
>>> Initializing SRL classifiers
>>> INFO: 22:29:33.168 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Finished
>>> initializing all classifiers
>>> INFO: 22:29:33.192 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Loading
>>> models into memory by running SRL on a dummy sentence...
>>> INFO: 22:29:33.192 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Dummy
>>> sentence: I do .
>>> INFO: 22:29:33.197 [main] e.i.c.c.e.utilities.WordNetManager - Loading
>>> wordnet properties as a classpath resource: true
>>> Mar 27, 2014 10:29:33 PM net.didion.jwnl.util.MessageLog doLog
>>> INFO: Installing dictionary
>>> net.didion.jwnl.dictionary.FileBackedDictionary@5902ab44
>>> INFO: 22:29:39.445 [main] e.i.c.c.s.f.VerbFeatureGenerator - Reading verb
>>> class dictionary. Looking for verbClass.txt in the classpath
>>> INFO: 22:29:39.468 [main] e.i.c.c.s.f.VerbFeatureGenerator - Loaded verb
>>> class dictionary. Test: classes for 'give' are [ 13.1]
>>> INFO: 22:29:42.183 [main] e.i.c.c.s.u.PropBankUtilities - Successfully
>>> loaded legal arguments. Legal arguments for abandon are [null, A0, A1,
>>> A2, AM-ADV, AM-CAU, AM-DIS, AM-LOC, AM-MNR, AM-MOD, AM-NEG, AM-PNC,
>>> AM-TMP, R-A0, R-A1, null]
>>> ## VerbSRLSystem.getSRLSystemIdentifier(): returning id:
>>> 'verb-IllinoisSRL-3.0.4'
>>> INFO: 22:29:56.566 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Obtained
>>> SRL for sentence: do:Predicate(A0:I, )
>>>
>>> INFO: 22:29:56.566 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Finished
>>> loading models. Phew!
>>> INFO: 22:29:56.569 [main] e.i.c.c.srl.main.BatchSRLApplication - Creating
>>> curator client
>>> INFO: 22:29:56.573 [main] e.i.c.c.srl.main.BatchSRLApplication - Default
>>> parser = Charniak
>>> Error: java.net.ConnectException: Connection timed out
>>>
>>> Is there some fix to this? Can I not run it locally? I had problems
>>> installing the Curator package and so I decided to go with this
>>> stand-alone SRL component.
>>>
>>> Any help will be greatly appreciated.
>>> Thanks.
>>> Meghana.
>>>
>>>
>>> _______________________________________________
>>> illinois-ml-nlp-users mailing list
>>> illinois-ml-nlp-users AT cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/illinois-ml-nlp-users
>>
>






Archive powered by MHonArc 2.6.16.

Top of Page