Home > Adobe Flex > LCDSでjava.net.BindExceptionが出たら。

LCDSでjava.net.BindExceptionが出たら。

  • Posted by: hirossy
  • 2008年3月11日 22:06
  • Adobe Flex


LCDSを使っててTomcat起動時にこんなんが出たら



[Flex] RTMP-Server on port: 2038 failed to start up.
java.net.BindException: Address already in use: bind
    at sun.nio.ch.Net.bind(Native Method)
    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
    at flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:155)
    at java.lang.Thread.run(Unknown Source)



services-config.xmlの以下の部分のRTMPのポート番号を2038から2039とかに変えてあげる


<channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
<endpoint url="rtmp://{server.name}:2038" lass="flex.messaging.endpoints.RTMPEndpoint"/>



複数のLCDSアプリを作成するとポートがかぶるんすね。



FDSの時と一緒やね

FDSの設定



ちなみに
BlazeDSにはRTMP実装が含まれてないだろうから関係ない。と思う。

Comments:2

nobu 2008年3月12日 09:43

AIR+LCDSでチャットアプリ作ったときにはまりました・・・orz

hirossy 2008年3月12日 10:16

今ちょうどAIR+LCDSやってます

Home > Adobe Flex > LCDSでjava.net.BindExceptionが出たら。

HIROSSY BLOG
Feeds

Return to page top