ArrayStoreException
-------------------
Key: JRUBY-1633
URL: http://jira.codehaus.org/browse/JRUBY-1633
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.2
Environment: Mac OS 10.4. Java version 1.5.0_07. Goldspike 1.3
GlassFish v2 or Tomcat 6.0.13
Reporter: Brian Leonard
Attachments: production.log
I'm attempting to integrated the FreeTTS library into my Rails application. 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'll attach the production logs with the full
trace along with a sample project that produces the error. The sample project
has a single controller freetts that calls the speech API in index:
include Java
import com.sun.speech.freetts.Voice
import com.sun.speech.freetts.VoiceManager
class FreettsController < ApplicationController
def index
voice = VoiceManager.getInstance.getVoice('kevin16')
voice.allocate
voice.speak('Hello')
end
end
The war file is already included in the sample project.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email