[jboss-jira] [JBoss JIRA] (WFLY-768) Caused by: javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream

Andrew Kroh (JIRA) issues at jboss.org
Fri Dec 27 00:43:32 EST 2013


    [ https://issues.jboss.org/browse/WFLY-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933236#comment-12933236 ] 

Andrew Kroh commented on WFLY-768:
----------------------------------

I was able to resolve a similar issue by adding the following path to the module.xml file and adding the SPI files as listed above. Note that I'm using {{com/sun/media/sound}} and not {{com/sun/media}}.

{code:xml|title=modules/system/layers/base/sun/jdk/main/module.xml}
<path name="com/sun/media/sound"/>
{code}
                
> Caused by: javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-768
>                 URL: https://issues.jboss.org/browse/WFLY-768
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Server
>         Environment: windows 7 jdk1.6,eclipse juno,
>            Reporter: raky k
>            Assignee: Jason Greene
>              Labels: UnsupportedAudioFileException
>             Fix For: 8.0.0.Final
>
>
> The application is working fine in the tomcat when deployed in the Jboss server it does not recognizes wav format and throws error Caused by: javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream
> The application is open source and can be found 
> http://sourceforge.net/projects/simplecaptcha/files/simplecaptcha-1.2-j2ee-sample.war/download 
> i have done below changes but still no luck. ( as advised on https://community.jboss.org/thread/197517   )
> "
> Darran is right, it requires to edit the modules/sun/jdk/main/modules.xml and add an entry for com.sun.media.
>  
> Moreover, copy the following files to modules/sun/jdk/main/service-loader-resources/META-INF/services/
> javax.sound.sampled.spi.AudioFileReader
> javax.sound.sampled.spi.AudioFileWriter
> javax.sound.sampled.spi.FormatConversionProvider
> javax.sound.sampled.spi.MixerProvider
> These files can be found inside /jre/lib/resources.jar of JDK, under /META-INF/services/  "

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list