logo       

Re: [jruby-user] ArrayStoreException: msg#00213

lang.jruby.user

Subject: Re: [jruby-user] ArrayStoreException

Brian, can you file this as a bug? I suspect we're not constructing an array correctly somewhere. 

- Charlie

On Nov 27, 2007, at 11:06, Brian Leonard <William.Leonard@xxxxxxx> wrote:

Hello:

I have a Rails application where I've integrated the FreeTTS library. The application runs fine in WEBrick, but deployed to GlassFish or Tomcat using Goldspike it throws the following exception when I try to access the Java speech API:

 NativeException in BlogController#speak

java.lang.ArrayStoreException: null

RAILS_ROOT: /Applications/NetBeans/glassfish-v2b58g/domains/domain1/applications/j2ee-modules/blog/config/..
Full Trace

System.java:-2:in `java.lang.System.arraycopy'
Vector.java:689:in `java.util.Vector.toArray'
VoiceManager.java:840:in `com.sun.speech.freetts.UniqueVector.toArray'
VoiceManager.java:203:in `com.sun.speech.freetts.VoiceManager.getVoiceDirectories'
VoiceManager.java:109:in `com.sun.speech.freetts.VoiceManager.getVoices'
VoiceManager.java:519:in `com.sun.speech.freetts.VoiceManager.getVoice'
NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
Method.java:585:in `java.lang.reflect.Method.invoke'
JavaMethod.java:196:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
...

The entire stack is very deep. I've also attached the production.log file which contains the entire trace. I can also send the war file for anyone interested. Any suggestions?

<production.log>

Thanks,
Brian

---
Brian Leonard
Technology Evangelist
408-404-6884


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise