This discussion is archived
1 Reply Latest reply: Jun 22, 2012 8:32 AM by 898586 RSS

Problem with installing of a service provider

Rafal Z Newbie
Currently Being Moderated
I'm trying to install a service provider for speex conversion. I've created META-INF/services directory and placed there a file: javax.sound.sampled.spi.FormatConversionProvider with content: SpeexFormatConvertionProvider

But after invoking AudioSystem.getAudioInputStream(targetFormat, audioInputStream); I get following exception:
sun.misc.ServiceConfigurationError: javax.sound.sampled.spi.FormatConversionProvider: file:/C:/Projects/netbeans-projects/soundcheck/build/classes/META-INF/services/javax.sound.sampled.spi.FormatConversionProvider:1: Illegal provider-class name: org.xiph.speex.spi.SpeexFormatConvertionProvider
     at sun.misc.Service.parseLine(
     at sun.misc.Service.parse(
     at sun.misc.Service.access$100(
     at sun.misc.Service$LazyIterator.hasNext(
     at Method)

I've tried to place in the file org.xiph.speex.spi.SpeexFormatConvertionProvider and org.xiph.speex.spi.SpeexFormatConvertionProvider.class but with the same result. The class exists. What am I doing wrong. The file is saved in UTF-8 format.

with regards

Rafal Ziolkowski


  • Correct Answers - 10 points
  • Helpful Answers - 5 points