Re: Runtime environment issue

Jeroen Frijters <[email protected]> Mon, 16 Mar 2015 16:56:21 +0000
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hi,

This is caused by missing (or incorrect) IKVM.OpenJDK.*.dll files. Please make sure they are all present (and of the right version) in your site bin directory.

Regards,
Jeroen

> -----Original Message-----
> From: Etienne Brouillard [mailto:[email protected]]
> Sent: Monday, March 16, 2015 15:53
> To: [email protected]
> Subject: [Ikvm-developers] Runtime environment issue
> 
> Hi,
> 
> I'm running Stanford NLP.Net using IKVM and running into this issue:
> 
> Unable to cast object of type 'java.util.PropertyResourceBundle' to type
> 'sun.util.resources.OpenListResourceBundle'.
> 
>    at edu.stanford.nlp.util.Timing..ctor()
>    at
> edu.stanford.nlp.parser.lexparser.LexicalizedParser.getParserFromSeriali
> zedFile(String serializedFileOrUrl)
>    at
> edu.stanford.nlp.parser.lexparser.LexicalizedParser.getParserFromFile(St
> ring parserFileOrUrl, Options op)
>    at
> edu.stanford.nlp.parser.lexparser.LexicalizedParser.loadModel(String
> parserFileOrUrl, Options op, String[] extraFlags)
>    at
> edu.stanford.nlp.parser.lexparser.LexicalizedParser.loadModel(String
> parserFileOrUrl, String[] extraFlags)
>    at RobotsAndFruits.Feathery.Nlp.StanfordNlpParser.Initialize()
> in c:\...\StanfordNlpParser.cs:line 118
> 
> The code runs fine when in a classic Console App on .Net 4.5 but it
> fails with this error in automated unit tests or when used in an Azure
> Website Webjob
> (http://www.hanselman.com/blog/IntroducingWindowsAzureWebJobs.aspx
> <http://www.hanselman.com/blog/IntroducingWindowsAzureWebJobs.aspx> ).
> So I wouldn't suspect it's a Stanford NLP issue in the first place but
> likely a runtime problem.
> 
> I'm running v8.0.5449.1 on runtime version v2.0.50727
> 
> I would appreciate if I could get a hand with this problem. Of course,
> if you need any details or would more input I'll be glad to oblige.
> 
> Cheers,
> 
> Étienne

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/