﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-深蓝的天空下,有你有我...-随笔分类-Flex</title><link>http://www.blogjava.net/liuyxit/category/45770.html</link><description>共享酸、甜、苦、辣</description><language>zh-cn</language><lastBuildDate>Mon, 31 Oct 2011 15:14:14 GMT</lastBuildDate><pubDate>Mon, 31 Oct 2011 15:14:14 GMT</pubDate><ttl>60</ttl><item><title>Flex4.5 + Blazed + JAVA出现Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url:</title><link>http://www.blogjava.net/liuyxit/archive/2011/10/31/362416.html</link><dc:creator>三刀流の逆风</dc:creator><author>三刀流の逆风</author><pubDate>Mon, 31 Oct 2011 15:08:00 GMT</pubDate><guid>http://www.blogjava.net/liuyxit/archive/2011/10/31/362416.html</guid><wfw:comment>http://www.blogjava.net/liuyxit/comments/362416.html</wfw:comment><comments>http://www.blogjava.net/liuyxit/archive/2011/10/31/362416.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/liuyxit/comments/commentRss/362416.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/liuyxit/services/trackbacks/362416.html</trackback:ping><description><![CDATA[详细的报错内容：
Error: (mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = (null)
  correlationId = "BF5E2F0B-2E2D-AE6C-F609-5A62F45603F0"
  destination = ""
  extendedData = (null)
  faultCode = "Client.Error.MessageSend"
  faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/freight/messagebroker/amf'"
  faultString = "Send failed"
  headers = (Object)#2
  messageId = "00C50FEC-A91C-FB7E-5C3E-5A62F9489CE9"
  rootCause = (mx.messaging.events::ChannelFaultEvent)#3
    bubbles = false
    cancelable = false
    channel = (mx.messaging.channels::AMFChannel)#4
      authenticated = false
      channelSets = (Array)#5
      connected = false
      connectTimeout = -1
      enableSmallMessages = true
      endpoint = "http://localhost:8080/freight/messagebroker/amf"
      failoverURIs = (Array)#6
      id = "my-amf"
      mpiEnabled = false
      netConnection = (flash.net::NetConnection)#7
        client = (mx.messaging.channels::AMFChannel)#4
        connected = false
        maxPeerConnections = 8
        objectEncoding = 3
        proxyType = "none"
        uri = "http://localhost:37813/freight/messagebroker/amf?hostport=localhost:8080&https=N&id=-1"
      piggybackingEnabled = false
      polling = false
      pollingEnabled = true
      pollingInterval = 3000
      protocol = "http"
      reconnecting = false
      recordMessageSizes = false
      recordMessageTimes = false
      requestTimeout = -1
      uri = "http://{server.name}:{server.port}/freight/messagebroker/amf"
      url = "http://{server.name}:{server.port}/freight/messagebroker/amf"
      useSmallMessages = false
    channelId = "my-amf"
    connected = false
    currentTarget = (mx.messaging.channels::AMFChannel)#4
    eventPhase = 2
    faultCode = "Channel.Connect.Failed"
    faultDetail = "NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/freight/messagebroker/amf'"
    faultString = "error"
    reconnecting = false
    rejected = false
    rootCause = (Object)#8
      code = "NetConnection.Call.Failed"
      description = "HTTP: Failed"
      details = "http://localhost:37813/freight/messagebroker/amf?hostport=localhost:8080&https=N&id=-1"
      level = "error"
    target = (mx.messaging.channels::AMFChannel)#4
    type = "channelFault"
  timestamp = 0
  timeToLive = 0
	at f/faultHandler()[F:\FB45\f\src\f.mxml:87]
	at mx.rpc::Responder/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]
	at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncToken.as:219]
	at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\events\FaultEvent.as:204]
	at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:244]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:350]
	at mx.rpc::Responder/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]
	at mx.rpc::AsyncRequest/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113]
	at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1619]
	at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1209]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.messaging::Channel/connectFailed()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\Channel.as:1117]
	at mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:435]
	at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:453]


＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
刚开始在网上找到的答案都是：

1.改Project属性的Flex服务器页内容
Root URL(根 URL)为：http://localhost:8080/你的JAVA项目名/
Context root (上下文根目录)为：/你的JAVA项目名

2.改services-config.xml
里的
https://{server.name}:{server.port}/{context.root}/messagebroker/amf
为
https://{server.name}:{server.port}/你的JAVA项目名}/messagebroker/amf

其实都不贴切！！！

！！！！！！
真正的解决问题的方法是：
打开你的工程下/.actionScriptProperties文件，查找“includeNetmonSwc”，从“true”改为“false”，它的作用是：是否导入网络监视器SWC。作为编译配置，当然要关闭。
本文出自 “徐晨光的博客” 博客，请务必保留此出处http://xuchenguang.blog.51cto.com/730272/529873
！！！！！！

隐约记得自己是试过FB里网络监视器的功能。


<img src ="http://www.blogjava.net/liuyxit/aggbug/362416.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/liuyxit/" target="_blank">三刀流の逆风</a> 2011-10-31 23:08 <a href="http://www.blogjava.net/liuyxit/archive/2011/10/31/362416.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Flex中的Spring--1.Swiz介绍</title><link>http://www.blogjava.net/liuyxit/archive/2010/07/29/flex_air_swiz_spring_j2ee.html</link><dc:creator>三刀流の逆风</dc:creator><author>三刀流の逆风</author><pubDate>Thu, 29 Jul 2010 05:39:00 GMT</pubDate><guid>http://www.blogjava.net/liuyxit/archive/2010/07/29/flex_air_swiz_spring_j2ee.html</guid><wfw:comment>http://www.blogjava.net/liuyxit/comments/327418.html</wfw:comment><comments>http://www.blogjava.net/liuyxit/archive/2010/07/29/flex_air_swiz_spring_j2ee.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/liuyxit/comments/commentRss/327418.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/liuyxit/services/trackbacks/327418.html</trackback:ping><description><![CDATA[      之前一直找Flex的开源框架，某一天发现Swiz，那时才是0.6版，现今Swiz已是1.0RC了。是时候着手分析了解。
   从这篇文章开始，着手深入研究Swiz。

About the Swiz Framework(关于Swiz框架)

Swiz is a framework for Adobe Flex that aims to bring complete simplicity to RIA development. Swiz provides:
Swiz至力与为Adobe  Flex 的RIA应用开发者打造的一个简单方便的框架，它提供：

1.Inversion of Control / Dependency Injection
反转控制/依赖注入

2.Event handing and mediation
事件处理和调配

3.A simple life cycle for asynchronous remote methods
提供异步远程方法的一个简单生命周期

4.A framework that is decoupled from your application code
In contrast to other major frameworks for Flex, Swiz:
相比其它大部分Flex框架减少了你的应用代码，例如：

5.Imposes no JEE patterns on your code
推行与JEE分离的编码方式。

6.No repetitive folder layouts
没有重复啰嗦的目录层次

7.No boilerplate code on your development
开发过程中杜绝公式化的代码

8.Does not require you to extend framework-specific classes
不需要你继承扩展框架的指定类。<img src ="http://www.blogjava.net/liuyxit/aggbug/327418.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/liuyxit/" target="_blank">三刀流の逆风</a> 2010-07-29 13:39 <a href="http://www.blogjava.net/liuyxit/archive/2010/07/29/flex_air_swiz_spring_j2ee.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>