0

我正在使用 red5 服务器来传输 mp3 文件或其他格式的文件。如果我的文件不包含任何封面艺术或专辑封面,它工作正常。如果它包括封面艺术或专辑艺术,我会得到以下例外。

[ERROR] [pool-4-thread-2] org.red5.server.messaging.InMemoryPullPullPipe - exception when pulling message from provider
java.lang.IllegalArgumentException: null
    at java.nio.Buffer.position(Buffer.java:235) [na:1.6.0_20]
    at org.apache.mina.core.buffer.AbstractIoBuffer.position(AbstractIoBuffer.java:368) [mina-core-2.0.0-RC1.jar:na]
    at org.red5.io.mp3.impl.MP3Reader.analyzeKeyFrames(MP3Reader.java:603) [red5.jar:na]
    at org.red5.io.mp3.impl.MP3Reader.<init>(MP3Reader.java:242) [red5.jar:na]
    at org.red5.io.mp3.impl.MP3.getReader(MP3.java:48) [red5.jar:na]
    at org.red5.server.stream.provider.FileProvider.init(FileProvider.java:232) [red5.jar:na]
    at org.red5.server.stream.provider.FileProvider.pullMessage(FileProvider.java:126) [red5.jar:na]
    at org.red5.server.messaging.InMemoryPullPullPipe.pullMessage(InMemoryPullPullPipe.java:70) [red5.jar:na]
    at org.red5.server.stream.PlayEngine$PullAndPushRunnable.run(PlayEngine.java:1538) [red5.jar:na]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.6.0_20]
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [na:1.6.0_20]
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [na:1.6.0_20]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) [na:1.6.0_20]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) [na:1.6.0_20]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_20]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_20]
    at java.lang.Thread.run(Thread.java:636) [na:1.6.0_20]
4

0 回答 0